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

384 Commits

Author SHA1 Message Date
Yusuke Wada
16967676a3 chore: bump up to v1.4.2 2022-05-28 13:01:22 +09:00
Yusuke Wada
18be41f026
perf(context): add HonoResponse for better performance (#281) 2022-05-28 12:59:55 +09:00
Yusuke Wada
8bbb495d51 chore: add .mts to tsconfig.json 2022-05-27 17:28:07 +09:00
Yusuke Wada
b55eb2e661
refactor(TypeScript): enable strict null check (#280) 2022-05-27 17:22:39 +09:00
Yusuke Wada
c0661519b0 chore(benchmark): fix RegExpRouter score, it's fastest 2022-05-27 17:16:43 +09:00
Yusuke Wada
79c99c6403 chore: bump up to v1.4.1 2022-05-26 17:33:30 +09:00
Yusuke Wada
a1d21329ea
refactor: make GraphQL Server middleware as handler (#277) 2022-05-26 17:31:17 +09:00
Taku Amano
aa6807cfba
Update scoring rules in RegExpRouter. (#275) 2022-05-26 16:38:20 +09:00
Yusuke Wada
924408b463
refactor(trie-router): fixed routing priority for * (#276)
* refactor(trie-router): make `*` and `/*` have same priority

* feat(router): fixed routing priority for `*`

* feat(router): fixed routing priority for `*`
2022-05-26 16:36:40 +09:00
Yusuke Wada
500fcaa9e1
refactor(trie-router): make * and /* have same priority (#274) 2022-05-26 15:26:13 +09:00
Yusuke Wada
938aa7f060 chore: bump up to v1.4.0 🎉 2022-05-26 10:08:31 +09:00
Yusuke Wada
730502b169 docs: update readme 2022-05-26 10:06:10 +09:00
Yusuke Wada
ebbb58dc81 chore: update benchmark script 2022-05-26 09:09:19 +09:00
Yusuke Wada
77e16ddfb7
feat: c.res is available before dispatching (#272)
* fix(router): fixed trie-router bugs

* feat: `c.res` is available before dispatching
2022-05-26 09:06:41 +09:00
Taku Amano
e6924271f3
refactor(router): Make Router an interface, not a class (#268)
* Allow initialization with router objects instead of routerClass.

* Make Router an interface, not a class.

* Make Result an interface, not a class.

* Apply getSortedHandlers for result.

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2022-05-26 07:39:43 +09:00
Yusuke Wada
ef65308357
fix(router): fixed trie-router bugs (#271) 2022-05-26 00:34:01 +09:00
Yusuke Wada
7cc9644b60
feat(trie-router) : Routing with order specification (#269)
* Routing with order specification

* fixed test

* fixed for special wildcard and so on

* fixed scoring

* fix for `route` method
2022-05-25 11:56:17 +09:00
Taku Amano
a18edd5294
RegExpRouter : Routing with order specification. (#267) 2022-05-25 09:57:37 +09:00
Yusuke Wada
4a906a8aae test(jwt): add tests 2022-05-25 09:24:01 +09:00
Chris R
0e6bff6eb1
fix: ensure the request does not continue if the jwt token is not valid (#266) 2022-05-25 09:18:02 +09:00
Yusuke Wada
52bca3bd0a docs: fix readme 2022-05-22 19:14:37 +09:00
Yusuke Wada
8dfc74b187
fix(context): initialize status and header values after newResponse (#261)
* fix(context): initialize status and header values after `newResponse`
* fixed test
2022-05-22 10:49:58 +09:00
Yusuke Wada
8ef4e3ed37 chore: bump up to v1.3.6 2022-05-22 08:05:42 +09:00
Yusuke Wada
ba58356d24
feat: multiple query values c.req.queries (#260) 2022-05-22 07:54:00 +09:00
Yusuke Wada
fa82e48d22
fix(compose): fix a bug for colliding async routes (#259) 2022-05-22 07:12:25 +09:00
Yusuke Wada
14f210a0af
perf: do not set statusText by default (#256) 2022-05-21 21:33:04 +09:00
Yusuke Wada
563aeec9be
refactor(context): c.res is not optional (#255) 2022-05-21 21:08:51 +09:00
Yusuke Wada
7a13160616 chore: bump up to v1.3.5 2022-05-20 17:41:36 +09:00
Yusuke Wada
7c8211806c
fix: throwing errors in Wrangler 2.0.6 (#254)
Close #248
2022-05-20 17:39:27 +09:00
Yusuke Wada
180d779e0d docs: update readme 2022-05-19 15:37:33 +09:00
Yusuke Wada
128e6517ae chore: bump up to v1.3.4 2022-05-19 14:41:40 +09:00
Yusuke Wada
56703c60da
feat: mustache middleware supports Module Worker mode (#252) 2022-05-19 11:24:47 +09:00
Yusuke Wada
923a30e53d
feat: serve-static middleware supports Module Worker mode (#250) 2022-05-19 09:29:09 +09:00
Yusuke Wada
9cfba5731f chore: bump up to v1.3.3 2022-05-18 09:47:41 +09:00
Yusuke Wada
22ae272d13
fix(route): fix app.route() matter (#246) 2022-05-18 09:46:37 +09:00
Yusuke Wada
15bd8ecb96 chore: bump up to v1.3.2 2022-05-18 09:17:16 +09:00
Yusuke Wada
600847ba77
fix(Context): c.body() accept null for 204 response (#245)
Fix #242
2022-05-18 09:15:46 +09:00
Yusuke Wada
9c3eb277bd
fix(serve-static): enable in any order (#244)
Close #243
2022-05-18 09:06:18 +09:00
Yusuke Wada
3c2e862a8a chore: bump up to v1.3.1 2022-05-17 08:15:55 +09:00
Yusuke Wada
18f954c121
fix: do not include test files in npm packages (#241) 2022-05-17 08:15:12 +09:00
Yusuke Wada
3c5e2c2a74 chore: bump up to v1.3.0 2022-05-16 22:20:29 +09:00
Yusuke Wada
bc7fce467a
Merge pull request #239 from honojs/develop
for v1.3.0
2022-05-16 22:19:22 +09:00
Yusuke Wada
f14ec5d733
docs: update readme (#238) 2022-05-16 22:15:34 +09:00
Yusuke Wada
1a62e04f8a feat: default path as / 2022-05-16 21:34:59 +09:00
Yusuke Wada
ea1fd00369
feat: [BREAKING] deprecate Route, use Hono instead (#237) 2022-05-16 21:33:15 +09:00
Taku Amano
d8accbc846
Tweaks return values of functions for request parameters. (#234)
* Tweaks return values of functions for request parameters.

If no arguments are specified, returns an object containing all parameters.

* Add tests for app.req.param and app.req.query.

* Enable to get all cookies by `c.req.cookie()`.
2022-05-16 12:04:29 +09:00
Yusuke Wada
b31434807e
fix(url): fix merging path (#235) 2022-05-16 09:00:24 +09:00
Yusuke Wada
1204e12545 feat(type): any 2022-05-15 23:28:45 +09:00
Yusuke Wada
5d1bba1340 bump up to v1.2.2 2022-05-15 16:05:44 +09:00
Yusuke Wada
63d2e1a70a
fix: fix type check warnings (#233) 2022-05-15 16:03:32 +09:00