Skip to content

Releases: angular/angular-cli

v14.0.1

08 Jun 22:51

Choose a tag to compare

14.0.1 (2022-06-08)

@schematics/angular

Commit Description
fix - 73dcf39c6 remove strict setting under application project

@angular/cli

Commit Description
fix - e4fb96657 add text to help output to indicate that additional commands are available when ran in different context
fix - 7952e5790 avoid creating unnecessary global configuration
fix - 66a1d6b9d correct scope cache command
fix - e2d964289 correctly print package manager name when an install is needed
fix - 75fd3330d during an update only use package manager force option with npm 7+
fix - e223890c1 ensure full process exit with older local CLI versions
fix - 0cca3638a handle project being passed as a flag
fix - b1451cb5e improve resilience of logging during process exit
fix - 17fec1357 provide actionable error when project cannot be determined

@angular-devkit/build-angular

Commit Description
fix - c788d5b56 log modified and removed files when using the verbose option
fix - 6e8fe0ed5 replace dev-server socket path from /ws to /ng-cli-ws
fix - 651adadf4 update Angular peer dependencies to 14.0 stable

@angular/pwa

Commit Description
fix - cfd264d06 add peer dependency on Angular CLI

Special Thanks

Alan Agius, Charles Lyding and Doug Parker

v14.0.0

02 Jun 17:39

Choose a tag to compare

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 analytics command syntax.

    • ng analytics project <setting> has been replaced with ng analytics <setting>
    • ng analytics <setting> has been replaced with ng 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.

  • --all option from ng update has been removed without replacement. To update packages which don’t provide ng update capabilities in your workspace package.json use npm update, yarn upgrade-interactive or yarn upgrade instead.

  • Deprecated option --prod has been removed from all builders. --configuration production/-c production should be used instead if the default configuration of the builder is not configured to production.

  • --configuration cannot be used with ng run. Provide the configuration as part of the target. Ex: ng run project:builder:configuration.

  • Deprecated ng x18n and ng i18n-extract commands have been removed in favor of ng extract-i18n.

  • Several changes in the Angular CLI commands and arguments handling.

    • ng help has been removed in favour of the —-help option.
    • ng —-version has been removed in favour of ng version and ng v.
    • Deprecated camel cased arguments are no longer supported. Ex. using —-sourceMap instead of —-source-map will result in an error.
    • ng update, —-migrate-only option no longer accepts a string of migration name, instead use —-migrate-only -—name <migration-name>.
    • —-help json help has been removed.

@angular-devkit/build-angular

  • browser and karma builders script and styles options input files extensions are now validated.

    Valid extensions for scripts are:

    • .js
    • .cjs
    • .mjs
    • .jsx
    • .cjsx
    • .mjsx

    Valid extensions for styles are:

    • .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, the core-js package should be manually installed and the import 'core-js/proposals/reflect-metadata'; statement should be added to the application's polyfills.ts file.

  • NG_BUILD_CACHE environment variable has been removed. cli.cache in the workspace configuration should be used instead.

  • The deprecated showCircularDependencies browser 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

  • parseJson and ParseJsonOptions APIs have been removed in favor of 3rd party JSON parsers such as jsonc-parser.
  • The below APIs have been removed without replacement. Users should leverage other Node.js or other APIs.
    • fs namespace
    • clean
    • mapObject

@angular-devkit/schematics

  • Schematics NodePackageInstallTask will not execute package scripts by default
    The NodePackageInstallTask will now use the package manager's --ignore-scripts option by default.
    The --ignore-scripts option will prevent package scripts from executing automatically during an install.
    If a schematic installs packages that need their install/postinstall scripts to be executed, the
    NodePackageInstallTask now contains an allowScripts boolean option which can be enabled to provide the
    previous behavior for that individual task. As with previous behavior, the allowScripts option will
    prevent the individual task's usage of the --ignore-scripts option but will not override the package
    manager's existing configuration.
  • Deprecated analytics property has been removed from TypedSchematicContext interface

