OpenAIHonoJul 24, 2026, 8:56 AM

v4.12.32

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

v4.12.32 — bug fixes, CI reports, and type updates

Key Points

  • aws-lambda types for API Gateway v2
  • sse resets Last-Event-ID with empty id
  • parsing uses Object.create(null) to avoid prototype inheritance

Summary

Release v4.12.32 delivers several bug fixes, CI improvements, and TypeScript type updates. Key items include improved CI reporting for type and bundle-size checks, added AWS Lambda API Gateway v2 types, a fix for SSE Last-Event-ID handling, safer parsing of query/headers/params, CSP callback scoping, and extra Cloudflare Workers websocket tests.

Key Points

  • CI: enable reports for type and bundle-size checks (#5148) — CI now surfaces type errors and bundle-size regressions.
  • aws-lambda: add jwt and lambda authorizer types for API Gateway v2 (#5142) — TypeScript typings improved for Lambda + API Gateway v2 authorizers.
  • sse: emit empty id field to reset Last-Event-ID (#5138) — fixes persistent Last-Event-ID issues on clients by explicitly resetting the ID when needed.
  • parsing: use Object.create(null) when parsing query, headers, and params (#5161) — parsed objects no longer inherit from Object.prototype, reducing risk of key collisions and prototype pollution.
  • secure-headers: keep CSP callbacks scoped to their header (#5147) — Content-Security-Policy callbacks won't leak or affect other headers.
  • tests: add Cloudflare Workers websocket coverage for onClose, onError, send, and close (#5145) — increases test coverage for the websocket adapter; no runtime changes expected.

Upgrade Notes

  • No breaking changes reported. Update to v4.12.32 to get fixes and improved type/CI visibility.
  • TypeScript users will benefit from the new aws-lambda types for API Gateway v2.
  • Review any custom code that relied on inherited properties from parsed query/headers/params; parsed objects are now plain dictionaries created with Object.create(null).

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

v4.12.32

v4.12.32

公開: 2026-07-24T08:56:41Z
リリース: yusukebe (commit 26d8e42)

概要

hono のリリース v4.12.32 のリリースノート。

変更点

  • 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, and params in #5161
  • fix(secure-headers): keep CSP callbacks scoped to their header in #5147

フル変更履歴

Full Changelog : v4.12.31...v4.12.32

アセット

  • Assets: 2

リアクション

  • ❤️ 4 — sant123、marr-cloud、CheapNightbot、Domdkw によるリアクション