Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump vee-validate from 4.11.8 to 4.12.0 #4173

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 27, 2023

Bumps vee-validate from 4.11.8 to 4.12.0.

Release notes

Sourced from vee-validate's releases.

v4.12.0

💣 Breaking Changes

Deprecated reactive initial values #4402 (bbecc973)

Initial values can no longer be reactive since they did not serve any purpose for being so. The recommended API for setting async initial values is by explicitly calling resetForm.

🆕 defineField API #4497

This is a new function available on useForm and is meant to replace useFieldModel, defineInputBinds and defineComponentBinds by building upon and improving those APIs.

<script setup>
import { useForm } from 'vee-validate';
const { defineField, errors } = useForm({
validationSchema: schema,
validateOnMount: true,
});
const [email, emalProps] = defineField('email', { validateOnModelUpdate: true });
const [password, pwProps] = defineField('password', { validateOnModelUpdate: true });
</script>
&lt;template>
<input v-model="email" v-bind="emailProps" />
<span>{{ errors.email }}</span>
<input  v-model="password" v-bind="pwProps" />
<span>{{ errors.password }}</span>
</div>
</template>

The docs have been updated to reflect using this new API instead of the deprecated ones. The old ones will continue to work till they get removed in next minor releases.

🆕 meta.required

Added support for meta.required state for Typed Schemas only.

That means if you are using toTypedSchema helper with either Yup, Zod, Valibot, or Global rules then it should be automatically done for you. This is a new experimental feature and may not work well with conditional schemas or dynamic ones.

For more info check the live demo link here.

🆕 DX improvements

  • feat: add label support to defineField #4530 (f9a95843)
  • feat(DX): allow getters for field arrays paths (95b701f7)

... (truncated)

Changelog

Sourced from vee-validate's changelog.

4.12.0

Minor Changes

  • bbecc973: feat: deprecate reactive initial values closes #4402

Patch Changes

  • f9a95843: feat: add label support to defineField closes #4530
  • f688896f: fix: avoid overriding paths and destroy path on remove closes #4476 closes #4557
  • 2abb8966: fix: clone values before reset closes #4536
  • e370413b: fix: handle hoisted paths overriding one another
  • 95b701f7: feat: allow getters for field arrays
Commits
  • 6675f29 chore(release): publish
  • f9a9584 feat: introduce defineField and deprecate bind API (#4497)
  • 58b470f feat: add required support for field-level schemas
  • 5940551 feat: path descriptors for typed schemas (#4561)
  • e370413 fix: handle hoisted paths overriding one another
  • f688896 fix: avoid overriding paths and destroy path on remove (#4560)
  • 7f24dd1 chore: upgrade deps and downgrade remark-gfm
  • e650e31 #4181 (#4553)
  • 3130470 test: fix failing case
  • fadcffb chore: replace deprecated packages and update vue peer deps
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [vee-validate](https://github.com/logaretm/vee-validate/tree/HEAD/packages/vee-validate) from 4.11.8 to 4.12.0.
- [Release notes](https://github.com/logaretm/vee-validate/releases)
- [Changelog](https://github.com/logaretm/vee-validate/blob/main/packages/vee-validate/CHANGELOG.md)
- [Commits](https://github.com/logaretm/vee-validate/commits/v4.12.0/packages/vee-validate)

---
updated-dependencies:
- dependency-name: vee-validate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 27, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dependabot merge

Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 27, 2023

Sorry, only users with push access can use that command.

Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 28, 2023

Superseded by #4186.

@dependabot dependabot bot closed this Nov 28, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vee-validate-4.12.0 branch November 28, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants