NG update Migrations — Angular 22

Migrations available with the ng update Angular CLI command for Angular 22. Details and example diffs below.

update-workspace-config

angular-cliIntroduced 15.0.0

Update the angular workspace configuration.

No example diff available for this migration yet.

use-application-builder

angular-cliIntroduced 18.0.0

Migrate application projects to the new build system. Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder. You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration

No example diff available for this migration yet.

add-istanbul-instrumenter

angular-cli22.0.0

Add 'istanbul-lib-instrument' to 'devDependencies' if Karma unit testing is used.

No example diff available for this migration yet.

can-match-snapshot-required

angular22.0.0

Adds the required third argument to canMatch callsites.

No example diff available for this migration yet.

change-detection-eager

angular22.0.0

Adds `ChangeDetectionStrategy.Eager` to all components.

No example diff available for this migration yet.

http-xhr-backend

angular22.0.0

Adds 'withXhr' to 'provideHttpClient' function calls when the 'HttpXhrBackend' is used. For more information see: https://angular.dev/api/common/http/withXhr

No example diff available for this migration yet.

incremental-hydration

angular22.0.0

Adds withNoIncrementalHydration() opt out to provideClientHydration() when incremental hydration is not enabled to retain pre-v22 behavior-.

No example diff available for this migration yet.

migrate-karma-to-vitest

angular-cli22.0.0

Migrate projects using legacy Karma unit-test builder to the new unit-test builder with Vitest.

No example diff available for this migration yet.

model-output

angular22.0.0

Migrate broken duplicate outputs

No example diff available for this migration yet.

safe-optional-chaining

angular22.0.0

Wraps optional chaining expressions in $safeNavigationMigration().

No example diff available for this migration yet.

strict-safe-navigation-narrow

angular22.0.0

Disables the 'nullishCoalescingNotNullable & optionalChainNotNullable extended diagnostics.

No example diff available for this migration yet.

strict-templates-default

angular22.0.0

Adds 'strictTemplates: false' in tsconfig.json when not set.

No example diff available for this migration yet.

trust-proxy-headers

angular-cli22.0.0

Add 'trustProxyHeaders' configuration to 'AngularNodeAppEngine' or 'AngularAppEngine'. For more information see: https://angular.dev/best-practices/security#configuring-trusted-proxy-headers

No example diff available for this migration yet.

use-library-builder

angular-cli22.3.0

Migrate library projects from 'ng-packagr' to the new '@angular/build:library' builder.

No example diff available for this migration yet.