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

849 Commits

Author SHA1 Message Date
Yusuke Wada
96aa3f12dd
refactor(req): remove async keyword from json() etc. (#899) 2023-02-16 18:07:26 +09:00
Yusuke Wada
79759a81ed
feat(client): introduce Fetch type (#898)
* feat(client): introduce `Fetch` type

* denoify
2023-02-16 16:12:21 +09:00
Yusuke Wada
119f4b6860 v3.0.0-rc.15 2023-02-15 22:12:30 +09:00
Yusuke Wada
94df5fce68 feat(hc): add InferRequestType (#894)
* feat(hc): add `InferRequestType`

* denoify
2023-02-15 08:47:40 +09:00
Yusuke Wada
05ee837f78
feat: change the arg InferResponseType receives (#893)
* feat: change the arg `InferResponseType` receives

* denoify
2023-02-15 07:05:39 +09:00
Yusuke Wada
733854f6cb
docs(readme): add bundlephobia badges (#891) 2023-02-14 22:50:58 +09:00
Yusuke Wada
25e5c01f58 chore(package.json): update description 2023-02-14 22:43:27 +09:00
Yusuke Wada
68cbbbcde7
refactor: rename ValidationTypes to ValidationTargets (#890)
* refactor: rename `ValidationTypes` to `ValidationTargets`

* denoify
2023-02-14 06:21:30 +09:00
Yusuke Wada
5b29d4235e
refactor: rename to TypedResponse (#889)
* refactor: rename to `TypedResponse`

* denoify
2023-02-13 21:57:12 +09:00
Yusuke Wada
60c0903a1c
fix(req): query return type as string | undefined (#888)
* fix(req): return type as `string | undefined`

* denoify
2023-02-13 21:40:51 +09:00
Yusuke Wada
0b2ac1678e Merge branch 'main' into next 2023-02-13 06:47:05 +09:00
Yusuke Wada
93da44042c v2.7.8 2023-02-13 06:35:37 +09:00
Alex Errant
d2abad3b34
header may return undefined (#884)
* header may return undefined

* fixed broken tests

* yarn denoify

* update CONTRIBUTING
2023-02-13 06:30:57 +09:00
Yusuke Wada
0903761a76 v3.0.0-rc.14 2023-02-12 22:45:24 +09:00
Yusuke Wada
e0059916e9
fix(deno): allow {} for app.fetch fo compatibility (#887) 2023-02-12 16:46:47 +09:00
Yusuke Wada
23b05425da fix(deno): export deno adapter (#886) 2023-02-12 16:35:22 +09:00
Yusuke Wada
39e855f0a4
feat: move http-exception out of utils (#883) 2023-02-11 18:05:50 +09:00
Yusuke Wada
401ea08129 v3.0.0-rc.13 2023-02-11 16:25:41 +09:00
Yusuke Wada
ff7b225620
feat(app): support multiple methods with app.on() (#882)
* feat(`app`): support multiple methods with `app.on()`

* use `flat()`

* denoify
2023-02-11 16:20:11 +09:00
Yudai Nakata
da7087c754
feat(adapter)!: simplify HandleInterface and save size (#881) 2023-02-11 16:16:56 +09:00
Yusuke Wada
bd90ec5d2b
chore: update Deno benchmark (#880) 2023-02-11 06:43:07 +09:00
Yusuke Wada
8ade1cf525 chore: update the benchmark result 2023-02-11 06:19:23 +09:00
Yusuke Wada
7534fbe748 v3.0.0-rc.12 2023-02-11 05:37:32 +09:00
Yusuke Wada
17af727d49
feat(validator): moved validator outside of middleware (#879) 2023-02-11 01:18:27 +09:00
Yusuke Wada
aca2f4c158
feat(adapter): handle(path, app) for CF Pages & Next.js (#878) 2023-02-11 00:58:21 +09:00
Yusuke Wada
328022be21 v3.0.0-rc.11 2023-02-09 20:04:12 +09:00
Yusuke Wada
e328d769d2
Merge pull request #876 from honojs/merge-main-into-next
merge main into next
2023-02-09 19:55:57 +09:00
Yusuke Wada
157febf931 Merge branch 'main' into merge-main-into-next 2023-02-09 19:54:17 +09:00
Yusuke Wada
6f729895a7 merge main into next 2023-02-09 19:49:27 +09:00
Yusuke Wada
8caa9afb7b v2.7.7 2023-02-09 18:29:17 +09:00
Yusuke Wada
3f1de47f8f chore(denoify): update buffer 2023-02-09 18:24:14 +09:00
Taku Amano
c169a413bd
feat: use added app's errorHandler with comose() (#874)
* refactor(compose): Swapped the order of onNotFound and onError in the compose() argument.

* feat: use added app's errorHandler

* chore: denoify
2023-02-09 18:13:27 +09:00
Yusuke Wada
9391278911
feat(router) [breaking]: StaticRouter obsolete (#873)
Co-authored-by: Taku Amano <taku@taaas.jp>
2023-02-09 16:58:28 +09:00
Taku Amano
dfd4f81e79
feat: Remove the StaticRouter from default candidates. (#869)
* feat: Remove the StaticRouter from default candidates.

* chore: denoify
2023-02-08 23:19:02 +09:00
Yusuke Wada
229228a7ba
Revert "feat: use added app's errorHandler (#871)" (#872)
This reverts commit b8a99b5367.
2023-02-08 23:08:52 +09:00
Taku Amano
b8a99b5367
feat: use added app's errorHandler (#871)
Fix #851


* feat: use added app's errorHandler

* chore: denoify

* refactor(compose): Swapped the order of onNotFound and onError in the compose() argument.

* chore: denoify
2023-02-08 22:01:30 +09:00
Yusuke Wada
c0d2e608a6
feat: hc - Hono Client (#862) 2023-02-08 07:22:32 +09:00
Taku Amano
d86728b4d1
perf(reg-exp-router): Cache Result<T> instead of T[] if there is no parameter. (#867)
* perf(reg-exp-router): Cache Result<T> instead of T[] if there is no parameter.

* chore: denoify
2023-02-08 06:47:19 +09:00
Yusuke Wada
2828e59a6c Merge branch 'main' into next 2023-02-06 07:09:03 +09:00
Yusuke Wada
c335a9272b v2.7.6 2023-02-06 07:04:44 +09:00
Yusuke Wada
1a4c2fed78
chore: denoify (#865) 2023-02-06 07:01:51 +09:00
Yusuke Wada
efa5f476c8
fix(serve-static): decode url pathname (#864) 2023-02-06 06:51:29 +09:00
Daniel Ding
ea4129123d
fix(deno): 404 error on Serve Static Middleware (#863)
There will be a 404 error when non-standard characters appear in URL.
Add `decodeURI()` to fix it.
2023-02-06 06:44:47 +09:00
Yusuke Wada
41ba3a2193 Revert "perf(context): improve handling response (#860)"
This reverts commit ce0a8bd16d.
2023-02-05 02:53:10 +09:00
Yusuke Wada
dd4122a5e0
refactor: obsolute CustomHandler (#861) 2023-02-03 05:56:59 +09:00
Yusuke Wada
ce0a8bd16d
perf(context): improve handling response (#860) 2023-02-02 08:08:07 +09:00
Yusuke Wada
a4800bf941
fix(req): never if c.req.valid() (#859) 2023-02-02 08:06:19 +09:00
Yusuke Wada
ac3117659e v3.0.0-rc.10 2023-02-02 00:27:58 +09:00
Yusuke Wada
aefe3869d0 chore: denoify 2023-02-02 00:25:58 +09:00
Yusuke Wada
f600ddd8a4
refactor(request): don't cache jsonBody, formBody, and headers (#857)
* v3.0.0-rc.9

* fix(breaking): obsolete no args `c.req.valid()`

* more strict

* refactor(request): don't cache jsonBody, formBody, and headers
2023-02-01 22:13:08 +09:00