Skip to content

Releases: Oudwins/zog

v0.21.4

13 Jul 14:44
8a3cd2a
Compare
Choose a tag to compare

0.21.4 (2025-07-13)

Features

v0.21.3

03 Jul 05:58
3152230
Compare
Choose a tag to compare

0.21.3 (2025-07-03)

Features

v0.21.2

15 Jun 06:35
064e823
Compare
Choose a tag to compare

0.21.2 (2025-06-15)

Bug Fixes

v0.21.1

24 May 14:43
a6c468c
Compare
Choose a tag to compare

0.21.1 (2025-05-24)

Features

v0.21.0

05 May 05:30
fa27946
Compare
Choose a tag to compare

0.21.0 (2025-05-03)

⚠ BREAKING CHANGES

  • transforms and tests are now typesafe for the schema you are using. No more typecasting in Zog! (#149)

Features

  • provide better panic msgs and docs (#153) (f605689)
  • transforms and tests are now typesafe for the schema you are using. No more typecasting in Zog! (#149) (2da0c0c)

v0.20.0

26 Apr 07:18
294b73a
Compare
Choose a tag to compare

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)

v0.19.2

18 Apr 16:31
0248fe9
Compare
Choose a tag to compare

0.19.2 (2025-04-18)

Features

v0.19.1

13 Apr 11:54
b78f25c
Compare
Choose a tag to compare

0.19.1 (2025-04-13)

Features

  • customFunc for easy custom schemas. Usage is z.CustomFunc[T any](func (valPtr *T, ctx z.Ctx) bool {}, ...TestOptions) (#141) (4c2b42e)

Miscellaneous Chores

v0.19.0

03 Apr 13:12
b2e57a2
Compare
Choose a tag to compare

0.19.0 (2025-04-03)

⚠ BREAKING CHANGES

  • Test.ValidateFunc's name has been changed to Test.Func

Features

  • implemented super refine like API. Create complex custom tests easily (#138) (e44e593)

Miscellaneous Chores

v0.18.4

16 Mar 13:35
7ea0e0e
Compare
Choose a tag to compare

0.18.4 (2025-03-16)

Features

  • support for custom strings, numbers and booleans (#131) (29cb24d)

Miscellaneous Chores