All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
5.0.2 (2022-12-04)
- markAsTouched typings to hadnle onlySelf argument (d8352ea)
5.0.1 (2022-08-03)
- incorrect typing of FormArray value for complex models (7dc954f)
5.0.0 (2022-06-10)
- The library now requires Angular v14
4.1.0 (2022-04-10)
- reactive-forms: add invalid$ and valid$ (f232fa1)
- readme typo (2a0358f)
4.0.4 (2022-01-12)
- wrong usage of Control generic type in FormArray for FormBuilder and for ValuesOf (849500f)
4.0.3 (2022-01-04)
4.0.2 (2021-12-02)
4.0.1 (2021-11-27)
4.0.0 (2021-11-20)
- 𧨠The library now requires Angular v13
3.1.4 (2021-11-17)
3.1.3 (2021-10-28)
- π fix type of enable disable (67a5490), closes #115
- π fix type of status$ property (a106a3e), closes #113
3.1.2 (2021-10-25)
3.1.0 (2021-10-21)
- bump rule (8f9fa05)
3.0.0 (2021-10-08)
- library: refactor the entire code
I completely rewrote the library from scratch for two reasons:
- Provide as much support as possible without introducing bugs, breaking strict mode, or creating an inconvenient API.
- Reduce the library size.
Here are the changes:
- Angular's peer dependency is now
>= 12
. - FormGroup's generic was removed in favor of the experimental
ControlsOf
interface. - Remove
mergeValidators
. Use addValidators in v12. - Remove
validateOn
. - Remove
getControl
in favor ofget(key)
orget(['nested', 'key'])
. - Remove errors typing.
- Validators should now be imported from Angular.
FormBuilder
doesn't support generic anymore. Due to the complexity of the builder API, we're currently couldn't create a "good" implementation ofControlsOf
for the builder.- Remove the
group.persist()
from the instance to an exported function to make it tree-shakeable.
1.7.5 (2021-08-09)
1.7.4 (2021-07-28)
1.7.3 (2021-05-20)
1.7.2 (2021-03-21)
1.6.1 (2021-03-14)
1.6.0 (2021-01-30)
- persist values of disabled controls (9dae31f)
1.5.2 (2021-01-20)
- allow to pass options to updateValueAndValidity method (3edb8ae)
1.5.1 (2020-12-10)
1.5.0 (2020-11-29)
- πΈ enrich abstract control type (2a018eb)
- handle 'any' values properly in 'ControlOf' (#60) (779e083)
- handle 'any' values properly in 'patchValue' (#59) (0ccdd2e)
1.4.4 (2020-11-18)
1.4.3 (2020-10-27)
1.4.2 (2020-10-22)
- π add ControlsOf type to public API (8423c5a)
1.4.1 (2020-10-22)
- π add ControlOf type to public API (6c44f38)
1.4.0 (2020-10-22)
1.3.1 (2020-09-16)
- make sure errors$ is nexted when setErrors is called manually (ce820fc)
1.3.0 (2020-08-27)
- better mergeErrors(null) support (9925e49)
1.2.0 (2020-08-24)
- form-array: implement remove helpers (0011944)
- form-array: write spec for remove helpers (419c8c2)