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.