Commit Graph

672 Commits (fe1e1851e9dbdf38a4908fa97c06ce42636c92f2)

Author SHA1 Message Date
github-actions[bot] 858c6b4fc3
Version Packages (#1184)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-01 11:25:25 +09:00
Shotaro Nakamura ccc49dd508
fix(node-ws): use buffering to fix #1129 (#1183)
* fix: use buffering to fix #1129

* chore: changeset

* chore: fmt
2025-06-01 11:12: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
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
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] 52a1d46cd2
Version Packages (#1172)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-17 11:20:38 +09:00
Danial Hanif 7585969171
fix(auth-js): use HonoRequest.blob() instead of HonoRequest.raw.body() (#1170)
* fix(auth-js): use HonoRequest.blob() instead of HonoRequest.raw.body()

* lint fix and format fix

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-05-17 11:17:28 +09:00
github-actions[bot] 8fafbc1d4d
Version Packages (#1167)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-16 07:42:31 +09:00
Jonathan Haines cf48336cbd
feat(oauth-providers): Add MSEntra OAuth Provider (#1163)
Co-authored-by: Tim Barley <barleyco@gmail.com>
2025-05-16 07:38:53 +09:00
github-actions[bot] 2c917b33a4
Version Packages (#1166)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-15 23:03:13 +09:00
Jonathan Haines 74d0fe0cb4
feature(eslint-config): add types (#1162)
fixes #1157
2025-05-15 22:55:48 +09:00
github-actions[bot] e63499755a
Version Packages (#1158)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-13 07:26:50 +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
github-actions[bot] 026e1deac3
Version Packages (#1156)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-12 17:59:40 +09:00
Thomas Orlowski 7d3aa32e79
feat(graphql-server): upgrade GraphiQL (#1155) 2025-05-12 17:56:13 +09:00
github-actions[bot] 20d3fd1fe5
Version Packages (#1152)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-08 08:10:40 +09:00
Nicholas Dobie 414f0a6c95
feat(otel): Added support for W3C Trace Context format (#1151)
* feat(otel): Added support for W3C Trace Context format

* removed unneeded HonoRequest
2025-05-08 07:20:02 +09:00
github-actions[bot] bed23c62f5
Version Packages (#1147)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-29 18:35:32 +09:00
Shotaro Nakamura b8453438b6
fix(node-ws): enhance WebSocket connection handling with CORS support (#1146)
* fix(node-ws): make adapter uncrashable

* add changeset

* unnessesary diff

* fix(node-ws): enhance WebSocket connection handling with CORS support and connection symbols

* fix commentout

* remove unnecessary changese

* update changeset
2025-04-29 18:31:54 +09:00
github-actions[bot] 0dc8b719b4
Version Packages (#1145)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-28 15:21:28 +09:00
Andrei 01cd896e9b
fix(arktype-validator): Don't return restricted fields in error responses (#1137)
* fix(arktype-validator): add failing test for cookie header

* fix(arktype-validator): add restricted fields that are not returned in the "data" field of the error

* chore: add changeset
2025-04-28 15:17:34 +09:00
github-actions[bot] 928f8cd5b8
Version Packages (#1144)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-27 20:38:32 +09:00
Shotaro Nakamura 1765a9a3aa
fix(node-ws): make adapter uncrashable (#1141)
* fix(node-ws): make adapter uncrashable

* add changeset

* unnessesary diff

* update yarn.lock

* make changeset patch
2025-04-27 20:34:43 +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 8ed99d9d79
feat(zod-validator): add `validationFunction` option (#1140)
Co-authored-by: migawka <migawka@amadeustech.dev>
2025-04-27 20:12:13 +09:00
github-actions[bot] a756d2235b
Version Packages (#1139)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-26 13:12:27 +09:00
Leia 237bff1b82
fix(node-ws):missing code and reason on CloseEvent (#1138)
fixes #1012
2025-04-26 13:09:26 +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] 6c36f525f9
Version Packages (#1123)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-11 16:23:32 +09:00
Yusuke Wada 944f1989f5
fix(react-renderer): tweak dynamic importing `renderToReadableStream` (#1122)
* fix(react-renderer): tweak dynamic importing `renderToReadableStream`

* changeset
2025-04-11 16:19:43 +09:00
github-actions[bot] a1fcb554ef
Version Packages (#1121)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-11 07:46:10 +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
github-actions[bot] ca3cada076
Version Packages (#1118)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-10 17:47:54 +09:00
Milo Hansen 362b6701a6
fix(otel): Use `req.routePath` when tagging spans (#1113)
* use routePath

Replace indexing into the matchedRoutes with a direct reference to routePath

* Update package.json

Bump version

* set span name and attributes after the request is handled

* revert version bump

* changeset

* add test to ensure subapps set the correct span name

---------

Co-authored-by: Milo Hansen <milo.hansen@avanade.com>
2025-04-10 17:40:54 +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 ad4622a853
fix(zod-openapi): republish without workspace reference (#1111)
fixes #1109
2025-04-09 18:37:30 +09:00
github-actions[bot] 542391f8db
Version Packages (#1108)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-07 19:34:59 +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
github-actions[bot] f349fba499
Version Packages (#1101)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-03 23:23:22 +09:00
liquidleif 091b182a6a
fix(oauth-providers): Update twitter authorization url (#1099)
Closes #1100

* Update twitter authorization url

The twitter authorization URL is outdated.

* add a changeset
2025-04-03 23:18:24 +09:00
github-actions[bot] 5dd598f499
Version Packages (#1095)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-01 21:44:24 +09:00
Shotaro Nakamura 519404ad2c
fix(node-ws): adapter shouldn't send buffer as a event (#1094)
* fix(node-ws): adapter shouldn't send buffer as a event

* chore: changeset
2025-04-01 21:35:45 +09:00
github-actions[bot] b0e0d40be4
Version Packages (#1087)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-29 14:12:27 +09:00
Yusuke Wada 7b1d2393a5
chore(eslint-config): add missing changeset (#1085) 2025-03-29 14:07:14 +09:00
github-actions[bot] 9a98e388cc
Version Packages (#1082)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-29 09:20:18 +09:00
Yusuke Wada a3979bda8f
fix(sentry): fix the type error (#1081) 2025-03-29 09:12:39 +09:00
Yusuke Wada 83ca99d337
fix(typebox-validator): export modules correctly (#1080) 2025-03-29 09:04:51 +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
github-actions[bot] 3ae1b484a2
Version Packages (#1037)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-24 21:44:38 +09:00
wayofthepie e6160a2f94
feat(oidc-auth): allow setting audience for oidc-auth (#1010) 2025-03-24 21:41:40 +09:00
github-actions[bot] 8525489796
Version Packages (#1028)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-23 11:28:53 +09:00
Musa Asukhanov 70bae1d573
fix: Move "default" entrypoint down in "typia-validator" (#1027)
* Move "default" entrypoint down in "typia-validator"

* Add changeset

* Fix changeset
2025-03-23 11:25:47 +09:00
github-actions[bot] 307d83494c
Version Packages (#1025)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-19 18:07:38 +09:00
Sungyu Kang 4f17829191
chore(typia): bump 8.0.3 (#1024)
* chore(typia): bump 8.0.3

* chore: changeset

* fix: review

* fix: patch

* Update packages/typia-validator/package.json

Co-authored-by: Jonathan Haines <jonno.haines@gmail.com>

---------

Co-authored-by: Jonathan Haines <jonno.haines@gmail.com>
2025-03-19 18:04:26 +09:00
github-actions[bot] b810c64c3d
Version Packages (#1018)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-16 19:09:11 +09:00
Milan Raj 87be440009
feat(oidc-auth) Add initOidcAuthMiddleware and avoid mutating environment variables (#980)
* Add setOidcAuthEnv

* Avoid test relying on mutated global

* Test and docs

* Changeset

* style

* Update type import

* Switch to setOidcAuthEnvMiddleware

* Update changeset description

* nit remove unneeded optional param on getOidcAuthEnv

* Rename to initOidcAuthMiddleware
2025-03-16 18:57:44 +09:00
github-actions[bot] e394e64ea5
Version Packages (#1014)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-12 17:59:11 +09:00
Younis e5f383787c
feat(oauth-providers): Add Twitch OAuth Provider (#981)
* feat(twitch): Add type definitions for Twitch OAuth scopes

* feat(twitch): Add additional type definitions for Twitch moderator scopes

* feat(twitch): Add IRC and PubSub-specific chat scopes to types

* feat(twitch): Add new type definitions for Twitch API responses

* feat(twitch): Add new user-related scopes for Twitch API

* feat(twitch): Add type definitions and import paths for Twitch provider

* feat(twitch): Implement Twitch OAuth handlers and response types for mock api

* feat(twitch): Add revokeToken function to handle OAuth token revocation

* feat(twitch): Add Twitch OAuth middleware mocks and tests

* feat(twitch): Implement Twitch OAuth authentication flow and user data retrieval

* feat(twitch): Add custom state handling for Twitch OAuth middleware

* docs(twitch): Update README with Twitch OAuth integration details

* docs: Update Twitch API reference link for scopes in README

* fix(twitch): Remove error handling for error_description in auth flow

* refactor(twitch): Update token handling and response types for refresh and revoke

* feat(twitch): Add token validation function for Twitch OAuth

* feat(twitch): Add token validation handler and update response types

* docs: Add token validation section to README for Twitch integration

* chore(oauth-providers): changesets summary

* fix(twitch): make redirect_uri optional in twitchAuth options

* refactor(twitch): clean up commented code and improve test assertions

* refactor(twitch): improve type assertions for JSON responses

* refactor(twitch): update type assertion for JSON response handling

* semver amendment

Changed version from patch to minor

* docs: update README with token validation instructions for Twitch

---------

Co-authored-by: Younis-Ahmed <23105954+jonaahmed@users.noreply.github.com>
2025-03-12 17:55:47 +09:00
github-actions[bot] f7cdf60217 Version Packages 2025-03-11 08:16:20 +00:00
Hong Minhee 15f3dddc3e
feat(otel): Add OpenTelemetry middleware
Close https://github.com/honojs/hono/issues/1864
2025-03-10 19:29:14 +09:00
github-actions[bot] 7007f19734
Version Packages (#1002)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-05 09:51:46 +09:00
Joaquin Gimenez 69c3983d20
feat(cloudflare-access): Add support to read JWT from Cookie (#1001) 2025-03-05 09:20:59 +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] 50936f9967
Version Packages (#991)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-02 16:13:40 +09:00
Younis 708aa3510c
fix(swagger-ui): fix configuration bug (#988)
* fix(swagger-ui): Handle undefined options and improve rendering logic for non-RENDER_TYPE_MAP edge cases

* test(option-renderer): Add tests for filtering and handling invalid properties

* fix(swagger-ui): Handle undefined options and improve rendering logic

---------

Co-authored-by: Younis-Ahmed <23105954+jonaahmed@users.noreply.github.com>
2025-03-02 15:52: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] fa8ed2804f
Version Packages (#975) 2025-02-23 15:35:06 +09:00
Dmytro Kulyk 6f90a574c4
feat(node-ws): Reject unexpected WebSocket connections (#973)
* Added rejection of WebSocket connections when the app does not expect them

* added changeset

* Updated waiter names; removed strict option
2025-02-23 15:31:44 +09:00
github-actions[bot] 57b9f5dbdc
Version Packages (#972) 2025-02-17 14:30:48 +09:00
ghaaj be181bfff6
feat(react-renderer): Include a doctype statement by default (#971)
* feat(react-renderer): Include a doctype statement by default

* chore: Add changeset
2025-02-17 10:40:35 +09:00
github-actions[bot] a2fdda7f6f
Version Packages (#969)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-15 10:44:19 +09:00
Yusuke Wada b65d5a5861
fix(zod-validator): fix commonjs import problem (#968)
* fix(zod-validator): fix commonjs import problem

* add changeset
2025-02-15 10:40:26 +09:00
github-actions[bot] 305f463cf6
Version Packages (#967) 2025-02-10 18:45:17 +09:00
paihu 352507bc06
fix(standard-validator): fix hook's result type (#964)
* fix standard validator type

* add test and format code

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-02-10 18:42:04 +09:00
github-actions[bot] 0ebb6854fc
Version Packages (#966) 2025-02-10 18:13:23 +09:00
Shotaro Nakamura c24efa6b8a
fix(node-ws): ws wasn't created when upgrade process is async (#959)
* fix(node-ws): ws wasn't created when upgrade process is async

* chore: add changeset

* add test

* Update big-pillows-shave.md
2025-02-10 18:10:03 +09:00
github-actions[bot] 4f927dfaa8
Version Packages (#963) 2025-02-07 10:02:30 +09:00
Rokas Muningis 8e5f49394b
fix(standard-validator): remove dead code (#962)
* fix(standard-validator): remove dead code

* chore(standard-validator): changeset
2025-02-07 09:39:07 +09:00
github-actions[bot] 08b7e0d1de
Version Packages (#961) 2025-02-06 21:45:16 +09:00
Rokas Muningis f77d7ba2e2
feat(standard-validator): Add standard schema validation (#887)
* feat(standard-validator): Add standard schema validation

* feat(standard-validator): add changeset

* feat(standard-validator): reintroduce type tests

* feat(standard-validator): simplif tests

* build(standard-validator): add gitlab pipeline

* chore(standard-validator): remove redundant files

* feat(standard-validator): cleanup tests, adjust comments

* fix(standard-validator): adjust versions, fix doc

* build: fix lockfile

* feat(standard-validator): drop headers lower-casing, update readme

* check types in test dir and add `tsc` to the test command
2025-02-06 21:38:36 +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
github-actions[bot] deae708dde
Version Packages (#953) 2025-02-02 21:30:01 +09:00
Yusuke Wada c80ffbfb4c
fix(node-ws): allow `Hono` with custom Env for `createNodeWebSocket` (#951)
* fix(node-ws): allow `Hono` with custom Env

* add changeset
2025-02-02 21:25:54 +09:00
github-actions[bot] 5cad2e1afe
Version Packages (#950) 2025-02-02 08:09:20 +09:00
Yusuke Wada 401dddc484
fix(typebox-validator): correct exporting in `package.json` (#949)
* fix(typebox-validator): correct exporting in `package.json`

Co-authored-by: asomethings <16171942+asomethings@users.noreply.github.com>

* add changeset

---------

Co-authored-by: asomethings <16171942+asomethings@users.noreply.github.com>
2025-02-02 08:06:17 +09:00
github-actions[bot] c96c9dec78
Version Packages (#945) 2025-01-23 11:13:14 +09:00
Christopher Fraser 63508a56bb
fix(typebox-validator): Fix @hono/typebox-validator, when imported as esm, transiently importing typebox as cjs (#942) 2025-01-23 10:51:53 +09:00
github-actions[bot] 6691c0e28e
Version Packages (#941) 2025-01-21 18:43:45 +09:00
Adel Ak 3e2db6dc33
fix(node-ws): Added missing WSContext raw type (#940)
* node-ws: Added missing WSContext raw type

* Updated hono version and added it as peer dependencies

* update `package.json` and the lock file

* add changeset

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2025-01-21 18:39:56 +09:00
github-actions[bot] ecb7a1df14
Version Packages (#937) 2025-01-17 19:17:54 +09:00
Yoshio HANAWA be34f6908f
fix(oidc-auth): Fixed type error (#936) 2025-01-17 19:14:12 +09:00