npm vee-validate 2.1.4

latest releases: 4.13.2, 4.13.1, 4.13.0...
5 years ago

🐛 Fixes

  • cancel delayed/on-going validation after calling reset() #1727
  • changed flag was not in sync correctly in ValidationProvider slot scope.
  • Fix validator.reset not respecting vmId when clearing errors (#1714) (#1716) thanks to @jcupps
  • Directive rules now take precendence over inferred rules #1706

🛠 Enhancements

  • Validation Components are now added to TS typings (#1715) thanks to @cexbrayat
  • mapFields helper is now added to TS typings (#1713) thanks to @cexbrayat
  • errors and fields injections are now added to Vue Components TS typings #1704 (#1710) thanks to @cexbrayat
  • Validator Constructor options are marked as optional in TS typings thanks to @sebastianks
  • Inferred rules are now disabled by default and can be enabled by setting validity option to true. #1717
  • Fix initial Undefined values validation in ValidationProvider. #1719
  • Added validate method in ValidationProvider slot scope which allows validating non v-model bound inputs and advanced handling over validation events.
  • Added reset method in ValidationProvider slot scope for template-triggered resets.
  • Added validate method in ValidationObserver with a Promise-like interface to chain methods after successful validation.
  • Added reset method in ValidationObserver for template-triggered form resets.
  • ValidationObserver no longer requires a scoped-slot to be present, this is useful if you are only interested in the observer ref to trigger validations and resets and not interested in the slot-scope data (nothing in the template changes based on the form state).

As usual, there are multiple localization enhancements in this release as well.

Don't miss a new vee-validate release

NewReleases is sending notifications on new releases.