Skip to content

Releases: angular/angular-cli

v12.0.0-rc.0

21 Apr 22:20

Choose a tag to compare

v12.0.0-rc.0 Pre-release
Pre-release

Commits

@angular-devkit/build-angular (12.0.0-rc.0)

Commit Description Notes
avoid double build optimizer processing
replace Webpack 4 `hashForChunk` hook usage
use new Webpack watch API in karma webpack plugin
recover from CSS optimization errors
disable Webpack 5 automatic public path support
always inject live reload client when using live reload
change several builder options defaults
show warning when using stylus
set Tailwind CSS mode when using Tailwind
avoid triggering file change after file build
use Webpack's GC memory caching in watch mode

@angular/cli (12.0.0-rc.0)

Commit Description Notes
ignore `tsickle` during updates
run all migrations when updating from or between prereleases

@ngtools/webpack (12.0.0-rc.0)

Commit Description Notes
only track actual resource file dependencies
cache results of processed inline resources

@schematics/angular (12.0.0-rc.0)

Commit Description Notes
set `inlineStyleLanguage` when application `style` option is used
set `inlineStyleLanguage` for universal if present in build options

Breaking Changes

@schematics/angular: remove `stylus` from `style` options (fd729ac)

`styl` (Stylus) is no longer a supported value as `style` in `application`, `component`, `ng-new` schematics. Stylus is not actively maintained and only 0.3% of the Angular CLI users use it.

(cherry picked from commit 0272fc5)

@angular-devkit/build-angular: change several builder options defaults (656f8d7)

A number of browser and server builder options have had their default values changed. The aim of these changes is to reduce the configuration complexity and support the new "production builds by default" initiative.

Browser builder

Option Previous default value New default value
optimization false true
aot false true
buildOptimizer false true
sourceMap true false
extractLicenses false true
namedChunks true false
vendorChunk true false

Server builder

Option Previous default value New default value
optimization false true
sourceMap true false

(cherry picked from commit 0a74d0d)


Special Thanks

Alan Agius, Charles Lyding, Keen Yee Liau, Joey Perrott, David Shevitz

v11.2.10

21 Apr 22:21

Choose a tag to compare

Commits

@angular-devkit/build-angular (0.1102.10)

Commit Description Notes
set Tailwind CSS mode when using Tailwind

@ngtools/webpack (11.2.10)

Commit Description Notes
only check affected files for Angular semantic diagnostics


Special Thanks

Charles Lyding, Joey Perrott, Alan Agius, Keen Yee Liau

v12.0.0-next.9

14 Apr 23:56

Choose a tag to compare

v12.0.0-next.9 Pre-release
Pre-release

Commits

@angular-devkit/build-angular (12.0.0-next.9)

Commit Description Notes
upgrade to Webpack 5 throughout the build system
support processing component inline CSS styles
support specifying stylesheet language for inline component styles
update karma builder to use non-deprecated API
disable webpack cache when using `NG_BUILD_CACHE`
remove duplicate application bundle generation complete message
mark programmatic builder execution functions as experimental

@angular-devkit/build-webpack (0.1200.0-next.9)

Commit Description Notes
support Webpack 5

@angular-devkit/core (12.0.0-next.9)

Commit Description Notes
update schema validator

@angular/cli (12.0.0-next.9)

Commit Description Notes
add message update updating from non LTS versions of the CLI

@ngtools/webpack (12.0.0-next.9)

Commit Description Notes
support multiple plugin instances per compilation
support generating data URIs for inline component styles in JIT
support processing inline component styles in AOT

@schematics/angular (12.0.0-next.9)

Commit Description Notes
configure new libraries to be published in Ivy partial mode
update `jasmine-spec-reporter` to version 7
migrate web workers to support Webpack 5
update web-worker to support Webpack 5

Breaking Changes

@angular-devkit/core: update schema validator (0875313)

support for JSON Schema draft-04 and draft-06 is removed. If you have schemas using the `id` keyword replace them with `$id`. For an interim period we will auto rename any top level `id` keyword to `$id`.

NB: This change only effects schematics and builders authors.

@angular-devkit/build-angular: upgrade to Webpack 5 throughout the build system (d883ce5)

Webpack 5 generates similar but differently named files for lazy loaded JavaScript files in development configurations (when the `namedChunks` option is enabled). For the majority of users this change should have no effect on the application and/or build process. Production builds should also not be affected as the `namedChunks` option is disabled by default in production configurations. However, if a project's post-build process makes assumptions as to the file names then adjustments may need to be made to account for the new naming paradigm. Such post-build processes could include custom file transformations after the build, integration into service-side frameworks, or deployment procedures. Example development file name change: `lazy-lazy-module.js` --> `src_app_lazy_lazy_module_ts.js`

@angular-devkit/build-angular: upgrade to Webpack 5 throughout the build system (d883ce5)

Webpack 5 now includes web worker support. However, the structure of the URL within the `Worker` constructor must be in a specific format that differs from the current requirement. Web worker usage should be updated as shown below (where `./app.worker` should be replaced with the actual worker name):

Before:

new Worker('./app.worker', ...)

After:

new Worker(new URL('./app.worker', import.meta.url), ...)

Special Thanks

Alan Agius, Charles Lyding, Keen Yee Liau, Doug Parker, Douglas Parker

v11.2.9

14 Apr 22:16

Choose a tag to compare

No user-facing changes

v12.0.0-next.8

07 Apr 23:11

Choose a tag to compare

v12.0.0-next.8 Pre-release
Pre-release

Commits

@angular-devkit/build-angular (0.1200.0-next.8)

Commit Description Notes
remove deprecated i18nLocale and i18nFormat options from i18n-extract

