Skip to content

feat: Implement standard schemas #5051

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

feat: Implement standard schemas #5051

wants to merge 3 commits into from

Conversation

logaretm
Copy link
Owner

@logaretm logaretm commented Jun 7, 2025

What

  • Implements standard schema support.
  • Drops Yup support.
  • Marks valibot/zod resolver libraries as no-op and marked them for deprecation.
  • Implements basic conversion layer for Yup or JOI to standard schemas.

This can be breaking so we need to work on a migration guide in the docs section.

Copy link

changeset-bot bot commented Jun 7, 2025

🦋 Changeset detected

Latest commit: 277a34a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
vee-validate Major
@vee-validate/valibot Major
@vee-validate/rules Major
@vee-validate/nuxt Major
@vee-validate/joi Major
@vee-validate/yup Major
@vee-validate/zod Major
@vee-validate/i18n Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Jun 7, 2025

Deploy Preview for vee-validate-docs canceled.

Name Link
🔨 Latest commit 277a34a
🔍 Latest deploy log https://app.netlify.com/projects/vee-validate-docs/deploys/6844411943f2410008d6246a

@logaretm logaretm linked an issue Jun 7, 2025 that may be closed by this pull request
@logaretm logaretm mentioned this pull request Jun 7, 2025
Copy link

codecov bot commented Jun 7, 2025

Codecov Report

Attention: Patch coverage is 86.12100% with 39 lines in your changes missing coverage. Please review.

Project coverage is 90.09%. Comparing base (9803aa2) to head (d8551a7).

Files with missing lines Patch % Lines
packages/yup/src/index.ts 67.36% 31 Missing ⚠️
packages/zod/src/index.ts 0.00% 3 Missing and 1 partial ⚠️
packages/joi/src/index.ts 93.10% 2 Missing ⚠️
packages/nuxt/src/module.ts 0.00% 0 Missing and 1 partial ⚠️
packages/vee-validate/src/utils/common.ts 97.22% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5051      +/-   ##
==========================================
+ Coverage   89.36%   90.09%   +0.73%     
==========================================
  Files          93       93              
  Lines        8046     7408     -638     
  Branches     1394     1258     -136     
==========================================
- Hits         7190     6674     -516     
+ Misses        849      726     -123     
- Partials        7        8       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Zod 4
1 participant