feat: add Yup replacements - #844
Open
yslpn wants to merge 2 commits into
Open
Conversation
43081j
reviewed
Jul 30, 2026
| @@ -0,0 +1,61 @@ | |||
| --- | |||
| description: Modern alternatives to the yup package for TypeScript schema validation | |||
Contributor
There was a problem hiding this comment.
i would actually name this file something like schema-validation.md i think, and update the description:
Suggested change
| description: Modern alternatives to the yup package for TypeScript schema validation | |
| description: Modern alternatives for TypeScript schema validation |
@gameroman what do you think? my reasoning is that we'll inevitably add more schema libraries over time. so this is a similar situation to fetch probably
Contributor
There was a problem hiding this comment.
Maybe, in that case the whole doc should be changed probably to not be yup-specific?
Author
There was a problem hiding this comment.
@gameroman @43081j I think it's a good idea to make it general.
If we reach an agreement, I'm ready to rewrite the entire document, making it less specific.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
Resolves #822
📚 Description
Adds
yupto the preferred replacements manifest with two modular, tree-shakable alternatives:valibotzod/mini, provided byzod@^4.0.0The shared schema-validation guide is designed for reuse by future schema-library mappings. It documents required fields, empty strings, validation pipelines/checks, async validation, type coercion, unknown object keys, and Zod Mini error locales. Both alternatives support Standard Schema.
The guide links to Zod Mini documentation and Schema Benchmarks without embedding version-sensitive benchmark figures.
I am a maintainer of Valibot.
✅ Validation
pnpm lintnode scripts/validate-pr.ts