OpenAIHonoMay 25, 2026, 2:00 AM

v4.12.23

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

Key Points

  • normalize backslashes in serve-static
  • export Context class publicly
  • add compress contentTypeFilter option

Summary

v4.12.23 (2026-05-25) is a minor maintenance release that includes bug fixes, a small public API export, a new compression option, and documentation updates. It addresses Windows path normalization for static serving, an IPv6 formatting edge case, and adds configurability to the compression middleware.

Key Points

  • fix(serve-static): normalize all backslashes in file paths (Windows) — ensures consistent handling of paths that contain multiple backslashes; no API change but may affect custom path-normalization logic.
  • feat(context): export the Context class publicly — Context can now be imported directly for typing, subclassing, or advanced use cases.
  • feat(compress): add contentTypeFilter option and re-export COMPRESSIBLE_CONTENT_TYPE_REGEX — allows supplying a custom filter or regex to control which responses are compressed.
  • fix(utils/ipaddr): do not compress a single 0 group to :: — fixes an IPv6 formatting edge case that produced incorrect compressed addresses.
  • docs(contribution): add AI Usage Policy and minor changelog updates.

Contributors: yusukebe, na-trium-144, BlankParticle.

Upgrade notes:

  • No breaking changes reported. Review any code that relied on previous backslash normalization or the old IPv6 string output. If you need custom compression behavior, configure the new contentTypeFilter option.

Full Translation

Translations

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

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

v4.12.23

v4.12.23

リポジトリ: honojs / hono (Public)

リリース日時: 2026-05-25T02:00:24.000Z — released this 25 May 02:00 · 1 commit to main since this release

コミット: 83bfb3b

変更点(What's Changed)

  • fix(serve-static): ファイルパス内のバックスラッシュを最初の1つだけでなくすべて正規化するように修正しました(#4962)。
  • feat(context): Context クラスを公開エクスポートするように追加しました(#4543、@BlankParticle)。
  • docs(contribution): AI Usage Policy を追加しました(#4970、@yusukebe)。
  • feat(compress): contentTypeFilter オプションと COMPRESSIBLE_CONTENT_TYPE_REGEX の再エクスポートを追加しました(#4961、@na-trium-144)。
  • fix(utils/ipaddr): 単一の 0 グループを :: に圧縮しないように修正しました(#4971、@yusukebe)。

フルチェンジログ

Full Changelog: v4.12.22...v4.12.23

コントリビューター

  • yusukebe
  • na-trium-144
  • BlankParticle

アセット

  • 2

リアクション

  • 👍 6 — marr-cloud、orielhaim、melon-dog、amurpo、maciejcieslar、lppedd がリアクション
  • ❤️ 1 — acoBOYZ がリアクション

合計 7 人がリアクションしました。