feat!: support Angular 22, drop Angular 18 and 19#211
Open
fmalcher wants to merge 1 commit into
Open
Conversation
Closes #209. BREAKING CHANGE: Angular 18 and 19 are no longer supported. The minimum supported Angular version is now 20.0.0; LTS for v20 runs through 2026-11-28. - Bump peer/dep ranges to >=20.0.0 <23.0.0 (devkit architect to <0.2300.0) - Bump engines.node to match Angular 20+ requirements - Bump TypeScript to ~5.9.3 so devkit 22 MapIterator types resolve - Bump @types/node and dev devkit packages to v22 - Add angular-22.json fixture, drop angular-18/19 fixtures and tests - Update README to reflect new supported range
fmalcher
commented
Jun 7, 2026
| "types": "index.d.ts", | ||
| "engines": { | ||
| "node": ">=18.0.0", | ||
| "node": "^20.19.0 || ^22.12.0 || >=24.0.0", |
Member
Author
There was a problem hiding this comment.
Should we add broader support again? These asre the versions required by Angular itself. However, we could make it > 20 again:
Suggested change
| "node": "^20.19.0 || ^22.12.0 || >=24.0.0", | |
| "node": ">=20.0.0", |
d-koppenhagen
approved these changes
Jun 7, 2026
Member
|
Ich reviewe, sobald ich Zuhause bin. |
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.
Closes #209. I went a step further and think we can safely drop support for unsupported Angular versions.
Summary
>=20.0.0 <23.0.0(devkit architect to<0.2300.0); package now installs cleanly against Angular 22.0.0.engines.nodeto match Angular 20+ (^20.19.0 || ^22.12.0 || >=24.0.0).~5.9.3— Angular 22's devkit.d.tsusesMapIterator<string>(introduced in TS 5.6), which the previous TS 5.2 couldn't resolve and producedType 'unknown' is not assignable to type 'string'inng-add.ts.@angular-devkit/*to v22 and@types/nodeto v22.test-fixtures/angular-22.json(generated viang newwith Angular CLI 22.0.0); drop the now-unsupportedangular-18.json/angular-19.jsonfixtures and their tests.Compatibility notes
Reviewed the Angular CLI 22 changelog. None of the breaking changes affect APIs this package uses:
BuilderContext,targetFromTargetString,logging,workspaces, schematic types.@angular-devkit/architect-cli(removed),@angular/build:jest/web-test-runner(removed),@angular/ssr, or@angular/build:dev-serverPORT behavior.Test plan
npm run buildpasses against@angular-devkit/*@22.0.0npm test— all 426 tests pass against@angular-devkit/*@22.0.0ng add angular-cli-ghpagesagainst a freshng newworkspace on Angular 22ng deploy --dry-runagainst an Angular 22 project