v22.1.3
📦 angularView on GitHub →
🐛 18 fixes🔧 11 symbols
Summary
This release includes various bug fixes across multiple Angular packages, including improvements to animations, common utilities, compiler, core functionalities, forms, http client, language server, platform browser, and router. Notably, it replaces `hasOwnProperty` with `Object.hasOwn` for better object property checking.
Migration Steps
- Replace all usages of `hasOwnProperty` with `Object.hasOwn`.
🐛 Bug Fixes
- Animations: Detect object trigger values with Object.hasOwn.
- Common: Preserve literal key union in KeyValuePipe.transform().
- Compiler: Preserve &ngsp; between sibling control flow blocks.
- Core: Accept readonly arrays for setClassMetadata decorators.
- Core: Allow readonly arrays in RawScopeInfoFromDecorator.
- Core: Expose debuggableFn for non-computed signal graph nodes.
- Core: Prevent orphaned requestIdleCallback handle from re-entrant scheduling.
- Core: Replace all hasOwnProperty usages with Object.hasOwn.
- Core: Stop running further effects once one destroys the view mid-flush.
- Core: Throw a descriptive error instead of crashing when a hydration node is missing.
- Core: Throw NG0500 instead of a raw TypeError on element hydration mismatch.
- Forms: Report forbidden 2way bindings on when `FormField` is applied.
- Forms: Warn in dev mode when ngModel cannot reach parent NgForm across component boundary.
- Http: Cancel oversized fetch response bodies.
- Language-server: Recover project for external templates in solution-style workspaces.
- Platform-browser: Disallow event handler attributes in Meta.
- Platform-browser: Throw a descriptive error when insertBefore reference node is missing.
- Router: Pass correct component to canDeactivate for named outlets in componentless parent routes.