github redux-form/redux-form v6.5.0

latest releases: v8.3.10, v8.3.9, v8.3.8...
7 years ago

🍾 🎉 This library just passed 5,000 ⭐️'s on Github. 🎉 🍾 Thank you, all.


New Features


  • Event callbacks! - You may now pass onChange, onBlur, onFocus, etc. props to Field, and those callbacks will be called as redux-form is processing the events. Also, in your callback, you may call event.preventDefault() to prevent the event from being processed by redux-form. #2385 #2334

  • Added props to onSubmitSuccess and onSubmitFail. #2396 #2394
  • New getFormNames(state) selector. #2402 #2397
  • New getFormInitialValues(state) selector. #2460
  • Allowed multiple form names to be passed to destroy() action creator #2402
  • Added keepSubmitSucceeded config option. #2426 #1994
  • Supplied props to field-level validation functions. #2431 #2430

Bug Fixes

  • Provided form name to Field's component as a meta prop. #2400 #2386
  • Avoided unnecessary deepEqual() call for pristine. #2401 #2380
  • Removed array-findindex-polyfill. #2403 #2337
  • Fixed unexpected value updates when a radio button loses focus. #2445 #2444
  • Allowed internal storage to be a Record. #2423
  • Fixed immutable exports. #2425 #2025
  • Update Fields cached handlers when names prop changes. #2474 #2161
  • Set value properly for file inputs. #2452
  • Keep track of registration count in registeredFields. #2470 #2016 #2223 #1705 #1990
  • Replaced shallowequal with lodash isequalwith. #2506
  • Do not set FieldArray as touched on submit. #2473 #2014
  • Fields inside a FormSection now have their name props prefixed. #2464 #2121

⚠️ This last one could potentially be a breaking change, but probably nothing is depending on the unprefixed name, so we've slipped it into a feature release. Please berate @erikras on Twitter if this causes problems.


A big thanks to all the contributors, and a special thanks to @huan086, who contributed more than his fair share of PRs this iteration. 👍

Don't miss a new redux-form release

NewReleases is sending notifications on new releases.