Commit Graph

193 Commits (acff470c7fe5f39ad7ff79843e2ba9eb801579b6)

Author SHA1 Message Date
Jonathan Haines 9235709060
refactor: composite build (#1230)
* refactor: composite build

* chore(ua-blocker): move demo.ts out of src
2025-06-16 11:23:47 +09:00
Jonathan Haines 44b1c24b95
chore(zod-validator): run prettier to fix CI (#1221)
* chore(zod-validator): run prettier to fix CI

* ci: fix changed packages
2025-06-13 16:18:23 +09:00
github-actions[bot] 2fccb8b764
Version Packages (#1182)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-30 11:16:13 +09:00
github-actions[bot] 9afa292ca5
Version Packages (#1176)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-27 17:55:25 +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
github-actions[bot] 247f7705b3
Version Packages (#1143)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-27 20:30:24 +09:00
Yusuke Wada b9fa57530a
chore: format codes (#1142) 2025-04-27 19:28:24 +09:00
github-actions[bot] abb260632f
Version Packages (#1128)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-18 07:34:31 +09:00
Daniel Tao 63a9dff2b9
chore(zod-openapi): lock zod-to-openapi to `^7.3.0` to fix `z.custom` (#1127)
* chore(zod-openapi): lock zod-to-openapi to `^7.3.0` to fix schemas using `z.custom`

* add changeset
2025-04-18 07:30:36 +09:00
github-actions[bot] 99e7bf2e64
Version Packages (#1115)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-09 18:40:50 +09:00
Jonathan Haines 1fd8ebf9b6
feat(eslint-config): enable linting with type information (#1098) 2025-04-07 19:31:09 +09:00
github-actions[bot] 9f3027a4a0
Version Packages (#1107)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-07 18:46:24 +09:00
Yusuke Wada 448a8fc687
fix(zod-openapi): infer Env correctly if the middleware is `[]` (#1106)
* fix(zod-openapi): infer Env correctly if the middleware is `[]`

* add changeset
2025-04-07 18:41:04 +09:00
Jonathan Haines e8512f0ee9
build: typescript project references (#1077)
* build: typescript project references

* chore: remove duplicate keys
2025-04-02 18:28:02 +09:00
Jonathan Haines b18f24379b
chore(dev-deps): upgrade to hono v4 (#1092)
* chore(dev-deps): upgrade to hono v4

* chore(zod-openapi): build workspace dependencies

* chore(trpc-server): ignore null body type
2025-03-31 18:20:57 +09:00
Yann Normand b70735cc6c
docs:(zod-openapi): add note about app.route (#1088) 2025-03-30 11:04:13 +09:00
Yusuke Wada 88d3b5c637
refactor(zod-openapi): fix type errors (#1078)
* refactor(zod-openapi): fix type errors

* fix types
2025-03-29 08:47:19 +09:00
Jonathan Haines 4f9bb1dd8e
test: move tests to src directory (#1075)
* test(react-renderer): move tests to src directory

* test: move tests to src directory

* test: ensure vitest-pool-workers is installed at the root
2025-03-28 18:50:19 +09:00
Jonathan Haines ff2c1cd2fc
build(zod-openapi): lint published package (#1069) 2025-03-27 15:08:49 +09:00
Jonathan Haines 783a082c12
chore: add coverage badges (#1023)
* chore: add coverage badges

* ci(casbin): fix spelling
2025-03-19 17:53:11 +09:00
Jonathan Haines 4d67af162f
test(workspace): upgrade to vitest v3 (#1009)
* test(workspace): upgrade to vitest v3

Fixes #1007

* chore(standard-validator): add vitest type to `tsconfig.json`

* chore: update `yarn.lock`

* chore(zod-openapi): bump `typescript`

* chore(typia-validator): make it ESM

* ci(bun-transpiler): fix Bun to v1.1.32

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-03-12 12:52:15 +09:00
Jonathan Haines 5ea7fb5d09
chore: Migrate workspaces that use `jest` to `vitest` (#998)
* docs(contributing): add section on testing

Fixes #994

* test(clerk-auth): replace jest with vitest

* test(graphql-server): replace jest with vitest

* test(medley-router): replace jest with vitest

* test(oauth-providers): replace jest with vitest

* test(oidc-auth): replace jest with vitest

* test(sentry): replace jest with vitest

* test(trpc-server): replace jest with vitest

* test(typebox-validator): replace jest with vitest

* test(typia-validator): replace jest with vitest

* test(valibot-validator): replace jest with vitest

* chore: cleanup remaining references to jest

* chore: fix lint errors

* test(typia-validator): fix exclude directory

* test(oauth-providers): use vitest environment miniflare

* chore: update `yarn.lock`

* chore(zod-openapi): pin zod-validator to 0.4.2

* test(graphql-server): remove console filtering

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-03-04 22:00:28 +09:00
github-actions[bot] 0f8d2f3d05
Version Packages (#997)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-03 06:08:20 +09:00
Lucas c279ba2bc5
fix(zod-openapi): correctly handle path parameters in basePath (#995)
* fix(zod-openapi): correctly handle path parameters in basePath
This tries to fix an issue not covered by #992.

* chore: add changeset
2025-03-03 06:02:43 +09:00
github-actions[bot] 10d65d1828
Version Packages (#993)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-02 17:51:58 +09:00
Yusuke Wada 3c738f5ea4
fix(zod-openapi): replace path param strings correctly in basePath (#992)
* fix(zod-openapi): replace path param strings correctly in basePath

* add changeset
2025-03-02 17:48:35 +09:00
github-actions[bot] e0880ca4a9
Version Packages (#987)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-28 17:57:02 +09:00
Robert Michalak 59c6356aac
feat(zod-openapi): Add ability to exclude routes from OpenAPI docs (#984)
* Exclude route from OpenAPI docs

* add changeset

* update to minor

* test if a hidden route is available for requests
2025-02-28 17:52:52 +09:00
github-actions[bot] 4e4e40cdbf
Version Packages (#957) 2025-02-04 18:25:20 +09:00
Lucas 70a564e268
fix(zod-openapi): handle nested app base paths in openapi registration (#955)
* feat: handle nested app base paths in openapi registration

* test: add test for nested base paths in OpenAPI schema

* test(zod-openapi): add route without base path

* chore: add changeset

* chore: format
2025-02-04 18:21:56 +09:00
Yusuke Wada f51320bed0
chore: formatted to ensure successful build (#905) 2024-12-25 18:16:30 +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
Yusuke Wada cd6c667ee2
docs(zod-openapi): add docs for lacking proper Content-Type in a request (#893) 2024-12-19 10:26:01 +09:00
github-actions[bot] 3bd19aec54
Version Packages (#858) 2024-11-29 21:12:25 +09:00
Jani 3f63c46fa6
fix(zod-openapi): support default response (#855)
* fix(zod-openapi): support default response

* chore: changeset
2024-11-29 21:07:33 +09:00
github-actions[bot] b1fdf7202f
Version Packages (#854) 2024-11-28 19:05:51 +09:00
Yusuke Wada a9804afe71
fix(zod-openapi): return `Response` if response is not text or JSON (#853)
* fix(zod-openapi): return `Response` if response is not text or JSON

Co-authored-by: sushichan044 <mail@sushichan.live>

* fixed tests and correct types

* add changeset

---------

Co-authored-by: sushichan044 <mail@sushichan.live>
2024-11-28 18:35:21 +09:00
github-actions[bot] a2ffc34b31
Version Packages (#851) 2024-11-28 10:57:56 +09:00
Anthony Skorupskyy 4ebecc6142
fix(zod-openapi): multi-middleware complex type inference (#849) 2024-11-28 10:54:26 +09:00
github-actions[bot] c063c66a55
Version Packages (#838) 2024-11-19 11:00:17 +09:00
Yusuke Wada ebd70a0e03
feat(zod-openapi): support `enum` (#837)
* feat(zod-openapi): support `enum`

* add changeset

* add changeset
2024-11-19 10:53:55 +09:00
github-actions[bot] 68753ca8b2
Version Packages (#830) 2024-11-16 09:50:57 +09:00
Daniel Pedersen bbb48ef368
fix(zod-openapi): infer env type parameter from middleware (#828)
* fix(zod-openapi): infer env type parameter from middleware

* add test
2024-11-16 09:46:13 +09:00
Yusuke Wada b0320d91f0
chore(zod-openapi): format code and fixed the type (#827) 2024-11-14 16:52:38 +09:00
oberbeck 2f55c21d62
docs(zod-openapi): use tuple in middleware example (#812) 2024-11-09 10:05:26 +09:00
github-actions[bot] d903e27888
Version Packages (#811) 2024-11-07 12:19:54 +09:00
oberbeck 2eec6f6fd9
feat(zod-openapi): infer env from routeMiddleware (#807)
* feat(zod-openapi): infer env from routeMiddleware

* chore(zod-openapi): add changeset for routeMiddleware Env inference

Close #715
2024-11-07 12:11:30 +09:00
Yam Borodetsky 75eef8790f
docs(zod-openapi): fix tip block in readme (#774)
The `> [!TIP]` block is now formatted correctly, allowing correct display within GitHub.
2024-10-11 16:34:25 +09:00
Yusuke Wada aba8ea6411 chore(zod-openapi): don't release 2024-10-06 13:42:27 +09:00
github-actions[bot] 7253e6b9f1
Version Packages (#764) 2024-10-06 13:28:47 +09:00