Change8

v22.0.0-next.4

Breaking Changes
📦 angularView on GitHub →
2 breaking6 features🐛 11 fixes🔧 5 symbols

Summary

This release introduces new features like nested leave animations and support for ngNoCva, alongside several bug fixes across compiler, core, and forms. Notably, `ChangeDetectorRef.checkNoChanges` has been removed.

⚠️ Breaking Changes

  • Leave animations are no longer limited to the element being removed. This may affect custom animation logic that relied on this limitation.
  • ChangeDetectorRef.checkNoChanges was removed. In tests use fixture.detectChanges() instead.

Migration Steps

  1. If you relied on the previous scoping behavior of leave animations, review and adjust your animation logic.
  2. Replace usages of `ChangeDetectorRef.checkNoChanges` with `fixture.detectChanges()` in tests.
  3. Update usages of `TestBed.getFixture` to use `TestBed.getLastFixture`.

✨ New Features

  • Re-introduced nested leave animations scoped to component boundaries.
  • TestBed.getFixture is replaced by TestBed.getLastFixture and the implementation was updated.
  • Support for ngNoCva as an opt-out for ControlValueAccessors in forms.
  • Template & reactive support for FVC (presumably Functional View Components or similar concept).
  • Added Document Symbols support for Angular templates in language-service.
  • Added `options` optional parameter for `withComponentInputBinding` in the router.

🐛 Bug Fixes

  • Ensured generated code compiles in compiler.
  • Fixed parsing of named HTML entities containing digits.
  • Stopped generating unused fields in compiler.
  • Escaped template literal in TCB (Type Checking Block) in compiler-cli.
  • Fixed issue where generic types were not filled out correctly in type check block.
  • Fixed transformation dropping exclamationToken from properties.
  • Cleaned up dehydrated views during HMR component replacement.
  • Fixed linked signal equality check running without a reactive consumer.
  • Fixed support for generic unions in signal form schemas.
  • Prevented trailing comma syntax errors after removing NgStyle during migration.
  • Preserved redirect policy on reconstructed asset requests in service-worker.

Affected Symbols