Releases: causaly/zod-validation-error
Releases · causaly/zod-validation-error
v.4.0.0
Major Changes
- 9be31d2: Make v4 the default export of zod-validation-error
- b979890: Add support for zod v4 as a peer dependency.
- 3bf9e78: Update the API to separate between error mapping and message building.
v3.5.2
Patch Changes
- 3809f85: Include paths of sub-issues of union.
v3.5.1
Patch Changes
- e7713d5: Add compatibility with older node versions and module-resolution strategies + improve docs
v3.4.1
Patch Changes
- 94d5f3b: Bump zod to v.3.24.4 in package.json as dev + peer dependency
v3.4.0
Minor Changes
- 3a7928c: Customize error messages using a MessageBuilder.
v3.3.0
Minor Changes
-
66f5b5d: Match ZodError
via heuristics instead of relying on instanceof
.
Why? Because we want to ensure that zod-validation-error works smoothly even when multiple versions of zod have been installed in the same project.
v3.2.0
Minor Changes
- 6b4e8a0: Introduce
fromError
API which is a less strict version of fromZodError
- 35a28c6: Add runtime check in
fromZodError
and throw dev-friendly TypeError
suggesting usage of fromError
instead