Commit Graph

650 Commits (acff470c7fe5f39ad7ff79843e2ba9eb801579b6)

Author SHA1 Message Date
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
github-actions[bot] 3d1cdd7c98
Version Packages (#929) 2025-01-09 12:17:00 +09:00
Yoshio HANAWA 2f716d619d
feat(oidc-auth): support absolute path for redirect URI (#926)
* feat(oidc-auth): support absolute path for redirect URI

* Apply suggestions from code review

Change variable names to camelCase

Co-authored-by: tempepe <maekawa@tempepe.com>

* Update .changeset/kind-cheetahs-give.md

---------

Co-authored-by: tempepe <maekawa@tempepe.com>
2025-01-09 12:12:21 +09:00
github-actions[bot] c7b15e365d
Version Packages (#927) 2025-01-08 19:53:03 +09:00
Álvaro Ortiz c5abbc993d
fix(valibot-validator): Fix response query types on RPC (#914)
Fixes #899

* fix(valibot-validator): Fix query types on RPC

* Add changeset

* Remove valibot issue flatenning

* Add types test
2025-01-08 19:48:44 +09:00
github-actions[bot] d48ec05519
Version Packages (#925) 2025-01-05 18:27:13 +09:00
tempepe 4a0606f774
feat(oidc-auth): optional cookie domain (#919) 2025-01-05 18:23:44 +09:00
github-actions[bot] 88135cbee5
Version Packages (#924) 2025-01-05 17:17:08 +09:00
Kei Kamikawa 0e4118b096
update(firebase-auth): updated firebase deps (#923) 2025-01-05 17:05:41 +09:00
github-actions[bot] c9d96ee6c2
Version Packages (#902) 2024-12-23 11:24:35 +09:00
Gabriel Massadas b71d817f71
feat(cloudflare-access): Handle Access organization does not exist and Access not available cases (#898) 2024-12-23 11:19:56 +09:00
github-actions[bot] f30f7ee28c
Version Packages (#889) 2024-12-15 18:59:37 +09:00
miyaji255 c63470e491
feat(typia-validator): support typia http module (#888)
* feature(typia-validator): support typia http module

* feature(typia-validator): add change-set & update README
2024-12-15 18:54:40 +09:00
github-actions[bot] f58f47ebd1
Version Packages (#886) 2024-12-13 17:22:31 +09:00
Gabriel Massadas 2720ac7172
feat: Add Cloudflare Access middleware (#880) 2024-12-13 17:16:11 +09:00
github-actions[bot] 9150550bb8
Version Packages (#885) 2024-12-13 17:01:35 +09:00
Anthony Skorupskyy 803f011e41
fix(zod-validator): support for case-insensitive `headers` target validation (#860) 2024-12-13 16:57:49 +09:00
github-actions[bot] 27ff98f26e
Version Packages (#877) 2024-12-10 13:02:09 +09:00
Husam Elbashir a092ffaadb
fix(node-ws): websocket upgrade header value case sensitivity (#876) 2024-12-10 12:58:31 +09:00
github-actions[bot] 6524a92a9e
Version Packages (#868) 2024-12-03 17:52:25 +09:00
Lindelwe Michael Ncube c815055bb6
feat(typebox-validator): Add strict schema (#866) 2024-12-03 16:14:44 +09:00
github-actions[bot] 21403ec5c0
Version Packages (#867) 2024-12-03 10:06:18 +09:00
Gaubee d67e279d82
fix(trpc-server) The Request.url getter can only be used on instances of Request (#864) 2024-12-03 09:59:58 +09:00