vuelidate

Simple, lightweight model-based validation for Vue.js

MIT License

Downloads
2.1M
Stars
6.9K
Committers
87

Bot releases are hidden (Show)

vuelidate -

Published by dobromir-hristov over 3 years ago

Features

  • core: add external validations support via $externalResults (#837), closes #824 (b259587)
  • validators: add a new forEach helper, and @vuelidate/components package (#880) (102c6cd)
vuelidate -

Published by dobromir-hristov over 3 years ago

Features

  • core: add external validations support via $externalResults (#837), closes #824 (b259587)
vuelidate -

Published by dobromir-hristov over 3 years ago

2.0.0-alpha.17 (2021-06-07)

Features

  • Added type of each validator to $params.

Bug Fixes

  • validators: async handling of and, or. Change requiredIf and requiredUnless to sync only (#864) (6e7eedb)
  • validators: requiredIf and requiredUnless should now revalidate properly, on prop change

BREAKING CHANGES

  1. Async validators passed to and and or must be wrapped in withAsync.
  2. requiredIf and requiredUnless no longer work with functions, returning a Promise.
vuelidate -

Published by dobromir-hristov over 3 years ago

Bug Fixes

vuelidate -

Published by dobromir-hristov over 3 years ago

2.0.0-alpha.17 (2021-05-18)

Bug Fixes

  • types: add async custom validator response type (#855), closes #854 (0b2c4b7)
vuelidate -

Published by dobromir-hristov over 3 years ago

2.0.0-alpha.18 (2021-05-23)

Code Refactoring

  • core: revert back to assuming sync validators via computed and using withAsync for async validators (#860) (d45ea36)

BREAKING CHANGES

  • core: Async validators must be wrapped in withAsync
vuelidate -

Published by dobromir-hristov over 3 years ago

2.0.0-alpha.13 (2021-02-20)

Code Refactoring

  • rename $invalid response property to $valid (#808) (9f5d3e0)

BREAKING CHANGES

  • It used to be $invalid, but that did not make any sense, as the return value was identical to boolean validators.
vuelidate -

Published by dobromir-hristov over 3 years ago

Bug Fixes

  • core: remove isProxy and implement own (95706a3)
vuelidate -

Published by dobromir-hristov over 3 years ago

Code Refactoring

  • core: change all validators to be async, removes withAsync helper (#795) (3a76cd6)
vuelidate -

Published by dobromir-hristov over 3 years ago

Bug Fixes

  • core: add fixes for Vue 2 (e4ce82d)
  • types: Updated useVuelidate global config types (#804) (4ef983b)

Code Refactoring

  • core: change all validators to be async, removes withAsync helper (#795) (3a76cd6)

Features

  • core: Support returning none boolean data from validators. (#739) (caf0eb8)

BREAKING CHANGES

  • core: Unit tests will require users to always use nextTick between changes.
vuelidate -

Published by dobromir-hristov over 3 years ago

2.0.0-alpha.9 (2021-02-04)

Features

  • add global configs, remove mixin, add silentErrors, lazy mode (#790) (22cd7c5), closes #670
  • allow scoping of component validations, fixes: #719 (#791) (d7a8797)

BREAKING CHANGES

  • Validations are no longer lazy by default, you need to specify $lazy: true to each, or at the top using the globalConfig.
vuelidate -

Published by dobromir-hristov over 3 years ago

Bug Fixes

  • build: Fix issues with installing in npm@7
vuelidate -

Published by dobromir-hristov almost 4 years ago

2.0.0-alpha.7 (2020-11-02)

Bug Fixes

  • core: fix VuelidatePlugin type to accept App argument (#745) (0fc3e74)
  • core: pass path as parentKey to nested setValidations (#746) (3d42c60)
vuelidate -

Published by dobromir-hristov about 4 years ago

Vuelidate Core

Bug Fixes

  • core: allow for no validation rules when using useVuelidate (5119f05)
  • core: ensure registerAs is always valid (b01de4b)
  • core: fallback $params to empty object. Properly propagate $pending up to the root (0b0d0d3)
  • core: fix $model on state (37b65d4)
  • core: make $errors a reactive object (3848e7b)
  • core: move validations into $v computed for correct this (55017c5)
  • remove unnecessary watch options (b8c5181)
  • core: normalize validator output (af116cc)
  • core: unwrap $params in $message function (e8e9074)
  • core: unwrap child results (fe2c6f4)
  • core: unwrap state when creating validation results (99f9029)
  • core: use cached setValidations state (99d4728)
  • vuelidate: remove double nested result injection (33aff45)

Features

  • core: 🚀 Add context-aware validation support (771828e)
  • core: $anyDirty should fallback on $dirty (6b10bb4)
  • core: add mixin support for old options API (682bf74)
  • replace vue-cli with vite (#664) (c155404)
  • core: improve docs and add $propertyPath property to validators (9ec284c)
  • core: lazy validations (8b95a0b)
  • core: make message an empty string by default (cb7dc1d)
  • core: make RegisterAs optional; use comp name & uid as key (2fa7976)
  • core: rename variables after review (3bb7341)
  • core: update to Vue 3 (35a49c3)
  • add $dirty cache WIP (5725a38)
  • Add $touch and $reset to root. (#626) (a80c164)
  • add support for $model with reactive (75c821d)
  • add validate function and other improvements (#663) (0d1ca73)

Validators

Bug Fixes

  • validators: add unwrap calls to the core helpers like "req", "len", "regex", along with some validators (b6ec948)

Features

  • validators: add promise as property resolver (aab11d1)
  • validators: expose an isTruthy helper (dc2235e)
  • add $dirty cache WIP (5725a38)
  • add validate function and other improvements (#663) (0d1ca73)
vuelidate -

Published by dobromir-hristov almost 5 years ago

0.7.5 (2020-01-13)

Bug Fixes

  • Fix $anyError to properly reflect errors from nested properties. (#316) closes #315
  • Fix integer validator (#335) closes #334
  • Fix required to not pass white space as valid #455
vuelidate - 0.7.4

Published by Frizi over 6 years ago

  • Fixed $params in web bundle (#302)
vuelidate - 0.7.3

Published by Frizi over 6 years ago

Fixed babelrc to include older browsers

vuelidate - v0.7.1

Published by Frizi over 6 years ago

  • Introduced $model and $iter syntax
  • Added $anyDirty and $anyError validation properties
  • Added validators: not

Breaking change:

  • Required validator now accepts false value as valid (#156)

Warning:

  • this release had too optimistic babel config. Use newer versions to avoid this issue.
vuelidate - 0.6.2

Published by Frizi over 6 years ago

  • fixes memory leak issues that prevented cleaning up destroyed instances with validation options (#255)
  • added integer and decimal validator (#245)
  • url validator is now case insensitive (#221)
vuelidate - v0.6.1

Published by Frizi about 7 years ago

  • Do not fail if parent object is non object (#209)
  • Support EUI-48 MAC address in macAddress validator (#208)
  • Support Date objects in minValue and maxValue validators (#207)
  • Allow setting array to undefined and null when using $each (#204)
Package Rankings
Top 0.83% on Npmjs.org
Top 20.69% on Repo1.maven.org