|
3 | 3 | <a name="2.0.0"></a> |
4 | 4 | ### 2.0.0 |
5 | 5 |
|
6 | | -#### Breaking Changes |
7 | | - |
8 | | -* remove support for last keydown code tracking on form controls (this feature has been superseded by user defined properties which allow associating any kind of metadata with a control) |
9 | | -* rename `groupUpdateReducer` to `createFormGroupReducerWithUpdate` in order to make it clearer that the function itself is not a reducer |
10 | | -* remove erroneously exposed function `createChildState` from public API |
11 | | -* change `option` element `value` bindings to work correctly for all primitive data types thereby removing the need for `ngValue` bindings |
12 | | -* trying to set an error with a key prefixed with `$` will now throw an error since the `$` prefix is used to mark async errors |
13 | | -* applying the `ngrxFormControlState` directive to a form element will now set the element's `id` attribute to the ID of the state (thereby overriding any already present `id`) |
14 | | -* the `isDirty` property for form controls is now not set automatically the first time the state's value changes, but instead it is set manually from the `NgrxFormControlDirective` the first time the underlying `FormViewAdapter` or `ControlValueAccessor` reports a new value; this means if you were e.g. using the `setValue` update function in your reducer before this will now not mark the state as `dirty` anymore |
15 | | -* rename `addControl` update function to `addGroupControl` |
16 | | -* rename `AddControlAction` to `AddGroupControlAction` (also renaming its `type` from `ngrx/forms/ADD_CONTROL` to `ngrx/forms/ADD_GROUP_CONTROL`) |
17 | | -* rename `removeControl` update function to `removeGroupControl` |
18 | | -* rename `RemoveControlAction` to `RemoveGroupControlAction` (also renaming its `type` from `ngrx/forms/REMOVE_CONTROL` to `ngrx/forms/REMOVE_GROUP_CONTROL`) |
19 | | - |
20 | 6 | #### Features |
21 | 7 |
|
22 | 8 | * add support for arrays of form controls ([19d4e49](https://github.com/MrWolfZ/ngrx-forms/commit/19d4e49)) |
|
33 | 19 | * added overloads for many update functions that make casting the state unnecessary in certain situations |
34 | 20 | * added lots of inline comments to the API making it easier to understand what certain functions do right in your IDE |
35 | 21 |
|
| 22 | +#### Breaking Changes |
| 23 | + |
| 24 | +* remove support for last keydown code tracking on form controls (this feature has been superseded by user defined properties which allow associating any kind of metadata with a control) |
| 25 | +* rename `groupUpdateReducer` to `createFormGroupReducerWithUpdate` in order to make it clearer that the function itself is not a reducer |
| 26 | +* remove erroneously exposed function `createChildState` from public API |
| 27 | +* change `option` element `value` bindings to work correctly for all primitive data types thereby removing the need for `ngValue` bindings |
| 28 | +* trying to set an error with a key prefixed with `$` will now throw an error since the `$` prefix is used to mark async errors |
| 29 | +* applying the `ngrxFormControlState` directive to a form element will now set the element's `id` attribute to the ID of the state (thereby overriding any already present `id`) |
| 30 | +* the `isDirty` property for form controls is now not set automatically the first time the state's value changes, but instead it is set manually from the `NgrxFormControlDirective` the first time the underlying `FormViewAdapter` or `ControlValueAccessor` reports a new value; this means if you were e.g. using the `setValue` update function in your reducer before this will now not mark the state as `dirty` anymore |
| 31 | +* rename `addControl` update function to `addGroupControl` |
| 32 | +* rename `AddControlAction` to `AddGroupControlAction` (also renaming its `type` from `ngrx/forms/ADD_CONTROL` to `ngrx/forms/ADD_GROUP_CONTROL`) |
| 33 | +* rename `removeControl` update function to `removeGroupControl` |
| 34 | +* rename `RemoveControlAction` to `RemoveGroupControlAction` (also renaming its `type` from `ngrx/forms/REMOVE_CONTROL` to `ngrx/forms/REMOVE_GROUP_CONTROL`) |
| 35 | + |
36 | 36 | #### Bugfixes |
37 | 37 |
|
38 | 38 | * fix issue that caused bundled library to be larger than required due to external dependencies being included in the bundle (drastically reducing its size) |
|
0 commit comments