logaretm / vee-validate

✅ Painless Vue forms
https://vee-validate.logaretm.com/v4
MIT License
10.75k stars 1.26k forks source link

[v4] "Excluded" rule doesn't exist anymore (replaced by "not_one_of"?) #3993

Closed M1CK431 closed 1 year ago

M1CK431 commented 1 year ago

What happened?

The rule excluded doesn't exist anymore. In the playground provided in the documentation, it seems replaced by undocumented "not_one_of" rule.

Reproduction steps

<!-- string format -->
<Field name="field" rules="excluded:1,3" />
<!-- object format -->
<Field name="field" :rules="{ excluded: [1, 3] }" />

Will produce a console error about excluded validator doesn't exist.

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

Relevant log output

No response

Demo link

https://vee-validate.logaretm.com/v4/guide/global-validators#excluded

Code of Conduct

logaretm commented 1 year ago

Good catch! yes, this rule is now named not_one_of. I will update the docs and translation files. Thanks for reporting this.

M1CK431 commented 1 year ago

My pleasure! Thank you for fixing that so quickly 🙏🏼 I guess it should probably also be mentioned in a breaking changes / migration guide documentation 😉