Commit activity
Last 12 weeks · 23 commits
Community health
2 of 6 standards met
Recent PRs & issues
What Adds terminal help examples for and in and registers them via in . Also adds test coverage for , , and examples in . Why Commands like , , and display practical examples in their output, while and the newly added command did not include example usage. This provides consistent CLI documentation across all primary commands. How to test
Summary The WHATWG Fetch standard and modern Node.js versions (v22+) include on and instances. While is being addressed in #423 for #422, faced the same issue on 's lightweight request object: calling threw: Changes Add to in . Implement with to return a without unnecessary allocations. Delegate to with an fallback when a native request cache exists. Add regression tests in covering direct reads, stream reads, empty GET requests, and rejected subsequent reads. Validation passed passed passed passed passed (all 16 test suites, 592 tests)
Recent fixes
Fixes #413 When a handler returns a native (for example with ) whose body errors during the early read in , the error was logged and treated as the end of the body. The listener then set to whatever had been read so far and ended the response, so the client got a complete with an empty body (or a truncated one, if a chunk had been read before the error). Now an error from the early read is passed to , the same handler the streaming paths use. Since no head has been sent yet, the client gets a instead of a complete success. Tests Two new cases in , using a native : the body errors before its first chunk; the body enqueues a chunk and then errors, both inside the early read. Both fail on (status ) and pass with this change. (505 tests), , and all pass. I used an AI assistant to help write this change and checked the result myself.
Repository: honojs/node-server. Description: Node.js Server for Hono Stars: 687, Forks: 121. Primary language: TypeScript. Languages: TypeScript (93%), JavaScript (7%), HTML (0%). License: MIT. Homepage: https://hono.dev Topics: hono, http-server, nodejs, server. Latest release: v2.1.8 (3d ago). Open PRs: 19, open issues: 30. Last activity: 3d ago. Community health: 37%. Top contributors: yusukebe, usualoma, BlankParticle, tangye1234, tavvy, Jayllyz, GavinMeierSonos, mgcrea, nakasyou, otnc and others.