Skip to content

feat: update to Angular v22 - #848

Merged
fateeand merged 10 commits into
next-majorfrom
674-upgrade-to-angular-v22
Aug 21, 2026
Merged

feat: update to Angular v22#848
fateeand merged 10 commits into
next-majorfrom
674-upgrade-to-angular-v22

Conversation

@fateeand

@fateeand fateeand commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

This PR targets the next-major branch, rather than master, as it is part of the next major version update.

Summary

Updates the project from Angular 21 to Angular 22, following the official update guide.

  • Added changeDetection: ChangeDetectionStrategy.Eager to components where it was required, preserving pre-v22 change-detection defaults
  • Suppressed the new nullishCoalescingNotNullable/optionalChainNotNullable extended template diagnostics
  • Removed the deprecated baseUrl from tsconfig.json (TS 6.0 deprecation) and converted the one absolute-style import it enabled (projects/cps-ui-kit/package.json in app.component.ts/.spec.ts) to a relative import
  • Removed browser-sync and @types/express dead devDependencies
  • Bumped highlight.js, @axe-core/playwright, eslint-config-prettier to their latest compatible versions
  • Fixed the generate-api-data job that checked git status on projects/composition/src/assets/api-data/, a path that doesn't exist - the generator actually writes to projects/composition/src/app/api-data/. The job always trivially "passed" without ever detecting any issues
  • Fixed NG01354 warnings, which Angular 22 added as a new dev-mode-only diagnostic to NgModel that detects when an internal ngModel binding sits inside a component nested in an ancestor reactive form but can't register with it due to the component boundary (@Host() injection)
  • Fixed test:coverage:cps-ui-kit/test:coverage:composition crashing with ENOENT by explicitly setting coverageDirectory: '<rootDir>/coverage' in jest.config.js. Root cause: @angular-builders/jest v22 changed its default coverage output location from the workspace root to a per-project folder, so coverage/ was never created for the --output-file flag to write into.

Closes #674


Release notes:

  • updated Angular to v22

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Coverage report for library

St.
Category Percentage Covered / Total
🟢 Statements 98.84% 7582/7671
🟢 Branches 93.87% 3902/4157
🟢 Functions 97.49% 1396/1432
🟢 Lines 99.34% 7034/7081

Test suite run success

3233 tests passing in 76 suites.

Report generated by 🧪jest coverage report action from cbd7120

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Playwright test results

passed  974 passed

Details

stats  974 tests across 35 suites
duration  32 minutes, 16 seconds
commit  cbd7120
info  For details, download the Playwright report

@lukasmatta lukasmatta left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done!

@fateeand
fateeand merged commit 744e55f into next-major Aug 21, 2026
11 checks passed
@fateeand
fateeand deleted the 674-upgrade-to-angular-v22 branch August 21, 2026 11:46
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