Angular CLI: 13.0.0-next.9 Release

Release date:
October 7, 2021
Previous version:
13.0.0-next.8 (released October 5, 2021)
Magnitude:
450 Diff Delta
Contributors:
5 total committers
Data confidence:
Commits:

Top Contributors in 13.0.0-next.9

josephperrott
clydin
dgp1130
alan-agius4
renovate-bot

Directory Browser for 13.0.0-next.9

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

<a name="13.0.0-next.9"></a>

13.0.0-next.9 (2021-10-06)

Breaking Changes

@schematics/angular

  • classlist.js and web-animations-js are removed from application polyfills and uninstalled from the package. These were only needed for compatibility with Internet Explorer, which is no longer needed now that Angular only supports evergreen browsers. See: https://angular.io/guide/browser-support.

Add the following to the polyfills file for an app to re-add these packages:

import 'classlist.js';
import 'web-animations-js';

And then run:

npm install classlist.js web-animations-js --save

@angular-devkit/build-angular

  • Inlining of critical CSS is no longer enable by default. Users already on Angular CLI version 12 and have not opted-out from using this feature are encouraged to opt-in using the browser builder inlineCritical option.

  • NG_PERSISTENT_BUILD_CACHE environment variable option no longer have effect. Configure cli.cache in the workspace configuration instead.

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "cli": {
    "cache": {
      "enabled": true,
      "path": ".custom-cache-path",
      "environment": "all"
    }
  }
  ...
}

Deprecations

  • @angular-devkit/build-optimizer

It's functionality has been included in @angular-devkit/build-angular so this package is no longer needed by the CLI and we will stop publishing the package soon. It has been an experimental (never hit 1.0.0) and internal (only used by Angular itself) package and should be not be used directly by others.

@angular-devkit/build-angular

  • NG_BUILD_CACHE environment variable option will be removed in the next major version. Configure cli.cache in the workspace configuration instead. ### @schematics/angular | Commit | Description | | -- | -- | | feat - 7ff8c5350 | add /.angular/cache to .gitignore | | feat - eac18aed7 | drop polyfills required only for Internet Explorer now that support has been dropped for it | | fix - 585adacd0 | don't add destroyAfterEach in newly generated spec files | ### @angular/cli | Commit | Description | | -- | -- | | feat - 9fe55752d | officially support Node.js v16 | | fix - d8c9f6eaf | update the update command to fully support Node.js v16 | ### | Commit | Description | | -- | -- | | docs - 5e435ff37 | mark @angular-devkit/build-optimizer as deprecated. | ### @angular-devkit/architect | Commit | Description | | -- | -- | | feat - 09e039500 | include workspace extensions in project metadata | ### @angular-devkit/build-angular | Commit | Description | | -- | -- | | feat - bf0709b14 | disable critical CSS inlining by default | | feat - 5904afd1d | enable disk cache by default and provide configurable options | | fix - d7af4a7b5 | enable custom es2020 and es2015 conditional exports | | fix - f10a82833 | improve fidelity and performance of babel loader sourcemaps | ### @angular-devkit/core | Commit | Description | | -- | -- | | fix - a54e5e065 | support Node.js v16 with NodeJsSyncHost/NodeJsAsyncHost delete operation | ## Special Thanks Alan Agius, Charles Lyding, Doug Parker and Joey Perrott