Releases: angular/angular-cli
v14.0.1
14.0.1 (2022-06-08)
@schematics/angular
| Commit | Description |
|---|---|
| remove strict setting under application project |
@angular/cli
@angular-devkit/build-angular
| Commit | Description |
|---|---|
log modified and removed files when using the verbose option |
|
replace dev-server socket path from /ws to /ng-cli-ws |
|
| update Angular peer dependencies to 14.0 stable |
@angular/pwa
| Commit | Description |
|---|---|
| add peer dependency on Angular CLI |
Special Thanks
Alan Agius, Charles Lyding and Doug Parker
v14.0.0
14.0.0 (2022-06-02)
Breaking Changes
@angular-devkit/schematics-cli
- camel case arguments are no longer allowed.
@angular-devkit/architect-cli
- camel case arguments are no longer allowed.
@angular/cli
-
Several changes to the
ng analyticscommand syntax.ng analytics project <setting>has been replaced withng analytics <setting>ng analytics <setting>has been replaced withng analytics <setting> --global
-
Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
-
Support for TypeScript 4.4 and 4.5 has been removed. Please update to TypeScript 4.6.
-
--alloption fromng updatehas been removed without replacement. To update packages which don’t provideng updatecapabilities in your workspacepackage.jsonusenpm update,yarn upgrade-interactiveoryarn upgradeinstead. -
Deprecated option
--prodhas been removed from all builders.--configuration production/-c productionshould be used instead if the default configuration of the builder is not configured toproduction. -
--configurationcannot be used withng run. Provide the configuration as part of the target. Ex:ng run project:builder:configuration. -
Deprecated
ng x18nandng i18n-extractcommands have been removed in favor ofng extract-i18n. -
Several changes in the Angular CLI commands and arguments handling.
ng helphas been removed in favour of the—-helpoption.ng —-versionhas been removed in favour ofng versionandng v.- Deprecated camel cased arguments are no longer supported. Ex. using
—-sourceMapinstead of—-source-mapwill result in an error. ng update,—-migrate-onlyoption no longer accepts a string of migration name, instead use—-migrate-only -—name <migration-name>.—-help jsonhelp has been removed.
@angular-devkit/build-angular
-
browserandkarmabuildersscriptandstylesoptions input files extensions are now validated.Valid extensions for
scriptsare:.js.cjs.mjs.jsx.cjsx.mjsx
Valid extensions for
stylesare:.css.less.sass.scss.styl
-
We now issue a build time error since importing a CSS file as an ECMA module is non standard Webpack specific feature, which is not supported by the Angular CLI.
This feature was never truly supported by the Angular CLI, but has as such for visibility.
-
Reflect metadata polyfill is no longer automatically provided in JIT mode
Reflect metadata support is not required by Angular in JIT applications compiled by the CLI.
Applications built in AOT mode did not and will continue to not provide the polyfill.
For the majority of applications, the reflect metadata polyfill removal should have no effect.
However, if an application uses JIT mode and also uses the previously polyfilled reflect metadata JavaScript APIs, the polyfill will need to be manually added to the application after updating.
To replicate the previous behavior, thecore-jspackage should be manually installed and theimport 'core-js/proposals/reflect-metadata';statement should be added to the application'spolyfills.tsfile. -
NG_BUILD_CACHEenvironment variable has been removed.cli.cachein the workspace configuration should be used instead. -
The deprecated
showCircularDependenciesbrowser and server builder option has been removed. The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tools.
@angular-devkit/core
parseJsonandParseJsonOptionsAPIs have been removed in favor of 3rd party JSON parsers such asjsonc-parser.- The below APIs have been removed without replacement. Users should leverage other Node.js or other APIs.
fsnamespacecleanmapObject
@angular-devkit/schematics
- Schematics
NodePackageInstallTaskwill not execute package scripts by default
TheNodePackageInstallTaskwill now use the package manager's--ignore-scriptsoption by default.
The--ignore-scriptsoption will prevent package scripts from executing automatically during an install.
If a schematic installs packages that need theirinstall/postinstallscripts to be executed, the
NodePackageInstallTasknow contains anallowScriptsboolean option which can be enabled to provide the
previous behavior for that individual task. As with previous behavior, theallowScriptsoption will
prevent the individual task's usage of the--ignore-scriptsoption but will not override the package
manager's existing configuration. - Deprecated
analyticsproperty has been removed fromTypedSchematicContextinterface
@ngtools/webpack
-
ivynamespace has been removed from the public API.ivy.AngularWebpackPlugin->AngularWebpackPluginivy.AngularPluginOptions->AngularPluginOptions
Deprecations
@angular/cli
-
The
defaultCollectionworkspace option has been deprecated in favor ofschematicCollections.Before
"defaultCollection": "@angular/material"
After
"schematicCollections": ["@angular/material"]
-
The
defaultProjectworkspace option has been deprecated. The project to use will be determined from the current working directory.
@angular-devkit/core
-
ContentHasMutatedException,InvalidUpdateRecordException,UnimplementedExceptionandMergeConflictExceptionsymbol from@angular-devkit/corehave been deprecated in favor of the symbol from@angular-devkit/schematics.UnsupportedPlatformException- A custom error exception should be created instead.
@angular-devkit/schematics-cli
| Commit | Description |
|---|---|
| replace parser with yargs-parser |
@angular-devkit/architect-cli
| Commit | Description |
|---|---|
| replace parser with yargs-parser |
@schematics/angular
@angular/cli
| Commit | Description |
|---|---|
add --global option to ng analytics command |
|
add ng analytics info command |
|
add ng cache command |
|
add disable/enable aliases for off/on ng analytics comma... |
v14.0.0-rc.3
14.0.0-rc.3 (2022-05-31)
@angular/cli
| Commit | Description |
|---|---|
| support silent package installs with Yarn 2+ | |
| workaround npm 7+ peer dependency resolve errors during updates |
@angular-devkit/build-angular
| Commit | Description |
|---|---|
| add es2015 exports package condition to browser-esbuild | |
detect tailwind.config.cjs as valid tailwindcss configuration |
@angular-devkit/schematics
| Commit | Description |
|---|---|
| support ignore scripts package installs with Yarn 2+ | |
| support quiet package installs with Yarn 2+ |
Special Thanks
Alan Agius, Charles Lyding and Doug Parker
v14.0.0-rc.2
14.0.0-rc.2 (2022-05-25)
@angular/cli
| Commit | Description |
|---|---|
| populate path with working directory in nested schematics | |
remove incorrect warning during ng update |
@angular-devkit/build-angular
Special Thanks
Alan Agius, Joey Perrott and Kristiyan Kostadinov
v13.3.7
v14.0.0-rc.1
14.0.0-rc.1 (2022-05-18)
@schematics/angular
| Commit | Description |
|---|---|
| alphabetically order imports during component generation |
@angular/cli
@angular-devkit/build-angular
| Commit | Description |
|---|---|
| close compiler on Karma exit |
Special Thanks
Alan Agius, Charles Lyding, Doug Parker, Elton Coelho, George Kalpakas and Kristiyan Kostadinov
v13.3.6
v14.0.0-rc.0
14.0.0-rc.0 (2022-05-11)
@schematics/angular
| Commit | Description |
|---|---|
add migration to remove package.json in libraries secondary entrypoints |
|
| don't add path mapping to old entrypoint definition file | |
| remove extra space in standalone imports |
@angular/cli
| Commit | Description |
|---|---|
| display option descriptions during auto completion | |
| improve error message for Windows autocompletion use cases |
@angular-devkit/build-angular
| Commit | Description |
|---|---|
| properly handle locally-built APF v14 libraries |
Special Thanks
Alan Agius, Charles Lyding, Cédric Exbrayat, Doug Parker, Jason Bedard, Kristiyan Kostadinov, Paul Gschwendtner and alkavats1
v14.0.0-next.13
14.0.0-next.13 (2022-05-04)
Breaking Changes
@angular-devkit/schematics
- Schematics
NodePackageInstallTaskwill not execute package scripts by default
TheNodePackageInstallTaskwill now use the package manager's--ignore-scriptsoption by default.
The--ignore-scriptsoption will prevent package scripts from executing automatically during an install.
If a schematic installs packages that need theirinstall/postinstallscripts to be executed, the
NodePackageInstallTasknow contains anallowScriptsboolean option which can be enabled to provide the
previous behavior for that individual task. As with previous behavior, theallowScriptsoption will
prevent the individual task's usage of the--ignore-scriptsoption but will not override the package
manager's existing configuration.
@schematics/angular
| Commit | Description |
|---|---|
introduce addDependency rule to utilities |
|
| introduce a utility subpath export for Angular rules and utilities |
@angular/cli
@angular-devkit/schematics
| Commit | Description |
|---|---|
disable package script execution by default in NodePackageInstallTask |
@angular/pwa
| Commit | Description |
|---|---|
remove @schematics/angular utility deep import usage |
Special Thanks
Alan Agius, Charles Lyding, Doug Parker, Paul Gschwendtner and Pawel Kozlowski