Skip to content

v1.0.0

Choose a tag to compare

@erikras erikras released this 31 Aug 20:52
· 1975 commits to master since this release

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!