-
Notifications
You must be signed in to change notification settings - Fork 70
chore: update to Angular 19 #750
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
Conversation
- Update all @angular/* packages to 19.2.17 - Update @angular/cli and @Angular-devkit to 19.2.19 - Update @angular-eslint packages to 19.0.0 - Update ng-packagr to 19.2.2 - Update zone.js to 0.15.1 - Update TypeScript to 5.8.3 This upgrade addresses Snyk security vulnerabilities: - @angular/[email protected] → @angular/[email protected] - @angular/[email protected] → @angular/[email protected] Skipped optional migrations: - use-application-builder (deferred for separate PR) - provide-initializer (deferred for separate PR) All tests passing. No breaking changes for library consumers.
- Convert AppComponent and test components to standalone - Add required imports (NgIf, AsyncPipe, UpperCasePipe, etc.) - Update test configuration to import standalone components - Fix all linting errors related to standalone components
- Move all standalone components to imports array in AppModule - Move LazyModuleComponent to imports in LazyModuleModule - Empty declarations arrays since all components are now standalone
|
@yogeshchoudhary147 We should update MIGRATION_GUIDE for changes made in this PR. |
README.md
Outdated
|
|
||
| ### Angular 19 Security Update | ||
|
|
||
| **v2.5.0** requires Angular 19.2.17+ and addresses two high-severity vulnerabilities (CVE-2025-66035, CVE-2025-66412). Angular 18 is no longer supported as it has reached end-of-life. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v2.5.0 requires Angular 19.2.17+
This is not true.
We have 2 package.json files. For our shipped SDK, we only have peerDependencies on Angular: https://github.com/auth0/auth0-angular/blob/chore/upgrade-angular-19/projects/auth0-angular/package.json#L28-L32
Note CVE fixes in v2.5.0 and recommend upgrading to Angular 19
2588665 to
e2712be
Compare
Angular 19 Development Environment Update
Updates the development and testing environment to Angular 19.2.17 to address Snyk-reported vulnerabilities and maintain compatibility with actively supported Angular versions.
Background
Snyk reported two high-severity vulnerabilities in Angular 18.2.13:
@angular/common@angular/compilerThese vulnerabilities are fixed in Angular 19.2.17+. Additionally, Angular 18 has reached end-of-life per Google's support policy.
Changes
standalone: falseto components for Angular 19 compatibilityprefer-standalonerule in playgroundSDK Impact
No changes to the distributed SDK package:
>=13(backward compatible)Security Note
The distributed
@auth0/auth0-angularpackage does not bundle Angular (it's a peer dependency). Users must upgrade their own Angular version to 19.2.17+ to address the CVE vulnerabilities. This PR updates our development and testing environment to Angular 19.Testing
This update ensures the SDK is tested and verified with Angular 19, maintaining Auth0's policy of supporting actively maintained Angular versions.