Releases: logaretm/vee-validate
Releases · logaretm/vee-validate
v4.5.11
🐛 Bug Fixes
- Ignored validation of fields during unmounting #3748 (3d49faa)
🆕 New Features
useField
now allows the usage of array of functions instead of a single function to perform validation (#3725) #3726 thanks to @gbaquedano
const {
value: value,
errors: errors,
} = useField(
'field',
[
val => (val ? true : REQUIRED_MESSAGE),
val => ((val as string)?.length >= 3 ? true : MIN_MESSAGE)
],
{ bails: false }
);
v4.5.10
🐛 Bug Fixes
- Fixed an issue with da.json locale which caused the JSON file to not parse correctly (9485310)
v4.5.9
🐛 Bug Fixes
- Set
meta.validated
for fields validated by the form API's validate
(ad9fa9d)
🌏 i18n
- Updated locale for ko, ja, zh-CN, zh-TW (d5fc732)
v4.5.8
🐛 Bug Fixes
- Fixed a general issue when a field changes its name and has errors at the old name path #3664 (f736e62)
- Fixed an issue where
FieldArray.swap
function wasn't working when either indices had falsy values (40afbd9)
v4.5.7
🐛 Bug Fixes
- Always ensure
update:modelValue
listener existing on field
binding object #3583 (6a53e80)
🌏 i18n
v4.5.6
🐛 Bug Fixes
- Use
watchEffect
to calculate FormContext.meta
instead of computed
#3580 (e8729dc)
As a result of this, there should be a performance improvement depending on the size of your forms
👕 TypeScript
🌏 i18n
- Added missing Estonian locale messages and fixes by (#3584) @Tarinu
v4.5.5
🐛 Bug Fixes
- Fixed an issue where singular checkboxes would be toggled when the form is reset #3551 (cad12ba)
v4.5.4
👕 TypeScript
- Published various internal types that are considered stable #3548 (88ed4e7)
v4.5.3
👕 TypeScript
- Added scoped slot types for
Field
, Form
, FieldArray
and ErrorMessage
components #3534 (#3537)