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

Upgrade to Angular 10 #41

Merged
merged 2 commits into from
Oct 14, 2020
Merged

Upgrade to Angular 10 #41

merged 2 commits into from
Oct 14, 2020

Conversation

daverickdunn
Copy link

There's two commits here, I can redo the pull request if you like, as the first wasn't needed in the end, but I've left it as I see it as an improvement nonetheless. I have not tried incrementing versions as I'm not sure of the flow using ng-packagr.

First commit
I tried running ng update and it complained about bootstrap missing 2 dependencies (jQuery and hammerjs, I think). I took a look and saw that bootstrap wasn't really required in the project, so I copied over the required bootstrap SCSS into the test component and global styles and removed bootstrap as a dependency. I now realise they were probably left out by intention, as bootstrap's JavaScript was never used, but still, this simplifies maintenance.

Second commit
Then I tried to upgrade again, this time it was giving out about zone.js having to be upgraded from 10.x.x to 11.x.x, which is odd because angular 10 uses the same 10.x.x as 9. However, I've seen this exact issue migrating other projects from 9 to 10, and in my experience the newer version is fine. So I ran ng update --all --force and it upgraded almost all packages.

Tests
It's passing all tests in Karma and is building fine. When imported into a project the Validator interfaces now match, so the Angular 10 compatibility problem appears to be fixed.

@daverickdunn
Copy link
Author

Fixes these issues:
#37
#38
#39
#40

@matiasah
Copy link

matiasah commented Oct 1, 2020

Will this eventually get merged?

@rsaenen rsaenen merged commit 1591a88 into rsaenen:master Oct 14, 2020
@rsaenen
Copy link
Owner

rsaenen commented Oct 14, 2020

Released with 10.0.0
I'm sorry and I recommend you to check:
#37

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

Successfully merging this pull request may close these issues.

3 participants