20.2.0
📦 angularView on GitHub →
✨ 13 features🐛 9 fixes⚡ 2 deprecations🔧 9 symbols
Summary
This release promotes zoneless mode to stable, adds support for TypeScript 5.9, and introduces several template enhancements like 'else if' aliases. It also marks the animations package and component animations field as deprecated while providing numerous fixes for animation behavior and compiler diagnostics.
Migration Steps
- Review usage of @angular/animations and the Component 'animations' field in preparation for future removal.
- Check templates for uninvoked functions in interpolation as new diagnostics may flag these.
✨ New Features
- Promoted zoneless mode to stable.
- Added support for TypeScript 5.9.
- Added 'currentNavigation' signal to the Router service.
- Added support for 'as' aliases on 'else if' blocks in templates.
- Added diagnostic for uninvoked functions in text interpolation.
- Added support for pushing an array of controls to FormArray.
- Added 'redirected' property to HttpResponse and HttpErrorResponse.
- Added support for fetch referrer and integrity options in HttpClient and httpResource.
- ARIA property bindings are now rendered as attributes.
- Added option to infer tag names of components in tests.
- Added enter and leave animation instructions to core.
- Language service now supports auto-import for attribute completions and reports deprecated APIs in templates.
- Platform-browser now warns on conflicting hydration and blocking navigation.
🐛 Bug Fixes
- Fixed animation event host bindings not firing.
- Fixed duplicate nodes when @if toggles with leave animations.
- Fixed animate.enter class removal when composing classes.
- Fixed support for space-separated strings in leave animations.
- Fixed timing issues and empty animations during style recalculation.
- Allowed more characters in square-bracketed attribute names in the compiler.
- Added missing timeout and transferCache options to HttpClient.
- Fixed NG8117 diagnostic message to display the proper function.
- Improved TCB generation to ignore diagnostics on ngTemplateContextGuard and prevent DOM event assertions on older versions.
🔧 Affected Symbols
ComponentFormArrayRouterHttpClienthttpResourceHttpResponseHttpErrorResponsengTemplateContextGuardanimate.enter⚡ Deprecations
- The @angular/animations package is now deprecated.
- The 'animations' field on the Component interface is deprecated.