Angular: 18.0.0-next.1 Release

Release date:
March 21, 2024
Previous version:
18.0.0-next.0 (released March 14, 2024)
Magnitude:
5,247 Diff Delta
Contributors:
11 total committers
Data confidence:
Commits:

Top Contributors in 18.0.0-next.1

dgp1130
devversion
alan-agius4
alxhub
atscott
crisbeto
JeanMeche
josephperrott
AndrewKushnir
frost-cy

Directory Browser for 18.0.0-next.1

All files are compared to previous version, 18.0.0-next.0. Click here to browse diffs between other versions.

Loading File Browser...

Release Notes Published

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

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

compiler

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

compiler-cli

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

core

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

platform-browser-dynamic

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

platform-server

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

router

| Commit | Description | | -- | -- | | feat - 2b802587f2 | Allow Route.redirectTo to be a function which returns a string or UrlTree (#52606) | | fix - da906fdafc | Routed components never inherit RouterOutlet EnvironmentInjector (#54265) |

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.
  • Providers available to the routed components always come from the injector heirarchy of the routes and never inherit from the RouterOutlet. This means that providers available only to the component that defines the RouterOutlet will no longer be available to route components in any circumstances. This was already the case whenever routes defined providers, either through lazy loading an NgModule or through explicit providers on the route config.