You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hono's Context has become bloated over time as new features have been added with each version update.
Since fields included in the Context are not tree-shakable, efforts like #1846 have been made to reduce the weight of the Context.
If we implemented extensible Contexts, we could provide various presets built on top of a minimal Context, allowing users to select only the necessary fields according to their specific use case.
The text was updated successfully, but these errors were encountered:
What is the feature you are proposing?
Currently, Hono's Context is instantiated internally within
HonoBase
.By allowing the Context to be injected into
HonoBase
externally, third-party libraries could freely provide Hono objects with an extended Context.hono/src/hono-base.ts
Lines 411 to 417 in f9a23a9
Pros
HonoBase
Cons
Background
Hono's Context has become bloated over time as new features have been added with each version update.
Since fields included in the Context are not tree-shakable, efforts like #1846 have been made to reduce the weight of the Context.
If we implemented extensible Contexts, we could provide various presets built on top of a minimal Context, allowing users to select only the necessary fields according to their specific use case.
The text was updated successfully, but these errors were encountered: