Commit Graph

225 Commits (845e336ff41d29fa74ec3cf84afc16f5ac0c2c77)

Author SHA1 Message Date
Yusuke Wada 845e336ff4
feat(zod-openapi): support Zod v4 (#1223)
* feat(zod-openapi): support Zod v4

* update `peerDependencies`

* add changeset

* fixed type error

* update dependencies
2025-07-18 16:40:21 +09:00
kiki-kanri 9f6278f51c
chore(zod-validator): upgrade zod to v4 and update import style in README.md (#1302)
* chore(zod-validator): upgrade zod to v4

* docs(zod-validator): update Zod import style to be more tree-shakeable in README.md

* chore(zod-validator): commit .changeset

* fix(zod-validator): correctly set the zod version to follow the official website doc

* chore(zod-validator): change `.changeset` to patch cause it does not include a new feature
2025-07-13 19:57:55 +09:00
Jonathan Haines 6e53f6e8f3
test: vitest include (#1297) 2025-07-11 08:28:28 +09:00
Bryce Kalow 0f472345c7
chore(clerk-auth): Update clerk dependencies (#1295) 2025-07-10 07:07:29 +09:00
3w36zj6 16c103c2a9
chore: update hono version to 4.8 (#1281)
* chore: update hono version to 4.8

* chore: add hono as a devDependency to all workspaces
2025-07-05 18:37:06 +09:00
Jonathan Haines 7b81b1579a
chore: expand hono peer dependency (#1276)
* chore: expand hono peer dependency

* remove the changeset
2025-07-03 19:04:24 +09:00
Jonathan Haines 9f64138406
refactor(zod-openai): enable isolated declarations (#1217) 2025-06-27 10:42:46 +09:00
Jonathan Haines 18b1ebc662
feat(session): add session middleware (#1188)
* feature(session): add session middleware

* refactor: replace @panva/hkdf with web crypto

* refactor: export SessionEnv

* chore: unify handler definition

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-06-26 15:29:28 +09:00
RasengunShotaro f611394629
chore(clerk): 🆙 updated clerk dependency ( https://github.com/honojs/middleware/issues/1261 ) (#1262)
* 🆙 updated clerk dependency

* 📚

* update the changeset
2025-06-26 08:48:27 +09:00
Jonathan Haines aee369e728
chore(cr): publish pr to pkg.pr.new (#1242) 2025-06-21 13:23:44 +09:00
Jonathan Haines b62061faec
chore: update vitest to v3.2 (#1220) 2025-06-20 06:59:04 +09:00
Robert Soriano 6ca78a14da
chore(clerk-auth): Support for Clerk Backend v2 (#1190)
* chore(clerk-auth): Introduce Clerk backend v2

* chore: clean up types

* chore: revert readme

* chore: move backend package to dependencies

* chore: add changeset

* chore: pin accepted token

* chore: run format

* chore: remove extra dependency

* chore: use token type constant

* chore: fix imports

* chore: use built-in type helpers

* chore: remove pending session options

* chore: run format
2025-06-19 15:33:50 +09:00
Aditya Mathur 1baa0b281d
feat: added @hono/mcp package (#1178)
* feat: added hono/mcp package

* chore: changeset

* chore: minor changes

* chore: minor changes

* chore: formated the code

* chore: minor correction

* chore: removed changelog file

* chore: changed the class name

* chore: updated the readme

* fix: closed the stream

* chore: minor change

* fix: added an interval to keep the connection alive and merge 2 streams into a single one

* chore: updated lockfile

* fix: stupid mistake 😅

* chore: formatted the README.md file

* chore: minor change

* chore: minor changes

* chore: minor change

* add an explicit return type annotation

* format the code

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-06-18 07:07:30 +09:00
Yusuke Wada 7c6a860814
chore: update the lockfile (#1226) 2025-06-14 06:05:24 +09:00
Colin Ozanne be73703184
feat: introduce UA Blocker Middleware (#1181)
* feat: create AI bot blocker middleware

* chore: add changeset

* fix: uppercase function called too late

* chore: don't version-control robots.json

* chore: track `robots.json`

* ci: add `@hono/ai-robots-txt` workflow script

* fix: change initial version

* feat: add automatic `robots.json` sync from upstream

* feat!: change package name and architecture

* refactor(ua-blocker): prebuild compiled regex (#1)

* fix: add json data files to tsconfig

* chore: rename workflow files

* fix: test if string _contains_ "Yes"

It might be a markdown link, so not the exact string, but "[Yes](<link>)"

* fix: tests reflect the fixed "Yes" check

* feat: move generator back to prebuild

generated regex should use the version-controled robots.json, not
directly the upstream file

* chore: add .zed

* chore: remove unused files

* fix: properly setup workspace before running scripts

* chore: remove `prebuild` script from `build`, `typecheck`, and `test`

* chore: run `getrobotstxt` and `prebuild`

* fix: export `RegExp`s, not `string[]`s

* chore: mention RegExp and uppercase matching in docs

* fix: adapt tests to regex exports

* chore: add tests for direct regex passing

* chore: format code

---------

Co-authored-by: Jonathan Haines <jonno.haines@gmail.com>
2025-06-14 06:00:42 +09:00
Yusuke Wada bb56b3176e
chore: update the lockfile (#1224) 2025-06-14 05:51:27 +09:00
Max Gerber ede1aaff4f
feat: Stytch Authentication middleware (#1186)
* feat: Stytch Authentication middlewares

* Add changeset

* Better README

* Refresh yarn.lock

* fix: Remove unused dev deps, linter

* README and light renaming

* Remove ci-stytch-auth workflow

* rerun prettier

* add troubleshooting to readme
2025-06-14 05:48:00 +09:00
Jonathan Haines b73b7aed29
chore: update yarn to v4.9.2 (#1219) 2025-06-13 05:21:52 +09:00
Jonathan Haines a7ee664c98
ci: what changed (#1212) 2025-06-11 19:15:16 +09:00
Jonathan Haines 3c70dcd6ae
chore: update hono (#1185) 2025-06-02 05:06:04 +09:00
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
Nicholas Dobie 7717755dd3
feat(bun-compress): Created a compress middleware that supports Bun (#1153)
* feat(bun-compress): Created a compress middlware that supports Bun

* fix(bun-compress): spelling mistake in readme

* fix(bun-compress): package description

* fixed package.json
2025-05-13 07:15:11 +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
Yusuke Wada 684ae9a21d
feat(react-renderer): use React v19 and specify `react-dom/server.edge` for `renderToReadableStream` (#1119)
* feat(react-renderer): use React v19 and specify `react-dom/server.edge` for `renderToReadableStream`

* changeset
2025-04-11 07:43:03 +09:00
chimame 26d0efb036
chore(conform-validator): Change conform valibot adapter to official library (#1114) 2025-04-09 19:08:21 +09:00
Jonathan Haines 1fd8ebf9b6
feat(eslint-config): enable linting with type information (#1098) 2025-04-07 19:31:09 +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
Jonathan Haines 9a536e6abb
ci: run eslint in each workflow (#1083) 2025-03-30 11:28:44 +09:00
Aditya Mathur 0d6c13b1a3
feat: updated @hono/eslint-config package (#1031)
* chore(eslint-config): update dependencies and improve configuration

* chore(eslint-config): replace @typescript-eslint packages with typescript-eslint

* chore: completed changes suggested by @BarryThePenguin

* chore: updated the repo eslint config

* chore: updated the lockfile

* feat: added ci and minor changes

* chore: updated the eslint version in package.json

* chore: updated the lockfile

* add changeset

* `@ryoppippi/unplugin-typia` as devDependencies

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-03-29 08:18:02 +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 5fac2ef09c
build(react-renderer): lint published package (#1058)
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-03-27 15:49:10 +09:00
Jonathan Haines bf16ecc7a3
build(sentry): lint published package (#1059)
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-03-27 15:36:00 +09:00
Jonathan Haines cee0c83bc8
build(react-compat): lint published package (#1060) 2025-03-27 15:33:45 +09:00
Jonathan Haines d911e624a8
build(standard-validator): lint published package (#1061)
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-03-27 15:30:30 +09:00
Yusuke Wada 6f66ea3559
chore: update the lockfile (#1074) 2025-03-27 15:25:20 +09:00
Jonathan Haines 93b544fba0
build(swagger-ui): lint published package (#1063) 2025-03-27 15:21:50 +09:00
Jonathan Haines 6a69f92bc1
build(valibot-validator): lint published package (#1068) 2025-03-27 15:21:17 +09:00
Jonathan Haines 780cb787d1
build(typia-validator): lint published package (#1067) 2025-03-27 15:18:15 +09:00
Yusuke Wada 0e43d03cd4
chore: update the lockfile (#1073) 2025-03-27 15:13:19 +09:00
Jonathan Haines c39d47d6f0
build(zod-validator): lint published package (#1070) 2025-03-27 15:09:49 +09:00
Jonathan Haines ff2c1cd2fc
build(zod-openapi): lint published package (#1069) 2025-03-27 15:08:49 +09:00
Jonathan Haines 568f407452
build(typebox-validator): lint published package (#1066) 2025-03-27 15:06:50 +09:00
Jonathan Haines 85e67a12c0
build(tsyringe): lint published package (#1065) 2025-03-27 13:13:54 +09:00
Jonathan Haines d9671a5891
build(trpc-server): lint published package (#1064) 2025-03-27 13:07:16 +09:00
Jonathan Haines ee540d95fe
build(swagger-editor): lint published package (#1062) 2025-03-27 13:05:11 +09:00
Jonathan Haines 5234436db8
build(oidc-auth): lint published package (#1054)
* build(oidc-auth): lint published package

* build(oidc-auth): include require condition in subpath exports
2025-03-27 12:56:33 +09:00
Jonathan Haines 7c0f04486d
build(qwik-city): lint published package (#1057)
* build(qwik-city): lint published package

* ci(qwik-city): add workflow to run build and publint
2025-03-27 12:32:05 +09:00
Jonathan Haines ee53464b87
build(prometheus): lint published package (#1056) 2025-03-27 11:43:10 +09:00