Key Points
- Normalize MIME extension to lowercase
- Escape regex in bearer-auth prefix
- Patch release — no breaking changes
Summary
v4.12.8 is a patch release that fixes two bugs affecting MIME detection and bearer-auth prefix handling. These are backward-compatible bug fixes and recommended for all users.
Key Points
- Fix: utils/mime — normalize input extension to lowercase before MIME check (#4800). This prevents mismatches when file extensions are provided in upper/mixed case.
- Fix: bearer-auth — escape regex metacharacters in the bearer auth prefix option (#4750). Prevents accidental regex interpretation when the prefix contains special characters.
- No breaking changes; upgrade is safe. To update:
npm install hono@4.12.8or your preferred package manager. - Contributors: @TheEssem, @otoneko1102
- Published: 2026-03-14T08:48:29.000Z