Colin McDonnell

Results 423 comments of Colin McDonnell

Here's a dedicated guide for library authors that answers some common questions: https://v4.zod.dev/library-authors 1. Best practices around peer dependencies 2. How to support Zod v3 and Zod v4 simultaneously 3....

Works in Zod 4 due to saner defaults on `z.Schema`

I landed some changes that improve the Next.js treeshaking story. I'm pretty astonished at how far Webpack/Next.js is lagging behind Rollup here. Lots of idiosyncrasies. As always with tree-shaking issues...

Methods like `.date()` are just adding additional refinements on top of the `z.string()` schema. Refinements are considered *continuable* by default. Zod tries to surface as many errors as possible by...

Without knowing much about this particular issue, it seems likely that the "Excessively deep" issue is possibly mitigated in Zod 4.1.6: https://github.com/colinhacks/zod/pull/5222. If you need Zod 3, you can fix...

Here's a dedicated guide for library authors that answers some common questions: https://v4.zod.dev/library-authors 1. Best practices around peer dependencies 2. How to support Zod v3 and Zod v4 simultaneously 3....

The README has been cut down significantly in favor of the new docs site. The ecosystem page has moved here: https://github.com/colinhacks/zod/blob/v4/packages/docs/content/ecosystem.mdx If you finalize work on this, feel free to...

cc @StefanTerdell Here's a dedicated guide for library authors that answers some common questions: https://v4.zod.dev/library-authors 1. Best practices around peer dependencies 2. How to support Zod v3 and Zod v4...

Update: the `@zod/core` package has been abandoned in favor of a subpath: `zod/v4/core`. This makes it much easier for libraries with build on top of Zod with a single peer...