Skip to content

docs: update InferDI example for v6 - #898

Merged
yusukebe merged 2 commits into
honojs:mainfrom
maxrendel:docs/synch-inferdi-guide
Aug 21, 2026
Merged

docs: update InferDI example for v6#898
yusukebe merged 2 commits into
honojs:mainfrom
maxrendel:docs/synch-inferdi-guide

Conversation

@maxrendel

Copy link
Copy Markdown
Contributor

Summary

Updates the InferDI example to match InferDI 6 and the current Hono adapter API.

The guide now uses typed scope inputs for request data, a concrete request scope with InferdiHonoScopeEnv, and createScope to pass values from the Hono request boundary. It also documents declarative async dependencies, getAsync(), custom
context keys, and streaming cleanup.

Verification

  • Ran git diff --check
  • Verified the documented APIs against InferDI 6.0.1
  • Tested the scope creation, async resolution, and disposal flow

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe

Copy link
Copy Markdown
Member

@maxrendel Thanks!

@yusukebe
yusukebe merged commit b2ddc3b into honojs:main Aug 21, 2026
2 checks passed
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.

2 participants