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

322 Commits

Author SHA1 Message Date
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
Minghe
3ed40d5c14
feat(jwt): jwt middleware (#169) 2022-04-27 08:50:00 +09:00
Yusuke Wada
128970e2d2
chore: move under honojs organization (#178) 2022-04-26 17:15:16 +09:00
Yusuke Wada
b9745e79c5 docs: update readme 2022-04-26 07:58:08 +09:00
Yusuke Wada
04460a646f
feat: chained routing (#173)
* feat: enable chained routing

* write tests

* initialize `#tempPath`

* Update readme
2022-04-25 22:31:15 +09:00
Minghe
6b7a96f848
refactor(loop): simplify the for loop (#171) 2022-04-25 22:07:03 +09:00
Yusuke Wada
b41b1ebdee
refactor: refine code (#167) 2022-04-22 23:10:01 +09:00
Yusuke Wada
a7b67e5c98 chore: tweak title image 2022-04-22 22:42:55 +09:00
Yusuke Wada
79e4794126 chore: bump up to v1.0.0 🎉 2022-04-22 09:21:40 +09:00
Yusuke Wada
7f4d7d1510 docs: update Japanese README 2022-04-22 09:15:15 +09:00
Yusuke Wada
588fd73229 docs: add a line about TypeScript 2022-04-22 09:07:03 +09:00
Yusuke Wada
ace31f60a3 fix: fix imports path 2022-04-22 09:01:51 +09:00
Yusuke Wada
6634201059
docs: add logo images (#165)
* docs: add logo images

* update image

* update README.md
2022-04-22 08:45:52 +09:00
Yusuke Wada
fb6a0945d1 chore: tweak 2022-04-22 07:59:46 +09:00