Skip to content

Upgrade to Angular 20#823

Merged
kevin-atnos merged 5 commits intomasterfrom
angular_20
Oct 6, 2025
Merged

Upgrade to Angular 20#823
kevin-atnos merged 5 commits intomasterfrom
angular_20

Conversation

@brunto
Copy link
Copy Markdown
Collaborator

@brunto brunto commented Sep 25, 2025

This pull request upgrades the project to Angular 20 and updates several dependencies and build configurations to align with the new Angular version. It also refactors Angular templates to use the new control flow syntax (@if, @for, @else) for improved readability and performance. These changes are essential for maintaining compatibility, leveraging new Angular features, and ensuring the codebase stays up-to-date.

Framework and Dependency Upgrades

  • Upgraded all Angular dependencies in package.json from version 19 to 20, including core libraries, CLI, compiler, and related packages. Also updated other dependencies such as ng2-pdfjs-viewer, ng-packagr, and @types/node to match compatibility requirements. [1] [2] [3] [4]
  • Updated the Node.js version in .tool-versions from 22.12.0 to 22.20.0 to support the new Angular version.

Build Configuration Changes

  • Replaced deprecated Angular build and test builders in angular.json with the new @angular/build equivalents for application, dev-server, extract-i18n, karma, and ng-packagr. [1] [2] [3] [4] [5]
  • Added a schematics section to angular.json for custom component, directive, service, guard, interceptor, module, pipe, and resolver generation options.

Template Refactoring

  • Refactored multiple Angular templates (e.g., base.component.html, archive-card.component.html) to use the new control flow syntax (@if, @for, @else) instead of the older *ngIf and *ngFor directives, improving code clarity and leveraging Angular 20 features. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]

Versioning

  • Bumped the project version in package.json from 4.0.0 to 5.0.0 to reflect the major upgrades and breaking changes.

@brunto brunto requested a review from kevin-atnos September 25, 2025 07:52
@brunto brunto marked this pull request as ready for review September 25, 2025 19:59
@kevin-atnos kevin-atnos merged commit e0409c8 into master Oct 6, 2025
3 checks passed
@kevin-atnos kevin-atnos deleted the angular_20 branch October 6, 2025 13:16
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.

2 participants