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

12 Commits

Author SHA1 Message Date
Yusuke Wada
4a9cd272f8
refactor(types): reduce type definitions (#649)
* refactor(types): reduce type definitions

* fixed tests for Deno and Bun
2022-11-03 15:53:41 +09:00
Jayden
451d6fe117
feat(context): Introducing c.runtime (#644)
* Add context.platform getter

* Remove assumption on fastly

* Add Vercel support

* denoify

* Replace .platform with .runtime
2022-11-03 15:35:23 +09:00
Yusuke Wada
1749f6a962
test(bun): JWT middleware works on Bun v0.2.2 (#633) 2022-10-29 00:09:09 +09:00
Yusuke Wada
d86c8919bc
test(bun): add more tests for serve static middleware (#595) 2022-10-10 00:24:14 +09:00
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