You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***core:**`ExperimentalPendingTasks` has been renamed to
11
-
`PendingTasks`.
12
-
***core:** Generally this PR has two implications:
13
-
14
-
* effects which are triggered outside of change detection run as part of
15
-
the change detection process instead of as a microtask. Depending on the
16
-
specifics of application/test setup, this can result in them executing
17
-
earlier or later (or requiring additional test steps to trigger; see below
18
-
examples).
19
-
20
-
* effects which are triggered during change detection (e.g. by input
21
-
signals) run _earlier_, before the component's template.
22
-
23
-
We've seen a few common failure cases:
24
-
25
-
* Tests which used to rely on the `Promise` timing of effects now need to
26
-
`await whenStable()` or call `.detectChanges()` in order for effects to
27
-
run.
28
-
29
-
* Tests which use faked clocks may need to fast-forward/flush the clock to
30
-
cause effects to run.
31
-
32
-
*`effect()`s triggered during CD could rely on the application being fully
33
-
rendered (for example, they could easily read computed styles, etc). With
34
-
the change, they run before the component's updates and can get incorrect
35
-
answers. The recent `afterRenderEffect()` API is a natural replacement for
36
-
this style of effect.
37
-
38
-
*`effect()`s which synchronize with the forms system are particularly
39
-
timing-sensitive and might need to adjust their initialization timing.
40
-
***core:** * TypeScript versions less than 5.5 are no longer supported.
41
-
***core:** The timers that are used for zone coalescing and hybrid
42
-
mode scheduling (which schedules an application state synchronization
43
-
when changes happen outside the Angular zone) will now run in the zone
44
-
above Angular rather than the root zone. This will mostly affect tests
45
-
which use `fakeAsync`: these timers will now be visible to `fakeAsync`
46
-
and can be affected by `tick` or `flush`.
47
-
***core:** Render default fallback with empty `projectableNodes`.
48
-
49
-
When passing an empty array to `projectableNodes` in the `createComponent` API, the default fallback content of the `ng-content` will be rendered if present. To prevent rendering the default content, pass `document.createTextNode('')` as a `projectableNode`.
50
-
51
-
For example:
52
-
53
-
```ts
54
-
// The first ng-content will render the default fallback content if present
***elements:** as part of switching away from custom CD behavior to the
62
-
hybrid scheduler, timing of change detection around custom elements has
63
-
changed subtly. These changes make elements more efficient, but can cause
64
-
tests which encoded assumptions about how or when elements would be checked
65
-
to require updating.
66
-
***core:** The `autoDetect` feature of `ComponentFixture` will now
67
-
attach the fixture to the `ApplicationRef`. As a result, errors during
68
-
automatic change detection of the fixture be reported to the `ErrorHandler`.
69
-
This change may cause custom error handlers to observe new failures that were previously unreported.
70
-
***core:** Errors that are thrown during `ApplicationRef.tick`
71
-
will now be rethrown when using `TestBed`. These errors should be
72
-
resolved by ensuring the test environment is set up correctly to
73
-
complete change detection successfully. There are two alternatives to
74
-
catch the errors:
75
-
76
-
* Instead of waiting for automatic change detection to happen, trigger
77
-
it synchronously and expect the error. For example, a jasmine test
78
-
could write `expect(() => TestBed.inject(ApplicationRef).tick()).toThrow()`
79
-
*`TestBed` will reject any outstanding `ComponentFixture.whenStable` promises. A jasmine test,
80
-
for example, could write `expectAsync(fixture.whenStable()).toBeRejected()`.
81
-
82
-
As a last resort, you can configure errors to _not_ be rethrown by
83
-
setting `rethrowApplicationErrors` to `false` in `TestBed.configureTestingModule`.
84
-
***router:** The `Router.errorHandler` property has been removed.
85
-
Adding an error handler should be configured in either
86
-
`withNavigationErrorHandler` with `provideRouter` or the `errorHandler`
87
-
property in the extra options of `RouterModule.forRoot`. In addition,
88
-
the error handler cannot be used to change the return value of the
89
-
router navigation promise or prevent it from rejecting. Instead, if you
90
-
want to prevent the promise from rejecting, use `resolveNavigationPromiseOnError`.
91
-
***router:** The return type of the `Resolve` interface now includes
92
-
`RedirectCommand`.
93
-
***zone.js:**`fakeAsync` will now flush pending timers at the end of
94
-
the given function by default. To opt-out of this, you can use `{flush:
95
-
false}` in options parameter of `fakeAsync`
96
-
97
-
### Features
98
-
99
-
***bazel:** remove unused ESM2022 from APF ([#57559](https://github.com/prettier/angular-html-parser/issues/57559)) ([d5cc9d5](https://github.com/prettier/angular-html-parser/commit/d5cc9d5d7110a2a1176fc317015b30448a79648a))
100
-
***common:** automatically use sizes auto in NgOptimizedImage ([#57479](https://github.com/prettier/angular-html-parser/issues/57479)) ([50f08e6](https://github.com/prettier/angular-html-parser/commit/50f08e6c4bf1caeeb08d3505ce7fabd466b9c76b))
101
-
***compiler-cli:** 'strictStandalone' flag enforces standalone ([#57935](https://github.com/prettier/angular-html-parser/issues/57935)) ([d9687f4](https://github.com/prettier/angular-html-parser/commit/d9687f43dd2ccfcf7dd3ee4f9066ce727f3224c6))
102
-
***compiler-cli:** ensure template style elements are preprocessed as inline styles ([#57429](https://github.com/prettier/angular-html-parser/issues/57429)) ([9e87593](https://github.com/prettier/angular-html-parser/commit/9e87593055a5314a67090bd15d5552c23b538050))
***core:** Add 'flush' parameter option to fakeAsync to flush after the test ([#57239](https://github.com/prettier/angular-html-parser/issues/57239)) ([f7918f5](https://github.com/prettier/angular-html-parser/commit/f7918f52720d3e903281154725cb257a952e8896))
105
-
***core:** Add a schematics to migrate to `standalone: false`. ([#57643](https://github.com/prettier/angular-html-parser/issues/57643)) ([6ea8e1e](https://github.com/prettier/angular-html-parser/commit/6ea8e1e9aae028572873cf97aa1949c8153f458f))
106
-
***core:** Add async `run` method on `ExperimentalPendingTasks` ([#56546](https://github.com/prettier/angular-html-parser/issues/56546)) ([3ebe6b4](https://github.com/prettier/angular-html-parser/commit/3ebe6b4ad401337e18619edc34477ae98226fa3e))
107
-
***core:** add ng generate schematic to convert to inject ([#57056](https://github.com/prettier/angular-html-parser/issues/57056)) ([fab673a](https://github.com/prettier/angular-html-parser/commit/fab673a1ddbca19ff9734f92a5ef0cc16be5708c))
108
-
***core:** Add whenStable helper on ApplicationRef ([#57190](https://github.com/prettier/angular-html-parser/issues/57190)) ([7919982](https://github.com/prettier/angular-html-parser/commit/7919982063e7638ffabe2127d4803bb930c791bc))
109
-
***core:** allow passing `undefined` without needing to include it in the type argument of `input` ([#57621](https://github.com/prettier/angular-html-parser/issues/57621)) ([c93b510](https://github.com/prettier/angular-html-parser/commit/c93b510f9b2e23aa7a3848a04c05249fde14a9b1)), closes [#53909](https://github.com/prettier/angular-html-parser/issues/53909)
110
-
***core:** bootstrapModule can configure NgZone in providers ([#57060](https://github.com/prettier/angular-html-parser/issues/57060)) ([3459289](https://github.com/prettier/angular-html-parser/commit/3459289ef079a80e84bb92e20c25fb6cae18aaf8))
***core:** drop support for TypeScript 5.4 ([#57577](https://github.com/prettier/angular-html-parser/issues/57577)) ([8bcc663](https://github.com/prettier/angular-html-parser/commit/8bcc663a53888717cdf4ce0c23404caa00abb1b2))
113
-
***core:** initial version of the output migration ([#57604](https://github.com/prettier/angular-html-parser/issues/57604)) ([e6e5d29](https://github.com/prettier/angular-html-parser/commit/e6e5d29e830a0a74d7677d5f2345f29391064853))
***core:** mark input, output and model APIs as stable ([#57804](https://github.com/prettier/angular-html-parser/issues/57804)) ([1b15192](https://github.com/prettier/angular-html-parser/commit/1b1519224d10c1cd25d05d7b958772b9adee1e1a))
116
-
***core:** mark signal-based query APIs as stable ([#57921](https://github.com/prettier/angular-html-parser/issues/57921)) ([a7eff3f](https://github.com/prettier/angular-html-parser/commit/a7eff3ffaaecbcb3034130d475ff7b4e41a1e1cc))
117
-
***core:** migrate ExperimentalPendingTasks to PendingTasks ([#57533](https://github.com/prettier/angular-html-parser/issues/57533)) ([a1f2298](https://github.com/prettier/angular-html-parser/commit/a1f229850ad36da009f772faa831da173a60268c))
118
-
***core:** stabilize `[@let](https://github.com/let)` syntax ([#57813](https://github.com/prettier/angular-html-parser/issues/57813)) ([e5adf92](https://github.com/prettier/angular-html-parser/commit/e5adf9296595644e415d5c147df08890be01ba77))
119
-
***core:** support TypeScript 5.6 ([#57424](https://github.com/prettier/angular-html-parser/issues/57424)) ([b063468](https://github.com/prettier/angular-html-parser/commit/b0634680272569501146bb7a9cdfe53033e25971))
120
-
***language-service:** add code fix for unused standalone imports ([#57605](https://github.com/prettier/angular-html-parser/issues/57605)) ([8da9fb4](https://github.com/prettier/angular-html-parser/commit/8da9fb49b54e50de2d028691f73fb773def62ecd))
121
-
***language-service:** add code reactoring action to migrate `@Input` to signal-input ([#57214](https://github.com/prettier/angular-html-parser/issues/57214)) ([1f067f4](https://github.com/prettier/angular-html-parser/commit/1f067f4507b6e908fe991d5de0dc4d3a627ab2f9))
122
-
***language-service:** allow code refactorings to compute edits asynchronously ([#57214](https://github.com/prettier/angular-html-parser/issues/57214)) ([56ee47f](https://github.com/prettier/angular-html-parser/commit/56ee47f2ec6e983e2ffdf59476ab29a92590811e))
123
-
***language-service:** support writing code refactorings ([#56895](https://github.com/prettier/angular-html-parser/issues/56895)) ([4bb558a](https://github.com/prettier/angular-html-parser/commit/4bb558ab0cbf2e5e34816377e977128a177a977a))
124
-
***migrations:** add migration to convert standalone component routes to be lazy loaded ([#56428](https://github.com/prettier/angular-html-parser/issues/56428)) ([147eee4](https://github.com/prettier/angular-html-parser/commit/147eee42530b8e7d6a99f37c8eba7a38cbe29522))
125
-
***migrations:** introduce signal input migration as `ng generate` schematic ([#57805](https://github.com/prettier/angular-html-parser/issues/57805)) ([59fe9bc](https://github.com/prettier/angular-html-parser/commit/59fe9bc77236f1374427a851e55b0fa5216d9cf9))
126
-
***migrations:** migrate .pipe calls in outputs used in tests ([#57691](https://github.com/prettier/angular-html-parser/issues/57691)) ([cbec46a](https://github.com/prettier/angular-html-parser/commit/cbec46a51d22a1238cc8bf1ebdf343d031b8f0ba))
127
-
***migrations:** remove complete calls for migrated outputs ([#57671](https://github.com/prettier/angular-html-parser/issues/57671)) ([68e5370](https://github.com/prettier/angular-html-parser/commit/68e5370a66633f4b069d6adffa95c2ea94291820))
128
-
***migrations:** replace .next usage on outputs ([#57654](https://github.com/prettier/angular-html-parser/issues/57654)) ([9da21f7](https://github.com/prettier/angular-html-parser/commit/9da21f798de2033af9d39a8a9b255ef2fe74f948))
***router:** Add defaultQueryParamsHandling to router configuration ([#57198](https://github.com/prettier/angular-html-parser/issues/57198)) ([6c76c91](https://github.com/prettier/angular-html-parser/commit/6c76c91e151b53dfaccb4be43d43a8d857715dd7)), closes [#12664](https://github.com/prettier/angular-html-parser/issues/12664)
131
-
***zone.js:** Add 'flush' parameter option to fakeAsync to flush after the test ([#57137](https://github.com/prettier/angular-html-parser/issues/57137)) ([99d679d](https://github.com/prettier/angular-html-parser/commit/99d679d6061d731a04930824e92f247bb94f21e7))
132
-
133
-
134
-
### Bug Fixes
7
+
Sync with upstream.
135
8
136
9
***common:** Don't run preconnect assertion on the server. ([#56213](https://github.com/prettier/angular-html-parser/issues/56213)) ([2c4613a](https://github.com/prettier/angular-html-parser/commit/2c4613a002d7670f8377cb53eaa9aca4bfc9521f)), closes [#56207](https://github.com/prettier/angular-html-parser/issues/56207)
137
10
***common:** execute checks and remove placeholder when image is already loaded ([#55444](https://github.com/prettier/angular-html-parser/issues/55444)) ([c3115b8](https://github.com/prettier/angular-html-parser/commit/c3115b882ebbe4f971e1f06bb1ce2cdf43327bb0))
0 commit comments