Skip to content

[FEATURE]: drizzle-zod adopt zod v4 #4406

Open
@Q16solver

Description

@Q16solver

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 with keyof since it gives me all the string function names as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions