OpenAIHonoMar 4, 2026, 9:40 AM

v4.12.5

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

Key Points

  • param() returns string | undefined for any path
  • JWT decode functions now validate token format
  • Fix JSX controller already closed error

Summary

v4.12.5 is a patch release (2026-03-04) focused on bug fixes and a minor tooling chore. It resolves runtime and validation issues affecting request parameter typing, JWT decoding, and a JSX controller lifecycle error. No breaking changes are expected.

Key Points

  • fix(request): param() now returns string | undefined when the path param type is any (regression fix) — PR #4723.
  • fix(jwt): validate token format in decode and decodeHeader to avoid silent failures when token shape is invalid — PR #4752.
  • fix(jsx): resolves "Invalid state: Controller is already closed" by correcting controller lifecycle handling in JSX rendering paths — PR #4770.
  • chore(eslint): upgrades @hono/eslint-config (dev tooling update) — PR #4781.
  • New contributors: @andrewdamelio, @otoneko1102, @gaearon.

Upgrade

This is a safe patch release. To upgrade:

  • npm: npm install hono@4.12.5
  • yarn: yarn add hono@4.12.5

No code changes are required for these fixes, but review any code that relied on the previous param() typing if you used any-typed path params.

References

See the changelog range: v4.12.4...v4.12.5 for full details and PR links.

Full Translation

Translations

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

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

v4.12.5

v4.12.5

  • 公開日: 2026-03-04T09:40:45.000Z
  • 公開者: yusukebe
  • コミット: 18cc595
  • このリリース以降、main ブランチに 24 件のコミットがあります

変更点 (What's Changed)

  • fix(request): path type が any のとき param()string | undefined を返すように修正 — @andrewdamelio(#4723)
  • fix(jwt): decode および decodeHeader 関数でトークンの形式を検証するよう修正 — @otoneko1102(#4752)
  • fix(jsx): "Invalid state: Controller is already closed" エラーを修正 — @gaearon(#4770)
  • chore(eslint): @hono/eslint-config をアップグレード — @BarryThePenguin(#4781)

新しいコントリビューター

  • @andrewdamelio が初めての貢献(#4723)
  • @otoneko1102 が初めての貢献(#4752)
  • @gaearon が初めての貢献(#4770)

フルチェンジログ

v4.12.4...v4.12.5

コントリビューター

gaearon、BarryThePenguin、その他 2 名

アセット

  • 2 件

リアクション

  • 👍 1(Dxig)
  • 🎉 1(otoneko1102)
  • ❤️ 2(sant123、nagauta)
  • 🚀 5(orielhaim、kfly8、meitrix8208、maciejcieslar、nagauta)

(合計: 8 人がリアクションしました)