github redux-form/redux-form v1.0.0

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

I have seen the error of my non-semver-following ways, and now promise to increment the MAJOR version (X.0.0) for every breaking change going forward, MINOR version (0.X.0) for new features, and PATCH version (0.0.X) for bug fixes, so you may feel free to use ^ and ~ modifiers in your dependencies list.

☑️ Added many unit tests, although more are needed for the reduxForm component.
☑️ ⚠️ Updated connectReduxForm() API, moving all parameters to a config object. This will make adding non-breaking features a lot easier in the future.
☑️ ⚠️ The .async() API has gone away. That information is just placed in the config object.

Migration Guide

connectReduxForm

v0.6
ContactForm = connectReduxForm(
  'contact',
  ['name', 'address', 'phone'],
  validateContact
)(ContactForm);
v1.0
ContactForm = connectReduxForm({
  form: 'contact',
  fields: ['name', 'address', 'phone'],
  validate: validateContact
})(ContactForm);

async

v0.6
function asyncValidateContact() {};
ContactForm = connectReduxForm(
  'contact',
  ['name', 'address', 'phone'],
  validateContact
).async(asyncValidate, 'name', 'phone')(ContactForm);
v1.0
function asyncValidateContact() {};
ContactForm = connectReduxForm({
  form: 'contact',
  fields: ['name', 'address', 'phone'],
  validate: validateContact,
  asyncValidate: asyncValidateContact,
  asyncBlurFields: ['name', 'phone']
})(ContactForm);

👍 That's it! Go forth and code forms!

Don't miss a new redux-form release

NewReleases is sending notifications on new releases.