Socket
Socket
Sign inDemoInstall

@angular/router

Package Overview
Dependencies
7
Maintainers
2
Versions
815
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1245
82Next

17.3.2

Diff

Changelog

Source

17.3.2 (2024-03-28)

compiler

| Commit | Type | Description | | -- | -- | -- | | 2b7bad5151 | fix | invoke method-based tracking function with context (#54960) |

compiler-cli

| Commit | Type | Description | | -- | -- | -- | | b478dfbfda | fix | report errors when initializer APIs are used on private fields (#55070) |

core

| Commit | Type | Description | | -- | -- | -- | | 708ba8115f | fix | establish proper injector resolution order for @defer blocks (#55079) |

http

| Commit | Type | Description | | -- | -- | -- | | cb433af0e1 | fix | include transferCache when cloning HttpRequest (#54939) | | 64f202cab9 | fix | manage different body types for caching POST requests (#54980) |

migrations

| Commit | Type | Description | | -- | -- | -- | | 2f9d94bc4a | fix | account for variables in imports initializer (#55081) |

router

| Commit | Type | Description | | -- | -- | -- | | 365fd50407 | fix | RouterLinkActive will always remove active classes when links are not active (#54982) |

<!-- CHANGELOG SPLIT MARKER -->

<a name="18.0.0-next.1"></a>

google-wombot
published 18.0.0-next.1 •

Changelog

Source

18.0.0-next.1 (2024-03-20)

Breaking Changes

platform-browser-dynamic

  • No longer used RESOURCE_CACHE_PROVIDER APIs have been removed.

platform-server

  • deprecated platformDynamicServer has been removed. Add an import @angular/compiler and replace the usage with platformServer

  • deprecated ServerTransferStateModule has been removed. TransferState can be use without providing this module.

  • deprecated useAbsoluteUrl and baseUrl been removed from PlatformConfig. Provide and absolute url instead.

  • Legacy handling or Node.js URL parsing has been removed from ServerPlatformLocation.

    The main differences are;

    • pathname is always suffixed with a /.
    • port is empty when http: protocol and port in url is 80
    • port is empty when https: protocol and port in url is 443

router

  • This change allows Route.redirectTo to be a function in addition to the previous string. Code which expects redirectTo to only be a string on Route objects will need to be adjusted.

compiler

| Commit | Type | Description | | -- | -- | -- | | 879bd80b57 | fix | capture data bindings for content projection purposes in blocks (#54876) |

compiler-cli

| Commit | Type | Description | | -- | -- | -- | | 6aff144232 | fix | symbol feature detection for the compiler (#54711) |

core

| Commit | Type | Description | | -- | -- | -- | | 314112de99 | fix | Prevent markForCheck during change detection from causing infinite loops (#54900) |

platform-browser-dynamic

| Commit | Type | Description | | -- | -- | -- | | eb20c1a8b1 | refactor | unused RESOURCE_CACHE_PROVIDER API has been removed (#54875) |

platform-server

| Commit | Type | Description | | -- | -- | -- | | 07ac017731 | refactor | remove deprecated platformDynamicServer API (#54874) | | e8b588d8b7 | refactor | remove deprecated ServerTransferStateModule API (#54874) | | 3b1967ca64 | refactor | remove deprecated useAbsoluteUrl and baseUrl from PlatformConfig (#54874) | | 2357d3566c | refactor | remove legacy URL handling logic (#54874) |

router

| Commit | Type | Description | | -- | -- | -- | | 2b802587f2 | feat | Allow Route.redirectTo to be a function which returns a string or UrlTree (#52606) |

<!-- CHANGELOG SPLIT MARKER -->

<a name="17.3.1"></a>

google-wombot
published 17.3.1 •

Changelog

Source

17.3.1 (2024-03-20)

compiler

| Commit | Type | Description | | -- | -- | -- | | c0788200e2 | fix | capture data bindings for content projection purposes in blocks (#54876) |

compiler-cli

| Commit | Type | Description | | -- | -- | -- | | 99e9474aa2 | fix | symbol feature detection for the compiler (#54711) |

<!-- CHANGELOG SPLIT MARKER -->

<a name="18.0.0-next.0"></a>

google-wombot
published 18.0.0-next.0 •

Changelog

Source

18.0.0-next.0 (2024-03-14)

Breaking Changes

core

  • OnPush views at the root of the application need to be marked dirty for their host bindings to refresh. Previously, the host bindings were refreshed for all root views without respecting the OnPush change detection strategy.
  • The ComponentFixture autoDetect feature will no longer refresh the component's host view when the component is OnPush and not marked dirty. This exposes existing issues in components which claim to be OnPush but do not correctly call markForCheck when they need to be refreshed. If this change causes test failures, the easiest fix is to change the component to ChangeDetectionStrategy.Default.
  • When Angular runs change detection, it will continue to refresh any views attached to ApplicationRef that are still marked for check after one round completes. In rare cases, this can result in infinite loops when certain patterns continue to mark views for check using ChangeDetectorRef.detectChanges. This will be surfaced as a runtime error with the NG0103 code.
  • The ComponentFixture.autoDetect feature now executes change detection for the fixture within ApplicationRef.tick. This more closely matches the behavior of how a component would refresh in production. The order of component refresh in tests may be slightly affected as a result, especially when dealing with additional components attached to the application, such as dialogs. Tests sensitive to this type of change (such as screenshot tests) may need to be updated. Concretely, this change means that the component will refresh before additional views attached to ApplicationRef (i.e. dialog components). Prior to this change, the fixture component would refresh after other views attached to the application.
  • The exact timing of change detection execution when using event or run coalescing with NgZone is now the first of either setTimeout or requestAnimationFrame. Code which relies on this timing (usually by accident) will need to be adjusted. If a callback needs to execute after change detection, we recommend afterNextRender instead of something like setTimeout.
  • Newly created and views marked for check and reattached during change detection are now guaranteed to be refreshed in that same change detection cycle. Previously, if they were attached at a location in the view tree that was already checked, they would either throw ExpressionChangedAfterItHasBeenCheckedError or not be refreshed until some future round of change detection. In rare circumstances, this correction can cause issues. We identified one instance that relied on the previous behavior by reading a value on initialization which was queued to be updated in a microtask instead of being available in the current change detection round. The component only read this value during initialization and did not read it again after the microtask updated it.

router

  • Guards can now return RedirectCommand for redirects in addition to UrlTree. Code which expects only boolean or UrlTree values in Route types will need to be adjusted.

compiler-cli

| Commit | Type | Description | | -- | -- | -- | | 9b424d7224 | fix | preserve original reference to non-deferrable dependency (#54759) |

core

| Commit | Type | Description | | -- | -- | -- | | 64f870c12b | fix | ApplicationRef.tick should respect OnPush for host bindings (#53718) (#53718) | | 8cad4e8cbe | fix | ComponentFixture autoDetect respects OnPush flag of host view (#54824) | | ba8e465974 | fix | Change Detection will continue to refresh views while marked for check (#54734) | | 24bc0ed4f2 | fix | ComponentFixture autodetect should detect changes within ApplicationRef.tick (#54733) | | 10c5cdb49c | fix | ensure change detection runs in a reasonable timeframe with zone coalescing (#54578) | | ad045efd4b | fix | Ensure views marked for check are refreshed during change detection (#54735) | | 700c0520bb | fix | Update ApplicationRef.tick loop to only throw in dev mode (#54848) |

router

| Commit | Type | Description | | -- | -- | -- | | 8735af08b9 | feat | Add ability to return UrlTree with NavigationBehaviorOptions from guards (#45023) |

<!-- CHANGELOG SPLIT MARKER -->

<a name="17.3.0"></a>

google-wombot
published 17.3.0 •

Changelog

Source

17.3.0 (2024-03-13)

compiler

| Commit | Type | Description | | -- | -- | -- | | 1a6beae8a2 | feat | Enable template pipeline by default. (#54571) | | f386a04c9d | fix | handle two-way bindings to signal-based template variables in instruction generation (#54714) | | 1f129f114e | fix | not catching for loop empty tracking expressions (#54772) |

compiler-cli

| Commit | Type | Description | | -- | -- | -- | | 12dc4d074e | fix | account for as expression in docs extraction (#54414) | | da7fbb40f0 | fix | detect when the linker is working in unpublished angular and widen supported versions (#54439) | | 492e03f699 | fix | flag two-way bindings to non-signal values in templates (#54714) | | 5afa4f0ec1 | fix | support ModuleWithProviders literal detection with typeof (#54650) |

core

| Commit | Type | Description | | -- | -- | -- | | 331b16efd2 | feat | add API to inject attributes on the host node (#54604) | | fb540e169a | feat | add migration for invalid two-way bindings (#54630) | | c687b8f453 | feat | expose new output() API (#54650) | | c809069f21 | feat | introduce outputFromObservable() interop function (#54650) | | aff65fd1f4 | feat | introduce outputToObservable interop helper (#54650) | | 974958913c | feat | support TypeScript 5.4 (#54414) | | 39a50f9a8d | fix | ensure all initializer functions run in an injection context (#54761) | | 243ccce624 | fix | exclude class attribute intended for projection matching from directive matching (#54800) | | 2909e9817d | fix | prevent infinite loops in clobbered elements check (#54425) | | 7243c704cf | fix | return a readonly signal on asReadonly. (#54706) | | bb35414a38 | perf | speed up retrieval of DestroyRef in EventEmitter (#54748) |

http

| Commit | Type | Description | | -- | -- | -- | | 8d37ed035c | fix | exclude caching for authenticated HTTP requests (#54746) |

router

| Commit | Type | Description | | -- | -- | -- | | c1c7384e02 | feat | Add reusable types for router guards (#54580) | | 7225485311 | fix | Navigations triggered by cancellation events should cancel previous navigation (#54710) |

<!-- CHANGELOG SPLIT MARKER -->

<a name="17.2.4"></a>

google-wombot
published 17.3.0-rc.0 •

google-wombot
published 17.2.4 •

Changelog

Source

17.2.4 (2024-03-06)

compiler-cli

| Commit | Type | Description | | -- | -- | -- | | 917b9bdd2e | fix | unwrap expressions with type parameters in query read property (#54647) |

core

| Commit | Type | Description | | -- | -- | -- | | 586cc24a10 | fix | apply TestBed provider overrides to @defer dependencies (#54667) | | b558a01c84 | fix | generic inference for signal inputs may break with --strictFunctionTypes (#54652) | | 443e5f1591 | fix | return a readonly signal on asReadonly. (#54719) | | ffbafc7d4a | fix | untrack various core operations (#54614) |

<!-- CHANGELOG SPLIT MARKER -->

<a name="17.2.3"></a>

google-wombot
published 17.2.3 •

Changelog

Source

17.2.3 (2024-02-27)

common

| Commit | Type | Description | | -- | -- | -- | | 1a526f2881 | perf | AsyncPipe should not call markForCheck on subscription (#54554) |

compiler-cli

| Commit | Type | Description | | -- | -- | -- | | 2aefed8763 | fix | catch function instance properties in interpolated signal diagnostic (#54325) | | 48aec63ee4 | fix | identify aliased initializer functions (#54480) | | daf7c611b2 | fix | identify aliased initializer functions (#54609) |

core

| Commit | Type | Description | | -- | -- | -- | | 57123524a2 | fix | collect providers from NgModules while rendering @defer block (#52881) | | 79a32816dc | fix | fix typo in injectors.svg file (#54596) |

migrations

| Commit | Type | Description | | -- | -- | -- | | dbe673b027 | fix | resolve infinite loop for a single line element with a long tag name and angle bracket on a new line (#54588) |

<!-- CHANGELOG SPLIT MARKER -->

<a name="17.2.2"></a>

google-wombot
published 17.3.0-next.1 •

google-wombot
published 17.3.0-next.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc