Skip to content

feat: upgrade Angular 13 → 22 - #1

Open
irustm with Copilot wants to merge 2 commits into
masterfrom
copilot/update-to-latest-angular
Open

feat: upgrade Angular 13 → 22#1
irustm with Copilot wants to merge 2 commits into
masterfrom
copilot/update-to-latest-angular

Conversation

Copilot AI commented Jul 24, 2026

Copy link
Copy Markdown

Upgrades the app from Angular 13 to Angular 22 (latest), including the full dependency chain and required code changes.

Dependencies

  • All @angular/* packages: ~13~22
  • typescript: ~4.4~6.0 (Angular 22 requires >=6.0 <6.1)
  • zone.js: ~0.11~0.16, rxjs: ~7.4~7.8

Build (angular.json)

  • Migrated from deprecated webpack-based @angular-devkit/build-angular:browser to esbuild-based @angular/build:application
  • All builders (serve, test, extract-i18n) moved to @angular/build namespace
  • polyfills changed from a file reference to inline array: ["zone.js"]
  • Added allowedCommonJsDependencies for simplepeg, ace-builds, brace

TypeScript (tsconfig.json)

  • Removed deprecated options: baseUrl, downlevelIteration, moduleResolution: "node""bundler"
  • Targets updated to ES2022; added useDefineForClassFields: false for decorator compat

Source code

  • Added standalone: false to all five @Component decorators — Angular 19 changed the default to true, breaking NgModule-based apps
  • async()waitForAsync() in spec files (removed in Angular 16)
  • Removed webpack-specific require.context boilerplate from test.ts; karma now auto-discovers specs

Copilot AI added 2 commits July 24, 2026 09:45
- Update all @angular/* packages to v22
- Update @angular/material and @angular/cdk to v22
- Update TypeScript to v6.0 (required by Angular 22)
- Update zone.js to v0.16, rxjs to v7.8
- Migrate from deprecated browser builder to @angular/build:application
- Migrate serve/extract-i18n/test builders to @angular/build namespace
- Remove deprecated tsconfig options (baseUrl, downlevelIteration, moduleResolution:node→bundler)
- Update tsconfig targets to ES2022
- Add standalone:false to all NgModule-based components (Angular 19+ default changed)
- Replace polyfills.ts file with inline zone.js array in angular.json
- Remove webpack require.context from test.ts
- Replace deprecated async() with waitForAsync() in test files
- Add allowedCommonJsDependencies for third-party CJS packages
- Disable font inlining (network not available in CI)
Copilot AI changed the title feat: upgrade Angular from v13 to v22 feat: upgrade Angular 13 → 22 Jul 24, 2026
Copilot AI requested a review from irustm July 24, 2026 09:58
@irustm
irustm marked this pull request as ready for review July 24, 2026 10:55
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