Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Angular 9 #22

Closed
Enngage opened this issue Mar 17, 2020 · 11 comments
Closed

Update to Angular 9 #22

Enngage opened this issue Mar 17, 2020 · 11 comments

Comments

@Enngage
Copy link

Enngage commented Mar 17, 2020

Hey,

as title suggest, can you update peer deps for Angular 9? :)

@chaodyz
Copy link
Owner

chaodyz commented Apr 1, 2020

Hey,
I finished the update, everything works fine for projects running the latest Angular. However there is a typescript compatible issue,
storybookjs/storybook#9463
So that means in order to use the new build, users would have to upgrade to typescript 3.7, which is not compatible to Angular 8 and below
Therefore, I'm holding off this upgrade for now till I find a good solution, if you have any suggestion, please let me know!

@Enngage
Copy link
Author

Enngage commented Apr 1, 2020

Hi, I think you should update this library. Users using older Angular version can use older versions of your package. Angular 8 is already out of active support and its LTS ends quite soon - https://angular.io/guide/releases

Is there really a need to hold on this update? Do old users using angular 8 need to use new versions of this library for angular 9? No matter how I look at it it doesn't make much sense to postpone update.

@chaodyz
Copy link
Owner

chaodyz commented Apr 19, 2020

Hi Enngage,

Thanks for your input, I have updated the dependencies, if there is not issue on your side, I will close this thread.

Regards,
Di

@Enngage
Copy link
Author

Enngage commented Apr 20, 2020

Yeah, we can close this thread. Thanks!

@Enngage Enngage closed this as completed Apr 20, 2020
@Enngage
Copy link
Author

Enngage commented May 13, 2020

Hi,

sorry, this is not resolved. You haven't updated peer dependencies in your lib here https://github.com/DiZhou92/ngx-line-truncation/blob/master/projects/line-truncation-lib/package.json#L24

This is still giving peer dependency warnings when using with Angular 9

@Enngage Enngage reopened this May 13, 2020
@chaodyz
Copy link
Owner

chaodyz commented May 13, 2020 via email

@chaodyz
Copy link
Owner

chaodyz commented May 14, 2020

Hi Enngage, I just got peer dependency update, let me know if that works for you. Thanks!

@Enngage
Copy link
Author

Enngage commented May 14, 2020

Hi @DiZhou92 ,

Thank you, but it still isn't quite right :)

You cannot combine both ^ and ~ in peer dependencies. See https://stackoverflow.com/questions/22343224/whats-the-difference-between-tilde-and-caret-in-package-json

You should actually define peer dependencies as:

"@angular/common": "~9.0.0",
 "@angular/core": "~9.0.0"

So that anyone using Angular 9 can install and use your library without unnecessary warning. You are not depending on any specific features released in e.g. 9.1.7 version, so you don't need to specify it.

@chaodyz
Copy link
Owner

chaodyz commented May 14, 2020

Hey i made mistake there, a bit dumb 😅 my apology, was looking for the ~ ^ definition and forget to remove the extra one

@chaodyz
Copy link
Owner

chaodyz commented May 14, 2020

did an update with ^ because i think its ok to be compatible with any V9, let me know!

@Enngage
Copy link
Author

Enngage commented May 15, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants