v4.12.23

honojs/honov4.12.23May 25, 2026by yusukebe

AI Summary

This is a minor patch release that includes bug fixes for serve-static and ipaddr utilities, new features for the Context class and compress middleware, and documentation updates. The release adds public export of the Context class and enhances the compress middleware with a contentTypeFilter option.

Key Highlights

  • Fixed serve-static to normalize all backslashes in file paths, not just the first
  • Exported Context class publicly for external use
  • Added contentTypeFilter option to compress middleware with COMPRESSIBLE_CONTENT_TYPE_REGEX re-export
  • Fixed ipaddr utility to not compress a single 0 group to ::
  • Added AI Usage Policy to contribution documentation

New Features

  • Context class is now exported publicly
  • compress middleware now supports contentTypeFilter option
  • COMPRESSIBLE_CONTENT_TYPE_REGEX is now re-exported from compress middleware

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