Skip to content

v3.6.1

Choose a tag to compare

@colinhacks colinhacks released this 01 Aug 03:22
  • Add IE11 support

  • ZodError.flatten now optionally accepts a map function for customizing the output

  • .void() now only accepts undefined, not null.

  • z.enum now supports Readonly string tuples

    const HTTP_SUCCESS = ["200", "201"] as const;
    const arg = z.enum(HTTP_SUCCESS);