- Refactored parsing logic into individual subclass methods
- Eliminated ZodTypes to enable custom ZodType subclasses
- Removed ZodIntersection
- Added ZodEffects as a container for refinement and transform logic
- Added
or
method toZodType
- Added
format
method toZodError
- Added
unwrap
method toZodOptional
andZodNullable
- Added new
default
method and moved default functionality into ZodOptional - Implemented
z.setErrorMap
- Exporting
z
variable fromindex.ts
to enableimport { z } from 'zod';