v16.0.0-next.0
Pre-release
Pre-release
16.0.0-next.0 (2023-02-22)
Breaking Changes
@angular/cli
-
The deprecated
defaultCollectionworkspace option has been removed. UseschematicCollectionsinstead.Before
"defaultCollection": "@angular/material"
After
"schematicCollections": ["@angular/material"]
-
The deprecated
defaultProjectworkspace 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 resolverandng g guardnow generate a functional resolver or guard by default. It is still possible to generate a (deprecated) class-based resolver or guard by usingng g resolver --no-functionalorng g guard --no-functional.- The CLI no longer allows to generate
CanLoadguards. UseCanMatchinstead.
@angular-devkit/core
- Several changes to the
SchemaRegistry.compilemethod now returns aPromise.- Deprecated
flattenhas been removed without replacement.
-
ContentHasMutatedException,InvalidUpdateRecordException,UnimplementedExceptionandMergeConflictExceptionAPI from@angular-devkit/corehave 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
UpdateBufferhas been removed andUpdateBuffer2
is renamed toUpdateBuffer. With this change the related and
deprecated symbolsContentCannotBeRemovedExceptionandChunk
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 |
|---|---|
| generate functional resolvers and guards by default | |
| remove deprecated CanLoad option for guards |
@angular/cli
| Commit | Description |
|---|---|
remove deprecated defaultCollection from workspace configuration |
|
remove deprecated defaultProject from workspace configuration |
|
| remove Node.js v14 support |
@angular-devkit/core
| Commit | Description |
|---|---|
update SchemaRegistry compile to return Promise |
|
| remove deprecated exceptions |
@angular-devkit/schematics
| Commit | Description |
|---|---|
remove UpdateBuffer and rename UpdateBuffer2 to UpdateBuffer |
@ngtools/webpack
| Commit | Description |
|---|---|
| remove NGCC integration |
Special Thanks
Alan Agius, Charles Lyding, Cédric Exbrayat, Doug Parker and Lukas Spirig