0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-22 11:17:33 +01:00
Commit Graph

8 Commits

Author SHA1 Message Date
Yusuke Wada
5573c59cf6
fix(bun): serve static middleware returns 404 correctly (#538) 2022-09-19 12:25:04 +09:00
Yusuke Wada
8879f241e8
refactor(mime): made .ico file's extension to image/x-icon (#462)
* refactor(mime): made `.ico` file's extension to `image/x-icon`

* fixed deno and bun tests
2022-08-09 10:51:08 +09:00
Yusuke Wada
115395766e
fix(jsx/bun): do not escape children (#422)
For JSX middleware on Bun.
Fix bug that JSX `children` will force escaped.
2022-07-24 20:39:41 +09:00
Yusuke Wada
5f60a18227
feat(jsx): support jsxImportSource (#420)
* feat(jsx): support `jsxImportSource`

Support `jsxImportSource`.
You can use this option on Bun and Deno (Wrangler does not support it).
if you write tsconfig as below, JSX middleware will be enabled without `import { jsx } from 'hono/jsx'`.

```json
{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxFragmentFactory": "Fragment",
    "jsxImportSource": "hono/jsx"
  }
}
```

* fix export path
2022-07-24 17:36:37 +09:00
Yusuke Wada
f573687abd
test(bun): use bun:test (#398) 2022-07-17 09:51:42 +09:00
Yusuke Wada
adc9cf80cf
refactor(bun): throw error when use jwt middleware (#388)
`jwt` middleware is not supported Bun, yet.

Close #381
2022-07-16 09:59:10 +09:00
Yusuke Wada
4dc5edc49f
feat(bun): support basic-auth middleware (#387)
For supporting Basic Auth middleware for Bun, do not check types.
2022-07-16 09:35:51 +09:00
Yusuke Wada
cf3027703c feat(bun): add "serve-static" middleware (#370)
Close ##369 #368
2022-07-15 08:40:15 +09:00