Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

4.0.0 (Major release with breaking API changes):

Compare
Choose a tag to compare
@jurassix jurassix released this 17 Feb 01:02
· 89 commits to master since this release

4.0.0 (Major release with breaking API changes):

  • validatorData is now getValidatorData to be more idiomatic of React
  • validate now takes an error-first callback, which allows for a simpler API when validating on Submit. validate also takes an optional key as a first param that can be used to validate a single form field.
  • isValid is now a simple wrapper around this.state.errors see example for handling form submission in 4.x.x
  • clearValidations has been added to reset all current errors.
  • handleValidations now takes a second parameter error-first callback that can be used for custom handling of errors.