npm vee-validate 2.0.0-beta.24

latest releases: 4.12.8, 4.12.7, 4.12.6...
7 years ago

Breaking Changes

  • Validator.validate now always returns a promise, similar to Validator.validateAll, previously it returned a boolean or a promise depending on the rules used which should ensure better stability. #324

Other

  • Jest test framework has been replaced with ava for better syntax.
  • bind cycle has been replaced with inserted cycle to reduce the form objects being null issues.
  • Field name aliases now uses the Element.title attribute as a fallback for data-vv-as attribute.
  • Optimize the update cycle by caching the expression.
  • Validators now apply aria-invalid and aria-required on inputs and components root elements.
  • Dictionary object has been exposed via validator.dictionary in case you needed access to it.
  • Locales can now define a _default message to show for validators that do not have a message.
  • Locale files has been built properly, you can import them directly from the node_modules and they should work correctly, if you include them in a script tag they will be auto installed if vee-validate is available globally.
  • Added Validator.addLocale(object locale) method to make installing locales easier, the method is available both on the instances and statically.

Don't miss a new vee-validate release

NewReleases is sending notifications on new releases.