To upgrade from 5.0 to 6.0 see UPGRADE-6.0
⚠ BREAKING CHANGES
- Formly v6 now requires Angular Version >= 11
- core: The checkExpressionOn option is set to modelChange instead of changeDetectionCheck
- core: The
resetFieldOnHide
option is enabled by default - core: The
lazyRender
option is enabled by default - core: The initial value of the created FormControl has been changed from
null
to
undefined
to match the field model value. - core: The defaultValue for fieldGroup and fieldArray has been removed.
Features
- core: add
@ngx-formly/core/testing
package (24f503c) - core: add support for inline type (#2759) (b17ed07), closes #2707 #2086
- core: allow omit formly-field element (#2761) (6bdda2e), closes #2710 #2756
- core: allow control resetOnHide for a specific field (#2721) (9630043)
- ng-zorro-antd: add ui-ng-zorro-antd (3912c86)
- core: add type of templateOptions accessor "to" (#2745) (e3a4d2f)
- core: add v6 migration guide (#2716) (89586c9)
- core: allow pass already grouped structure to select opti… (#2091) (b5dee42), closes #1580
- core: allow passing observable for expression asyncValidators (#1849) (c0ba5a1)
- core: avoid unnecessary model changes for group/array type (#1901) (632daef)
- core: check expression on change only (#2743) (62b51d2)
- core: expose build, detectChanges and checkExpressions in options (#2328) (d75574b), closes #1773 #1583
- core: lazy render hidden fields by default (#2720) (f7853f8)
- core: remove deprecated hook methods (#2347) (b90acec)
- core: remove deprecated template manipulators (b00192e)
- core: switch to OnPush change detection (#2317) (810f306)
- json-schema: map 'boolean', 'string', 'number', 'integer', 'enum' types (#2232) (505f75f)
- material: mat-hint alignment support (#2646) (e60eec3), closes #2494
- material: simplify extending custom field type (#2742) (25dcd14)
- upgrade to Angular 9 (#2316) (d161bbc)
- upgrade to angular v11 (#2741) (9badb35)
- core: remove deprecated methods and configs (#1665) (229e3e4)
- core: remove v5.5 deprecations (#1842) (3f3e23b)
- core: use undefined as defaultValue for control to match the model (#1917) (3f66480), closes #1861
- bootstrap: move types into separate entry points (9142412)
- ionic: move types into separate entry points (#1570) (2a0563d)
- kendo: move types into separate entry points (#1569) (1d9ef8e)
- ng-zorro-antd: move types into separate entry points (7f27173)
- primeng: calendar support (#2615) (ec6ec71)
- primeng: move types into separate entry points (#1568) (73d277b)