-
Notifications
You must be signed in to change notification settings - Fork 108
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
feat: typebox #368
base: main
Are you sure you want to change the base?
feat: typebox #368
Conversation
5625832
to
4039623
Compare
Thanks for working on this! Although I think yup and zod are still more popular as jest depends on typebox internally and contributed most of the download counts for typebox, I am not against adding support to different solutions. But there are a few things I wanna learn more first.
Really appreciate all the effort and I wish you a happy new year :) |
4039623
to
627d5a6
Compare
@edmundhung got some of your concerns answered, the password / confirm check would need to be integrated some how into some of the conform utils for typebox, if you have some thoughts, happy to take a stab at it, just let me know. :) |
Thanks for getting me the answer! The APIs Typebox offered is indeed interesting and I feel like I can use some of the ideas to design the validitystate package going forward. But I want to get v1 out first (which hopefully happens in 1-2 weeks). I will get back to you on this once it is out. |
Sorry for the wait! I will give it a try this week and see if I have any other concern before getting this merged. 🙌🏼 |
👋 Just wanna bring a little attention to this PR. |
Any updates? :) |
+1 tools like Elysia in the bun world are using Typebox in the same manner that tRPC uses zod. Would be nice to opt into typebox in cases where we are already using it elsewhere in the stack. |
This PR introduces a new provider, TypeBox which is more than 4x smaller than Zod and fairly common in Node.js Projects for defining schemas
Not only is Typebox smaller and faster than Zod. It's also more popular.
https://npmtrends.com/@sinclair/typebox-vs-yup-vs-zod