angular.courses

NG update Migrations — Angular 12

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

activated-route-snapshot-fragment

angular12.0.0

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-string-syntax

angular-cli12.0.0

Lazy loading syntax migration. Update lazy loading string syntax to use dynamic imports.

No example diff available for this migration yet.

remove-deprecated-i18n-options

angular-cli12.0.0

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-emit-decorator-metadata

angular-cli12.0.0

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.

update-angular-config-v12

angular-cli12.0.0

Remove deprecated options from 'angular.json' that are no longer present in v12.

No example diff available for this migration yet.

update-web-workers-webpack-5

angular-cli12.0.0

Updates Web Worker consumer usage to use the new syntax supported directly by Webpack 5.

No example diff available for this migration yet.

update-zonejs

angular-cli12.0.0

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.

xhr-factory

angular12.0.0

`XhrFactory` has been moved from `@angular/common/http` to `@angular/common`.

No example diff available for this migration yet.

schematic-options-12

angular-cli12.0.1

Remove invalid 'skipTests' option in '@schematics/angular:module' Angular schematic options.

No example diff available for this migration yet.

deep-shadow-piercing-selector

angular12.0.2

Automatically migrates shadow-piercing selector from `/deep/` to the recommanded alternative `::ng-deep`.

No example diff available for this migration yet.

replace-deprecated-prod-flag

angular-cli12.1.0

Replace the deprecated '--prod' in package.json scripts.

No example diff available for this migration yet.