OpenAIHonoJul 6, 2026, 10:08 AM

v4.12.28

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.28

Key Points

  • serve-static treats empty-string content as found
  • AWS Lambda V2 detection improved via request context
  • Content-Type media type matching normalized

Summary

This patch release fixes several bugs and documentation issues across static serving, request/body handling, AWS Lambda event detection, and Bun WebSocket handling. It also includes minor packaging and dev-dependency updates. No explicit breaking changes were announced.

Key Points

  • serve-static: treat an empty-string response body as a found resource to avoid false 404s.
  • Request/raw headers docs: req.raw.headers is a property (not a method) — update any code calling it as a function.
  • Content-Type normalization: body utils and validator now normalize media types for case-insensitive matching (e.g., "Application/JSON" vs "application/json").
  • Circular import: fixed an import cycle between body.ts and request.ts to prevent runtime/ bundling issues.
  • AWS Lambda: better detection of API Gateway V2 events by inspecting the request context instead of relying on rawPath alone.
  • Bun WebSocket: WSContext.protocol now reports the requested subprotocol correctly.
  • Packaging/dev: .tsbuildinfo files excluded from published package and devDependencies bumped.
  • Contributor notes: three first-time contributors were merged in this release.

Upgrade notes / action items

  • If you previously accessed req.raw.headers as a function, change it to use the property form (req.raw.headers).
  • Check any custom Content-Type checks to rely on normalized media types (case-insensitive comparisons).
  • If you encountered runtime errors from circular imports between body/request modules, update to this release to resolve them.

References

Release: v4.12.28 · published 2026-07-06T10:08:05.000Z

Full Translation

Translations

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

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

v4.12.28

v4.12.28

  • リリース: 2026-07-06T10:08:05.000Z
  • 公開者: yusukebe
  • コミット: 626b185

変更点

  • fix(serve-static): 空文字のコンテンツを「見つかった」と扱うように — @yusukebe による #5062
  • docs(MIGRATION): req.raw.headers の参照を修正(メソッドではなくプロパティ) — @EduardF1 による #5047
  • chore: *.tsbuildinfo を公開しないように — @yusukebe による #5066
  • fix(utils/body,validator): 大文字小文字を区別しない照合のために Content-Type のメディアタイプを正規化 — @yusukebe による #5067
  • fix: body.tsrequest.ts 間の循環依存を回避 — @usualoma による #5071
  • fix(bun): WSContext.protocol で要求されたサブプロトコルを報告するように — @greymoth-jp による #5059
  • chore: devDependencies を更新 — @yusukebe による #5085
  • fix(aws-lambda): V2 イベントを rawPath のみではなくリクエストコンテキストで検出するように — @VihaanAgarwal による #5033
  • docs(context-storage): JSDoc を修正 — @yusukebe による #5086

新規コントリビューター

  • @EduardF1 は #5047 で最初の貢献をしました
  • @greymoth-jp は #5059 で最初の貢献をしました
  • @VihaanAgarwal は #5033 で最初の貢献をしました

その他

  • 完全な変更履歴: v4.12.27...v4.12.28
  • コントリビューター: yusukebe、usualoma、その他3名
  • アセット: 2 件

リアクション

  • 👍 6: yncynotdev, quentinmcq, acoBOYZ, Foshati, julioolivares90, marr-cloud
  • ❤️ 1: sant123
  • 合計リアクション: 7 人