Replies: 1 comment 1 reply
-
Thanks for sharing! I appreciate your interest in the Epic Stack. I don't think that I'm interested in making this change for a few reasons:
Thanks again for sharing and good luck on your project! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey 👋
Thanks for making the Epic Stack. I believe it brings actual value to the developer community. I'd like to propose considering Vest as an alternative or complementary option to Zod for user-facing validations.
*Disclaimer, I am the author of Vest
Obviously, I don't expect it to be added just because I asked here, and I want to make a proposal PR to make my point. I know reviewing PRs can be a burden so I haven't yet created a PR - I wanted to ask here first before I make a proposal PR.
Here are the broad details that I am going to implement in my PR:
What
Why
I see the value in the Epic Stack as an opinionated tech stack, and that it can greatly boost the productivity of people building their apps.
I believe Vest can improve their productivity, and allow for capabilities currently not possible with Zod, or very hard to implement, along with improving the end-user experience, especially around async validation, as each validation can be async individually and report back immediately as it finishes.
Vest validates each field as the user types, rather than the entire schema, so no need to break the form down into different smaller schemas.
Its declarative unit-testing-like syntax can reduce the complexity of imperative validations like this:
epic-stack/app/utils/user-validation.ts
Lines 29 to 39 in 1d51912
Would have changed to:
Of course, I'm also open to your feedback and insights on whether this proposed change aligns with the Epic Stack's vision.
Thanks for your time and consideration!
Beta Was this translation helpful? Give feedback.
All reactions