|
| 1 | +<a name="21.0.0-next.2"></a> |
| 2 | +# 21.0.0-next.2 (2025-09-03) |
| 3 | +## Breaking Changes |
| 4 | +### common |
| 5 | +- (test only) - `TestBed` now provides a fake `PlatformLocation` |
| 6 | + implementation that supports the Navigation API. This may break some |
| 7 | + tests, though we have not observed any failures internally. You can revert to the |
| 8 | + old default for `TestBed` by providing the `MockPlatformLocation` from |
| 9 | + `@angular/common/testing` in your providers: |
| 10 | + `{provide: PlatformLocation, useClass: MockPlatformLocation}` |
| 11 | +### core |
| 12 | +- (test only) - Using `provideZoneChangeDetection` in the |
| 13 | + TestBed providers would previously prevent `TestBed` from rethrowing |
| 14 | + errors as it should. Errors in the test will now be rethrown, regardless |
| 15 | + of the usage of `provideZoneChangeDetection`. Tests should be adjusted to |
| 16 | + prevent or account for these errors. As in previous major versions, |
| 17 | + this behavior can be disabled with `rethrowApplicationErrors: false` in |
| 18 | + `configureTestingModule` as a last resort. |
| 19 | +- `ignoreChangesOutsideZone` is no longer available as an |
| 20 | + option for configuring ZoneJS change detection behavior. |
| 21 | +### platform-browser |
| 22 | +- The deprecated `ApplicationConfig` export from `@angular/platform-browser` has been removed. |
| 23 | + Please import `ApplicationConfig` from `@angular/core` instead. |
| 24 | +### router |
| 25 | +- Router navigations may take several additional |
| 26 | + microtasks to complete. Tests have been found to often be highly |
| 27 | + dependent on the exact timing of navigation completions with respect to |
| 28 | + the microtask queue. The most common fix for tests is to ensure all |
| 29 | + navigations have been completed before making assertions. On rare |
| 30 | + occasions, this can also affect production applications. This can be |
| 31 | + caused by multiple subscriptions to router state throughout the application, |
| 32 | + both of which trigger navigations that happened to not conflict with the |
| 33 | + previous timing. |
| 34 | +### upgrade |
| 35 | +- `UpgradeAdapter` is no longer available. Use |
| 36 | + `upgrade/static` instead |
| 37 | +### common |
| 38 | +| Commit | Type | Description | |
| 39 | +| -- | -- | -- | |
| 40 | +| [c795960ada](https://github.com/angular/angular/commit/c795960ada1a7e21b8bee411e20a08c700b6e385) | feat | Add experimental support for the Navigation API ([#63406](https://github.com/angular/angular/pull/63406)) | |
| 41 | +### compiler |
| 42 | +| Commit | Type | Description | |
| 43 | +| -- | -- | -- | |
| 44 | +| [0a82138d4b](https://github.com/angular/angular/commit/0a82138d4bc32a0deeb03c087547ea68a32ac38e) | fix | fixes regression with event parsing and animate prefix ([#63470](https://github.com/angular/angular/pull/63470)) | |
| 45 | +### core |
| 46 | +| Commit | Type | Description | |
| 47 | +| -- | -- | -- | |
| 48 | +| [538de86a72](https://github.com/angular/angular/commit/538de86a725635127216bd9b9d37479227dde6ef) | fix | avoid injecting internal error handler from a destroyed injector ([#62275](https://github.com/angular/angular/pull/62275)) | |
| 49 | +| [d399d7d02b](https://github.com/angular/angular/commit/d399d7d02b66c485cc5479dabd349d017a002692) | fix | Explicit Zone CD in TestBed providers should not override TestBed error handler ([#63404](https://github.com/angular/angular/pull/63404)) | |
| 50 | +| [ed3d1f246b](https://github.com/angular/angular/commit/ed3d1f246b185145567d0ce7abfe93e0ddb24c9f) | fix | Fix cancellation of animation enter classes ([#63442](https://github.com/angular/angular/pull/63442)) | |
| 51 | +| [06f4fd4456](https://github.com/angular/angular/commit/06f4fd44563d1651d05e528c7d3e3b2f301b1f33) | fix | Fixed inject migration schematics for migrate destructured properties ([#62832](https://github.com/angular/angular/pull/62832)) | |
| 52 | +| [9ae9875384](https://github.com/angular/angular/commit/9ae987538495981258fc17915b36745b7061f7f5) | fix | Prevent an error on cleanup when an `rxResource` `stream` threw before returning an `Observable` ([#63342](https://github.com/angular/angular/pull/63342)) | |
| 53 | +| [92e09adc0a](https://github.com/angular/angular/commit/92e09adc0a191ec599915e20b0835bf455bc572b) | fix | Remove ignoreChangesOutsideZone option ([#62700](https://github.com/angular/angular/pull/62700)) | |
| 54 | +### forms |
| 55 | +| Commit | Type | Description | |
| 56 | +| -- | -- | -- | |
| 57 | +| [b8314bd340](https://github.com/angular/angular/commit/b8314bd3409500b8540d1ce00a330fdb2f0fc83a) | feat | add experimental signal-based forms ([#63408](https://github.com/angular/angular/pull/63408)) | |
| 58 | +| [10ef96adb3](https://github.com/angular/angular/commit/10ef96adb3d989781c7ec5116a70b6518866ee27) | fix | consistent treatment of empty ([#63456](https://github.com/angular/angular/pull/63456)) | |
| 59 | +### http |
| 60 | +| Commit | Type | Description | |
| 61 | +| -- | -- | -- | |
| 62 | +| [07e678872f](https://github.com/angular/angular/commit/07e678872f91236f5c258f98a7aea536b5a200ac) | feat | Add reponseType property to HttpResponse and HttpErrorResponse ([#63043](https://github.com/angular/angular/pull/63043)) | |
| 63 | +### platform-browser |
| 64 | +| Commit | Type | Description | |
| 65 | +| -- | -- | -- | |
| 66 | +| [ce8db665f9](https://github.com/angular/angular/commit/ce8db665f984005264de0eb8b452370972823c17) | refactor | remove deprecated `ApplicationConfig` export ([#63529](https://github.com/angular/angular/pull/63529)) | |
| 67 | +### platform-server |
| 68 | +| Commit | Type | Description | |
| 69 | +| -- | -- | -- | |
| 70 | +| [ee73dc9553](https://github.com/angular/angular/commit/ee73dc95531fcab96286c337648a5b2d80d5caee) | fix | prevent false warning for duplicate state serialization ([#63525](https://github.com/angular/angular/pull/63525)) | |
| 71 | +### router |
| 72 | +| Commit | Type | Description | |
| 73 | +| -- | -- | -- | |
| 74 | +| [5b53535dd1](https://github.com/angular/angular/commit/5b53535dd16af7d3ea7b0216984560fd2223d76c) | fix | Update recognize stage to use internally async/await ([#62994](https://github.com/angular/angular/pull/62994)) | |
| 75 | +### upgrade |
| 76 | +| Commit | Type | Description | |
| 77 | +| -- | -- | -- | |
| 78 | +| [f86846555b](https://github.com/angular/angular/commit/f86846555bba44b2fb71d012fe4eebf82a0f5d00) | fix | Remove deprecated UpgradeAdapter ([#61659](https://github.com/angular/angular/pull/61659)) | |
| 79 | + |
| 80 | +<!-- CHANGELOG SPLIT MARKER --> |
| 81 | + |
1 | 82 | <a name="20.2.4"></a> |
2 | 83 | # 20.2.4 (2025-09-03) |
3 | 84 | ### core |
|
0 commit comments