vee-validate 2.0.0-beta.15 Changelog:
- All data-* attributes has been prefixed with
vv
to ensure no conflicts arise. - The validator now uses validate.js for the following rules: email, url, ip, numeric
- New rules:
min_value
: compares against a minimum numeric value.max_value
: compares against a maximum numeric value.credit_card
: validates a credit card number.
- The validator now validtes on input and on blur by default.
- You can specify the input events that trigger validation using data-vv-validate-on
- fix a bug where date_format wouldn't work properly with colons in the format.
- Add support for custom components.
- Add selector behavior to the 'errors.first()', 'errors.has()' methods.
- Use getAttribute instead of datasets to support IE9.
- validateAll now always returns a promise regardless if you have passed parameters or not, it also doesn't rely on events anymore to trigger validation.
- confirmed rule now doesn't require a target field name anymore, unless specified the current field name will be suffixed with '_confirmation'.
- New Locales:
- Korean (Locale).
- Georgian (Locale).
- Russian (Locale).
- Swedish (Locale).
- Polish (Locale).
- validators now share a global locale configuration, setLocale is now available as a static method. setDefaultLocale static method has been removed.
- Fix an issue where a detached field will still have errors present (v-for and v-if).
- Add the ability to remove rules using 'validator.remove()' available both statically and on instances. be careful when using this.
Really nice update @logaretm. Will use it later today. And if there are any issues I'll make sure to tell. Good job!