Yusuke Wada
Yusuke Wada
Hi @nakasyou I've noticed that this adapter is so important! If we have this adapter, we can obsolete the `app.fire()` method in the next major release. The `app.fire()` is this:...
> However, the adapter is for browsers. So if app returns 404, adapter fetches the original server. Yeah. I'll consider it.
Hi @nakasyou ! I've created the demo project to try this adapter: https://github.com/yusukebe/service-worker-adapter-demo And I'll suggest the code, though I'm not sure this is 100% good: ```diff diff --git a/src/adapter/service-worker/handler.ts...
@nakasyou How about defining types ourselves instead of referring to lib `WebWorker`? ```ts interface ExtendableEvent extends Event { // eslint-disable-next-line @typescript-eslint/no-explicit-any waitUntil(f: Promise): void } export interface FetchEvent extends ExtendableEvent...
@nakasyou Awesome work! I'll merge this into the `next` now. Thanks!
Hi @muningis Thank you for the issue. As you said, it will confuse. This is not a issue in this `honojs/hono` but I think it will be okay to add...
This is `honojs/vite-plugin` side issue. I'll transfer this issue to there.
Hi @muningis This issue was fixed since the new version `@hono/[email protected]`.
@nawok Try: ```ts app.request('/env', MOCK_ENV) ```
@nawok Sorry. `MOCK_ENV` is used only in Cloudflare Workers/Pages. In the other runtime, you can not pass values with `MOCK_ENV`.