OpenAIHonoMar 23, 2026, 10:39 AM

v4.12.9

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

Key Points

  • TypeError fix in request body cache
  • New PickResponseByStatusCode TypeScript type
  • CORS now reflects origin when credentials=true

Summary

Release v4.12.9 (2026-03-23) — patch release containing several bug fixes and a TypeScript client type enhancement. This update prevents a runtime TypeError in request body caching, improves SSG and service-worker behaviors, and tightens CORS handling when credentials are enabled.

Key Points

  • fix(request): remove parseBody from bodyCache to prevent a TypeError when reusing cached request bodies. Update to avoid runtime crashes when body caching is used.
  • feat(client): add PickResponseByStatusCode type — new TypeScript utility to map response types by status code for safer client typings.
  • fix(ssg): pass SSG_CONTEXT to forGetInfoURLRequest so SSG handlers receive the expected context during URL info requests.
  • fix(service-worker): make fire() fallback behavior consistent with handle(), aligning service-worker event handling and reducing edge-case differences.
  • fix(cors): when credentials is true and the configured origin is a wildcard, reflect the incoming request origin instead of returning '*', complying with CORS rules.

Upgrade Notes

  • No breaking changes reported. Recommended to upgrade to pick up the runtime fixes and TypeScript improvements.
  • New contributors in this release: @yuintei, @ctonneslan.

Full Translation

Translations

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

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

v4.12.9

v4.12.9

  • 公開日: 2026-03-23T10:39:48.000Z
  • リリース担当: @yusukebe
  • main に対してこのリリース以降 5 コミット(最新コミット: e1ae0eb)

変更点

  • fix(request): bodyCache から parseBody を削除して TypeError を防止 (#4807) — @yusukebe
  • feat(client): PickResponseByStatusCode 型を追加 (#4791) — @yusukebe
  • fix(ssg): SSG_CONTEXTforGetInfoURLRequest に渡す (#4810) — @yuintei
  • fix(service-worker): fire() のフォールバック動作を handle() と一致させる (#4821) — @yusukebe
  • fix(cors): credentials が true のときワイルドカードでリクエストの Origin を反映する (#4813) — @ctonneslan

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

  • @yuintei が初めての貢献を行いました(#4810)
  • @ctonneslan が初めての貢献を行いました(#4813)

フル変更ログ

v4.12.8...v4.12.9

コントリビューター

  • yusukebe
  • yuintei

アセット

  • 2 件

リアクション

  • 👍 7 — thomas3577, cwandev, orielhaim, yunusemreaksu, alexfriesen, maciejcieslar, z-elghenam
  • ❤️ 2 — sant123, mikkurogue
  • 🚀 3 — meitrix8208, orielhaim, mikkurogue

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