Packages

@angular-devkit/schematics

22.2.5 · 28 Oct 2026MIT27.1M / weekRepositorynpmAtom feed

Your version

22.0.0

major3 Jun 2026Where it was published

22.2.5 is the newest release of 22.x.

In short

6 breaking4 deprecated

  • breaking

    Node.js v20 is no longer supported. The minimum supported Node.js versions are now v22.22.0 and v24.13.1.

  • breaking

    The @angular-devkit/architect-cli package is no longer available. The architect CLI tool has been moved to the @angular-devkit/architect package.

  • breaking

    The experimental @angular-devkit/build-angular:jest and @angular-devkit/build-angular:web-test-runner builders have been removed.

  • breaking

    The @angular/build:dev-server (ng serve) now assigns the highest priority to the PORT environment variable. This value will override any port configurations specified in angular.json or via the --port command-line flag. This includes the default port 4200.

  • breaking

    istanbul-lib-instrument is now an optional peer dependency.

  • breaking

    The server no longer falls back to Client-Side Rendering (CSR) when a request fails host validation. Requests with unrecognized 'Host' headers will now return a 400 Bad Request status code. Users must ensure all valid hosts are correctly configured in the 'allowedHosts' option.

  • deprecated

    Webpack builders in build-angular are deprecated. Use @angular/build builders instead.

  • deprecated

    Webpack builders in build-webpack are deprecated. Use @angular/build builders instead.

Release note

@schematics/angular

CommitDescription
feat - be60a63b7add migrate-karma-to-vitest update migration
feat - 43505066eadd migration to add istanbul-lib-instrument
feat - b2f7a038bconditionally install istanbul coverage provider for Vitest migration
feat - d227e6985migrate fake async to Vitest fake timers
feat - d2aa9ede5migrate fakeAsync's flush behavior when used in beforeEach
feat - f98cc82ebrely on strict template default in generated workspaces
feat - c9f408153set up fake timers in beforeEach instead of beforeAll
feat - de630c2fcstabilize refactor-jasmine-vitest schematic
feat - 8d0805dd1update TSConfig globals during karma to vitest migration
fix - 470e1f937add istanbul-lib-instrument to application/library generator dependencies
fix - dc1238e5aadd trusted-proxy-headers migration
fix - 6572a6944default components to OnPush change detection
fix - aed407db8defer karma config deletion in Karma to Vitest migration
fix - 4fbc60891preserve Jasmine stub-by-default semantics for bare spies
fix - b3d838dfdreplace deprecated ChangeDetectionStrategy.Default with Eager
fix - a7ac8e5f0support spy call arguments migration in refactor-jasmine-vitest
fix - 7fb59eaa6use service decorator in ng generate

@angular/cli

CommitDescription
feat - 58c0978f6add support for Node.js 26.0.0
fix - a5c7c0b5freflect new minimum supported Node version in ng.js
fix - a5e1e48dbupdate odd-numbered Node.js version warning condition for future releases
fix - 93c3eb8fbupdate zoneless migration tool to handle ChangeDetectionStrategy.Eager
perf - a39a33128cache root manifest and resolve restricted package exports in ng add
CommitDescription
----
build - d0e9e8163update minimum supported Node.js versions
refactor - 1f21e89d9remove @angular-devkit/architect-cli package
refactor - b4885b851remove experimental Jest and Web Test Runner builders

@angular-devkit/build-angular

CommitDescription
refactor - b7940dbcbdeprecate Webpack builders

@angular-devkit/build-webpack

CommitDescription
refactor - 3d5daa45edeprecate webpack and webpack-dev-server builders

@angular/build

CommitDescription
feat - e9aa7967badd isolate option to unit-test builder
feat - fe720cab6add process.env.PORT support to the dev server
feat - 0781f7498add quiet option to suppress build noise in unit tests
feat - cd2ad3c19enable chunk optimization by default with heuristics
feat - 3007f46b7move istanbul-lib-instrument to optional peer dependency
feat - af2c7e944rename experimentalPlatform to platform in application builder
feat - 58c7c7a9dsubresource integrity validation for dynamically loaded modules
feat - 73233dc5fsupport Istanbul coverage in Vitest runner
feat - 414320d02support runtime Zone.js detection in Vitest unit test runner
fix - b85ec6798allow configuring Access-Control-Allow-Origin via headers option
fix - edfa782d5use dynamic TestComponentRenderer for Vitest

@angular/ssr

CommitDescription
fix - 5adc92541enforce explicit opt-in for proxy headers
fix - f85343925support all X-Forwarded-* headers when trustProxyHeaders is true
fix - 8471ba634support server-side rendering configuration options
refactor - 50b16a65bdeprecate CommonEngine APIs
refactor - 27cd35561remove CSR fallback for invalid hosts

@ngtools/webpack

CommitDescription
refactor - 547ca515bdeprecate @ngtools/webpack loader and plugin

Breaking Changes

  • breaking

    Node.js v20 is no longer supported. The minimum supported Node.js versions are now v22.22.0 and v24.13.1.

  • breaking

    The @angular-devkit/architect-cli package is no longer available. The architect CLI tool has been moved to the @angular-devkit/architect package.

  • breaking

    The experimental @angular-devkit/build-angular:jest and @angular-devkit/build-angular:web-test-runner builders have been removed.

@angular/build

  • breaking

    The @angular/build:dev-server (ng serve) now assigns the highest priority to the PORT environment variable. This value will override any port configurations specified in angular.json or via the --port command-line flag. This includes the default port 4200.

  • breaking

    istanbul-lib-instrument is now an optional peer dependency.
    Projects using karma with code coverage enabled will need to ensure that istanbul-lib-instrument is installed. Note: ng update will automatically add this dependency during the update process.

@angular/ssr

  • breaking

    The server no longer falls back to Client-Side Rendering (CSR) when a request fails host validation. Requests with unrecognized 'Host' headers will now return a 400 Bad Request status code. Users must ensure all valid hosts are correctly configured in the 'allowedHosts' option.

Deprecations

@angular-devkit/build-angular

  • deprecated

    Webpack builders in build-angular are deprecated. Use @angular/build builders instead.

@angular-devkit/build-webpack

  • deprecated

    Webpack builders in build-webpack are deprecated. Use @angular/build builders instead.

@angular/ssr

  • deprecated

    CommonEngine APIs are deprecated in favor of AngularNodeAppEngine or AngularAppEngine.

@ngtools/webpack

  • deprecated

    @ngtools/webpack loader and plugin are deprecated. Use @angular/build instead.