v4.12.23

supertone-oss-archive/supertonicv4.12.23May 25, 2026by yusukebe

AI Summary

Hono v4.12.23 fixes serve-static backslash normalization, exports the Context class publicly, and adds options for compression contentType filtering.

Key Highlights

  • Fixed serve-static normalization for all backslashes in file paths
  • Exported the Context class publicly
  • Added contentTypeFilter option and COMPRESSIBLE_CONTENT_TYPE_REGEX

Breaking Changes

  • Context class is now exported publicly (previously private/internal)

New Features

  • Enhanced compression middleware control
  • Improved serve-static path handling

Full Release Notes

## What's Changed
* fix(serve-static): normalize all backslashes in file paths, not just the first in https://github.com/honojs/hono/pull/4962
* feat(context): export the Context class publicly by @BlankParticle in https://github.com/honojs/hono/pull/4543
* docs(contribution): add AI Usage Policy by @yusukebe in https://github.com/honojs/hono/pull/4970
* feat(compress): add contentTypeFilter option and `COMPRESSIBLE_CONTENT_TYPE_REGEX` re-export by @na-trium-144 in https://github.com/honojs/hono/pull/4961
* fix(utils/ipaddr): do not compress a single 0 group to `::` by @yusukebe in https://github.com/honojs/hono/pull/4971

**Full Changelog**: https://github.com/honojs/hono/compare/v4.12.22...v4.12.23