Last 12 weeks · 82 commits
5 of 6 standards met
Summary Adds overloads to in so that passing a non-null initial value returns a whose is non-nullable, matching React's API. Before this change, typed as possibly , even though the runtime always initializes it. This is a type-only fix; the runtime implementation is unchanged. Closes #5056 Test plan [x] passes [x] Added type-level tests in covering: non-null initial value, null initial value, and no-argument forms
We should test for the following aspects. The product of the build does not contain unintended files (as a result of tree shaking). The file size has not increased unintentionally. As for the file size check, information could be added as a comment to each pull request (like coverage) in the future, but this pull request does not go that far. This pull request will enable the following outputs to be obtained. The author should do the following, if applicable [x] Add tests [x] Run tests [x] to format the code [x] Add TSDoc/JSDoc to document the code
What version of Hono are you using? 4.12.27 What runtime/platform is your app running on? (with version if possible) Node 24 What steps can reproduce the bug? 1. Open https://www.npmjs.com/package/hono?activeTab=code 2. Browse the code to What is the expected behavior? This file should not be published. (It makes doing a security sweep harder since package diffs are larger; e.g. ) What do you see instead? File is published. Additional information _No response_
In the v3.12 → v4.0 migration notes: HonoRequest - , , ... are obsolete. Use the methods in such as . is a Fetch API , and its , , , , , and are properties (getters), not methods. Copy-pasting produces . Hono's own accesses it as a property (e.g. ). This PR fixes the example to and refers to them as properties instead of methods. Docs-only change.
Repository: honojs/hono. Description: Web framework built on Web Standards Stars: 31188, Forks: 1145. Primary language: TypeScript. Languages: TypeScript (99.5%), JavaScript (0.5%), HTML (0%). License: MIT. Homepage: https://hono.dev Topics: aws-lambda, bun, cloudflare, cloudflare-workers, deno, npm, router, typescript, web-framework. Latest release: v4.12.27 (1w ago). Open PRs: 100, open issues: 272. Last activity: 7h ago. Community health: 75%. Top contributors: yusukebe, usualoma, EdamAme-x, watany-dev, ryuapp, nakasyou, metrue, exoego, sor4chi, yasuaki640 and others.