Skip to content

Releases: logaretm/vee-validate

v4.5.11

10 Apr 18:25
Compare
Choose a tag to compare

🐛 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

08 Mar 18:10
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fixed an issue with da.json locale which caused the JSON file to not parse correctly (9485310)

v4.5.9

08 Mar 18:09
Compare
Choose a tag to compare

🐛 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

23 Jan 15:29
Compare
Choose a tag to compare

🐛 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

07 Dec 23:03
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Always ensure update:modelValue listener existing on field binding object #3583 (6a53e80)

🌏 i18n

v4.5.6

17 Nov 02:02
Compare
Choose a tag to compare

🐛 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

v3.4.14

08 Nov 22:28
Compare
Choose a tag to compare

🌎 i18n

  • Add missing Turkish locale translations by @yoktav in #3573

v4.5.5

01 Nov 23:09
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fixed an issue where singular checkboxes would be toggled when the form is reset #3551 (cad12ba)

v4.5.4

20 Oct 22:59
Compare
Choose a tag to compare

👕 TypeScript

  • Published various internal types that are considered stable #3548 (88ed4e7)

v4.5.3

20 Oct 22:56
Compare
Choose a tag to compare

👕 TypeScript

  • Added scoped slot types for Field, Form, FieldArray and ErrorMessage components #3534 (#3537)