zod version | release notes |
---|---|
[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 |