@ngtools/webpack

  • ivy namespace has been removed from the public API.

    • ivy.AngularWebpackPlugin -> AngularWebpackPlugin
    • ivy.AngularPluginOptions -> AngularPluginOptions

Deprecations

@angular/cli

  • The defaultCollection workspace option has been deprecated in favor of schematicCollections.

    Before

    "defaultCollection": "@angular/material"

    After

    "schematicCollections": ["@angular/material"]
  • The defaultProject workspace option has been deprecated. The project to use will be determined from the current working directory.

@angular-devkit/core

    • ContentHasMutatedException, InvalidUpdateRecordException, UnimplementedException and MergeConflictException symbol from @angular-devkit/core have 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
refactor - 5330d52ae replace parser with yargs-parser

@angular-devkit/architect-cli

Commit Description
refactor - c7556b62b replace parser with yargs-parser

@schematics/angular

Commit Description
feat - 7b78b7840 add --standalone to ng generate
feat - e49220fba add migratiom to remove defaultProject in workspace config
feat - 3fa38b08b introduce addDependency rule to utilities
feat - b07ccfbb1 introduce a utility subpath export for Angular rules and utilities
feat - 7e7de6858 update Angular dependencies to use ^ as version prefix
feat - 69ecddaa7 update new and existing projects compilation target to ES2020
fix - 7e8e42063 add migration to remove package.json in libraries secondary entrypoints
fix - b928d973e alphabetically order imports during component generation
fix - 09a71bab6 Consolidated setup with a single beforeEach()
fix - 1921b07ee don't add path mapping to old entrypoint definition file
fix - c927c038b remove @types/node from new projects
fix - 27cb29438 remove extra space in standalone imports

@angular/cli

Commit Description
feat - afafa5788 add --global option to ng analytics command
feat - bb550436a add ng analytics info command
feat - e5bf35ea3 add ng cache command
feat - 7ab22ed40 add disable/enable aliases for off/on ng analytics comma...
Read more

v14.0.0-rc.3

31 May 19:31

Choose a tag to compare

v14.0.0-rc.3 Pre-release
Pre-release

14.0.0-rc.3 (2022-05-31)

@angular/cli

Commit Description
fix - b97772dfc support silent package installs with Yarn 2+
fix - 87cd5cd43 workaround npm 7+ peer dependency resolve errors during updates

@angular-devkit/build-angular

Commit Description
fix - 2adf252dc add es2015 exports package condition to browser-esbuild
fix - 48630ccfd detect tailwind.config.cjs as valid tailwindcss configuration

@angular-devkit/schematics

Commit Description
fix - 48f9b79bc support ignore scripts package installs with Yarn 2+
fix - 3471cd6d8 support quiet package installs with Yarn 2+

Special Thanks

Alan Agius, Charles Lyding and Doug Parker

v14.0.0-rc.2

25 May 21:43

Choose a tag to compare

v14.0.0-rc.2 Pre-release
Pre-release

14.0.0-rc.2 (2022-05-25)

@angular/cli

Commit Description
fix - 3012036e8 populate path with working directory in nested schematics
fix - 142da460b remove incorrect warning during ng update

@angular-devkit/build-angular

Commit Description
fix - 1b27af07e add debugging and timing information in JavaScript and CSS optimization plugins
fix - 72e820e7b better handle Windows paths in esbuild experimental builder
fix - c52d10d1f close dev-server on error
fix - 4d5f6c659 downlevel libraries based on the browserslist configurations

Special Thanks

Alan Agius, Joey Perrott and Kristiyan Kostadinov

v13.3.7

25 May 19:35

Choose a tag to compare

13.3.7 (2022-05-25)

@angular-devkit/build-angular

Commit Description
fix - a54018d8f add debugging and timing information in JavaScript and CSS optimization plugins

Special Thanks

Alan Agius and Joey Perrott

v14.0.0-rc.1

18 May 20:56

Choose a tag to compare

