v21.1.0-next.4
Breaking Changes📦 angularView on GitHub →
⚠ 1 breaking✨ 1 features🐛 6 fixes🔧 7 symbols
Summary
This release introduces a breaking change in SignalFormsConfig and several core bug fixes, including improved error handling for circular references and language service stability improvements.
⚠️ Breaking Changes
- The shape of SignalFormsConfig.classes has changed. Functions in the classes map now receive a Field directive instead of a FieldState. To fix this, update the function signature to destructure the state from the directive and call it as a signal: ({state}) => state().valid().
Migration Steps
- Update SignalFormsConfig.classes implementations: change (state) => state.valid() to ({state}) => state().valid()
✨ New Features
- forms: pass field directive to class config
🐛 Bug Fixes
- core: Microtask scheduling should be used after any application synchronization
- core: return StaticProvider for providePlatformInitializer
- core: throw better errors for potential circular references
- core: use mutable ResponseInit type for RESPONSE_INIT token
- language-service: avoid interpolation highlighting inside @let
- language-service: Prevent language service from crashing on suggestion diagnostic errors
🔧 Affected Symbols
SignalFormsConfig.classesprovidePlatformInitializerRESPONSE_INITFieldContextValidationErrorStaticProviderResponseInit