Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: 4nikerin/zod-valid

Tags

v2.0.5

Toggle v2.0.5's commit message
refactor: use ZodTypeAny instead of ZodType in all toValid* utilities

v2.0.4

Toggle v2.0.4's commit message
chore(zod): add generics to ZodTransform in all helper functions

v2.0.1

Toggle v2.0.1's commit message
fix(toValidArray): correct types and update tests (v2.0.1)

v2.0.0

Toggle v2.0.0's commit message
chore(release): v2.0.0

- Remove `toValidEnum`; enum validation is now handled via `toValidObject`.
- Update `toValidArray` defaults: `type` → `z.array(z.never())`, `strict` → `true`.
- All method options are now optional.
- Methods now support passing the type as the first argument and options as the second, or just options as the first argument.

v1.1.3

Toggle v1.1.3's commit message
docs: update README examples

v1.1.1

Toggle v1.1.1's commit message
chore: update package keywords and README title

v1.1.0

Toggle v1.1.0's commit message
feat(array): add strict option to toValidArray

- updated documentation for strict
- extended examples section
- fixed overloads bug in toValidObject