Yusuke Wada

Results 118 issues of Yusuke Wada

This PR will introduce a new middleware, "Partial Content Middleware". It's based on #3461 by @exoego . That PR means the Serve Static Middleware supports 206 Partial Content. But this...

I'll propose to move the [Node.js Server's Serve Static Middleware](https://github.com/honojs/node-server?tab=readme-ov-file#serve-static-middleware) in [`honojs/node-server`](https://github.com/honojs/node-server) to this `honojs/hono` repo. ## Create `serveStatic` in `hono/nodejs` As mentioned in the comment: https://github.com/honojs/node-server/issues/203, we have a...

enhancement

WIP ### The author should do the following, if applicable - [ ] Add tests - [ ] Run tests - [ ] `bun run format:fix && bun run lint:fix`...

This PR changes the implementation of parsing query params using `c.req.query()`. This change affects performance and file size. In addition, it fixes the problem that can't parse invalid percent strings....

Fixes #3550 In the current behavior, the `c.req.param()` will throw the error when decoding invalid percent encoding or invalid UTF-8 sequence. ```ts // app app.get('/static/:path', (c) => c.text(c.req.param('path')) // throw...

### Problem Statement Currently, the `c` argument here is `any`. I'd like to this will be Hono's `Context` to improve the DX: ![Image](https://github.com/user-attachments/assets/de50e0f6-57bd-485e-89ef-04e9210aa122) ### Proposed Solution You can change this...

enhancement

This PR enables the serve static to support an absolute path for the `root` option. ```ts import { serveStatic } from '@hono/node-server' import { serve } from '@hono/node-server/serve-static' import {...

Fixes #4031 This PR introduces a new option `getBody` for ETag middleware. This will help customize the function to get the content to generate a hash in such a way...

`pkg.pr.new` seems to be good: https://github.com/stackblitz-labs/pkg.pr.new Adding it for this `honojs/hono` project is a good idea.

enhancement