Releases: honojs/middleware
@hono/oauth-providers@0.7.0
Minor Changes
-
#981
e5f383787c2bd47657f67a99074515eab969963b
Thanks @Younis-Ahmed! - These chages introduces a Twitch OAuth provider, expanding the middleware's OAuth offerings. It includes a new middleware for Twitch authentication, a dedicatedAuthFlow
class, token refreshing/revocation/validation, and comprehensive type definitions. Detailed tests ensure correct behavior and error handling.-
Twitch OAuth Middleware
src/providers/twitch/twitchAuth.ts
: Implements the core authentication flow, handling state management, redirects, and context variable setting (token
,refresh-token
,user-twitch
,granted-scopes
). -
AuthFlow Class
src/providers/twitch/authFlow.ts
: Encapsulates token exchange and user data retrieval, with robust error handling. -
Token Operations
src/providers/twitch/refreshToken.ts
: Provides functions for refreshing and revoking tokens. -
Type Definitions `src/providers/twitch/types.ts: Defines comprehensive types for Twitch API responses.
-
Extensive Testing (
test/handlers.ts
,test/index.test.ts
): Includes unit tests covering redirection, valid code flow, error handling, refresh/revoke token, custom and built-in state scenarios, using a mock server. -
Validate Token
src/providers/twitch/validateToken
: That hit/validate
endpoint to verify that the access token is still valid for reasons other than token expiring.
-
@hono/otel@0.1.0
Minor Changes
- #901
15f3dddc3eea43db8bb1da8bf456c2e79c85a4d6
Thanks @dahlia! - Initial OpenTelemetry support with Hono
@hono/cloudflare-access@0.3.0
Minor Changes
- #1001
69c3983d2073cbcaa45ecf8eb635bcd16dd36218
Thanks @JoaquinGimenez1! - Add support to read JWT from Cookie
@hono/zod-openapi@0.19.2
Patch Changes
- #995
c279ba2bc5204b1b9effc92c45f129904ea67795
Thanks @luxass! - fix(zod-openapi): correctly handle path parameters in basePath
@hono/zod-openapi@0.19.1
Patch Changes
- #992
3c738f5ea44f5f5e5cdc14dfeaba5c04188d6373
Thanks @yusukebe! - fix: replace path param strings correctly in basePath
@hono/swagger-ui@0.5.1
Patch Changes
- #988
708aa3510c9847194974e91de9f0f323da945773
Thanks @Younis-Ahmed! - - 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
@hono/zod-openapi@0.19.0
Minor Changes
- #984
59c6356aac42d360a06cbc9357921283e455ade4
Thanks @rmichalak! - Add ability to exclude specific routes from OpenAPI docs
@hono/node-ws@1.1.0
Minor Changes
- #973
6f90a574c465b4d0ecadbe605bdf434b9f3c95f3
Thanks @dkulyk! - Added rejection of WebSocket connections when the app does not expect them
@hono/react-renderer@0.3.0
Minor Changes
- #971
be181bfff63298c656b230092fb0dfa700ad30a4
Thanks @ghaaj! - Thedoctype
option defaults to true
@hono/zod-validator@0.4.3
Patch Changes
- #968
b65d5a58616f861520047dd08babc9cd1d81cbd1
Thanks @yusukebe! - fix: fix commonjs import problem