16.0.0-next.0 (2023-02-22)
Breaking Changes
- Angular Compatibility Compiler (ngcc) has been removed and as a result Angular View Engine libraries will no longer work
common
MockPlatformLocation
is now provided by default in tests.
Existing tests may have behaviors which rely on
BrowserPlatformLocation
instead. For example, direct access to the
window.history
in either the test or the component rather than going
through the Angular APIs (Location.getState()
). The quickest fix is to
update the providers in the test suite to override the provider again
TestBed.configureTestingModule({providers: [{provide: PlatformLocation, useClass: BrowserPlatformLocation}]})
.
The ideal fix would be to update the code to instead be compatible with
MockPlatformLocation
instead.
core
RendererType2.styles
no longer accepts nested arrays.
router
- The
Scroll
event'srouterEvent
property may also be
aNavigationSkipped
event. Previously, it was only aNavigationEnd
event. - The
RouterEvent
type is no longer present in theEvent
union type representing all router event types. If you have code using something likefilter((e: Event): e is RouterEvent => e instanceof RouterEvent)
, you'll need to update it tofilter((e: Event|RouterEvent): e is RouterEvent => e instanceof RouterEvent)
.
Commit | Description |
---|---|
remove Angular Compatibility Compiler (ngcc) (#49101) |
common
Commit | Description |
---|---|
Provide MockPlatformLocation by default in BrowserTestingModule (#49137) |
core
Commit | Description |
---|---|
add Angular Signals to the public API (#49150) | |
change RendererType2.styles to accept only a flat array (#49072)
|
router
Commit | Description |
---|---|
Ensure anchor scrolling happens on ignored same URL navigations (#48025) | |
remove RouterEvent from Event union type (#46061) |
Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Cédric Exbrayat, Joey Perrott, Mladen Jakovljević and Pawel Kozlowski