Open
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Hi, I wanted to migrate to zod v4, then realised whilst I was almost done that there were some incompatibilities with the types for drizzle-zod I believe, so I'm just opening an issue request here to confirm/suggest adopting v4. I know it's in beta now, so perhaps this is not as urgent as needs be or perhaps we can have a beta flag for drizzle-zod as well to adopt.
Some noticeable compat issues I found whilst trying to migrate to zod v4 with drizzle-zod:
- create*Schemas seem to return the z.ZodType with
& "strip"
which is incompatible with TRPC, and also breaks my typechecking when I do things like withkeyof
since it gives me all the string function names as well