Skip to content

Releases: angular/angular-cli

v6.1.0-rc.1

10 Jul 18:50

Choose a tag to compare

v6.1.0-rc.1 Pre-release
Pre-release

Commits

@angular-devkit/architect

Commit Description Notes
Bug Fix unsubscribe on timeout in runTargetSpec
Bug Fix always clear TestProjectHost on restore

@angular-devkit/build-angular

Commit Description Notes
Bug Fix update node-sass
Bug Fix add missing deploy-url to server Closes #11426
Bug Fix downgrade sass-loader to 6.0.7
Bug Fix update minimum copy-webpack-plugin version Closes #9230
Bug Fix add all current TSLint default formatters to schema
Bug Fix revert to webpack 4.9.2
Bug Fix pass in ContextElementDependency to ngtools/webpack
Bug Fix update webpack types
Bug Fix use webpack 4.11.1
Bug Fix Allow less-loader to use webpack resolver

@angular-devkit/build-optimizer

Commit Description Notes
Bug Fix support object literal methods

@angular-devkit/build-webpack

Commit Description Notes
Bug Fix support minor versions of webpack 4.x

@angular-devkit/build_angular

Commit Description Notes
Bug Fix use webpack 4 hooks for karma plugin

@angular-devkit/core

Commit Description Notes
Bug Fix propagate node host delete errors
Bug Fix ensure full path is renamed for memory host
Bug Fix detect ambiguous projects with path discover
Bug Fix remove circular dependencies
Bug Fix when two projects are the same, pick the first declared

@angular-devkit/schematics

Commit Description Notes
Bug Fix implement HostTree specific filtering
Bug Fix support VirtualTree/HostTree interop
Bug Fix ensure renamed files do not exist
Bug Fix support filtering a HostTree
Bug Fix fix declaring multiple aliases Closes #11389
Bug Fix avoid piping input multiple times when calling rules

@angular/cli

