v22.0.0-next.0
Breaking Changes📦 angularView on GitHub →
⚠ 8 breaking✨ 9 features🐛 8 fixes⚡ 1 deprecations🔧 8 symbols
Summary
This release introduces significant updates including new features for idle handling in defer blocks and HTTP client improvements. Several breaking changes were made, notably updating minimum Node.js requirements and modifying compiler behavior regarding attribute binding and expression validation.
⚠️ Breaking Changes
- Node.js v20 is no longer supported. The minimum supported Node.js versions are now v22.22.0 and v24.13.1.
- Inputs/outputs are no longer bound for data prefixed attributes.
- The compiler will throw when there are duplicate bindings for inputs, outputs, or model bindings to the same input/outputs.
- Using 'in' variables in template expressions will now throw an error.
- The signature of `AnimationCallbackEvent.animationComplete` has changed.
- To maintain support for upload progress reports when using `provideHttpClient`, you must now use `provideHttpClient(withXhr)`.
- `provideRoutes()` has been removed. Use `provideRouter()` or `ROUTES` as a multi-token if necessary.
- Deprecated `getAngularLib`/`setAngularLib` have been removed; use `getAngularJSGlobal`/`setAngularJSGlobal` instead.
Migration Steps
- Update your minimum required Node.js version to v22.22.0 or v24.13.1.
- If you rely on upload progress reports with `provideHttpClient`, update your configuration to use `provideHttpClient(withXhr)`.
- Replace usages of `provideRoutes()` with `provideRouter()` or use `ROUTES` as a multi-token.
- Replace usages of `getAngularLib`/`setAngularLib` with `getAngularJSGlobal`/`setAngularJSGlobal`.
✨ New Features
- Added `IdleRequestOptions` support to `IdleService`.
- Added a schematic to migrate `provideHttpClient` to retain the `HttpXhrBackend` implementation.
- Added a migration to introduce `ChangeDetectionStrategy.Eager` where applicable.
- Added special return statuses for resource parameters.
- Added `TestBed.getFixture`.
- Support customization of @defer's on idle behavior.
- Support optional timeout for idle deferred triggers.
- Added support for idle timeout in defer blocks in the language service.
- Added `browserUrl` input support to router links.
🐛 Bug Fixes
- Stopped binding inputs/outputs for `data-` attributes in the compiler.
- Compiler now throws on duplicate input/outputs.
- Compiler now throws on invalid 'in' expressions.
- Object literals in TCB are always parenthesized in the compiler-cli.
- Bound global context to idle callback shims in @defer's idle service.
- Split the `touched` model into an input and `touch` output in forms.
- Untracked `setValue` in reactive forms.
- Used `FetchBackend` as the default implementation for `HttpBackend`.
Affected Symbols
⚡ Deprecations
- `withFetch` is now deprecated and can be safely removed.