Skip to content

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.

@changeset-bot
Copy link

changeset-bot bot commented Jun 7, 2025

🦋 Changeset detected

Latest commit: 125d389

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

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

@netlify
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
@codecov
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.

@timhanlon
Copy link

Any chance of an alpha/beta release here?

@therealokoro
Copy link

I do hope we'll get support for arktype. Since its follows standard-schema

@RayGuo-ergou
Copy link

If you take a look at the code, e.g. zod plugin

import { StandardSchemaV1 } from '@standard-schema/spec';

/**
 * Transforms a Zod object schema to a StandardSchemaV1 schema
 * @deprecated No longer needed, use the zod's schema directly.
 */
export function toTypedSchema<TSchema extends StandardSchemaV1>(schema: TSchema): StandardSchemaV1 {
  return schema;
}

/**
 * @deprecated use toTypedSchema instead.
 */
const toFieldValidator = toTypedSchema;

/**
 * @deprecated use toTypedSchema instead.
 */
const toFormValidator = toTypedSchema;

export { toFieldValidator, toFormValidator };

It's actually just a wrapper around standard schema

and the core is validate standard schema like this

  const result = await context.rules['~standard'].validate(value);
  if (!result.issues) {
    return {
      value: result.value,
      errors: [],
    };
  }

This means you can just pass arktype schema, it will just work

@netlify
Copy link

netlify bot commented Aug 2, 2025

Deploy Preview for vee-validate-docs ready!

Name Link
🔨 Latest commit 125d389
🔍 Latest deploy log https://app.netlify.com/projects/vee-validate-docs/deploys/688e32bb0a6f910008a49e47
😎 Deploy Preview https://deploy-preview-5051--vee-validate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Aug 2, 2025

Deploy Preview for vee-validate-v5 ready!

Name Link
🔨 Latest commit 125d389
🔍 Latest deploy log https://app.netlify.com/projects/vee-validate-v5/deploys/688e32bb73577a00089f34d5
😎 Deploy Preview https://deploy-preview-5051--vee-validate-v5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@logaretm logaretm marked this pull request as ready for review August 2, 2025 15:29
This was linked to issues Aug 2, 2025
@logaretm logaretm merged commit 04ff47c into main Aug 2, 2025
7 checks passed
@logaretm logaretm deleted the feat/v5 branch August 2, 2025 15:57
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.

compatible issue with drizzle-zod Support for Zod 4 Supporting standard schema

5 participants