Releases: angular/angular-cli
v13.0.1
v13.1.0-next.0
v13.0.0
13.0.0 (2021-11-03)
Breaking Changes
@schematics/angular
classlist.jsandweb-animations-jsare 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- We removed several deprecated
@schematics/angulardeprecated options. lintFixhave been removed from all schematics.ng lint --fixshould be used instead.legacyBrowsershave been removed from theapplicationschematics since IE 11 is no longer supported.configurationhas been removed from theweb-workeras it was unused.targethas been removed from theservice-workeras it was unused.
@angular/cli
- We drop support for Node.js versions prior to
12.20.
@angular-devkit/build-angular
-
Support for
karma-coverage-instanbul-reporterhas been dropped in favor of the official karma coverage pluginkarma-coverage. -
Support for
node-sasshas been removed.sasswill be used by default to compile SASS and SCSS files. -
NG_PERSISTENT_BUILD_CACHEenvironment variable option no longer have effect. Configurecli.cachein 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"
}
}
...
}-
The automatic inclusion of Angular-required ES2015 polyfills to support ES5 browsers has been removed. Previously when targetting ES5 within the application's TypeScript configuration or listing an ES5 requiring browser in the browserslist file, Angular-required polyfills were included in the built application. However, with Angular no longer supporting IE11, there are now no browsers officially supported by Angular that would require these polyfills. As a result, the automatic inclusion of these ES2015 polyfills has been removed. Any polyfills manually added to an application's code are not affected by this change.
-
With this change a number of deprecated dev-server builder options which proxied to the browser builder have been removed. These options should be configured in the browser builder instead.
The removed options are:
aotsourceMapdeployUrlbaseHrefvendorChunkcommonChunkoptimizationprogress
-
With this change we removed several deprecated builder options
-
extractCsshas been removed from the browser builder. CSS is now always extracted. -
servePathDefaultWarningandhmrWarninghave been removed from the dev-server builder. These options had no effect. -
Deprecated
@angular-devkit/build-angular:tslintbuilder has been removed. Use https://github.com/angular-eslint/angular-eslint instead. -
Differential loading support has been removed. With Angular no longer supporting IE11, there are now no browsers officially supported by Angular that require ES5 code. As a result, differential loading's functionality for creating and conditionally loading ES5 and ES2015+ variants of an application is no longer required.
-
TypeScript versions prior to 4.4 are no longer supported.
-
The dev-server now uses WebSockets to communicate changes to the browser during HMR and live-reloaded. If during your development you are using a proxy you will need to enable proxying of WebSockets.
-
We remove inlining of Google fonts in WOFF format since IE 11 is no longer supported. Other supported browsers use WOFF2.
@angular-devkit/build-webpack
- Support for
webpack-dev-serverversion 3 has been removed. For more information about the migration please see: https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md
Note: this change only affects users depending on @angular-devkit/build-webpack directly.
@angular-devkit/core
- With this change we drop support for the deprecated behaviour to transform
idin schemas. Use$idinstead.
Note: this only effects schematics and builders authors.
- The deprecated JSON parser has been removed from public API. jsonc-parser should be used instead.
@angular-devkit/schematics
-
isActionhas been removed without replacement as it was unused. -
With this change we remove the following deprecated APIs
-
TslintFixTask -
TslintFixTaskOptions
Note: this only effects schematics developers.
@ngtools/webpack
-
Deprecated
inlineStyleMimeTypeoption has been removed fromAngularWebpackPluginOptions. UseinlineStyleFileExtensioninstead. -
Applications directly using the
webpack-cliand not the Angular CLI to build must set the environment variableDISABLE_V8_COMPILE_CACHE=1. The@ngtools/webpackpackage now uses dynamic imports to provide support for the ESM@angular/compiler-clipackage. Thev8-compile-cachepackage used by thewebpack-clidoes not currently support dynamic import expressions and will cause builds to fail if the environment variable is not specified. Applications using the Angular CLI are not affected by this limitation.
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_CACHEenvironment variable option will be removed in the next major version. Configurecli.cachein the workspace configuration instead.
@schematics/angular
@angular/cli
| Commit | Description |
|---|---|
| officially support Node.js v16 | |
| error when updating Angular packages across multi-major migrations | |
| exclude packages from ng add that contain invalid peer dependencies | |
| [![fix - e1b954d... |
v12.2.13
v13.0.0-rc.3
13.0.0-rc.3 (2021-11-02)
@angular/cli
| Commit | Description |
|---|---|
update ng update output for Angular packages |
@angular-devkit/build-angular
Special Thanks
Alan Agius, Charles Lyding and Doug Parker
v13.0.0-rc.2
13.0.0-rc.2 (2021-10-27)
@angular/cli
| Commit | Description |
|---|---|
| error when updating Angular packages across multi-major migrations | |
| exclude packages from ng add that contain invalid peer dependencies |
@angular-devkit/build-angular
| Commit | Description |
|---|---|
| improve sourcemaps fidelity when code coverage is enabled | |
update critters to version 0.0.12 |
Special Thanks
Alan Agius, Charles Lyding, Joey Perrott and Mikhail Vasiliev
v12.2.12
12.2.12 (2021-10-27)
@angular-devkit/build-angular
| Commit | Description |
|---|---|
| avoid extra filesystem access with i18n and differential loading | |
| remove potential race condition in i18n worker execution | |
update critters to version 0.0.12 |
Special Thanks
Alan Agius, Charles Lyding, Joey Perrott and Mikhail Vasiliev
v11.2.15
Commits
@angular-devkit/build-angular (0.1102.15) | ||
| Commit | Description | Notes |
|
|
update `critters` to version `0.0.12` |
[Closes #20794] |
Special Thanks
Joey Perrott, Alan Agius
v13.0.0-rc.1
13.0.0-rc.1 (2021-10-20)
@angular/cli
| Commit | Description |
|---|---|
| correct grammar error in Analytics consent prompt | |
| run stable migrations when package version is prerelease |
@angular-devkit/build-angular
| Commit | Description |
|---|---|
| add "Failed to compile" message | |
| generate unique webpack runtimes | |
| transform remapped sourcemap into a plain object |
Special Thanks
Alan Agius, Extacy and Sushrit_Lawliet
v12.2.11
12.2.11 (2021-10-20)
@angular/cli
| Commit | Description |
|---|---|
| add engine field support for npm 8 and higher | |
| correct grammar error in Analytics consent prompt | |
| run stable migrations when package version is prerelease |
@angular-devkit/build-angular
Special Thanks
Alan Agius, Charles Lyding, Extacy and Sushrit_Lawliet