Skip to content

Releases: redux-form/redux-form

v7.2.1

18 Jan 17:03
Compare
Choose a tag to compare

Bug Fixes

  • Fix asyncValidate when asyncBlur/ChangeFields are provided #3647 #3645
  • Fix Immutable FieldArrays #3692 #3489
  • Fix field-level validation on previously emptied FieldArray #3697
  • Export clearAsyncError #3709 #3708
  • Ensure errors thrown from submit handler are not silenced #3744 #3303
  • Fix submit crashing when asyncBlurFields or asyncChangeFields are given #3733 #3658
  • Fix validation after duplicate field unmount #3756 #3688
  • Fix fields re-rendering every time due to regression introduced with flow typings #3758
  • Better errors thrown from onSubmitSuccess #3723 #3636
  • Fix async/submit errors getter for nested fields #3755

v7.2.0

27 Nov 17:21
Compare
Choose a tag to compare

Features

Bug Fixes

  • Fixed hot reloading problem with React 16. #3615 #3435
  • Export updateSyncWarnings() action. #3631

Flow Fixes

v7.1.2

25 Oct 20:07
Compare
Choose a tag to compare

Features

  • Previous form values are now passed to onChange() #3530

Bug Fixes

Flow Fixes

  • Changed meta prop type to any #3502

v7.1.1

10 Oct 14:21
Compare
Choose a tag to compare

I 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.

Bug Fixes

  • Fixed plugin API bug introduced in v7.1.0 #3495 #3490
  • Rolled back to immutable@3.8.2 03c37d7 #3493
  • Fixed flow-bin version to 0.54.0 before the breaking change that caused immutable@3.8.2 to fail.

v7.1.0

06 Oct 14:42
Compare
Choose a tag to compare

🎉 TL;DR: React 16 and Jest! 🎉

⚠️ Don't use this version if you're using ImmutableJS. Use v7.1.1 ⚠️

Bug Fixes

  • Update Field and FieldArray name when sectionPrefix has changed in the context #3229
  • Fixed bug where FieldArray was not rerendering after swap() #3409
  • Fixed statics hoisting bug #3458 #2626 #2230
  • Changed immutable/deepEqual to use === like plain/deepEqual was #3479 #3357
  • React 16 - Prevented deepEqual checks on props.children in shouldComponentUpdate(), a huge performance boost #3480 #3461 #3481
  • Fixed broken checkbox behavior #3482 #2857 #2922 #3162 #3437
  • Fixed React Native onChange bug #3460 #3153 #3238
  • Fixed deepEqual() bug to make null != false #3462 #2600
  • Used deepEqual() to compare radio inputs #3430
  • Fixed plugin() API bug #3486 #2935

Flow Fixes

  • Don't use import * from React to avoid deprecation warnings #3387 #3385

Features

  • Added name parameter to field-level validator #3364 #3350
  • Exported FieldArray propTypes #3468 #2447
  • Added valuesMapper to formValues HOC #3432
  • Separated shouldValidate() into shouldError() and shouldWarn(), deprecating shouldValidate() #3464 #3449 #3485
  • New getFormError() selector to get form-wide error #3483 #3463

Maintenance

v7.0.4

05 Sep 21:06
Compare
Choose a tag to compare

Bug Fixes

  • Don't swallow async errors when form is not valid. #3300 #1367

Flow Fixes

  • Fixed action creator flow type definitions. #3283 #3278
  • Fixed onBlur and onChange callback flow types. #3324
  • 🎉 Upgraded to Flow 0.54 🎉 #3378 #3345

v7.0.3

26 Jul 17:19
Compare
Choose a tag to compare

Flow Fixes

  • Field and FieldArray had the wrong type specified for their props.
  • Flow types weren't being shared into the published es folder.
  • The Dispatch type should've been Dispatch<*>. #3247 #3252

Bug Fixes

  • Fixed "uncaught exception in promise" error during async validation. #3227

v7.0.2

24 Jul 20:33
Compare
Choose a tag to compare

Flow Fixes

  • FieldProps were being exported incorrectly. #3239 #3213
  • Action creator types properly exported. #3214 #3224

Bug Fixes

  • Fixed tricky bug with UNREGISTER action not removing deep sync errors. #3219 #3189
  • Fixed bug with FormSection name prop updating. #3210 #3202

v7.0.1

18 Jul 21:13
Compare
Choose a tag to compare

Bug Fixes

  • Fixed major field-level validation that broke between v6.8.0 and v7.0.0. #3204 #3172
  • Fixed bug involving the custom prop in the importable propTypes definition #3199
  • Fixed bug where sync errors and warnings were not defaulting to {} when in immutable.js mode. #3201 #3196
  • Fixed bug in formValues() selector. #3203 #3202

Features / Docs

  • Exported Flow types for HOC props. #3205 #3175
  • Added new doc page to explain importing the aforementioned Flow types.

v7.0.0

11 Jul 18:48
Compare
Choose a tag to compare

v7 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:

🎉 Flow Support 🎉

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.

⚠️ (Tiny) Breaking Change ⚠️

  • 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.

Maintenance

  • Added React v16 to peer dependencies in preparation for its release. #3111 #2842

Bug Fixes

  • Minor bug fix related to immutableProps introduced in v6.8.0. #3052 #3048
  • Fixed bug where a field got unregistered even if there was another copy of the same field on the page. #3064
  • Efficiency improvement related to syncErrors and syncWarnings to avoid needless rerendering. #3072
  • Fixed bug with async errors being cleared wrongly on STOP_ASYNC_VALIDATION. #3068 #2953
  • Fixed bug involving FieldArray rerendering. #3089 #3008
  • Fixed bug involving "missing" values in arrays. #3105 #3095
  • Fixed bug where fields were not rerendering when their error or warn props changed. #3094 #3012