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
368c1bb99d
Merge branch 'main' into next
2023-05-02 21:16:55 +09:00
Yusuke Wada
f29761e16b
chore: move runtime tests into runtime_tests
( #1062 )
...
* chore: move runtime tests into `runtime_tests`
* fixed ci
2023-05-02 21:16:17 +09:00
Yusuke Wada
95195801c4
Merge branch 'main' into next
2023-05-02 20:20:57 +09:00
Yusuke Wada
db7ad68b42
chore: update eslint ( #1060 )
2023-05-02 18:45:21 +09:00
Yusuke Wada
e066719aa1
fix(deno): export HTTPException
from mod.ts
( #1058 )
...
* fix(deno): export `HTTPException` from `mod.ts`
* denoify
2023-05-02 16:37:24 +09:00
Yusuke Wada
d06a3123e7
Merge branch 'main' into next
2023-05-02 16:30:24 +09:00
Yusuke Wada
7822766bac
v3.1.8
2023-05-02 16:29:38 +09:00
Yusuke Wada
85528398c3
fix: check global.fastly
instead of require('fastly:env')
( #1057 )
...
* fix: use `global.fastly` instead of `require('fastly:env')`
* denoify
2023-05-02 16:26:39 +09:00
Alex Errant
7c6ebe8f4e
fix: empty string is a valid header value ( #1056 )
...
* empty string is a valid header value
* yarn denoify
2023-05-02 15:56:17 +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
Yusuke Wada
b40f1e28e6
Merge branch 'main' into next
2023-04-28 12:16:19 +09:00
Yusuke Wada
f0777321ae
v3.1.7
2023-04-28 12:15:30 +09:00
Taku Amano
1a1de75296
feat: Introduce LinearRouter. ( #1043 )
...
* feat: Introduce LinearRouter.
* chore: Add benchmark script.
* chore: denoify
2023-04-28 12:10:20 +09:00
Yusuke Wada
03df736763
feat(utils): remove HTTP status messages from http-status.ts
( #1037 )
...
* feat(utils): remove HTTP status messages from `http-status.ts`
* denoify
2023-04-28 12:10:20 +09:00
Yusuke Wada
677b572fd5
feat: introduce PatternRouter and hono/tiny
( #1036 )
...
* wip
* Use RegExp instead of URLPattern. (#1039 )
* Use RegExp instead of URLPattern.
* refactor(url-pattern-router): tidy up.
* refactor(url-pattern-router): Tweaks type for mangling.
* refactor: Rename URLPatternRouter to PatternRouter.
* chore: denoify.
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
2023-04-28 12:10:20 +09:00
Taku Amano
ac7eeda87f
fix(context): Fix typo in charset. ( #1046 )
2023-04-28 12:06:23 +09:00
Yusuke Wada
532632aa88
v3.1.6
2023-04-17 08:53:33 +09:00
Yusuke Wada
ea7ece39eb
docs(readme): fixed readme for Deno
2023-04-17 08:51:53 +09:00
Yusuke Wada
22a49325b1
docs(readme): Edge to Edges
2023-04-08 18:34:03 +09:00
Yusuke Wada
3317ca128a
fix(pages): fixed type mismatch in EventContext
( #1026 )
2023-04-04 17:31:54 +09:00
Yusuke Wada
8bdbfcc49b
v3.1.5
2023-03-31 18:42:17 +09:00
Yusuke Wada
e6669f7779
feat(jwt): support for getting payload from c.get('jwtPayload')
( #1025 )
2023-03-31 18:39:26 +09:00
Yusuke Wada
c503436276
feat(deno): denoify ( #1024 )
2023-03-31 18:17:45 +09:00
Leontopodium pusillum
202b0b385f
feat(types): expose Input
type ( #1019 )
2023-03-31 18:02:27 +09:00
Marc MacLeod
fa84edca71
feat(adapter): infer env typings from context ( #1021 )
2023-03-31 18:01:24 +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
Yusuke Wada
5f4eac8466
v3.1.4
2023-03-30 21:39:50 +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
ffbf2502d4
v3.1.3
2023-03-26 22:40:28 +09:00
Yusuke Wada
813984edca
denoify
2023-03-26 22:14:33 +09:00
Yusuke Wada
9ddedc4591
fix(req): decode special chars in URL params ( #1010 )
2023-03-26 08:37:41 +09:00
Yusuke Wada
188aea1fb5
fix(package.json): fixed test:wrangler
and test:lambda
( #1012 )
2023-03-26 08:37:17 +09:00
Yusuke Wada
27a9669161
v3.1.2
2023-03-20 23:36:02 +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
Kei Kamikawa
95602a18d7
feat: support issued_at
validation for JWT ( #1001 )
...
* added issued at validation
* yarn denoify
2023-03-20 23:29:32 +09:00
Yusuke Wada
ea67919b82
v3.1.1
2023-03-19 18:22:50 +09:00
Yusuke Wada
309c38a69a
denoify
2023-03-19 18:19:01 +09:00
Kei Kamikawa
bbdc64bf55
refactor: Refactoring base64 logic for JWT ( #999 )
...
* allow base64 encode decode RFC 3548 format
* refactoring to encode JWT signature part
* added test case that already exists
* fixed basic-auth middleware to decode base64
Co-authored-by: Takumi Akiyama <t.akiym@gmail.com>
2023-03-19 18:12:26 +09:00
Taku Amano
c0af3d0726
feat: Enable to add subApp with basePath. ( #998 )
...
* feat: Enable to add subApp with basePath.
* chore: denoify.
2023-03-19 12:39:07 +09:00
Yusuke Wada
e0cead6100
fix(context): fixed a bug for c.header()
with a append
option ( #997 )
...
* fix(context): fixed a bug for `c.header()` with a `append` option
* denoify
2023-03-19 12:08:17 +09:00
Yusuke Wada
ccb5587270
v3.1.0
2023-03-17 16:50:21 +09:00
Yusuke Wada
5c8c9bd5a1
Merge pull request #989 from honojs/next
...
Merge next into main
2023-03-17 16:44:10 +09:00
Yusuke Wada
1d558395ef
feat(adapter): introduce AWS Lambda Adapter ( #987 )
...
* feat: introduce AWS Lambda adapter
* denoify ignore
* export settings
2023-03-17 16:33:54 +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
cadb6eab41
feat(validator): query
supports array params ( #984 )
...
* feat(validator): `query` supports array params
* denoify
2023-03-16 21:49:28 +09:00
Taku Amano
287498bdec
feat(validator): Allow validator to apply validation to path param. ( #982 )
...
* Allow validator to apply validation to path param.
* chore: denoify
* feat(validator): Enable passing the path to ValidationFunction as a template parameter.
* chore: denoify
Co-authored-by: yusukebe <yusuke@kamawada.com>
2023-03-15 22:20:50 +09:00
Yusuke Wada
e2a174b8ac
fix(types): infer types correctly ( #983 )
...
* v3.1.0-rc.2
* fix(types): infer path param types correctly
* denoify
* fix: infer the value type in the validation funtion
* denoify
2023-03-14 23:43:33 +09:00
Yusuke Wada
221d64bae6
feat(page/nextjs): show "deprecated" for 2nd arg of handle()
( #981 )
2023-03-14 08:38:20 +09:00