zodex
zodex copied to clipboard
(WIP) The missing zod (de)?serialization library
Just a heads up that I'd hope we could add a mechanism for refinements/customs schemas at some point. However, I think this would be blocked by https://github.com/colinhacks/zod/issues/2515
Added `coerce` support for string, number, bigint, date, boolean: https://zod.dev/?id=coercion-for-primitives. This is essential for working with form submissions where everything coming in is a string.
This should cover the essentials, I think.
Although Zod doesn't support circular data, it does support recursive schemas, so it would be nice to support these. However, to implement this and track the current path to ensure...
Builds on #36. fix: supply a pattern for BigInt `min`, `max`, `multipleOf` strings
chore: update eslint Changes to the now required flat config. Diff noise due to upgrades in prettier (and a few changes in `index.test.ts` due to typescript-eslint) Also: - change from...
Browser
Builds on #36. feat: add esm build Also: - docs: adds browser demo
React
test: coverage for React I attempted here to build out what the structure of the expected arguments should be (to the limited extent I could figure them out), but I'd...
> I'm posting this issue to all the libraries currently listed in the Ecosystem section of Zod's README. Apologies for the spam! Zod 4 is a big release and it's...
Hi, The fix from #47 was not released. I'm not sure what happened but [NPM returned 403](https://github.com/commonbaseapp/zodex/actions/runs/12276750369/job/34254739178).