Breaking Changes
Validator.validatenow always returns a promise, similar toValidator.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
avafor better syntax. bindcycle has been replaced withinsertedcycle to reduce the form objects being null issues.- Field name aliases now uses the
Element.titleattribute as a fallback fordata-vv-asattribute. - Optimize the update cycle by caching the expression.
- Validators now apply
aria-invalidandaria-requiredon inputs and components root elements. - Dictionary object has been exposed via
validator.dictionaryin case you needed access to it. - Locales can now define a
_defaultmessage 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-validateis available globally. - Added
Validator.addLocale(object locale)method to make installing locales easier, the method is available both on the instances and statically.