Closed Sorikairox closed 1 month ago
Hey @Sorikairox
Thank you for the PR! The request.ts
is not exported for the npm package, not only for Deno. I want to know the situation if you want to use the HonoRequest
class. Can you share the use case for using the HonoRequest
class?
@yusukebe
Thanks for your answer !
The context is for our framework Danet (https://github.com/savory/Danet).
For the past 12 months or so until last week, we were using Hono's deno.land/x/ version, where everything was accessible. I decided to migrate to JSR, which is why I noticed that the class was not accessible.
To keep it simple, in order to allow our internal logic and our users to use the same code with either HTTP request or Websocket message, we instantiate a HonoRequest for the latter.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.77%. Comparing base (
dfbd717
) to head (6fa0db1
). Report is 10 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@Sorikairox
Thank you for your explanation! I understood well. I'll merge this into main
later and include it in the next patch release. In the npm package, the request.ts
also may be exported.
The author should do the following, if applicable
bun run format:fix && bun run lint:fix
to format the code