Change8

v22.0.0-next.8

Breaking Changes
📦 angularView on GitHub →
1 breaking9 features🐛 10 fixes🔧 1 symbols

Summary

This release introduces new AI tooling, enhances compiler safety with nullable narrowing, and improves bootstrapping support under shadow roots. Several bug fixes address issues in forms interoperability, HTTP security, and compiler expression handling.

⚠️ Breaking Changes

  • This change will trigger the `nullishCoalescingNotNullable` and `optionalChainNotNullable` diagnostics on exisiting projects. You might want to disable those 2 diagnotiscs in your `tsconfig` temporarily.

Migration Steps

  1. If you encounter `nullishCoalescingNotNullable` or `optionalChainNotNullable` diagnostics after updating, temporarily disable these two diagnostics in your `tsconfig`.

✨ New Features

  • Allow safe navigation to correctly narrow down nullables in the compiler.
  • Allow synchronous values for stream Resources in core.
  • Enhance profiling with documentation URLs in core.
  • Implement Angular DI graph in-page AI tool in core.
  • Register AI runtime debugging tools in core.
  • Support bootstrapping Angular applications underneath shadow roots in core.
  • Shim legacy NG_VALIDATORS into parseErrors for CVA mode in forms.
  • Make incremental hydration default behavior in platform-browser.
  • Disabling nullishCoalescingNotNullable & optionalChainNotNullable on ng update in migrations.

🐛 Bug Fixes

  • Don't escape dollar sign in literal expression in compiler.
  • Animation events not type checked properly when bound through HostListener decorator in compiler-cli.
  • Escape forward slashes in transfer state to prevent crawler indexing in core.
  • Use controlValue in NgControl for CVA interop in forms.
  • Add CSP nonce support to JsonpClientBackend in http.
  • Don't on Passthru outside of reactive context in http.
  • Fix typo for strict-template migration in migrations.
  • Prevent SSRF bypasses via protocol-relative and backslash URLs in platform-server.
  • Normalize multiple leading slashes in URL parser in router.
  • Resolve TS 6.0 compatibility for messageerror listener in service-worker.

Affected Symbols