Skip to content

Conversation

@yogeshchoudhary147
Copy link
Contributor

@yogeshchoudhary147 yogeshchoudhary147 commented Dec 24, 2025

🚨 Breaking Change - Major Version Release

This PR upgrades auth0-angular to Angular 19, requiring a major version bump to 3.0.0.

What Changed

Package Updates

  • Angular: 18.2.x19.2.17
  • TypeScript: 5.5.x5.8.3
  • All Angular dependencies aligned to v19

Architecture

  • Migrated to standalone components (Angular 19 default)
  • Updated module imports for standalone architecture
  • Fixed all tests and linting for v19 compatibility

Security

  • ✅ Resolves Snyk vulnerabilities in @angular/common and @angular/compiler

💥 Breaking Change

This release requires Angular 19+

Consuming applications on Angular 18 or below cannot use this version.

Migration Guide for Consumers

# Step 1: Upgrade your app to Angular 19
ng update @angular/core@19 @angular/cli@19

# Step 2: Update auth0-angular
npm install @auth0/auth0-angular@3.0.0

- 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/common@18.2.13 → @angular/common@19.2.17
- @angular/compiler@18.2.13 → @angular/compiler@19.2.17

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.
@yogeshchoudhary147 yogeshchoudhary147 requested a review from a team as a code owner December 24, 2025 04:38
- 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 yogeshchoudhary147 changed the title chore: Upgrade to Angular 19.2.17 chore: Upgrade to Angular 19.2.17 and migrate to standalone components Dec 24, 2025
@yogeshchoudhary147 yogeshchoudhary147 changed the title chore: Upgrade to Angular 19.2.17 and migrate to standalone components chore: upgrade to Angular 19 (BREAKING CHANGE) Dec 24, 2025
@gyaneshgouraw-okta
Copy link
Contributor

@yogeshchoudhary147 We should update MIGRATION_GUIDE for changes made in this PR.

@yogeshchoudhary147 yogeshchoudhary147 marked this pull request as draft December 24, 2025 07:38
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