honojs/hono 0bb821a4..fbf23b54
base and head as given
- Request matching state now has a dedicated internal boundary.
- Route helpers now depend on request matching state.
- Route helpers expose base-path inspection.
- files changed
- 9
- in a component
- 5
- lines in components
- 146
- components
- 3
- public routes changed
- 0
- schema statements
- 0
- new dependencies
- 0
- excluded by role
- 4
Route inspection helpers
Added- Before
- Requests exposed route inspection
- After
- Helpers expose route inspection
Handlers can now retrieve matched routes, the current registered route, and raw or parameter-resolved base paths through standalone route helpers. Existing request-based route access remains available but deprecated.
In favour
- In favour: Keeps deprecated request accessors during migration
Against
- Against: Route helpers couple to a hidden request accessor
Inspect 5 source files behind this explanation
3 new dependencies between components — Route Helpers → Core Source · Core Source → Request Handling · Route Helpers → Request Handling
What else could behave differently
53 components · 104 filesThese components import changed code, directly or through other files. A traced dependency is a place to review, not a confirmed runtime failure.
Reached 3
| Component | Symbol | Cited at | Files | Reached by |
|---|---|---|---|---|
| Core Sourcesrc/ | Signature changed HonoRequest1 of 3 changed symbols reaching it | src/request.ts:30-419 | 7 | 4 direct · 3 at two stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| src/utils/ | Signature changed HonoRequest1 of 3 changed symbols reaching it | src/request.ts:30-419 | 5 | 1 direct · 2 at three steps · 2 at four stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| src/client/ | Signature changed RouterRoute1 of 3 changed symbols reaching it | src/types.ts:58-63 | 4 | none direct · 1 at two steps · 3 at three stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
Held back 15
| Component | Files | Reached by | Resolution |
|---|---|---|---|
| runtime-tests/workerd/ | 1 | none direct · 1 at three steps | precise |
| runtime-tests/lambda/ | 2 | none direct · 2 at four steps | precise |
| perf-measures/type-check/ | 1 | none direct · 1 at four steps | precise |
| src/adapter/cloudflare-workers/ | 5 | none direct · 4 at three steps · 1 at four steps | precise |
| src/adapter/aws-lambda/ | 2 | none direct · 1 at three steps · 1 at four steps | precise |
| src/adapter/deno/ | 5 | none direct · 4 at three steps · 1 at four steps | precise |
| src/adapter/vercel/ | 3 | none direct · 2 at three steps · 1 at four steps | precise |
| src/adapter/netlify/ | 2 | none direct · 1 at three steps · 1 at four steps | precise |
| src/adapter/service-worker/ | 2 | none direct · 1 at three steps · 1 at four steps | precise |
| src/middleware/compress/ | 1 | none direct · 1 at three steps | precise |
| src/middleware/etag/ | 1 | none direct · 1 at three steps | precise |
| src/middleware/logger/ | 1 | none direct · 1 at three steps | precise |
| src/middleware/powered-by/ | 1 | none direct · 1 at three steps | precise |
| src/middleware/pretty-json/ | 1 | none direct · 1 at three steps | precise |
| src/middleware/trailing-slash/ | 1 | none direct · 1 at three steps | precise |
Ranked lower 35
| Component | Files | Reached by |
|---|---|---|
| src/helper/conninfo/ | 2 | none direct · 1 at two steps · 1 at three steps |
| src/preset/ | 2 | none direct · 2 at two steps |
| src/validator/ | 2 | none direct · 1 at two steps · 1 at three steps |
| benchmarks/deno/ | 1 | none direct · 1 at two steps |
| src/helper/cookie/ | 1 | none direct · 1 at two steps |
| src/helper/websocket/ | 1 | none direct · 1 at two steps |
| src/middleware/serve-static/ | 1 | none direct · 1 at two steps |
| src/helper/ssg/ | 4 | 1 direct · 2 at two steps · 1 at three steps |
| src/helper/adapter/ | 1 | none direct · 1 at two steps |
| src/helper/dev/ | 1 | 1 direct |
| src/helper/route/ | 1 | 1 direct |
| src/adapter/bun/ | 6 | none direct · 2 at two steps · 4 at three steps |
| src/helper/streaming/ | 4 | none direct · 3 at two steps · 1 at three steps |
| src/adapter/lambda-edge/ | 3 | none direct · 1 at two steps · 2 at three steps |
| src/adapter/cloudflare-pages/ | 2 | none direct · 1 at two steps · 1 at three steps |
| src/helper/accepts/ | 2 | none direct · 1 at two steps · 1 at three steps |
| src/middleware/jwk/ | 2 | none direct · 1 at two steps · 1 at three steps |
| src/middleware/jwt/ | 2 | none direct · 2 at two steps |
| src/middleware/language/ | 2 | none direct · 1 at two steps · 1 at three steps |
| src/middleware/request-id/ | 2 | none direct · 1 at two steps · 1 at three steps |
| src/middleware/secure-headers/ | 2 | none direct · 1 at two steps · 1 at three steps |
| src/middleware/timing/ | 2 | none direct · 1 at two steps · 1 at three steps |
| src/helper/factory/ | 1 | none direct · 1 at two steps |
| src/middleware/basic-auth/ | 1 | none direct · 1 at two steps |
| src/middleware/bearer-auth/ | 1 | none direct · 1 at two steps |
| src/middleware/body-limit/ | 1 | none direct · 1 at two steps |
| src/middleware/cache/ | 1 | none direct · 1 at two steps |
| src/middleware/combine/ | 1 | none direct · 1 at two steps |
| src/middleware/context-storage/ | 1 | none direct · 1 at two steps |
| src/middleware/cors/ | 1 | none direct · 1 at two steps |
| src/middleware/csrf/ | 1 | none direct · 1 at two steps |
| src/middleware/ip-restriction/ | 1 | none direct · 1 at two steps |
| src/middleware/jsx-renderer/ | 1 | none direct · 1 at two steps |
| src/middleware/method-override/ | 1 | none direct · 1 at two steps |
| src/middleware/timeout/ | 1 | none direct · 1 at two steps |
Statements 3
HonoRequest signature change, affecting 1 of 4 names in its file, reached 7 files in src. 43HonoRequest signature change, affecting 1 of 4 names in its file, reached 5 files in src/utils. 122RouterRoute signature change, affecting 1 of 48 names in its file, reached 4 files in src/client. 1381 reached files belong to no component — tests, docs and config.
Routes, schema, dependencies
No public URL, no migration and no new package.
Inspect components, files and symbols
Component
File
Function
imports what changeddownstream of it, one mark per step
Diff
Analysis scope
463 → 3- files at head463
- components70
- changed by this change3
Where the new files landed
2 new files| New file | Belongs to | Used by | Calls | Serves |
|---|---|---|---|---|
| src/request/constants.ts | Request Handlingnew territory | Core SourceRoute Helpers | nothing outside its own component | — |
| src/helper/route/index.ts | Route Helpersnew territory | — | Core SourceRequest Handlingsrc/utils/ | ./route |
1 added file carries no component — 1 test.
9 files changed, 58 claims stated. 53 components reached in total.