Yusuke Wada
5c3f61f889
feat(zod-validator): update peerDependency to Zod `^3.25.0` and fix the types ( #1180 )
...
* feat(zod-validator): update peerDependency to Zod ^3.25.0 and fix type compatibility
* add changeset
2025-05-30 10:40:47 +09:00
Yusuke Wada
a62b59f450
feat(zod-validator): support Zod v4 ( #1173 )
...
* feat(zod-validator): support Zod v4
* changeset
* oops. using `any`
* remove the not used value
* [wip] support both v3 and v4
* update
* avoid the type error on build
* remove unnecessary `unknown`
* fixed type and add test
* avoid the type error
* rename the test
* don't use `schema instanceof ZodObject`
* update README
* use released `3.25.6`
* changeset
* use `zod` instead of `zod/v3`
* don't update the peerDependencies
* use both v3 and v4 types if Zod has v4
* fix ZodError
* fixed
* update lock file
* update README
* remove unnecessary cast
2025-05-27 17:47:54 +09:00
Yusuke Wada
8ed99d9d79
feat(zod-validator): add `validationFunction` option ( #1140 )
...
Co-authored-by: migawka <migawka@amadeustech.dev>
2025-04-27 20:12:13 +09:00
Yusuke Wada
b9fa57530a
chore: format codes ( #1142 )
2025-04-27 19:28:24 +09:00
Yusuke Wada
7a401b0850
chore: use the latest eslint and `@hono/eslint-config` ( #904 )
...
* chore: use the latest eslint and `@hono/eslint-config`
* update codes
2024-12-25 18:08:43 +09:00
Anthony Skorupskyy
803f011e41
fix(zod-validator): support for case-insensitive `headers` target validation ( #860 )
2024-12-13 16:57:49 +09:00
Yusuke Wada
2a45247d80
feat(zod-validator): support enum types for `query` ( #763 )
...
* fix(zod-validator): support enum types for `query`
* add changeset
2024-10-06 13:24:53 +09:00
Yusuke Wada
950786f6d2
chore(zod-validator): format the code ( #749 )
2024-09-26 12:00:04 +09:00
Bartosz Polnik
eda3584791
feat(zod-validator): pass target from zod-validator to a hook ( #695 )
...
* feat(zod-validator): passing target to hook
* feat(zod-validator): trigger githubaction
* feat(zod-validator): add changeset
* feat: pass narrower type to zod validation hook
2024-09-26 11:53:26 +09:00
Ame_x
aa05549497
fix(zod-validator): validator support async hook ( #552 )
...
* fix(zod-validator): validator support async hook
* fix
* changeset
* refactor
* chore: format (includes other middleware)
* fix
* revert
* Revert "chore: format (includes other middleware)"
This reverts commit 16b4462014
.
* changeset
* revert
2024-06-01 11:35:21 +09:00
Yusuke Wada
4875e1c531
feat(zod-validator): support `coerce` ( #411 )
...
* fix(zod-validator): support `coerce`
* changeset
* refactored
* make it as minor
2024-03-06 19:35:27 +09:00
Yusuke Wada
a03e133d42
chore: setup prettier ( #301 )
...
* changeset
* chore: setup prettier
2023-12-13 17:31:25 +09:00
Andrew
46575b4395
fix(zod-validator): make validation input optional when schema is optional ( #208 )
...
* fix(zod-validator): make validation input optional when schema is optional
* feat(index.test.ts): add tests for optional schema
* feat(index.test.ts): add more tests for optional schema
* chore: add changeset
2023-10-23 05:18:23 +09:00
Luis Bizarro
a9123dd9e3
fix: Async zod support. ( #175 )
...
* add: Async zod support.
* add: Missing changeset.
2023-09-26 05:20:41 +09:00
Yusuke Wada
3b37eb4aef
fix(zod-validator): fixed zod-validator hook types ( #119 )
...
* fix(zod-validator): fixed zod-validator hook types
* changeset
2023-08-19 02:36:55 +09:00
Yusuke Wada
c271b6d502
fix(zod-validator): convert `TypedResponse` to `Response` in hook ( #116 )
...
* fix(zod-validator): convert `TypedResponse` to `Response` in hook
* changeset
2023-08-19 00:15:03 +09:00
Yusuke Wada
3de3d7cd1b
fix(zod-validator): support `TypedResponse` in hook ( #114 )
...
* fix(zod-validator): support `TypedResponse` in hook
* changeset
2023-08-18 23:56:39 +09:00
Yusuke Wada
8eb3967477
fix(zod-validator): passing data to hook ( #107 )
...
* fix(zod-validator): passing data to hook
* changeset
2023-08-07 22:30:49 +09:00
Yusuke Wada
1fb2ab1dad
fix(zod-validator): fix a Hook type ( #104 )
...
* fix(zod-validator): fix Hook type
* changeset
2023-08-07 18:39:29 +09:00
Sacramentix
b7fe359dbc
save 1 lines of import on Zod-validator ( #87 )
...
* save 1 lines of import
Just moving ZodSchema and ZodError to the import of z
* add changeset
2023-05-11 22:03:08 +09:00
Yusuke Wada
7d84e06943
refactor(zod-validator): pass the path to `Context` for the hook ( #74 )
...
* refactor(zod-validator): pass the path to `Context` for the hook
* add changeset
2023-03-21 18:24:29 +09:00
Yusuke Wada
f263d58c87
refactor(zod-validator): refactor types ( #69 )
...
* refactor(zod-validator): refactor types
* add changeset
2023-03-21 10:41:30 +09:00
Yusuke Wada
3c9dca1c2d
feat(zod-validator): bump up Hono v3.1.0 ( #63 )
...
* feat(zod-validator): bump up Hono v3.1.0
* add changeset
2023-03-17 17:02:15 +09:00
Yusuke Wada
72604c74da
refactor(zod-validator): rename `VaildatorTypes` to `ValidatoerTargets` ( #46 )
...
* refactor(zod-validator): rename `VaildatorTypes` to `ValidatoerTargets`
* add changeset
2023-02-14 06:37:46 +09:00
Yusuke Wada
e45805f230
fix(zod-validator): bump up Hono to v3.0.0-rc.9 ( #27 )
2023-02-01 06:53:53 +09:00
Yusuke Wada
a831696e1f
fix(zod-validator): fix and refactor types ( #24 )
...
* fix(zod-validator): fix and refactor types
* add changeset
2023-01-18 21:56:33 +09:00
Yusuke Wada
58e42aa8da
feat: introduce zod-validator ( #16 )
...
* feat: introduce zod-validator
* fixed `package.json`
* changeset
2023-01-02 00:03:44 +09:00