v14.0.0-rc.1 Pre-release
Pre-release

14.0.0-rc.1 (2022-05-18)

@schematics/angular

Commit Description
fix - b928d973e alphabetically order imports during component generation

@angular/cli

Commit Description
fix - 6f6b453fb ng doc doesn't open browser in Windows
fix - 160cb0718 correctly handle --search option in ng doc
fix - 4b22593c4 ensure all available package migrations are executed
fix - bdf2b9bfa print schematic errors correctly
fix - db0cb5593 resolve relative schematic from angular.json instead of current working directory
fix - e5bdadac4 skip prompt or warn when setting up autocompletion without a global CLI install

@angular-devkit/build-angular

Commit Description
fix - 587082fb0 close compiler on Karma exit

Special Thanks

Alan Agius, Charles Lyding, Doug Parker, Elton Coelho, George Kalpakas and Kristiyan Kostadinov

v13.3.6

18 May 19:05

Choose a tag to compare

13.3.6 (2022-05-18)

@angular/cli

Commit Description
fix - e20964c43 resolve relative schematic from angular.json instead of current working directory

@angular-devkit/build-angular

Commit Description
fix - 16fec8d58 update babel-loader to 8.2.5

Special Thanks

Alan Agius, Charles Lyding, Jason Bedard and Paul Gschwendtner

v14.0.0-rc.0

11 May 22:13

Choose a tag to compare

v14.0.0-rc.0 Pre-release
Pre-release

14.0.0-rc.0 (2022-05-11)

@schematics/angular

Commit Description
fix - 7e8e42063 add migration to remove package.json in libraries secondary entrypoints
fix - 1921b07ee don't add path mapping to old entrypoint definition file
fix - 27cb29438 remove extra space in standalone imports

@angular/cli

Commit Description
fix - d46cf6744 display option descriptions during auto completion
fix - 644f86d55 improve error message for Windows autocompletion use cases

@angular-devkit/build-angular

Commit Description
fix - ac1383f9e 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

04 May 20:36

Choose a tag to compare

v14.0.0-next.13 Pre-release
Pre-release

14.0.0-next.13 (2022-05-04)

Breaking Changes

@angular-devkit/schematics

  • Schematics NodePackageInstallTask will not execute package scripts by default
    The NodePackageInstallTask will now use the package manager's --ignore-scripts option by default.
    The --ignore-scripts option will prevent package scripts from executing automatically during an install.
    If a schematic installs packages that need their install/postinstall scripts to be executed, the
    NodePackageInstallTask now contains an allowScripts boolean option which can be enabled to provide the
    previous behavior for that individual task. As with previous behavior, the allowScripts option will
    prevent the individual task's usage of the --ignore-scripts option but will not override the package
    manager's existing configuration.

@schematics/angular

Commit Description
feat - 3fa38b08b introduce addDependency rule to utilities
feat - b07ccfbb1 introduce a utility subpath export for Angular rules and utilities

@angular/cli

Commit Description
feat - 4212fb8de add prompt to set up CLI autocompletion
feat - fb0622893 don't prompt to set up autocompletion for ng update and ng completion commands
feat - 022d8c7bb make ng completion set up CLI autocompletion by modifying .bashrc files
feat - 2e15df941 remember after prompting users to set up autocompletion and don't prompt again

@angular-devkit/schematics

Commit Description
feat - 0e6425fd8 disable package script execution by default in NodePackageInstallTask

@angular/pwa

Commit Description
fix - 243cb4062 remove @schematics/angular utility deep import usage

Special Thanks

Alan Agius, Charles Lyding, Doug Parker, Paul Gschwendtner and Pawel Kozlowski

v13.3.5

04 May 19:24

Choose a tag to compare

13.3.5 (2022-05-04)

@angular-devkit/build-angular

Commit Description
fix - 6da0910d3 update @ampproject/remapping to 2.2.0

Special Thanks

Alan Agius, Charles Lyding and Paul Gschwendtner