Re:Parse, Don't Validate – In a Language That Doesn't Want Y...
by Lvl999Noob on Tuesday June 30, 2026 @12:17PM
(#48734901)
How would you use zod as a dev-only dependency? The whole point there is to be a parser. If you remove it from runtime then you are not parsing the production payloads, which is the exact place where you do need to parse them.
zod can't be a dev only dependency, and you have to deal with breaking changes and maybe switching to a completely different library in a few years (joi, with a syntax very similar to zod's, was very popular a while ago too).