npm vee-validate 2.0.0-rc.20

latest releases: 4.12.8, 4.12.7, 4.12.6...
6 years ago

🐛 Fixed

  • Vue's built in components will no longer be affected by the plugin and provide their parent's validator to their children. Affected components are keep-alive, transition, transition-group. This issue prevented children of said components from injecting the intended validator instances. #891 #929

✨ Enhancements

  • validator.reset now resets the aria attributes on the elements. #906
  • validator.reset now returns a promise when the reset process is done. #843 thanks @SirKitboard for PR #934
  • Date rules now accept Date values which allows custom components to emit date values. #901
  • Exposed the mixin and directive properties to allow specific component installation. #778 #914 and you can use the $_veeValidate object on your ctor to define the plugin configuration for that component.
import { directive, mixin } from 'vee-validate';

export default {
  mixins: [mixin],
  directives: { validate: directive },
  $_veeValidate: {
    // vee-validate config
  }
};

🛠 Misc

  • Added flow static type checking for some portions of the code base.

Don't miss a new vee-validate release

NewReleases is sending notifications on new releases.