A Higher Order Component using react-redux to keep form state in a Redux store
clearAsyncError
#3709 #3708onSubmitSuccess
#3723 #3636onChange()
#3530babel-jest
from dependencies. #3499 #3498 #3546includes()
with indexOf()
#3535 #3533destroyOnUnmount
flag to unregisterField()
#3559 #3558meta
prop type to any
#3502I would like to apologize for recklessly upgrading the ImmutableJS dependency to a v4.rc
in the previous release, v7.1.1
. That is a breaking change, and will be made in v8
once ImmutableJS v4.0
is officially released. 😳 Sorry about that.
v7.1.0
#3495 #3490[email protected]
https://github.com/erikras/redux-form/commit/03c37d7e19429e32e0d42810fe87ee69fe6cfab3 #3493flow-bin
version to 0.54.0
before the breaking change that caused [email protected]
to fail.v7.1.1
⚠️Field
and FieldArray
name when sectionPrefix
has changed in the context
#3229FieldArray
was not rerendering after swap()
#3409immutable/deepEqual
to use ===
like plain/deepEqual
was #3479 #3357deepEqual
checks on props.children
in shouldComponentUpdate()
, a huge performance boost #3480 #3461 #3481checkbox
behavior #3482 #2857 #2922 #3162 #3437onChange
bug #3460 #3153 #3238deepEqual()
bug to make null != false
#3462 #2600deepEqual()
to compare radio
inputs #3430plugin()
API bug #3486 #2935import * from React
to avoid deprecation warnings #3387 #3385name
parameter to field-level validator #3364 #3350FieldArray
propTypes
#3468 #2447valuesMapper
to formValues
HOC #3432shouldValidate()
into shouldError()
and shouldWarn()
, deprecating shouldValidate()
#3464 #3449 #3485getFormError()
selector to get form-wide error #3483 #3463mjackson/expect
to facebook/jest
. This was HUGE. Thanks, @skovhus!!v6.8.0
and v7.0.0
. #3204 #3172custom
prop in the importable propTypes
definition #3199{}
when in immutable.js mode. #3201 #3196formValues()
selector. #3203 #3202v7
is here!The "breaking change" that warrants this major version bump is extremely minor and will most likely only affect a small minority of you, but I have pledged to be more strict with Semantic Versioning, so it's up to 7
we go.
However, there is one exciting announcement to go along with this release:
As of v7
, redux-form
officially supports Flow for static type checking. Flow has been implemented internally in all the library's code (except for tests), and the exported API also has types provided. It even found a few bugs and bad type assumptions along the way.
I guarantee you that I have made some mistakes in doing this, and you should expect some rapid iteration on fixing the flow bugs as they are reported in the coming weeks.
undefined
and false
are now treated as NOT equal. This will affect your dirty
/pristine
state, as well as whether or not a field is rerendered when the value goes from undefined
to false
(previously it did not). Most commonly this will manifest itself in a form with no initial values that contains a checkbox: if you check the checkbox to true
, and then uncheck the checkbox (to false
) your form will be dirty
because the checkbox field's original value of undefined
is not !== false
. If you want such a form to return to pristine
after unchecking the checkbox, you will need to provide an initial value of false
for that field. #3081 #3061 #1762 #1774 #1993 #2600 #2978.v16
to peer dependencies in preparation for its release. #3111 #2842immutableProps
introduced in v6.8.0
. #3052 #3048syncErrors
and syncWarnings
to avoid needless rerendering. #3072STOP_ASYNC_VALIDATION
. #3068 #2953FieldArray
rerendering. #3089 #3008error
or warn
props changed. #3094 #3012