v21.0.6
Breaking Changes📦 angularView on GitHub →
⚠ 1 breaking✨ 1 features🐛 4 fixes🔧 6 symbols
Summary
This release introduces a breaking change to SignalFormsConfig and renames properties in FieldContext, alongside stability improvements for the language service and core error handling.
⚠️ 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, update the function signature to destructure the state from the directive and call it as a signal: ({state}) => state().valid().
Migration Steps
- Update provideSignalFormsConfig classes configuration: change (state) => state.valid() to ({state}) => state().valid().
- Update references to 'field' to 'fieldTree' within FieldContext and ValidationError objects.
✨ New Features
- forms: pass field directive to class config
🐛 Bug Fixes
- 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.classesRESPONSE_INITFieldContextValidationErrorprovideSignalFormsConfig@let