0.17.0 (2025-02-22)
- new schemas, float32, int64, int32 (#108) (0e57a5b)
- number schema now supports any number (#110) (6af9605)
0.16.6 (2025-02-21)
- delete method also only allows for parsing of query params just like GET and HEAD with zhttp (6bc7636)
- zhttp GET request with json or form content type still fetches from params (867cd06)
0.16.5 (2025-02-20)
0.16.4 (2025-02-20)
- panic on single letter query param zhttp (#101) (cd8d172)
- zhttp supports more complex content type strings (#99) (9460ea2)
0.16.3 (2025-02-20)
0.16.2 (2025-02-19)
0.16.1 (2025-02-19)
- release 0.16.1 (6d416fa)
0.16.0 (2025-02-11)
- structs can no longer be required or optional. Define this in the fields instead. If you need to model a struct that might exist use a pointer to a struct. This should not affect most users as now it works how everyone intuitively thought it worked. (#88)
- renamed ZogError to ZogIssue to be more aligned with Zod. Deprecated a bunch of APIs for naming consistency. conf.ErrorFormatter removed in favor of conf.IssueFormatter (#86)
- new test option to set the issue path for issues generated from that test (#87) (47d24a1)
- testFunc method on schemas for easier custom tests (#82) (52a90eb)
- structs can no longer be required or optional. Define this in the fields instead. If you need to model a struct that might exist use a pointer to a struct. This should not affect most users as now it works how everyone intuitively thought it worked. (#88) (9681ebb)
- release 0.16.0 (3a222d0)
- renamed ZogError to ZogIssue to be more aligned with Zod. Deprecated a bunch of APIs for naming consistency. conf.ErrorFormatter removed in favor of conf.IssueFormatter (#86) (49f01e3)
0.15.1 (2025-02-09)
0.15.0 (2025-02-03)
- release 0.15.0 (17cc76d)
0.14.1 (2025-01-13)
0.14.0 (2025-01-02)
0.13.0 (2024-11-12)
0.12.1 (2024-11-11)
- release 0.12.1 (505dcdb)
0.12.0 (2024-11-09)
- implement z.String().Trim() as a built in PreTransform that trims the input data if it is a string (#51) (1d65859)
- schema custom coercer support via the z.WithCoercer function and custom time formats via z.Time.Format() fuction (#48) (1472669)
- time coercer now support for unix timestamps in ms (#47) (4c5b4bd)
- zhttp package now supports providing your own custom parsers (#50) (e8a111f)
0.11.0 (2024-11-01)
- zhttp.NewRequestDataProvider() which was deprecated is now removed. Please use zhttp.Request() instead
- ZogError.Error() no longer proxies to the wrapped error. Now it returns a string representation of the ZogError. You can still access Wrapped error through Unwrap()
- release (6bfc8cc)
- removed zhttp new data provider (86d4e6f)
0.10.0 (2024-10-07)
- add test options to time methods (42db318)
- boolean false parsing behavior (#35) (8670b64)
- struct merge panic on merging schemas with transforms (90ccc88)
0.9.1 (2024-09-26)
- zhttp request method (f69af8b)
0.9.0 (2024-09-22)
- i18n package with spanish & english translations (#28) (1120fd6)
- improved zhttp library (#32) (891bb6c)
- trim space for env variables (166d881)
0.8.0 (2024-09-16)
- added transforms for slices (#22) (71c01cb)
- json data provider (2d10c92)
- panic on invalid struct schema (#25) (8d5b493)
- required custom z.Message (#24) (49198a0)
- structs now handle both uppercase and lowercase first letters (4fbc9c3)
0.7.0 (2024-09-09)
- custom tests now require that you pass a test struct or use the TestFunc() helper
- order of schema.Test() params has changed from (errorCode, z.Message(), func) to (errCode, func, [optionalTestOptions])
- All z.Errors functions have changed. I still don't recommend you use them since they might still change in the future
- better errors (fe78a8d)
- move coercers to default variable to make it easier to replace the coercers struct without losing access to the default coercers (2387330)
- new & improved API for custom tests (9acfc37)
- bool coercer (#14) (01f8c17)
- minor fix to order of operations when required is set (cff0fc3)
- Time().EQ() was broken due to typo (9310e1a)
- release 0.7.0 (0e0eb47)
- custom test method is now more in line with the rest. (d163f36)
0.6.2 (2024-08-16)
- slice errMap will now access validation errors for the first element through
[0]
key rather than0
key
- release 0.6.2 (b4c90c4)
0.6.1 (2024-08-16)
0.6.0 (2024-08-16)
- release 0.5.0 (6da4503)