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

635 Commits

Author SHA1 Message Date
Yusuke Wada
63d2e1a70a
fix: fix type check warnings (#233) 2022-05-15 16:03:32 +09:00
Minghe
196f5d5e22
fix(typo): update readme (#229) 2022-05-14 18:23:51 +09:00
Yusuke Wada
6ddba47cb5
chore: absolute import to relative import (#228) 2022-05-14 12:55:01 +09:00
Yusuke Wada
c884099bd0 chore: bump up to v1.2.1 2022-05-14 10:02:21 +09:00
Yusuke Wada
62b9238601
fix: fix basic auth middleware (#227) 2022-05-14 10:01:50 +09:00
Minghe
d3a7df3a7d
feat(ctx): enable set and get in ctx, to hold values (#226) 2022-05-14 07:52:39 +09:00
Yusuke Wada
708f484d4b docs: fixed path 2022-05-14 07:51:20 +09:00
Yusuke Wada
f47d5a0e92 chore: bump up to v1.2.0 2022-05-13 14:28:41 +09:00
Yusuke Wada
75c2a2dfc2
docs: remove Japanese README (#225) 2022-05-13 12:55:55 +09:00
Taku Amano
3b0e52e879
Check for duplicate parameter names. (#224) 2022-05-13 12:39:30 +09:00
Yusuke Wada
91357d4b82 docs: update readme 2022-05-13 12:30:06 +09:00
Yusuke Wada
20c0345c93 chore: fixed benchmark 2022-05-13 08:55:13 +09:00
Yusuke Wada
c7d1d584df chore: ignore sandbox directory 2022-05-13 08:48:04 +09:00
Taku Amano
c9ff9b5463
fix: Some RegExpRouter bugs (#222)
* "paramAliasMap" must be able to store multiple alias destinations.

* fix typo

* Also update `namedParams`.

* Add some tests for RegExpRouter.
2022-05-12 20:15:42 +09:00
Yusuke Wada
ba3dd18a19
Merge pull request #221 from honojs/develop
for v1.2.0
2022-05-12 15:14:50 +09:00
Taku Amano
4dfd18026d
feat: multiple matching routes for RegExpRouter (#220)
* feat: multi match router for RegExpRouter.

* Separate routers into primary and secondary.

* Add RegExpRouter to the build target, again.

Because RegExpRouter has caught up with develop.

* Match a fixed string.

* refactor: Rename member name from "paramAlias" to "paramAliasMap"
2022-05-12 15:09:33 +09:00
Yusuke Wada
d086cf9372
perf: make it faster (#219) 2022-05-11 22:40:10 +09:00
Yusuke Wada
9fa3c60bdf feat(trie-router): update error message 2022-05-11 15:51:07 +09:00
Yusuke Wada
d4dd428c85
feat(trie-router): error handling for duplicate param name (#215) 2022-05-11 11:08:12 +09:00
Patrik Toma
e6282467d4
docs: update readme wrangler2 no longer in beta (#209) 2022-05-10 12:03:03 +09:00
Yusuke Wada
4586b342cc
fix(router): fixed trie-router bugs (#208) 2022-05-09 21:53:23 +09:00
Yusuke Wada
fd4b4e1d07
feat: app.route(path, Route) (#203) 2022-05-07 22:22:24 +09:00
Yusuke Wada
d399609748
fix: fix handling not found in compose.ts (#204) 2022-05-06 21:06:38 +09:00
Yusuke Wada
c4cdad8855
fix: handle 404 response (#202) 2022-05-06 10:43:42 +09:00
Yusuke Wada
b44444c5ab Merge branch 'develop' of github.com:honojs/hono into develop 2022-05-05 23:09:51 +09:00
Yusuke Wada
d0e84d1ce5 Merge branch 'feat/middleware-handler' into develop 2022-05-05 23:09:02 +09:00
Yusuke Wada
fbcfb20c0d Merge branch 'develop' into feat/middleware-handler 2022-05-05 23:08:36 +09:00
Minghe
ccffb6fbbc
test(compose): a move comprehensive test cases (#198) 2022-05-05 20:04:23 +09:00
Yusuke Wada
1a8d1720bb
feat: multi match router for TrieRouter (#196) 2022-05-05 10:09:32 +09:00
Yusuke Wada
24041963e1
ci: ci any PR (#197) 2022-05-05 09:35:44 +09:00
Minghe
9810f697e2
feat(compose): compose both the ordinary middlewares and response (#195)
middlewares
2022-05-04 21:53:13 +09:00
Yusuke Wada
1a5a42654b refactor: METHOD_NAME_ALL 2022-05-03 07:02:32 +09:00
Yusuke Wada
ada91c9e64 enable multiple middlware on use for compatibility 2022-05-03 06:57:17 +09:00
Yusuke Wada
9d6d1b265a "all" as const 2022-05-03 00:09:43 +09:00
Yusuke Wada
ec4e5b7036 make as void 2022-05-02 21:58:41 +09:00
Yusuke Wada
2845be9228 remove the line not used 2022-05-02 21:19:08 +09:00
Yusuke Wada
1929878891 feat: make everything(including Middleware) as Handler 2022-05-02 20:54:45 +09:00
Yusuke Wada
785bdc8717
test: add tests for builtin middleware (#192) 2022-05-02 13:18:33 +09:00
Yusuke Wada
fc6a969fdb chore: bump up to v1.1.1 2022-05-01 21:13:24 +09:00
Yusuke Wada
77b93ab3d2
feat: enable adding types for Env variables (#191)
* feat: enable adding types for Env variables

* Update overload

* add test

This is test is based on #190
2022-05-01 20:47:55 +09:00
Minghe
4f97c6dfe1
feat(jwt): export jwt utils (#187) 2022-04-30 18:51:27 +09:00
Yusuke Wada
36f0a2801b chore: bump up to v1.1.0 2022-04-27 16:13:29 +09:00
Yusuke Wada
501854f8d7
feat: [BREAKING] Content-Length is not added automatically (#183)
Close #179

Calculating Content-Length makes returning a response slowly. But Wrangler, Miniflare, or Cloudflare calculate Content-Length and add to a header automatically. So, we do not have to do it by ourselves.
2022-04-27 16:11:43 +09:00
Yusuke Wada
7cd3c70df9
chore: update npm modules (#182) 2022-04-27 15:42:42 +09:00
Yusuke Wada
1c7b7b3139 docs: update readme 2022-04-27 15:18:55 +09:00
Yusuke Wada
13373f0836
chore: move examples to github.com/honojs/examples (#181) 2022-04-27 15:09:12 +09:00
Yusuke Wada
feebd885e7 test: don't skip tests 2022-04-27 15:04:25 +09:00
Minghe
201873ed4d
fix(jwt): the alg option should be same as the one in options (#180) 2022-04-27 11:29:38 +09:00
Yusuke Wada
11497292a1 docs: write about JWT middleware 2022-04-27 08:59:42 +09:00
Yusuke Wada
4ba055915c chore: exports JWT middleware 2022-04-27 08:59:27 +09:00