Commit Graph

920 Commits (b73b7aed29afa58da489cd8dfd88c57c1f80390d)

Author SHA1 Message Date
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
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
Yusuke Wada 44efa2a048
Merge pull request #1011 from honojs/changeset-release/main
Version Packages
2025-03-11 17:17:00 +09:00
github-actions[bot] f7cdf60217 Version Packages 2025-03-11 08:16:20 +00:00
Yusuke Wada 8ee52ec554
Merge pull request #901 from dahlia/otel
feat(otel): Add OpenTelemetry middleware
2025-03-11 17:13:33 +09: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
Jonathan Haines 21c6b5b3f9
test(auth-js): use node 20.x in CI (#1008) 2025-03-07 08:51:16 +09:00
Jonathan Haines 0c24e85798
test(oauth-providers): use node 20.x in CI (#1004)
Fixes #1003
2025-03-06 07:33:42 +09:00
Jonathan Haines cc26ddcae3
test(typia-validator): use `unplugin-typia` (#1000)
* test(typia-validator): use `unplugin-typia`

Fixes #999

* chore: cleanup ignored test-generated
2025-03-05 14:13:40 +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
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] 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
miyaji255 1e0f0a0175
deps: Update vitest (#931) 2025-01-14 15:59:41 +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