github logaretm/vee-validate vee-validate@4.0.0-beta.8

latest releases: v4.12.8, v4.12.7, v4.12.6...
pre-release3 years ago

💥 Breaking Changes

The meta API wasn't documented before due to it being still ported form v3 and did not yet receive the overhaul treatment. The docs have been updated to reflect and document any missing information.

Here is a quick list of the changes:

  • Removed redundant flags (pristine, untouched, invalid) as they can easily be computed from their opposite flags.
  • Removed combined flags (passed, failed, and validated) as they can be easily computed by combining various flags. i.e: passed = valid && touched
  • Removed the changed flag, because it is inaccurate with any type of immutable objects, which is apparent in checkboxes. If you need to compute this flag then you need to provide your own logic to diff the initial and current value.
  • Added initialValue to the meta object
  • The valid flag always starts off with false, until it has been validated. So the false value means two things: either the field was not validated, or it has been validated was found invalid. Previously this was very confusing when invalid and valid flags both were false at the same time.

Don't miss a new vee-validate release

NewReleases is sending notifications on new releases.