Angular v21.0 -> v22.0#7
Open
Gramli wants to merge 3 commits into
Open
Conversation
Owner
Gramli
commented
Jun 6, 2026
- Angular v21.0 -> v22.0
- dependencies updates
- Updated @typescript-eslint/eslint-plugin and @typescript-eslint/parser to 8.60.1 - Upgraded jsdom from 27.3.0 to 29.1.1 - Updated sass from 1.70.0 to 1.100.0 - Upgraded typescript to 6.0.3 - Updated vitest to 4.1.8 - Upgraded zone.js from 0.16.0 to 0.16.2
feat: update app.component.ts to use ChangeDetectionStrategy.Eager and add type safety for customNotificationTmpl chore: enhance tsconfig.app.json with strictTemplates and extendedDiagnostics options fix: change theme in app.config.ts from 'primeng' to 'material' feat: modify app.ts to implement ChangeDetectionStrategy.Eager and ensure type safety for customNotificationTmpl chore: update tsconfig.app.json in standalone demo with strictTemplates and extendedDiagnostics fix: initialize tempPromiseResolver in NotifierContainerComponent fix: ensure resolveFunction in MockNotifierTimerService is initialized fix: update TestComponent in notifier-notification.component.spec.ts to use ChangeDetectionStrategy.Eager and ensure type safety for currentTplRef fix: ensure notification property in NotifierNotificationComponent is initialized fix: update NotifierNotification model to ensure proper initialization of template and component properties fix: improve NotifierQueueService to handle undefined actions gracefully fix: initialize startTime and elapsedTime in MockDate for timer service tests fix: initialize timerId and finishPromiseResolver in NotifierTimerService fix: ensure lastAction in MockNotifierQueueService is initialized chore: enhance tsconfig.lib.json with strictTemplates and extendedDiagnostics options chore: enhance tsconfig.lib.prod.json with strictTemplates and extendedDiagnostics options chore: enhance tsconfig.spec.json with strictTemplates and extendedDiagnostics options chore: update root tsconfig.json to ignore deprecations
…ngular 22 support
There was a problem hiding this comment.
Pull request overview
Updates the workspace and library to Angular 22, aligning TypeScript/compiler settings and making small code adjustments required by stricter type-checking and initialization rules.
Changes:
- Bumps Angular packages and related tooling to
22.0.0and updates other dev dependencies. - Tightens/updates TypeScript + Angular compiler configuration (e.g.,
rootDir,strictTemplates, extended diagnostics suppressions). - Fixes strict initialization/type issues in services, components, and tests (e.g., definite assignment, default initializers).
Reviewed changes
Copilot reviewed 19 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Adds TS deprecation suppression and sets workspace rootDir; removes legacy template type-check option. |
| README.md | Documents Angular Notifier 22.x compatibility. |
| projects/angular-notifier/tsconfig.spec.json | Enables strictTemplates and suppresses specific extended diagnostics for tests. |
| projects/angular-notifier/tsconfig.lib.prod.json | Enables strictTemplates and suppresses specific extended diagnostics for prod builds. |
| projects/angular-notifier/tsconfig.lib.json | Enables strictTemplates and suppresses specific extended diagnostics for library builds. |
| projects/angular-notifier/src/lib/services/notifier.service.spec.ts | Adjusts test mock to satisfy strict property initialization. |
| projects/angular-notifier/src/lib/services/notifier-timer.service.ts | Initializes fields to satisfy strict property initialization. |
| projects/angular-notifier/src/lib/services/notifier-timer.service.spec.ts | Adds initial values to mock fields to satisfy strict initialization. |
| projects/angular-notifier/src/lib/services/notifier-queue.service.ts | Avoids emitting undefined actions from the queue. |
| projects/angular-notifier/src/lib/models/notifier-notification.model.ts | Makes notification model fields strict-init compliant and avoids Object.assign. |
| projects/angular-notifier/src/lib/components/notifier-notification.component.ts | Marks input as definite-assigned and initializes cached dimension fields. |
| projects/angular-notifier/src/lib/components/notifier-notification.component.spec.ts | Updates imports/mock initialization and sets change detection mode on the test component. |
| projects/angular-notifier/src/lib/components/notifier-container.component.ts | Initializes temporary promise resolver to satisfy strict initialization. |
| projects/angular-notifier-standalone-demo/tsconfig.app.json | Enables strictTemplates and suppresses specific extended diagnostics. |
| projects/angular-notifier-standalone-demo/src/app/app.ts | Adds eager change detection and types the ViewChild template reference. |
| projects/angular-notifier-standalone-demo/src/app/app.config.ts | Switches demo theme configuration. |
| projects/angular-notifier-demo/tsconfig.app.json | Enables strictTemplates and suppresses specific extended diagnostics. |
| projects/angular-notifier-demo/src/app/app.module.ts | Switches demo theme configuration. |
| projects/angular-notifier-demo/src/app/app.component.ts | Adds eager change detection and types the ViewChild template reference. |
| package.json | Bumps version to 22.0.0 and upgrades Angular/tooling/dev dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.