npm @angular-devkit/schematics 16.0.0-next.0
v16.0.0-next.0

latest releases: 19.0.0-rc.1, 19.0.0-rc.0, 18.2.11...
20 months ago

16.0.0-next.0 (2023-02-22)

Breaking Changes

@angular/cli

  • The deprecated defaultCollection workspace option has been removed. Use schematicCollections instead.

    Before

    "defaultCollection": "@angular/material"

    After

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

  • Node.js v14 support has been removed

    Node.js v14 is planned to be End-of-Life on 2023-04-30. Angular will stop supporting Node.js v14 in Angular v16.
    Angular v16 will continue to officially support Node.js versions v16 and v18.

@schematics/angular

  • ng g resolver and ng g guard now generate a functional resolver or guard by default. It is still possible to generate a (deprecated) class-based resolver or guard by using ng g resolver --no-functional or ng g guard --no-functional.
  • The CLI no longer allows to generate CanLoad guards. Use CanMatch instead.

@angular-devkit/core

  • Several changes to the SchemaRegistry.
    • compile method now returns a Promise.
    • Deprecated flatten has been removed without replacement.
    • ContentHasMutatedException, InvalidUpdateRecordException, UnimplementedException and MergeConflictException API from @angular-devkit/core have been removed in favor of the API from @angular-devkit/schematics.
    • UnsupportedPlatformException - A custom error exception should be created instead.

@angular-devkit/schematics

  • The depracated UpdateBuffer has been removed and UpdateBuffer2
    is renamed to UpdateBuffer. With this change the related and
    deprecated symbols ContentCannotBeRemovedException and Chunk
    have also been removed.

@ngtools/webpack

  • NGCC integration has been removed and as a result Angular View Engine libraries will no longer work.

@schematics/angular

Commit Description
feat - 22fdd7da9 generate functional resolvers and guards by default
feat - 5ceedcb11 remove deprecated CanLoad option for guards

@angular/cli

Commit Description
feat - 68024234e remove deprecated defaultCollection from workspace configuration
feat - d58428d3d remove deprecated defaultProject from workspace configuration
refactor - c29c8e18d remove Node.js v14 support

@angular-devkit/core

Commit Description
feat - f6624b974 update SchemaRegistry compile to return Promise
refactor - 0ad81cdbc remove deprecated exceptions

@angular-devkit/schematics

Commit Description
refactor - d2ef386f4 remove UpdateBuffer and rename UpdateBuffer2 to UpdateBuffer

@ngtools/webpack

Commit Description
refactor - c8ac660d8 remove NGCC integration

Special Thanks

Alan Agius, Charles Lyding, Cédric Exbrayat, Doug Parker and Lukas Spirig

Don't miss a new schematics release

NewReleases is sending notifications on new releases.