21.0.0-next.0
Breaking Changes📦 angularView on GitHub →
⚠ 2 breaking✨ 2 features🐛 1 fixes🔧 4 symbols
Summary
This release introduces signal-based navigation tracking in the Router and provides HTTP services in root, while explicitly disallowing the 'emitDeclarationOnly' TypeScript compiler option.
⚠️ Breaking Changes
- The Angular compiler now produces an error when the 'emitDeclarationOnly' TypeScript compiler option is enabled as this mode is not supported.
- The 'lastSuccessfulNavigation' property in the Router has been converted to a signal; it must now be invoked as a function (e.g., lastSuccessfulNavigation()) to access its value.
Migration Steps
- Disable the 'emitDeclarationOnly' option in your tsconfig.json if it was previously enabled for Angular compilation.
- Update code accessing 'router.lastSuccessfulNavigation' to call it as a function: 'router.lastSuccessfulNavigation()'.
✨ New Features
- HTTP services are now provided in the root injector.
- Converted 'lastSuccessfulNavigation' in the Router to a signal for better reactivity.
🐛 Bug Fixes
- Disallow compiling with the 'emitDeclarationOnly' TS compiler option enabled to prevent unsupported build states.
🔧 Affected Symbols
compiler-cliRouter.lastSuccessfulNavigationHttpClientemitDeclarationOnly