zod version | release notes |
---|---|
[email protected] | Introduced .safeParse option.Introduced .regex method on string schemas. Implemented .primitives() and .nonprimitives() on object schemas.Implemented z.nativeEnum() for creating schemas from TypeScript enum s.Switched to new URL() constructor to check valid URLs. |
[email protected] | Dropping support for TypeScript 3.2 . |
[email protected] | Added z.instanceof() and z.custom(). Implemented ZodSchema.array() method. |
[email protected] | Introduced z.void(). Major overhaul to error handling system, including the introduction of custom error maps. Wrote new error handling guide. |
[email protected] | Added several built-in validators to string, number, and array schemas. Calls to .refine now return new instance. |
[email protected] | Any and unknown types |
[email protected] | Refinement types (.refine ), .parse no longer returns deep clone |
[email protected] | Promise schemas |
[email protected] | .parse accepts unknown , bigint schemas |
[email protected] | .partial and .deepPartial on object schemas |
[email protected] | Date schemas |
[email protected] | .pick , .omit , and .extend on object schemas |
[email protected] | Records |
[email protected] | .nonstrict |
[email protected] | Type assertions with .check |
[email protected] | Empty tuples |
[email protected] | Type assertions, literals, enums, detailed error reporting |
[email protected] | Initial release |