Skip to content

Releases: angular/angular-cli

v8.0.4

24 Jun 19:32
Compare
Choose a tag to compare

Commits

@angular/cli (8.0.4)

Commit Description Notes
correct git branch in ng version
ensure analytics prompt exceptions are caught [Closes #14684]

@schematics/angular (8.0.4)

Commit Description Notes
enable tsickle for library compilation
remove `emitDecoratorMetadata` TS option for new applications
improve pipe signature [Closes #12602]
remove indentation in component html [Closes #14816]
support adding web-worker to pre version 8 applications [Closes #14791]

@angular-devkit/build-angular (0.800.4)

Commit Description Notes
re-order reporters to set code coverage at the very end
remove certain redundant build steps from second build in differential loading
browser builder should not swollow error messages [Closes #14813]
browser builder should not swollow error messages [Closes #14813]
emit warning when using extract-i18n in Ivy [Closes #14225]

@angular-devkit/build-optimizer (0.800.4)

Commit Description Notes
incorrectly augmented ES2015 default class exports [Closes #14769]
wrap TypeScript string enums in IIFE [Closes #14786]

@ngtools/webpack (8.0.4)

Commit Description Notes
ensure references for constructor parameter types
downlevel constructor parameter type information
remove old TypeScript workarounds
avoid re-running full emit when there wasn't a an emit [Closes #14775]


Special Thanks

Alan Agius, Charles Lyding, Hans Larsen, Lakhyari, Cédric Exbrayat, SamanthaAdrichem

v8.1.0-beta.2

13 Jun 23:42
Compare
Choose a tag to compare
v8.1.0-beta.2 Pre-release
Pre-release

Commits

@angular/cli (8.1.0-beta.2)

Commit Description Notes
implement --registry for ng add (#14285)
only enable CLI 1.x update handling when no new config [Closes #14703]
allow update when git is unclean outside the workspace
use recommended TTY check logic [Closes #14640]
avoid updating when package is already up to date [Closes #14647]
resolve update migrations from referenced package root
add analytics option to options schema
provide an option to update dirty repositories
ng-update migrations not running with --migrate-only [Closes #14565]
check for CI environment variable in tty helper [Closes #14563]
ng config doesn't parse positional array [Closes #14516]
ng generate --help shows the wrong collection [Closes #14519]
ensure git repository is clean before updates
standardize TTY checks
show analytics prompt when no global configuration file [Closes #14486]
show error when using x18n command on Node.js 12.0
improve error handling of update command
@bazel/* are not shown in `ng version`
prevent nested schematic execution from generating analytics [Closes #14190]
enable analytics for safe builders [Closes #14355]
print full error when package is not found
honor builder schema additional properties option [Closes #14354]

@angular-devkit/architect (0.801.0-beta.2)

Commit Description Notes
error out when invalid configurations are provided [Closes #14654]
support all observable types as build results [Closes #14579]
error run on input schema error (#14315) [Closes #14269]
Read more

v8.0.3

13 Jun 23:14
Compare
Choose a tag to compare

Commits

@angular/cli (8.0.3)

Commit Description Notes
only enable CLI 1.x update handling when no new config [Closes #14703]
allow update when git is unclean outside the workspace

@schematics/angular (8.0.3)

Commit Description Notes
remove `lint` target from minimal projects [Closes #14727]
enable tsc `downlevelIteration` [Closes #14697]

@angular-devkit/architect (0.800.3)

Commit Description Notes
error out when invalid configurations are provided [Closes #14654]

@angular-devkit/build-angular (0.800.3)

Commit Description Notes
always disable `buildOptimizer` when extracting i18n
browsers that partially support es6 modules are being marked as not supported [Closes #14580]
nomodule polyfill for Safari 10.1 and iOS Safari 10.3 [Closes #14680]

@ngtools/webpack (8.0.3)

Commit Description Notes
avoid resetting emit skipped flag before emit [Closes #14719]

@schematics/update (0.800.3)

Commit Description Notes
remove update all suggestion message


Special Thanks

Filipe Silva, Alan Agius, Charles Lyding, Judy Bogart, Keen Yee Liau, Ben Lesh

v8.0.2

06 Jun 22:07
Compare
Choose a tag to compare

Commits

@angular/cli (8.0.2)

Commit Description Notes
use recommended TTY check logic [Closes #14640]
avoid updating when package is already up to date [Closes #14647]
resolve update migrations from referenced package root
add analytics option to options schema

@schematics/angular (8.0.2)

Commit Description Notes
default Ivy apps to AOT true
move browserslist even when no sourceRoot is available [Closes #14660]
add '@angular-devkit/build-webpack' package to the version 8 migration
update `ng-packagr` and `tsickle` when migrating to version 8

@angular-devkit/build-angular (0.800.2)

Commit Description Notes
re-order ES5 polyfills in karma HTMLs [Closes #14618]
server build is generating un-needed polyfill file [Closes #14655]

@angular-devkit/build-optimizer (0.800.2)

Commit Description Notes
wrap ClassDeclarations in an IIFE for better treeshaking [Closes #14610]
wrap es2015 class expressions for better tree-shaking [Closes #14610]
[Closes #14577]

@ngtools/webpack (8.0.2)

Commit Description Notes
always strip BOM when reading files
rebuilding project with errors reports cannot find .ts files in JIT [Closes #14644]


Special Thanks

Alan Agius, Alan, Charles Lyding, Amadou Sall, Judy Bogart, Alex Eagle, Matt Lewis, Filipe Silva

v8.0.1

30 May 23:02
Compare
Choose a tag to compare

Commits

@angular/cli (8.0.1)

Commit Description Notes
provide an option to update dirty repositories
ng-update migrations not running with --migrate-only [Closes #14565]
check for CI environment variable in tty helper [Closes #14563]

@schematics/angular (8.0.1)

Commit Description Notes
TypeScript related migrations should cater for BOM [Closes #14551]

@angular-devkit/architect (0.800.1)

Commit Description Notes
support all observable types as build results [Closes #14579]

@angular-devkit/build-angular (0.800.1)

Commit Description Notes
exclude map files from 'bundle' budgets

@ngtools/webpack (8.0.1)

Commit Description Notes
update supported compiler-cli supported version

@schematics/update (0.800.1)

Commit Description Notes
improve error message when finding incompatible peer dependencies [Closes #14562]
respect semver rules for migration from & to [Closes #14559]


Special Thanks

Charles Lyding, Alan Agius, Nick Webster, Paul Gschwendtner, Filipe Silva

v8.0.0

28 May 20:53
Compare
Choose a tag to compare

Welcome to version 8.0 of Angular and the CLI.

This release includes some significant new features:

  • Differential Loading is a build system feature in the CLI. It builds two versions of your application. One version is for modern browsers, and has a 10-30% smaller JS bundle size and fewer required polyfills. The second version works in older browsers. During ng update, we make some minor changes to your application to make it possible for all browsers to automatically downloaded the most suitable bundles. This change requires no server-side or serving infrastructure changes. The change is enabled by default via the target field set to es2015 in application’s tsconfig.json. If this change breaks your application, you can change the value back to es5 which disables differential loading. Thanks to Manfred Steyer https://github.com/manfredsteyer for upstreaming his excellent work on ngx-build-plus. See the documentation at https://angular.io/guide/deployment#differential-loading
  • Support for EcmaScript dynamic import() for lazy loading of routes. This aligns Angular with the JavaScript specification and makes your application more compatible with tooling. ng update will automatically change the loadChildren syntax to import(), and we no longer recommend using the string-based style like path/to/module#ModuleName. Thanks to Craig Spence https://github.com/phenomnomnominal for adding support for this.
  • WebWorker bundling is now automatic in the CLI. This lets you easily write code that moves expensive computation to a separate thread, and have that bundled in a separate script that works in the browser. Thanks to Jason Miller https://github.com/developit for writing the Webpack plugin and assisting us with integrating this feature into the CLI. See the documentation at https://angular.io/guide/web-worker.
  • CLI telemetry is an opt-in feature that lets you report CLI usage data to the Angular team, and also to your own Google Analytics account. This lets us make better decisions about which CLI features to prioritize, and measure the impact of our improvements. See the documentation at https://angular.io/analytics
  • Builders is a new API in the CLI that allows tooling developers to replace the behavior of CLI commands such as build and test. Before 8.0.0 we will add documentation, for now you can see a preview at https://pr29964-c99aea0.ngbuilds.io/guide/architect and read the blog post. As part of 8.0.0 we are working with cloud providers to take advantage of Architect to provide a new deploy command. Along with Architect, we've added a Workspace API for tools that need to read or write the angular.json file; see https://github.com/angular/angular-cli/blob/master/packages/angular_devkit/core/README.md#workspaces
  • Reduced transitive tarball download size of @angular/cli by 60%

To update, please visit https://update.angular.io

Note: if you configure Node.js with extra memory for your ng build command, you may need to do the same for ng update since this update loads your program in memory.

Breaking Changes

@angular-devkit/build-angular: use `sass` instead of `node-sass` (ce15899)

we no longer use `node-sass` by default, instead we use `sass` (dart-sass).

While in most cases this should not have an impact the generated code, dart sass has some differences from Ruby Sass. See https://github.com/sass/dart-sass#behavioral-differences-from-ruby-sass for more details

If you wish to use node-sass instead of sass you need to install node-sass as a dev dependency.

npm users

npm install node-sass --save-dev

yarn users

yarn add node-sass --dev

Note: for larger Sass projects to avoid this performance hit you might want to install fibers. See: https://www.npmjs.com/package/fibers

Ref: TOOL-748

@angular-devkit/core: Remove dep on chokidar (eb5643e)

Users who rely on angular-devkit/core to do the file watching must add chokidar to their devDependencies.

@angular-devkit/build-angular: disable by default stylesheet root relative URL rebasing (94b087c)

Root relative URLs are a standardized method to reference a resource path from the root of a host. The previous behavior of the Angular CLI prevented this from occuring and resulted in an inability to reference stylesheet assets in this manner. The initial reason for this behavior is no longer present in the internal implementation of the Angular CLI. Therefore, this now unnecessary and non-standard behavior is being phased out. If an application currently relies on this behavior, a compatibility option `rebaseRootRelativeCssUrls` has been provided for the 8.x release cycle to facilitate transition away from this non-standard and limiting behavior. The recommended method to transition is to use relative paths within the source stylesheet. This allows the build system to process and generate a full URL for the asset.

Schematics are now async

For Schematics authors: note that schematics have always been potentially async, but now they all are.

Commits

@angular/cli (8.0.0)

Commit Description Notes
verify Angular version is supported
automatically update angular builders when CLI is updated [Closes #13581]
add tracking for command duration
support stable architect API
allows analytics sharing with a third party
add validation logic for analytics in ng config
add custom implementation for analytics for commands
add support for analytics command proper
add prompt on post install step
add analytic support to commands and command-runner
add universal-analytics as dependency
add `@nguniversal/*` to ng version [Closes #9959]
update minimum required Node.js v...
Read more

v7.3.9

07 May 18:55
Compare
Choose a tag to compare

Commits

@angular-devkit/build-angular (0.13.9)

Commit Description Notes
update node-sass to 4.12.0 (#14358) [Closes #14339]

v7.3.8

03 Apr 23:20
Compare
Choose a tag to compare

Commits

@schematics/angular (7.3.8)

Commit Description Notes
buildRelativePath handles files in root

@angular-devkit/build-angular (0.13.8)

Commit Description Notes
ensure correct dev server path with public host option
update speed-measure-webpack-plugin to 1.3.1 [Closes #12763]

@ngtools/webpack (7.3.8)

Commit Description Notes
changes in non module code are not picked up when using barrel files [Closes #13975]
replace resources should return class node when modified

Special Thanks

Minko Gechev, Charles Lyding, Alan, Andriy Pyvovarchuk, ukrukar, Keen Yee Liau, Alan Agius

v7.3.7

27 Mar 19:58
Compare
Choose a tag to compare

Commits

@angular-devkit/build-angular (0.800.0-beta.10)

Commit Description Notes
update speed-measure-webpack-plugin to 1.3.1 [Closes #12763]
passing port 0 when using serve will not find a suitable port

Special Thanks

Alan Agius

v7.3.6

14 Mar 21:16
Compare
Choose a tag to compare

Commits

@schematics/angular (7.3.6)

Commit Description Notes
reintroduce `.sass` as a supported file extention [Closes #13739]
change entry file name of the library schematic according to the kebab-case convention

@angular-devkit/build-angular (0.13.6)

Commit Description Notes
fix base href insertion when HTML is in a single line [Closes #13851]
fix check for absolute paths in windows in server config [Closes #13865]
[Closes #1139]

@angular-devkit/build-optimizer (0.13.6)

Commit Description Notes
don't add pure comments inside arrow functions [Closes #13768]

Special Thanks

Alan, Vikram Subramanian, WilliamKoza