Releases: angular/angular
Releases Β· angular/angular
22.0.0-next.9
core
| Commit | Description |
|---|---|
introduce @Service decorator |
|
| Update Testability to use PendingTasks for stability indicator |
docs
| Commit | Description |
|---|---|
| link formatting in "Animating your Application with CSS" |
migrations
| Commit | Description |
|---|---|
| fix NgClass leaving trailing comma after removal |
router
| Commit | Description |
|---|---|
restore internal URL on popstate when browserUrl is used |
|
| set default paramsInheritanceStrategy to 'always' |
Breaking Changes
router
-
paramsInheritanceStrategy now defaults to 'always'
The default value of paramsInheritanceStrategy has been changed from 'emptyOnly' to 'always'. This means that route parameters are inherited from all parent routes by default. To restore the previous behavior, set paramsInheritanceStrategy to 'emptyOnly' in your router configuration.
21.2.10
22.0.0-next.8
compiler
| Commit | Description |
|---|---|
| allow safe navigation to correctly narrow down nullables | |
| don't escape dollar sign in literal expression |
compiler-cli
| Commit | Description |
|---|---|
| animation events not type checked properly when bound through HostListener decorator |
core
forms
| Commit | Description |
|---|---|
| shim legacy NG_VALIDATORS into parseErrors for CVA mode (#67943) | |
| use controlValue in NgControl for CVA interop (#67943) |
http
| Commit | Description |
|---|---|
| add CSP nonce support to JsonpClientBackend | |
| Don't on Passthru outside of reactive context |
migrations
| Commit | Description |
|---|---|
| Disabling nullishCoalescingNotNullable & optionalChainNotNullable on ng update | |
| Fix typo for strict-template migration |
platform-browser
| Commit | Description |
|---|---|
| make incremental hydration default behavior |
platform-server
| Commit | Description |
|---|---|
| prevent SSRF bypasses via protocol-relative and backslash URLs |
router
| Commit | Description |
|---|---|
| normalize multiple leading slashes in URL parser |
service-worker
| Commit | Description |
|---|---|
| resolve TS 6.0 compatibility for messageerror listener |
Breaking Changes
compiler
- This change will trigger the
nullishCoalescingNotNullableandoptionalChainNotNullablediagnostics on exisiting projects.
You might want to disable those 2 diagnotiscs in yourtsconfigtemporarily.
21.2.9
core
| Commit | Description |
|---|---|
| escape forward slashes in transfer state to prevent crawler indexing |
http
| Commit | Description |
|---|---|
| add CSP nonce support to JsonpClientBackend | |
| Don't on Passthru outside of reactive context |
platform-server
| Commit | Description |
|---|---|
| prevent SSRF bypasses via protocol-relative and backslash URLs |
router
| Commit | Description |
|---|---|
| normalize multiple leading slashes in URL parser |
20.3.19
19.2.21
22.0.0-next.7
compiler
| Commit | Description |
|---|---|
| handle nested brackets in host object bindings |
compiler-cli
| Commit | Description |
|---|---|
| Adds warning for prefetch without main defer trigger | |
| error for type parameter declarations | |
| resolve TCB mapping failure for safe property reads with as any |
core
forms
| Commit | Description |
|---|---|
| align FormField CVA selection priority with standard forms | |
| allow late-bound input types for signals forms | |
| deduplicate writeValue calls in CVA interop |
language-service
| Commit | Description |
|---|---|
| get quick info at local var location to align with TS semantics and support type narrowing |
migrations
| Commit | Description |
|---|---|
| Add migration for CanMatchFn snapshot parameter (#67452) |
platform-browser
| Commit | Description |
|---|---|
remove unused styles when associated host is dropped |
router
| Commit | Description |
|---|---|
| make currentSnapshot required in CanMatchFn (#67452) |
Breaking Changes
core
- The second arguement of appRef.bootstrap does not accept
anyanymore. Make sure the element you pass is not nullable. -
- TypeScript versions older than 6.0 are no longer supported.
ComponentFactoryResolverandComponentFactoryare no longer available. Pass the component class directly to APIs that previously required a factory, such asViewContainerRef.createComponentor use the standalonecreateComponentFunction.ComponentFactoryResolverandComponentFactoryare no longer available. Pass the component class directly to APIs that previously required a factory, such asViewContainerRef.createComponentor use the standalonecreateComponentfunction.
platform-browser
- This removes styles when they appear to no longer be used by an associated
host. However other DOM on the page may still be affected by those styles if not leveragingViewEncapsulation.Emulatedor if those styles are used by elements outside of Angular, potentially causing other DOM to appear unstyled.
router
- The
currentSnapshotparameter inCanMatchFnand thecanMatchmethod of theCanMatchinterface is now required. While this was already the behavior of the Router at runtime, existing class implementations ofCanMatchmust now include the third argument to satisfy the interface.
21.2.8
compiler
| Commit | Description |
|---|---|
| handle nested brackets in host object bindings |
compiler-cli
| Commit | Description |
|---|---|
| error for type parameter declarations |
core
| Commit | Description |
|---|---|
| handle missing serialized container hydration data | |
| remove obsolete iOS cursor pointer hack in event delegation |
language-service
| Commit | Description |
|---|---|
| get quick info at local var location to align with TS semantics and support type narrowing |
22.0.0-next.6
compiler
| Commit | Description |
|---|---|
| register SVG animation attributes in URL security context (#67797) |
compiler-cli
| Commit | Description |
|---|---|
| prevent recursive scope checks for invalid NgModule imports |
core
| Commit | Description |
|---|---|
| prevent binding unsafe attributes on SVG animation elements (#67797) | |
| resolve component import by exact specifier in route lazy-loading schematic | |
treat object[data] as resource URL context (#67797) |
localize
| Commit | Description |
|---|---|
| validate locale in getOutputPathFn to prevent path traversal |
migrations
| Commit | Description |
|---|---|
| add strictTemplates to tsconfig during ng update |
router
| Commit | Description |
|---|---|
| pass outlet context to split to fix empty path named outlets |
21.2.7
compiler
| Commit | Description |
|---|---|
| register SVG animation attributes in URL security context (#67797) |
compiler-cli
| Commit | Description |
|---|---|
| prevent recursive scope checks for invalid NgModule imports |
core
| Commit | Description |
|---|---|
| prevent binding unsafe attributes on SVG animation elements (#67797) | |
| resolve component import by exact specifier in route lazy-loading schematic | |
treat object[data] as resource URL context (#67797) |
localize
| Commit | Description |
|---|---|
| validate locale in getOutputPathFn to prevent path traversal |
router
| Commit | Description |
|---|---|
| pass outlet context to split to fix empty path named outlets |