@ngtools/webpack (12.0.0-next.8)

Commit Description Notes
remove Webpack plugin for deprecated ViewEngine compiler

@schematics/angular (12.0.0-next.8)

Commit Description Notes
run update-i18n migration for server builder

Breaking Changes

@ngtools/webpack: remove Webpack plugin for deprecated ViewEngine compiler (160102a)

Removal of View Engine support from application builds With the removal of the deprecated View Engine compiler in Angular version 12 for applications, the View Engine Webpack plugin has been removed. The Ivy-based Webpack plugin is the default used within the Angular CLI. If using a custom standalone Webpack configuration, the removed `AngularCompilerPlugin` should be replaced with the Ivy-based `AngularWebpackPlugin`.

@angular-devkit/build-angular: remove deprecated i18n options from server and browser builder (5cf9a08)

Removal of deprecated browser and server command options. - `i18nFile`, use `locales` object in the project metadata instead. - `i18nFormat`, No longer needed as the format will be determined automatically. - `i18nLocale`, use `localize` option instead.

@angular-devkit/build-angular: remove deprecated i18nLocale and i18nFormat options from i18n-extract (eca5a01)

Removal of deprecated `extract-i18n` command options The deprecated `i18nLocale` option has been removed and the `i18n.sourceLocale` within a project's configuration should be used instead. The deprecated `i18nFormat` option has been removed and the `format` option should be used instead.

Special Thanks

Charles Lyding, Renovate Bot, Alan Agius, Doug Parker, Joey Perrott

v11.2.8

07 Apr 23:12

Choose a tag to compare

Commits



Special Thanks

Doug Parker, Renovate Bot, Alan Agius, Joey Perrott

v12.0.0-next.7

02 Apr 18:03

Choose a tag to compare

v12.0.0-next.7 Pre-release
Pre-release

Commits

@angular-devkit/build-angular (0.1200.0-next.7)

Commit Description Notes
validate scripts and styles bundleName [Closes #20360]
remove deprecated View Engine support for i18n extraction
remove usage of deprecated View Engine compiler

@angular/cli (12.0.0-next.7)

Commit Description Notes
ensure update migrations are fully executed
exclude deprecated packages with removal migrations from update

@ngtools/webpack (12.0.0-next.7)

Commit Description Notes
use correct Webpack asset stage in resource loader
only check affected files for Angular semantic diagnostics

@schematics/angular (12.0.0-next.7)

Commit Description Notes
remove `entryComponent` from `component` schematic
correctly handle adding multi-line strings to `@NgModule` metadata
explicitly specify ServiceWorker registration strategy

Breaking Changes

@angular-devkit/build-angular: remove usage of deprecated View Engine compiler (677913f)

Removal of View Engine support from application builds With the removal of the deprecated View Engine compiler in Angular version 12 for applications, Ivy-based compilation will always be used when building an application. The default behavior for applications is to use the Ivy compiler when building and no changes are required for these applications. For applications that have opted-out of Ivy, a warning will be shown and an Ivy-based build will be attempted. If the build fails, the application may need to be updated to become Ivy compatible.

@schematics/angular: remove `entryComponent` from `component` schematic (8582ddc)

`entryComponent` option has been removed from the `component` schematic as this was intended to be used with the the now no longer supported ViewEngine rendering engine.

@angular-devkit/build-angular: remove view engine app-shell generation (1c2aeeb)

App-shell builder now only supports generation using Ivy

@angular-devkit/build-angular: remove deprecated View Engine support for i18n extraction (012700a)

Removal of View Engine support from i18n extraction With the removal of the deprecated View Engine compiler in Angular version 12 for applications, the `ng extract-i18n` command will now always use the Ivy compiler. The `--ivy` option has also been removed as Ivy-based extraction is always enabled. The default behavior for applications is to use the Ivy compiler for building/extraction and no changes are required for these applications. For applications that have opted-out of Ivy, a warning will be shown and Ivy-based extraction will be attempted. If the extraction fails, the application may need to be updated to become Ivy compatible.

Special Thanks

Charles Lyding, Alan Agius, Renovate Bot, George Kalpakas, Joey Perrott, Keen Yee Liau

v11.2.7

02 Apr 18:17

Choose a tag to compare

Commits

@angular-devkit/build-angular (0.1102.8)

Commit Description Notes
validate scripts and styles bundleName [Closes #20360]

@schematics/angular (11.2.8)

Commit Description Notes
correctly handle adding multi-line strings to `@NgModule` metadata
explicitly specify ServiceWorker registration strategy


Special Thanks

George Kalpakas, Joey Perrott, Charles Lyding, Alan Agius, Keen Yee Liau

v12.0.0-next.6

24 Mar 18:14

Choose a tag to compare

v12.0.0-next.6 Pre-release
Pre-release

Commits

@angular-devkit/build-angular (0.1200.0-next.6)

Commit Description Notes
ensure output directory is present before writing stats JSON

@schematics/angular (12.0.0-next.6)

Commit Description Notes
add production by default optional migration
update new workspaces to use Karma 6.3
remove leftover workspace tslint config


Special Thanks

Renovate Bot, Alan Agius, Charles Lyding, Keen Yee Liau

v11.2.6

24 Mar 18:29

Choose a tag to compare

Commits

@angular-devkit/build-angular (0.1102.6)

Commit Description Notes
ensure output directory is present before writing stats JSON

@ngtools/webpack (11.2.6)

Commit Description Notes
reduce resource processing during JIT initial lazy route analysis

@schematics/angular (11.2.6)

Commit Description Notes
use title for svg on home page


Special Thanks

Alan Agius, Charles Lyding, Keen Yee Liau, Cédric Exbrayat