npm vee-validate 2.0.6

latest releases: 4.12.6, 4.12.5, 4.12.4...
6 years ago

🐛 Bug Fixes

  • Fixed vee-validate requiring vue-test-utils in package dependencies. #1219 thanks to @ryo-utsunomiya for PR #1208
  • Fixed Typescript enum issues with component ctor options #1213
  • Fixed wording in length rule English message.
  • Use safe regex for determining if a model is watchable for security and performance issues. Special thanks to Jamie Davis for helping to fix the issue.

New Stuff ✨

  • Added new ErrorComponent for displaying error messages, it is still very basic:
import { ErrorComponent } from 'vee-validate';

Vue.component('vv-error', ErrorComponent)
<input type="text" name="field" v-validate="'required'">
<vv-error for="field"></vv-error>

As you noticed it takes a string for prop which is the field name, in other words what used to be passed to errors.first. It also optionally takes a tag prop if you want to change the rendered tag for the component, which is a span by default.

This will have a very important role in the future. This feature set hasn't been yet finalized. but it includes caching, auto class binding, and more efficient rendering for very large sets of fields.

Don't miss a new vee-validate release

NewReleases is sending notifications on new releases.