Skip to content

v0.20.0

Choose a tag to compare

@github-actions github-actions released this 26 Apr 07:18
294b73a

0.20.0 (2025-04-26)

⚠ BREAKING CHANGES

  • Deprecated z.Schema in favor of z.Shape. No plans to remove z.Schema for now
  • Allow empty strings during parsing to not trigger required. Instead do .Min(1). (#148)
  • Transforms are now run sequentially with tests in the order they were defined in. schema.PostTransform has been deprecated and until it is removed it will work just like schema.Transform. Therefore schema.Min(1).Trim().Min(1) will work and first check string length > 1 then trim then check again for string len > 1
  • implemented preprocess, removed preTransforms

Features

  • Deprecated z.Schema in favor of z.Shape. No plans to remove z.Schema for now (544f03d)
  • implemented preprocess, removed preTransforms (9dde9be)
  • ordered transforms (#147) (1db8140)

Bug Fixes

  • Allow empty strings during parsing to not trigger required. Instead do .Min(1). (#148) (da1b680)