Skip to content

Angular v21.0 -> v22.0#7

Open
Gramli wants to merge 3 commits into
developfrom
feature/angular22
Open

Angular v21.0 -> v22.0#7
Gramli wants to merge 3 commits into
developfrom
feature/angular22

Conversation

@Gramli
Copy link
Copy Markdown
Owner

@Gramli Gramli commented Jun 6, 2026

  • Angular v21.0 -> v22.0
  • dependencies updates

Gramli added 3 commits June 6, 2026 12:23
- 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
@Gramli Gramli self-assigned this Jun 6, 2026
@Gramli Gramli added the enhancement New feature or request label Jun 6, 2026
@Gramli Gramli requested a review from Copilot June 6, 2026 11:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.0 and 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants