Skip to content

fix(trace): use matchedRoutes from hono/route - #130

Merged
yusukebe merged 1 commit into
nextfrom
fix/route-helper
Sep 9, 2026
Merged

fix(trace): use matchedRoutes from hono/route#130
yusukebe merged 1 commit into
nextfrom
fix/route-helper

Conversation

@yusukebe

@yusukebe yusukebe commented Sep 8, 2026

Copy link
Copy Markdown
Member

c.req.matchedRoutes is deprecated since hono v4.8.0 — the Route Helper's matchedRoutes(c) is the replacement. c.req.routeIndex stays: it has no helper equivalent.

Found while fact-checking the talk: the dev-helper docs also miss inspectRoutes(), which hono routes is built on — that one is a hono.dev docs item.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run format:fix && pnpm run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit f2f041c into next Sep 9, 2026
4 checks passed
@yusukebe
yusukebe deleted the fix/route-helper branch September 9, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant