v4.6.12

honojs/honov4.6.12Nov 25, 2024by yusukebe

AI Summary

This is a minor patch release (v4.6.12) of the Hono web framework focusing on performance optimizations and a security enhancement. The release includes router performance improvements, CSP nonce support for CSS, and a bug fix for AWS Lambda ALB event handling.

Key Highlights

  • Performance improvement: router now sorts handlers by score only when necessary
  • Security enhancement: added CSP nonce support for hono/css style and script tags
  • Bug fix: added ALB event requestContext undefined check for AWS Lambda adapter
  • CI improvement: added KB support for performance measurements

New Features

  • CSP nonce support for hono/css style and script tags (security feature for Content Security Policy)
  • Router optimization to sort handlers by score only when necessary
  • AWS Lambda ALB event requestContext undefined check for testing convenience

Full Release Notes

## What's Changed
* ci(perf-measures): support `KB` by @EdamAme-x in https://github.com/honojs/hono/pull/3696
* perf(router): sort handlers by score only when necessary by @EdamAme-x in https://github.com/honojs/hono/pull/3697
* feat(css): add CSP nonce to hono/css related style and script tags by @meck93 in https://github.com/honojs/hono/pull/3685
* fix(adapter/aws-lambda): add alb event requestContext undefined check for testing convenience by @ospatil in https://github.com/honojs/hono/pull/3691

## New Contributors
* @meck93 made their first contribution in https://github.com/honojs/hono/pull/3685
* @ospatil made their first contribution in https://github.com/honojs/hono/pull/3691

**Full Changelog**: https://github.com/honojs/hono/compare/v4.6.11...v4.6.12