chore(deps): complete Angular 22 upgrade#339
Conversation
…mon, @angular/core, @angular/platform-browser, @angular/compiler-cli, @angular/forms, @angular/platform-browser-dynamic, @angular/router and ng-packagr Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler), [@angular/build](https://github.com/angular/angular-cli), [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common), [@angular/core](https://github.com/angular/angular/tree/HEAD/packages/core), [@angular/platform-browser](https://github.com/angular/angular/tree/HEAD/packages/platform-browser), [@angular/compiler-cli](https://github.com/angular/angular/tree/HEAD/packages/compiler-cli), [@angular/forms](https://github.com/angular/angular/tree/HEAD/packages/forms), [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic), [@angular/router](https://github.com/angular/angular/tree/HEAD/packages/router) and [ng-packagr](https://github.com/ng-packagr/ng-packagr). These dependencies needed to be updated together. Updates `@angular/compiler` from 21.2.11 to 22.0.1 - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/v22.0.1/packages/compiler) Updates `@angular/build` from 21.2.9 to 22.0.1 - [Release notes](https://github.com/angular/angular-cli/releases) - [Changelog](https://github.com/angular/angular-cli/blob/main/CHANGELOG.md) - [Commits](angular/angular-cli@v21.2.9...v22.0.1) Updates `@angular/common` from 21.2.11 to 22.0.1 - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/v22.0.1/packages/common) Updates `@angular/core` from 21.2.11 to 22.0.1 - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/v22.0.1/packages/core) Updates `@angular/platform-browser` from 21.2.11 to 22.0.1 - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/v22.0.1/packages/platform-browser) Updates `@angular/compiler-cli` from 21.2.11 to 22.0.1 - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/v22.0.1/packages/compiler-cli) Updates `@angular/forms` from 21.2.11 to 22.0.1 - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/v22.0.1/packages/forms) Updates `@angular/platform-browser-dynamic` from 21.2.11 to 22.0.1 - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/v22.0.1/packages/platform-browser-dynamic) Updates `@angular/router` from 21.2.11 to 22.0.1 - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/v22.0.1/packages/router) Updates `ng-packagr` from 21.2.3 to 22.0.0 - [Release notes](https://github.com/ng-packagr/ng-packagr/releases) - [Changelog](https://github.com/ng-packagr/ng-packagr/blob/main/CHANGELOG.md) - [Commits](ng-packagr/ng-packagr@21.2.3...22.0.0) --- updated-dependencies: - dependency-name: "@angular/compiler" dependency-version: 22.0.1 dependency-type: direct:development - dependency-name: "@angular/build" dependency-version: 22.0.1 dependency-type: direct:development - dependency-name: "@angular/common" dependency-version: 22.0.1 dependency-type: direct:development - dependency-name: "@angular/core" dependency-version: 22.0.1 dependency-type: direct:development - dependency-name: "@angular/platform-browser" dependency-version: 22.0.1 dependency-type: direct:development - dependency-name: "@angular/compiler-cli" dependency-version: 22.0.1 dependency-type: direct:development - dependency-name: "@angular/forms" dependency-version: 22.0.1 dependency-type: direct:development - dependency-name: "@angular/platform-browser-dynamic" dependency-version: 22.0.1 dependency-type: direct:development - dependency-name: "@angular/router" dependency-version: 22.0.1 dependency-type: direct:development - dependency-name: ng-packagr dependency-version: 22.0.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
Dependabot PR Cordobo#335 bumped the @angular/* framework packages and ng-packagr to v22 but left peers that must move in lockstep, so `npm ci` failed with ERESOLVE (Angular 22 requires TypeScript >=6.0). - typescript ~5.9.2 -> ~6.0.3 (ng22/@angular/build/ng-packagr peer) - typescript-eslint 8.46.4 -> 8.61.0 (allows TS <6.1.0) - angular-eslint 21.0.1 -> 22.0.0 (needs @angular/cli >=22) - @angular/cli ^21.0.7 -> ^22.0.2 - @angular/cdk ^21.0.7 -> ^22.0.2 - @angular/material ^21.0.1 -> ^22.0.2 - peerDependencies.@angular/core widened to < 23.0.0 tsconfig.json: drop deprecated `baseUrl` (TS5101 under TS 6.0) and make `paths` targets relative so resolution works without it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
I can address the warnings if that would help get this release out quicker |
| @@ -1,3 +1,3 @@ | |||
| { | |||
| "name": "angularx-qrcode", | |||
| "version": "21.0.5", | |||
| "@angular/forms": "^22.0.1", | ||
| "@angular/material": "^22.0.2", | ||
| "@angular/platform-browser": "^22.0.1", | ||
| "@angular/platform-browser-dynamic": "^22.0.1", |
There was a problem hiding this comment.
This should be removed, as platform browser is being used
| "angularx-qrcode": ["dist/angularx-qrcode/angularx-qrcode", "dist/angularx-qrcode"] | ||
| "angularx-qrcode": ["./dist/angularx-qrcode/angularx-qrcode", "./dist/angularx-qrcode"] | ||
| }, | ||
| "strict": true, |
There was a problem hiding this comment.
Please remove - it defaults to true from typescript 6.0
Summary
Completes the Angular 22 upgrade started in #335. That Dependabot PR bumped the
@angular/*framework packages andng-packagrto v22 but left several peers on v21, sonpm cifailed withERESOLVE— Angular 22 requires TypeScript>=6.0 <6.1while the PR kepttypescript@~5.9.2.Changes
package.jsontypescript~5.9.2~6.0.3@angular/build/ng-packagrpeer require TS 6.0 — the actual blockertypescript-eslint8.46.48.61.0<6.0.0; 8.61.0 allows<6.1.0angular-eslint21.0.122.0.0@angular/cli >= 22@angular/cli^21.0.7^22.0.2@angular/cdk^21.0.7^22.0.2@angular/core ^22@angular/material^21.0.1^22.0.2@angular/core ^22peerDependencies.@angular/core< 22.0.0< 23.0.0tsconfig.jsonbaseUrl(TS 6.0 throwsTS5101) and madepathstargets relative (./dist/...) so module resolution works without it.Verification (local)
npm installresolves cleanly (wasERESOLVE)npm run ci:build:lib— library buildsnpm run ci:build:app— demo app builds (only pre-existing budget/CommonJS warnings)npm run lint— all files passNotes
.npmrcmin-release-age=7gate (avoided versions newer than ~7 days), hence@angular/cli@22.0.2andtypescript-eslint@8.61.0rather than the absolute latest.npm testhas 2 failing demo-app tests (No provider found for ActivatedRoute). This is pre-existing onmain(the spec doesn't provide a router whileapp.tsinjectsActivatedRoute), unrelated to this upgrade, and not run by any CI workflow.🤖 Generated with Claude Code