🐛 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.