NG update Migrations — Angular 22
Migrations available with the ng update Angular CLI command for Angular 22. Details and example diffs below.
No example diff available for this migration yet.
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-lib-instrument' to 'devDependencies' if Karma unit testing is used.
No example diff available for this migration yet.
No example diff available for this migration yet.
No example diff available for this migration yet.
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.
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 projects using legacy Karma unit-test builder to the new unit-test builder with Vitest.
No example diff available for this migration yet.
No example diff available for this migration yet.
Wraps optional chaining expressions in $safeNavigationMigration().
No example diff available for this migration yet.
Disables the 'nullishCoalescingNotNullable & optionalChainNotNullable extended diagnostics.
No example diff available for this migration yet.
No example diff available for this migration yet.
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.
Migrate library projects from 'ng-packagr' to the new '@angular/build:library' builder.
No example diff available for this migration yet.