Breaking Changes
Validator.validate
now 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
ava
for better syntax. bind
cycle has been replaced withinserted
cycle to reduce the form objects being null issues.- Field name aliases now uses the
Element.title
attribute as a fallback fordata-vv-as
attribute. - Optimize the update cycle by caching the expression.
- Validators now apply
aria-invalid
andaria-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.