H

Hono

H
Hono Web v4.12.33

v4.12.33

What's Changed fix(cookie): relax name validation when parsing Cookie header in #5164 chore: bump @hono/node-server in #5167 fix(jsx): handle useSyncExternalStore subscription and snapshot changes in #5166 chore: remove undici in favor of global fetch in #5168 Full Changelog: v4.12.32...v4.12.33

H
Hono Web v4.12.32

v4.12.32

What's Changed ci: enable reports for type & bundle size check in #5148 fix(aws-lambda): add jwt and lambda authorizer types for API Gateway v2 in #5142 fix(sse): emit empty id field to reset Last-Event-ID in #5138 test(cloudflare-workers): add coverage for onClose, onError, send, and close in Cloudflare Workers websocket adapter in #5145 fix: use Object.create(null) when parsing query, headers, a…

H
Hono Web v4.12.31

v4.12.31

What's Changed test(context): assert case-insensitive header names in response helpers by @yusukebe in #5116 chore(benchmark): add app.fetch() overhead benchmark by @yusukebe in #5117 refactor(aws-lambada): remove FIXME in @ts-expect-error by @yusukebe in #5130 fix(utils/body): reuse cached formData in parseBody() by @yusukebe in #5131 fix(request): fix multipart boundary mismatch in cloneRawReque…

H
Hono Web v4.12.30

v4.12.30

What's Changed chore(benchmark/routers): bump deps in #5107 chore(benchmark): remove not used benchmarks in #5108 chore: update to ts6 in prep for ts7 in #5104 fix(cache): deduplicate Cache-Control directives case-insensitively in #5025 fix(compress): do not compress 206 Partial Content responses in #5020 fix(client): replaceUrlParam should not match a param that prefixes another in #5096 fix(meth…

H
Hono Web v4.12.29

v4.12.29

What's Changed fix(client): merge function headers with per-request headers by @yusukebe in #5092 chore: fix no-op tsc in test script by @yusukebe in #5093 fix(lambda-edge): resolve the handler with the value passed to the callback by @yusukebe in #5094 docs(language): add JSDoc @example to languageDetector by @codebybilal18 in #5081 test(workerd): add compatibilityDate by @yusukebe in #5100 fix(l…

H
Hono Web v4.12.28

v4.12.28

What's Changed fix(serve-static): treat empty string content as found by @yusukebe in #5062 docs(MIGRATION): fix req.raw.headers reference (property, not method) by @EduardF1 in #5047 chore: don't publish *.tsbuildinfo by @yusukebe in #5066 fix(utils/body,validator): normalize Content-Type media type for case-insensitive matching by @yusukebe in #5067 fix: avoid circular dependency between body.ts…

H
Hono Web v4.12.27

v4.12.27

Security fixes This release includes fixes for the following security issues: hono/jsx does not isolate context per request Affects: hono/jsx, hono/jsx-renderer. During SSR, context was stored process-wide instead of per request, so useContext()/useRequestContext() read after an await in an async component could return another concurrent request's value — leading to cross-request data disclosure o…

H
Hono Web v4.12.26

v4.12.26

What's Changed fix(lambda-edge): satisfy Deno lib types for Content-Length body encoding by @yusukebe in #5013 ci: publish to npm from CI with OIDC trusted publishing by @yusukebe in #5028 chore: remove unused devcontainer and gitpod configs by @yusukebe in #5029 chore: replace arg and glob with Bun native APIs in build script by @yusukebe in #5030 Full Changelog: v4.12.25...v4.12.26

H
Hono Web v4.12.25

v4.12.25

Security fixes This release includes fixes for the following security issues: CORS Middleware reflects any Origin with credentials when origin defaults to the wildcard Affects: hono/cors. Fixes the wildcard origin reflecting the request Origin and sending Access-Control-Allow-Credentials: true when credentials: true is set without an explicit origin, where any site a logged-in user visited could m…

H
Hono Web v4.12.24

v4.12.24

What's Changed docs(contribution): simplifyAI Usage Policy by @yusukebe in #4972 chore: remove @types/glob by @rtritto in #4978 fix(bearer-auth): mention verifyToken in missing-options error message by @tan7vir in #4987 refactor(language): Test/improve tests on languages middleware by @iNeoO in #4980 fix(utils/ipaddr): expand "::" to eight zero groups by @youcefzemmar in #4973 fix: clean up config…

H
Hono Web v4.12.23

v4.12.23

What's Changed fix(serve-static): normalize all backslashes in file paths, not just the first in #4962 feat(context): export the Context class publicly by @BlankParticle in #4543 docs(contribution): add AI Usage Policy by @yusukebe in #4970 feat(compress): add contentTypeFilter option and COMPRESSIBLE_CONTENT_TYPE_REGEX re-export by @na-trium-144 in #4961 fix(utils/ipaddr): do not compress a singl…

H
Hono Web v4.12.22

v4.12.22

What's Changed chore: update vitest to v4 and cleanups by @BlankParticle in #4952 fix(mime): specify charset parameter per MIME type instead of mechanical detection by @renatograsso10 in #4912 fix(compress): respect Accept-Encoding when encoding option is set by @LeSingh1 in #4951 fix(deno): echo negotiated WebSocket subprotocol in upgrade response by @ATOM00blue in #4955 feat: add msgpack as a co…

H
Hono Web v4.12.21

v4.12.21

Security fixes This release includes fixes for the following security issues: app.mount() strips mount prefix using undecoded path, causing incorrect routing for percent-encoded paths Affects: app.mount(). Fixes prefix stripping using the raw URL pathname instead of the decoded path, where percent-encoded characters in the mount prefix or path could cause the prefix to be removed at the wrong posi…

H
Hono Web v4.12.20

v4.12.20

What's Changed fix(route): preserve the base path of the mounted route() app by @usualoma in #4942 fix(jsx): widen jsx and jsxFn children to Child[] by @ashunar0 in #4947 New Contributors @ashunar0 made their first contribution in #4947 Full Changelog: v4.12.19...v4.12.20

H
Hono Web v4.12.19

v4.12.19

What's Changed ci: pin GitHub Actions to SHAs by @yusukebe in #4932 fix(serveStatic): make options parameter optional in all adapters by @mixelburg in #4934 fix(cookie): return the first cookie when there are multiple cookies with the same name by @usualoma in #4922 feat(bearer-auth): make bearerAuth generic for typed context in verifyToken by @justinnais in #4913 feat(cache): key cache entries by…

H
Hono Web v4.12.18

v4.12.18

Security fixes This release includes fixes for the following security issues: Cache Middleware ignores Vary: Authorization / Vary: Cookie leading to cross-user cache leakage Affects: Cache Middleware. Fixes missing cache-skip handling for Vary: Authorization and Vary: Cookie, where a response cached for one authenticated user could be served to other users. GHSA-p77w-8qqv-26rm CSS Declaration Inje…