Skip to content

3.0.0-alpha.7

Pre-release
Pre-release
Compare
Choose a tag to compare
@colinhacks colinhacks released this 18 Mar 06:43
· 1301 commits to v3 since this release
  • 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 to ZodType
  • Added format method to ZodError
  • Added unwrap method to ZodOptional and ZodNullable
  • Added new default method and moved default functionality into ZodOptional
  • Implemented z.setErrorMap
  • Exporting z variable from index.ts to enable import { z } from 'zod';