Skip to content

zod 3.23.1

This changes the default generics back to any to prevent breakages with common packager like @hookform/resolvers:

- class ZodType<Output = unknown, Def extends ZodTypeDef = ZodTypeDef, Input = unknown> {}
+ class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = any> {}

Commits:

  • 59f48723d36c423d9e10b3bd52325a7998314230 Change unknown -> any for ZodType defaults
  • 2ff5ceb428634de0ea4501495039c05a8e95b60a 3.23.1