-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[✨] Valibot Adapter for Qwik #4924
Comments
Here's the current Zod implementation. Wonder if just swapping out the Zod bits for Valibot would suffice? |
pinging @fabian-hiller 😎 hope you can help on this? |
In some API file a release tag must be set. I think you @zanettin can help better with this. @brandonpittman feel free to show me your code, I'll give you feedback and help you add the adapter to Qwik. Miško had already asked me to add it to Qwik Laps. However, I had not yet found the time to do so. |
I'll get back to you tomorrow. Having trouble with TypeScript types. |
Is your feature request related to a problem?
Valibot presents a modern approach to data validation. While it parallels Zod in functionality, Valibot stands out due to its modular design and the significant reductions in bundle size (up to 98%) it can achieve through code splitting.
Describe the solution you'd like
To better leverage Valibot's capabilities within the Qwik framework, I suggest introducing a
valibot$()
function. This function would integrate withrouteAction$()
andglobalAction$()
, accepting a Valibot schema as its parameter.Describe alternatives you've considered
While there are other validation libraries available, Valibot's bundle size advantage makes it an attractive choice for performance-focused applications. The direct integration of Zod was an initial consideration given its similarities, but the potential bundle size savings with Valibot make it a compelling option to explore further.
Additional context
No response
The text was updated successfully, but these errors were encountered: