NG update Migrations — Angular 12
Migrations available with the ng update Angular CLI command for Angular 12. Details and example diffs below.
In Angular version 12, the type of ActivatedRouteSnapshot.fragment is nullable. This migration automatically adds non-null assertions to it.
No example diff available for this migration yet.
Lazy loading syntax migration. Update lazy loading string syntax to use dynamic imports.
No example diff available for this migration yet.
Remove deprecated ViewEngine-based i18n build and extract options. Options present in the configuration will be converted to use non-deprecated options.
No example diff available for this migration yet.
Remove 'emitDecoratorMetadata' TypeScript compiler option. Decorator metadata is no longer needed by Angular. Read more about this here: https://www.typescriptlang.org/docs/handbook/decorators.html#metadata
No example diff available for this migration yet.
Remove deprecated options from 'angular.json' that are no longer present in v12.
No example diff available for this migration yet.
Updates Web Worker consumer usage to use the new syntax supported directly by Webpack 5.
No example diff available for this migration yet.
Update 'zone.js' to version 0.11.x. Read more about this here: https://github.com/angular/angular/blob/master/packages/zone.js/CHANGELOG.md#breaking-changes-since-zonejs-v0111
No example diff available for this migration yet.
`XhrFactory` has been moved from `@angular/common/http` to `@angular/common`.
No example diff available for this migration yet.
Remove invalid 'skipTests' option in '@schematics/angular:module' Angular schematic options.
No example diff available for this migration yet.
Automatically migrates shadow-piercing selector from `/deep/` to the recommended alternative `::ng-deep`.
No example diff available for this migration yet.
Replace the deprecated '--prod' in package.json scripts.
No example diff available for this migration yet.