v2.10.0
What's Changed
New Features 🎉
-
Add unionOneOf by @samchungy in #184
You can now use
unionOneOf
to override the output of a ZodUnion to be aoneOf
schema instead ofallOf
(default). Previously rendering an oneOf schema was only possible with a ZodDiscriminatedUnion. -
Bundle Package with esbuild by @samchungy in #178
This should result in no changes to the public API, however, if you were previously reaching into the package paths internally you will now see an error.
Full Changelog: v2.9.1...v2.10.0