🐛 Fixed
- Fixed an issue where a field does not re-validate when the rules change to a falsy value. #728
- Fixed
required
flag not updating correctly when the rules change for a field. #747 - Fixed field classes and negated flags not updating correctly when using
validator.flag
. - Fixed an issue that prevented the fields flags from being cleaned properly when a field is detached/removed. #751
- Fixed an issue that caused infinite loop when passing rules as an object with an array as a param. #752
- Fixed an issue that displayed a false-positive error when passing a value to
after
andbefore
rules instead of a selector. #754
✨ Enhancements:
- Add human readable formatting for
size
rule error messages for most locales. #742 - New Plugin API allows you to extend
vee-validate
with 3rd party plugins or your own. - Added
firstNot
method to the error bag, which allows you to select an error message that does not match a specific rule. #737 size
messages has been updated to provide a more human readable size in error messages. #742Validator.clean
now also resets fields flags.
📐 New Rules 📏
- Added
integer
rule which behaves the same asnumeric
except it also allows negative values. #746 - Added
length
rule which validates arrays/strings/enumerables lengths against an exact length, providing a second argument will make the rule match the value length in that range (min, max).
Deprecations
validator.clean
has been renamed tovalidator.reset
.