This release merges in the #1392 PR which includes several breaking changes and huge improvements to vee-validate.
☠ Breaking Changes
validator.validate
signature was changed to bevalidator.validate(fieldDescriptor: string, value ?: string, opts: ValidationOptions)
.- Rename
.initial
modifier to.immediate
which should make its functionality clearer..initial
modifier will still work at the time being.
⚡ Enhancements
- Single validator instance: Your app now will only create one validator instance, reducing the memory footprint of vee-validate especially in SSR apps.
- Custom rules: can be configured to be skipped on initial validation, and able to request
date_format
to be executed before them, via extend() options. - Use the internal Vue instance to create reactive data #332
Issues ✔
- VueI18n integration removing
attributes
andcustom
from the dictionary #1385 - Use custom parser instead of regex for errorbag selectors closes #1422
- Force the change event only if the input event was configured for radio and checkboxes closes #1418
- Avoid deleting field flags if two fields share the same name while being toggled by
v-if
closes #1410 - Fix
String.startsWith
usage closes #1406