ngrx-forms
Advanced tools
Changelog
3.0.0
This release requires TypeScript >=2.8.0 for the conditional type support. It also requires Angular >= 6.1.0 for compatibility with that TypeScript version.
cast
utility function since it is obsolete due to proper control type inferenceaddArrayControl
: move state
parameter to first position for uncurried overload (ab094b8)removeArrayControl
: move state
parameter to first position for uncurried overload (5a5aa17)addGroupControl
: move state
parameter to first position for uncurried overload (b6da5ee)removeGroupControl
: move state
parameter to first position for uncurried overload (a9035ce)setErrors
: rework to support different parameter combinations for errors (i.e. single error object, array of error objects, and rest parameters) and move state
parameter to first position for uncurried overload (15ea555)setUserDefinedProperty
: move state
parameter to first position for uncurried overload (520c384)setValue
: move state
parameter to first position for uncurried overload (1a69795)validate
: move state
parameter to first position for uncurried overload and add rest param overloadsupdateArray
, updateGroup
, and updateRecursive
update functions it is now invalid to call any of these functions without parameters (which made no sense anyway) but it is still possible to call the functions with an empty array as parameter (which is useful in dynamic situations)payload
property from all actions and move corresponding properties into action itself (6f955e9)createFormGroupReducerWithUpdate
with createFormStateReducerWithUpdate
(which takes any kind of form state, it also behaves differently in that it only applies the update if the form state changes as part of reducing the action, see the user guide for more details) (1b6114c)readonly
to make it more clear the state is not meant to be modified directly (291e0da)isDirty
, isEnabled
, isTouched
, and isSubmitted
when the state is changed instead of always recomputing the values of these properties based on the state's child states (e.g. the state is not automatically disabled when all its child states are disabled, it is not automatically marked as pristine if it was dirty and all its child states are marked as pristine or all children are removed, etc.) (9202d1e), closes #68formStateReducer
function, a reducer which can reduce any kind of form state and is correctly typed due to conditional type inference (48eaaeb)updateArray
to support different parameter combinations for update functions (i.e. single function, array of functions, and rest parameters) (f82abf8)updateGroup
to support different parameter combinations for update function objects (i.e. single object, array of objects, and rest parameters) which reduces the probability of false type inference results (0bb1ca7)updateRecursive
to support different parameter combinations for update function objects (i.e. single object, array of objects, and rest parameters) (96121c3)updateArrayWithFilter
update function which works the same as updateArray
except that it also takes a filter function that is applied to each array element to determine whether the update function should be applied (0b66a6f)notEqualTo
validation function (851a1ed)ActionReducer
(they will still throw an error if the state is undefined
) (f3b5fea)undefined
values for all validation functions (6cce8d0, thanks @romankhrystynych for his contribution in #65), closes #64errors
property on form states by using module augmentation inside of validation module to add well defined error properties to ValidationErrors
interface (e202e65)<a name="2.3.6"></a>
Changelog
2.3.2
<a name="2.3.1"></a>