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

22 Commits

Author SHA1 Message Date
Yusuke Wada
220c956272 Merge branch 'main' into next 2023-05-11 17:53:05 +09:00
Taku Amano
b15638c37c
fix(getQueryParam): Fixed a bug in getQueryParam when a partial matching key was found. (#1085)
* fix(getQueryParam): Fixed a bug in getQueryParam when a partial matching key was found.

* chore: denoify
2023-05-10 08:26:17 +09:00
Taku Amano
b253a8735b
feat: Allow getPath to be replaced. (#1064)
* feat: Allow getPath to be replaced.

* chore: denoify
2023-05-03 22:13:23 +09:00
Yusuke Wada
64ddf093d6
perf: use === instead of startsWith and endsWith (#1053) 2023-04-30 21:18:32 +09:00
Yusuke Wada
0a19deaa5b
perf: shorten code (#1051) 2023-04-30 21:07:00 +09:00
Taku Amano
0560f27bde
fix(utils/url): Fix behavior when parameters with no value specified are mixed. (#1023)
* refactor(utils/url): Reduce a few characters.

* fix(utils/url): Fix behavior when parameters with no value specified are mixed.

* chore: denoify
2023-03-31 17:57:24 +09:00
Taku Amano
91c04ac073
refactor(utils/url): Decode parameters more accurately without performance degradation. (#1015)
* refactor(utils/url): Decode parameters more accurately without performance degradation.

* Add tests about getQueryParam and getQueryParams.

* chore(bench): add query param bench

* chore: denoify
2023-03-29 23:03:00 +09:00
Yusuke Wada
813984edca denoify 2023-03-26 22:14:33 +09:00
Yusuke Wada
282e18596b
fix(app): don't remove slash form / if strict is false (#1004)
* fix(app): don't remove slash form `/` if strict is `false`

* fixed test

* denoify
2023-03-20 23:30:41 +09:00
Yusuke Wada
0238dc6b91
feat(req): introduce c.req.path (#988)
* feat(req): introduce `c.req.path`

* denoify

* we don't have to handle fragments

* fixed the test

* denoify
2023-03-17 16:32:19 +09:00
Yusuke Wada
948ca6a3b5
fix(route): support a root-level optional parameter (#975)
* fix(route): support a root level optional parameter

* denoify
2023-03-13 21:55:01 +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
e404319824
perf: use substring and //.test ... (#829)
* v3.0.0-rc.8

* perf: use `substring` and `//.test` ...
2023-01-22 13:59:31 +09:00
Yusuke Wada
eb6f1fdb0d perf: optimize parsing queries and headers / 19% faster than 2.7.2 (#811) 2023-01-19 22:45:25 +09:00
Yusuke Wada
e989a93d01 refactor: tweak types (#795) 2023-01-19 22:45:25 +09:00
Yusuke Wada
d2dd42b35e fix: fixed bugs handling TypeResponse (#791) 2023-01-19 22:45:25 +09:00
Yusuke Wada
24c17e340a feat(trie-router): support optional parameter (#540) 2022-09-20 21:26:27 +09:00
Yusuke Wada
730453aeb0
fix(redirect): don't have to make relative url to absolute one (#541)
* fix(redirect): don't have to make relative url to absolute one

* remove `isAbsoluteURL`
2022-09-20 18:56:31 +09:00
Taku Amano
bbb95585d4
Check in Origin header instead of Referer (#532)
* refactor(cors): Check in Origin header instead of Referer.

* refactor(utils/url): Remove unused function getDomainFromURL.

* chore: denoify
2022-09-16 07:23:31 +09:00
Yusuke Wada
df64870f54
feat(cors): allow multiple origins (#531)
* feat(validator): add `isBoolean` and `isNumber`

* feat(cors): allow multiple origins

Close #503
2022-09-16 00:19:02 +09:00
Yusuke Wada
b6954815cb
perf(req): improve c.req.query performance (#498)
* perf(req): improve `c.req.query` performance

* allow fragments as query strings
2022-09-05 19:08:10 +09:00
Yusuke Wada
d9e9e62e47
feat: support Deno! (#336) 2022-07-02 15:09:45 +09:00