npm / @hono/node-server
@hono/node-server
What changed in @hono/node-server 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
2 breaking4 security1 new APIs and options3 performance6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@hono/node-server 214 changes
Breaking changes 2
Static file serving now serves only GET and HEAD requests.
Rejects request paths that still contain % after decoding, preventing crafted requests from bypassing middleware on static paths. Set allowPercentInPath: true to serve files whose names contain a literal %.
Security 2
Node.js Adapter for Hono: Unauthenticated memory-leak DoS via aborted WebSocket handshake
Node.js Adapter for Hono: Path traversal in
serve-staticon Windows via encoded backslash (%5C)
New APIs and options 1
Adds middleware for sending Early Hints (HTTP 103).
Performance 3
Request headers are now materialized lazily, improving performance.
Request handling uses a fast path for the PATCH method.
Request handling uses a fast path for QUERY methods.
Fixes and other changes 6
The request signal is aborted when an HTTP/2 client resets the stream.
Hono v5 is now allowed as a peer dependency of @hono/node-server.
Avoids mutating response headers when setting Content-Length.
Fixes a type error in early hints.
Avoids an uncaught error when force-closing a non-standard socket.
Headers are now copied when the response initializer is a foreign Response.
@hono/node-server 12 changes
Security 2
@hono/node-server: Middleware bypass via repeated slashes in serveStatic
@hono/node-server has authorization bypass for protected static paths via encoded slashes in Serve Static Middleware