Skip to content

Instantly share code, notes, and snippets.

@logaretm
Last active November 30, 2016 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logaretm/7377c742a9465d237693ed346b58025b to your computer and use it in GitHub Desktop.
Save logaretm/7377c742a9465d237693ed346b58025b to your computer and use it in GitHub Desktop.

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.
@jgb-solutions
Copy link

Really nice update @logaretm. Will use it later today. And if there are any issues I'll make sure to tell. Good job!

@nilgradisnik
Copy link

I had a pretty rough upgrade path to 2.0.0-beta.16.

  1. Non required validator rules get triggered now on calling validateAll() where in beta.14 they didn't
  2. Getting Uncaught TypeError: This library (validator.js) validates strings only when validating an empty input filed for URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment