-
-
Notifications
You must be signed in to change notification settings - Fork 46
feat(core): #528 use StandardSchema for validation #570
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
Conversation
🦋 Changeset detectedLatest commit: 0495fe4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@content-collections/cli
content-collections
@content-collections/installer
@content-collections/core
@content-collections/integrations
@content-collections/markdown
@content-collections/mdx
@content-collections/next
@content-collections/remix-vite
@content-collections/vinxi
@content-collections/vite
commit: |
Use every StandardSchema compliant library for validation. Closes: #528
65dfbb4 to
989f94a
Compare
Explain the use of Standard Schema in the configuration. Add a page that describes the migration process.
89e26ec to
9816943
Compare
|
Thank you for supporting Standard Schema! 🔥 |
|
This is awesome, was pleasantly surprise I don't have to install zod just for this! |
Use every StandardSchema compliant library for validation.
To use StandardSchema for validation just use the library of your choice:
zod:
valibot:
The old syntax will still work, but it will log a deprecation message. Unfortunately, it seems impossible to mark the usage of the old syntax as deprecated. Marking the part of the union type as deprecated does not affect the usage itself.
In future versions, possibly 1.0.0, we will remove the old syntax and the dependency on Zod.
Todos
Closes: #528