Commit Description Notes
Bug Fix add all current TSLint default formatters to schema
Bug Fix use default project when project path is ambiguous
Bug Fix Fix double setting of the path options for new Closes #11025
Bug Fix support entry component
Bug Fix Fix removal of non-schematic options
Bug Fix allow override of configuration for ng run Closes #10569
Bug Fix handle raw strings in config command
Bug Fix Fix config command setting number values Closes #10900
Bug Fix support codeFrame format with ng lint
Bug Fix Fix parsing of new options Closes #10802
Bug Fix fix PWD in cygwin Closes #10232
Bug Fix add closing single quote
Bug Fix clean up architect options Closes #10699
Bug Fix fix ng doc not working Closes #10633
Bug Fix Update in project logic Closes #10594
Bug Fix mark get/set deprecation command as hidden
Bug Fix Correct reading of camel-cased defaults [Cl...
Read more

v6.1.0-rc.0

14 Jun 13:56

Choose a tag to compare

v6.1.0-rc.0 Pre-release
Pre-release

Commits

@angular-devkit/build-angular

Commit Description Notes
Bug Fix revert to webpack 4.9.2
Bug Fix pass in ContextElementDependency to ngtools/webpack
Bug Fix update webpack types
Bug Fix use webpack 4.11.1
Bug Fix Allow less-loader to use webpack resolver

@angular-devkit/build-webpack

Commit Description Notes
Bug Fix support minor versions of webpack 4.x

@angular-devkit/core

Commit Description Notes
Bug Fix remove circular dependencies
Bug Fix when two projects are the same, pick the first declared

@angular/cli

Commit Description Notes
Bug Fix Fix double setting of the path options for new Closes #11025

@angular/pwa

Commit Description Notes
Bug Fix Fix JSON parsing

@ngtools/webpack

Commit Description Notes
Bug Fix allow passing in the right ContextElementDependency class Closes #6417

@schematics/angular

Commit Description Notes
Bug Fix use es2015 modules overall
Bug Fix allow ServiceWorker to work with baseHref Closes #8515
Bug Fix Fix JSON parsing Closes #10880
Bug Fix Fix root path for e2e projects during update

@schematics/update

Commit Description Notes
Bug Fix support npm auth bearer tokens
Bug Fix allow beta versions to be valid peer

angular_devkit

Commit Description Notes
Bug Fix stop blocking karma after compilation error

Misc

Commit Description Notes
Bug Fix typo fix for error logging

Special Thanks

Hans Larsen, Filipe Silva, Mike Brocchi, George Kalpakas, Alex Eagle, Ferdinand Malcher, Vincent Pizzo, Nico Jansen, Christian Hagendorn, Charles Lyding, Brenden

6.1.0-beta.2

06 Jun 18:45

Choose a tag to compare

6.1.0-beta.2 Pre-release
Pre-release

Commits

@angular-devkit/architect

Commit Description Notes
Bug Fix use temp folder in TestProjectHost

@angular-devkit/build-angular

Commit Description Notes
Bug Fix update webpack to 4.10
Bug Fix never split polyfills in test Closes #10485

@angular-devkit/build-ng-packagr

Commit Description Notes
Bug Fix update to ng-packagr v3

@angular-devkit/build-optimizer

Commit Description Notes
Bug Fix don't exceed call stack with big files Closes #9636

@angular-devkit/build-webpack

Commit Description Notes
Bug Fix add package

@angular-devkit/core

Commit Description Notes
Bug Fix Add access to the backend of the CordHost
Bug Fix add new hosts
Bug Fix hosts should return null for ENOENT
Bug Fix invalid smart default sources are now returning undefined
Bug Fix add a recording host
Bug Fix workaround for RxJS issue 3740
Bug Fix template tags for easier path and fileBuffer
Bug Fix literal tag can return any type

@angular-devkit/schematics

Commit Description Notes
Bug Fix returning a rule chains it
Bug Fix bundle of small fixes
Bug Fix use CordHost as the backend for HostTree

@angular-devkit/schematics-cli

Commit Description Notes
Bug Fix show error stacks instead of message

@angular/cli

Commit Description Notes
Bug Fix properly detect local cli package
Bug Fix exit with error code if unknown option is present
Bug Fix ensure all architect schema errors are propagated
Bug Fix improve resiliency of local package discovery
Bug Fix avoid throwing on an empty project/target
Bug Fix transfer CLI to devkit

@schematics/angular

Commit Description Notes
Bug Fix fix invalid configuration in lint
Bug Fix Transfer baseHref when during update process Closes #10915
Bug Fix update to ng-packagr v3
Bug Fix Fix usage of sourceRoot configuration value Closes #10653
Bug Fix typo in module schema
Bug Fix revert PR 1000
Bug Fix Use branchAndMerge for ng-new
Bug Fix fix broken API usage from app-shell schematic
Bug Fix use old config root to set root and sourceRoot during update-6
Bug Fix remove angularCli in Karma when updating

Special Thanks

Hans Larsen, Charles Lyding, Filipe Silva, Mike Brocchi, David, Teamop, Huáng Jùnliàng, Sam Tsai, Jason Jean

v6.1.0-beta.0

30 May 02:09

Choose a tag to compare

v6.1.0-beta.0 Pre-release
Pre-release

6.1.0-beta.0 (2018-05-30)

Bug Fixes

  • @angular/cli: Fix config command setting number values (8e69b3b), closes #10900
  • @angular/cli: Fix removal of non-schematic options (7ed03dd)
  • @angular/cli: handle raw strings in config command (4e53bfd)
  • @angular/cli: support codeFrame format with ng lint (8563099)

Features

  • @angular/cli: allow override of configuration for ng run (d250874), closes #10569

v6.0.7

30 May 02:06

Choose a tag to compare

6.0.7 (2018-05-30)

Bug Fixes

  • @angular/cli: Fix config command setting number values (6d80c49), closes #10900
  • @angular/cli: Fix removal of non-schematic options (255a665)
  • @angular/cli: handle raw strings in config command (9269905)
  • @angular/cli: support codeFrame format with ng lint (4f9fd9f)

6.0.5

25 May 05:55

Choose a tag to compare

Unfortunately, due to some issue found after doing the 6.0.4 release, we were forced to rollback. This release is the same as 6.0.3.

v6.0.2

17 May 02:11

Choose a tag to compare

Bug Fixes

  • @angular/cli: Fix parsing of new options (0820650), closes #10802

6.0.1

10 May 17:59

Choose a tag to compare

6.0.1 (2018-05-10)

Bug Fixes

  • @angular/cli: add closing single quote (325baa6)
  • @angular/cli: clean up architect options (c9a46eb)
  • @angular/cli: fix ng doc not working (89242be)
  • @angular/cli: fix PWD in cygwin (b9c40ee)

v6.0.0 - Hamilton

08 Feb 23:44

Choose a tag to compare

CLI Version 6 – Hamilton

Hello y'all, CLI team again.

This is a really big release for us, and listing each changes individually would be too much information for you. As such we're going to summarize the new features and changes that are included, from a higher point of view.

Also, please note that there is a blog post for version 6 here.

ng eject

The 'eject' command has been temporarily disabled, as it is not yet compatible with the new
angular.json format. The new configuration format provides further flexibility to modify the
configuration of your workspace without ejecting. Ejection will be re-enabled in a future
release of the CLI.

In the meantime, you can eject with 1.7.4, then update your project and keep using webpack to build.

ng update

A new Angular CLI command to help simplify keeping your projects up to date with the latest versions. Packages can define logic which will be applied to your projects to ensure usage of latest features as well as making changes to reduce or eliminate the impact related to breaking changes.

Configuration information for ng update can be found here

ng add

A new Angular CLI command provides package authors the ability to include dynamic setup instructions as part of the installation procedures. When a user installs a package via ng add and that package includes a schematic named "ng-add" logic will run to set up that package within your project.

For package owners:
ng-add is powered by a single schematic named "ng-add" within your package's schematics collection. Options will be passed through to your schematic when running the schematic to allow for further configuration options.

PWA Support

Progressive Web Apps have grown in popularity and support with all major browswers supporting service workers. Adding the configuration and assets to configure your applications as PWAs can be confusing and time consuming, to simplify the process you can now run ng add @angular/pwa --project [project-name] to configure the supplied project as a progressive web application.

Angular Workspace

The .angular-cli.json configuration file is replaced with angular.json workspace file, a new file the lays the foundation for multiple projects in a single workspace.

In this file you can find every configuration item and default that Angular CLI uses. Having all configuration on file allows you to avoid typing out multiple configuration flags on each command and npm script.

If your editor has JSON schema support, you will be able to see auto-completion with suggestions and defaults for each property in the angular.json file.

Read more about the Angular Workspace here.

Build improvements

The build system Angular CLI uses has been overhauled to be faster and more easily configurable.

We have upgrade to Webpack 4 which comes with several performance and bundling improvements.

Angular Workspaces will also allow you to configure each build exactly the way you need instead of using lengthy npm scripts:

"configurations": {
  "production": {
    "fileReplacements": [
      {
        "replace": "src/environments/environment.ts",
        "with": "src/environments/environment.prod.ts"
      }
    ],
    "optimization": true,
    "outputHashing": "all",
    "sourceMap": false,
    "extractCss": true,
    "namedChunks": false,
    "aot": true,
    "extractLicenses": true,
    "vendorChunk": false,
    "buildOptimizer": true
  }
}

Multi application support

Angular CLI now supports multiple individual applications within one workspace, each with separate configurations and defaults.

To create another app you can use the following command:

ng generate application my-other-app

The new application will be generated inside projects/my-other-app.

Now we can serve either application by passing the project name with the command:

ng serve my-other-app

Library Support

Angular CLI now comes with library support via ng-packagr plugged into the build system we use in Angular CLI, together with schematics for generating a library.

You can create a library in a existing workspace by running the following commands:

ng generate library my-lib

You should now have a library inside projects/my-lib. It contains a component and a service inside a NgModule.

Read more about library creation here.

Schematic Defaults

Default values for schematics can be configured for any schematic property in any schematic collection. In previous versions the Angular CLI only provided access to configure defaults for certain properties of the default schematics.

Values can be provided at the root level:

// angular.json
{
  ...
  "schematics": {
    "@schematics/angular:component.inlineTemplate": true
  }
}

Or at the project level:

// angular.json
{
  "projects": {
    "my-project": {
      "schematics": {
        "@schematics/angular:component.inlineTemplate": true
      }
    }
  }
}

Or even at the global level, same as at the root level, except in a file located here:
[homedir]/.angular-config.json

Smart Defaults

Smart defaults is a new feature within Schematics which grants authors of schematics more control about how their values are parsed. An example is to specify how arguments (unnamed options) are parsed from the command line.

This example will set the value of the name option to the first argument. As you see defined in the $default value.

"name": {
  "type": "string",
  "description": "The name option.",
  "$default": {
    "$source": "argv",
    "index": 0
  }
}

Breaking changes

The allowOutsideOutDir option in assets has been removed.

The serve option in ng e2e is replaced with devServerTarget. It allows you to specify which server target to use, and if it is set to empty string nothing will be served.

The completion command has been removed as the functionality no longer aligns with this version.

The environment option in build related commands is replaced with fileReplacements, please see the wiki for how it can be used.


Special thanks to everyone who participated in this release:

Charles Lyding, Filipe Silva, Hans Larsen, Mike Brocchi, Alan Agius, Rahul Bhooteshwar, Cyrille Tuzi, Noel Mace, Christofer Steingrefer, Vikram Subramanian, Sébastien Cevey, Maxim Salnikov, Jose E, Cédric Exbrayat, sergey.sokolov, Yaroslav Admin, Will 保哥, Sylvain Dumont, Suguru Inatomi, Steven Enten, Stephen Fluin, Shai Reznik, PhilippeMorier, Miles Malerba, Michael Prentice, Matthias Lischka, Luke Chatton, Luis Confraria, Kasidit Iamthong, Jiaren Liu, GerbetMikhaël, George Kalpakas, Evan Carroll, Danny, Brandon, Alan

v6.0.0-rc.2

08 Apr 17:18

Choose a tag to compare

v6.0.0-rc.2 Pre-release
Pre-release

The Angular CLI just wanted to jump in real quick with an update while we prepare the final 6.0.0 release. There are going to be a lot of changes in this release, and listing them all here would not be the best for you. So we're working on proper Release Notes that will be easier to understand and digest. These are not ready yet.

Just wanted to lay out the large lines here for the moment:

  • Library support! That was one of the most requested feature. You can generate a new library in your project by using ng generate library <name>.
  • ng update! You can now update your project's dependencies, for dependencies that support it, including the CLI itself.
  • New configuration format. The new file can be found at angular.json (but .angular.json is also accepted). Running ng update on a CLI 1.7 project will move you to the new configuration.
  • New way to structure your configuration. Your build information and schematics default can now be configured by project.
  • Build flags now have a 1-to-1 representation in the configuration.
  • Smaller package globally (and to a certain extent locally). We now only publish what the CLI needs, and include what your project needs (build and schematics) inside your project's package.json. This leads to a much smaller global package for the CLI itself (23M, and we keep improving).
  • ng config now replaces both set and get. You can get values with (e.g.) ng config cli.packageManager, and you can set a value with (e.g.) ng config -g cli.packageManager '"yarn"'.
  • Build results in smaller packages in general, mostly due to webpack 4 now being fully supported.

And of course, much much more.

Cheers!

  • The CLI Team.