Colin McDonnell
Colin McDonnell
Without knowing much about this particular issue, this "Excessively deep" issue is likely fixed in Zod 4.1.6: https://github.com/colinhacks/zod/pull/5222. If you are using Zod 3.x, you can fix this issue by...
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....
Solved in Zod 4, `.refine()` does not wrap in `ZodEffect` as refinements are stored inside schemas themselves.
This was intentional because it feels like a more expected behavior to me. In general I think mapping `undefined` -> `null` is a more reasonable default behavior than just ignoring...
Merged in `@zod/[email protected]` and latest betas.
Sorry, but what should it actually be?