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
This is a bug. #3868 can fix it. This is not a breaking change, but It may affect some users. So, it will be included in the next minor release instead of a patch release. Thank you!
What version of Hono are you using?
4.6.19
What runtime/platform is your app running on? (with version if possible)
Bun
What steps can reproduce the bug?
Create any route and simply return
c.json({})
. It will be inferred as typenever
.This behavior is specified in the source code:
This makes no sense as
{}
is valid JSON, and the response at the other end is in fact{}
and notnever
.What is the expected behavior?
This behavior is very surprising because this is valid JSON being mistyped. This behavior should at least be very clearly specified in the docs.
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: