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

864 Commits

Author SHA1 Message Date
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
47f7577934 chore: remove @types/mustache
It's not needed
2022-07-24 13:18:24 +09:00
Yusuke Wada
f6f454ed42
fix(trie-router): fix the rule for capturing named parameter (#419)
Close #418
2022-07-24 11:03:04 +09:00
Yusuke Wada
34b218ddf6 chore(pacakge.json): don't export cookie middleware 2022-07-23 15:09:33 +09:00
Yusuke Wada
c450c56460
feat(middleware): implement Cache Middleware (#417)
* feat(middleware): implement Cache Middleware

* denoify

* do not export Cache middleware for Deno.
2022-07-23 15:02:42 +09:00
Yusuke Wada
7527c22a2d
docs: make a contribution guide (#415)
* docs: make a contribution guide

* update

* update readme
2022-07-23 09:46:20 +09:00
Yusuke Wada
034d53a6e6 chore(ci): fix branch name 2022-07-21 08:48:13 +09:00
Yusuke Wada
d94443d856 chore(package.json): remove mustache
It's not needed.
2022-07-21 08:32:10 +09:00
Yusuke Wada
1d73e3a8ed
fix(package.json): export compress middleware (#409) 2022-07-18 22:26:01 +09:00
Yusuke Wada
6f88fd9599 v2.0.2 2022-07-18 12:30:31 +09:00
Yusuke Wada
b4a660c605 chore(deno): denoify 2022-07-18 11:56:07 +09:00
Yusuke Wada
7738c99062
docs: rename master to main and remove README from middlewre directories (#405)
* chore: add conf file to categorize the PRs on release note

Inspired by
https://github.com/r7kamura/github-label-presets

* docs: rename `master` to `main` and remove README from middlewre directories

If you want read the document about the middleware,
please refer to the website <https://honojs.dev/>
2022-07-18 11:48:34 +09:00
Yusuke Wada
bcc9818395
chore: add conf file to categorize the PRs on release note (#404)
Inspired by
https://github.com/r7kamura/github-label-presets
2022-07-18 09:09:22 +09:00
Benjamin Kniffler
0a4c7bb6c5
refactor: Update context.ts (#402)
Allow typecast in context.get(), e.g.

```ts
const user = context.get<User>('user');
```
2022-07-18 08:27:28 +09:00
Yusuke Wada
da4d9a5491
fix(logger): specify console.log for default print fn (#401) 2022-07-18 08:17:42 +09:00
Christoph Müller
aee215d6b7
fix: Pass path along in the serve-static middleware when using cloudflare module worker (#400) 2022-07-17 20:55:39 +09:00
Yusuke Wada
1cd5cb7c32 v2.0.1 2022-07-17 18:42:42 +09:00
Yusuke Wada
dd1012e48d chore(deno): rewrite mod.ts in src 2022-07-17 18:40:34 +09:00
Yusuke Wada
007e145eec refactor(deno): fix a definition of FetchEvent 2022-07-17 18:36:42 +09:00
Yusuke Wada
1ee08cc5ce chore(deno): denoify 2022-07-17 18:11:09 +09:00
Taku Amano
2e3919aa4c
refactor(context): executionCtx always returns ExecutionContext. (#399) 2022-07-17 18:07:39 +09:00
Yusuke Wada
f573687abd
test(bun): use bun:test (#398) 2022-07-17 09:51:42 +09:00
Yusuke Wada
2a24b98e55
refactor: remove useless async for a better performance on Bun (#397)
* fix(compress): add type for enconding name

* refactor: remove useless `async` for a better performance on Bun
2022-07-17 09:13:44 +09:00
Yusuke Wada
be548c97ed
fix(compress): add type for enconding name (#396) 2022-07-17 08:59:40 +09:00
Miguel Oliveira
4e38e13228
refactor: the log middleware and its tests (#394)
* refactor: the log middleware and its tests

* fix: the time function in log middleware
2022-07-17 08:57:46 +09:00
Roman Hotsiy
c63d7ed77f
chore: fix typo in error class name (#393)
* chore: fix type in error class name

* chore: update usages in other places
2022-07-17 08:54:43 +09:00
Yusuke Wada
ecfc81ff1f chore(deno): denoify 2022-07-16 21:49:59 +09:00
TANIGUCHI Masaya
ef4602ed15
Add compress middleware (#392) 2022-07-16 21:48:31 +09:00
Yusuke Wada
94d94198bc v2.0.0 2022-07-16 17:59:25 +09:00
Yusuke Wada
87db4fc07e docs(deno): update README 2022-07-16 17:56:06 +09:00
Yusuke Wada
6fa5d4c935
Merge pull request #390 from honojs/next
update to v2.0.0
2022-07-16 17:53:55 +09:00
Yusuke Wada
508b3fa505
docs: update readme and create migration guide (#389) 2022-07-16 17:51:34 +09:00
Yusuke Wada
230d265429 chore(deno): denoify 2022-07-16 10:26:14 +09:00
Yusuke Wada
53658c2464 chore(prettier): remove markdown-nocjsp parser
Close #377
2022-07-16 10:03:01 +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
TANIGUCHI Masaya
fc26f1a490
feat: Add compress middleware (#386)
* Add compress middleware

* Format code

* Update order of executions

* Add test

* Remove version check

* Remove node:stream/web

* Update dependency

* Remove version check
2022-07-16 09:38:43 +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
9ff8310d43 ci: add CI for Bun (#376)
* ci: add CI for Bun

Close #371

* fixed command
2022-07-15 08:40:15 +09:00
Yusuke Wada
2b775a0fa4 chore: denoify ignore 2022-07-15 08:40:15 +09:00
Yusuke Wada
89383ef4e6 test(deno): add test for jwt middleware (#375) 2022-07-15 08:40:15 +09:00
Yusuke Wada
cf3027703c feat(bun): add "serve-static" middleware (#370)
Close ##369 #368
2022-07-15 08:40:15 +09:00
Yusuke Wada
50450f22ab ci: setup CI for Deno (#367)
Close #364
2022-07-15 08:40:15 +09:00
Yusuke Wada
af9f6a73d9 [BREAKING] feat: remove "graphql-server" middleware, will be obsolete (#366)
It might be *third-party middleware*.

Close #357
2022-07-15 08:40:15 +09:00
Yusuke Wada
dea9484a22 test: add tests for Deno (#365)
Close #351
2022-07-15 08:40:15 +09:00
Yusuke Wada
16adde746b refactor: denoify 2022-07-15 08:40:15 +09:00
Yusuke Wada
e452b76664 feat(request): add parseBody() method. body-parse middleware is obsolete (#363)
Close #362
2022-07-15 08:40:15 +09:00
Yusuke Wada
b8687e671c docs: update readme 2022-07-15 08:40:15 +09:00
Yusuke Wada
9a41cde632 chore: denoify 2022-07-15 08:40:15 +09:00
Yusuke Wada
1a24803eaf fix: exclude src/middleware.ts 2022-07-15 08:40:15 +09:00
Yusuke Wada
7b505b0ac0 refactor: make cookie into Context/Request 2022-07-15 08:40:15 +09:00