npm final-form 2.0.0
v2.0.0

latest releases: 4.20.10, 4.20.9, 4.20.8...
6 years ago

New Features

  • Each field can now specify its own isEqual function for calculating pristine and dirty. This enables arbitrary values. Defaults to ===. #46 final-form/react-final-form#59
  • Each field can now provide a list of other fields for which to run field-level validation when the current field changes. #46 #37

⚠️ BREAKING CHANGE ⚠️

In v1.x.x:

form.registerField(
  name,
  subscriber,
  subscription,
  validate
)

In v2.x.x:

form.registerField(
  name,
  subscriber,
  subscription,
  {
    isEqual,
    validate,
    validateFields
  }
)

Don't miss a new final-form release

NewReleases is sending notifications on new releases.