18.0.0-next.5
版本发布时间: 2024-04-17 23:55:13
angular/angular最新发布版本:19.0.0-next.7(2024-09-26 01:14:39)
18.0.0-next.5 (2024-04-17)
common
Commit | Description |
---|---|
remove deprecated isPlatformWorkerApp and isPlatformWorkerUi API (#55302) |
compiler
Commit | Description |
---|---|
remove container index from conditional instruction (#55190) | |
remove support for unassignable expressions in two-way bindings (#55342) |
core
service-worker
Commit | Description |
---|---|
avoid running CDs on controllerchange (#54222) |
Breaking Changes
common
- The deprecated
isPlatformWorkerUi
andisPlatformWorkerApp
have been removed without replacement, as they serve no purpose since the removal of the WebWorker platform.
compiler
- Angular only supports writable expressions inside of two-way bindings.
core
-
Angular will ensure change detection runs, even when the state update originates from outside the zone, tests may observe additional rounds of change detection compared to the previous behavior.
This change will be more likely to impact existing unit tests. This should usually be seen as more correct and the test should be updated, but in cases where it is too much effort to debug, the test can revert to the old behavior by adding
provideZoneChangeDetection({schedulingMode: NgZoneSchedulingMode.NgZoneOnly})
to theTestBed
providers.Similarly, applications which may want to update state outside the zone and not trigger change detection can add
provideZoneChangeDetection({schedulingMode: NgZoneSchedulingMode.NgZoneOnly})
to the providers inbootstrapApplication
or addschedulingMode: NgZoneSchedulingMode.NgZoneOnly
to theBootstrapOptions
ofbootstrapModule
. -
Testability methods
increasePendingRequestCount
,decreasePendingRequestCount
andgetPendingRequestCount
have been removed. This information is tracked with zones.