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

1020 Commits

Author SHA1 Message Date
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
Yusuke Wada
25bf260c95
feat(pages): enable getting eventContext (#980) 2023-03-14 08:16:23 +09:00
Yusuke Wada
a63a6375be v3.1.0-rc.1 2023-03-13 23:21:39 +09:00
Yusuke Wada
014acdc081
fix(client): removeIndexString supports /sub/index (#978)
* fix(client): `removeIndexString` supports `/sub/index`

* denoify
2023-03-13 22:37:17 +09:00
Yusuke Wada
3bb918b27c
fix(types): make MergePath<'/api', '/'> work well (#971)
* fix(types): make `MergePath<'/api', '/'>` work well

* denoify and remove some lines
2023-03-13 22:21:03 +09:00
Yusuke Wada
be02ca0975
test(bun): use test instead of wiptest! (#977) 2023-03-13 22:11:36 +09:00
Yusuke Wada
ea7a1b2d95
refactor: remove lint warnings (#976) 2023-03-13 22:08:16 +09:00
Yusuke Wada
b5cd193c2e
feat(middleware): support overwrite response after next() (#970) 2023-03-13 22:01:46 +09:00
Yusuke Wada
418941d01b Merge branch 'main' into next 2023-03-13 22:00:00 +09:00
Yusuke Wada
2721acd75e v3.0.5 2023-03-13 21:57:47 +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
5cb8bf12fd Merge branch 'main' into next 2023-03-13 09:54:55 +09:00
Yusuke Wada
d2732101c3 v3.0.4 2023-03-13 09:51:31 +09:00
Yusuke Wada
4414e63246
fix(etag): returns correct headers (#973)
* fix(etag): returns correct headers

* denoify

* `Etag` to `ETag`
2023-03-13 09:48:44 +09:00
Yusuke Wada
9c4197a772
feat(validator): support type transformation (#969)
* feat(validator): support type transformation

* denoify

* create `ValidationFunction` and add a test

* denoify

* rename

* denoify
2023-03-11 22:17:08 +09:00
Yusuke Wada
7548eaa0f6
feat(context): allow passing RequestInit to c.json() etc. (#959)
* feat(context): allow passing `RequestInit` to `c.json()` etc.

* denoify

resolve #952
2023-03-09 23:54:47 +09:00
Yusuke Wada
95f6470d5b
fix(type): add forgotten BasePath (#967)
* fix(type): add forgotten `BasePath`

* denoify
2023-03-09 10:52:22 +09:00
Taku Amano
55baf9d2d3
feat: route() with one argument is renamed basePath(). (#964)
* feat: `route()` with one argument is renamed `basePath()`.

* chore: denoify.

* refactor: Use `private` instead of hard private fields.

* refactor: The `route()` with one argument has reverted and deprecated.

* chore: denoify
2023-03-09 09:41:11 +09:00
Yusuke Wada
ad880dba43
feat: env support enviroment variables for multi runtimes (#949)
* feat: `env` support enviroment variables for multi runtimes

* typo

* denoify

* fixed ci settings

* fixed deno command

* comment out lagon test

* remove warnings
2023-03-06 21:12:22 +09:00
Yusuke Wada
b8c92e42ed Merge branch 'main' into next 2023-03-06 20:42:43 +09:00
Yusuke Wada
fea78f29bd
docs(readme): add creator name of RegExpRouter and SmartRouter (#956)
* docs(readme): add creator name of RegExpRouter and SmartRouter

* denoify
2023-03-06 20:42:05 +09:00
Yusuke Wada
c996f2d542 denoify 2023-03-05 23:40:14 +09:00
Yusuke Wada
4636b81090
fix(type): remove unnecessary distribution (#951) 2023-03-05 23:39:04 +09:00
Yusuke Wada
4fb8151663
feat(context): allow passing unknown to executionCtx.waitUntil (#957)
* feat(context): allow passing `Promise<unknown>` to `executionCtx.waitUntil`

* denoify
2023-03-05 23:37:02 +09:00
Yusuke Wada
64956cb57d v3.0.3 2023-03-02 21:53:59 +09:00
Yusuke Wada
cd1d4530a3 docs(readme): denoify
[skip ci]
2023-03-02 21:52:25 +09:00
Yusuke Wada
165d925231
fix(pages/nextjs): don't use route() if path is not passed (#943) 2023-03-02 21:44:11 +09:00
Yusuke Wada
46c233e463
fix(client): show type error if $get() needs args (#937)
* fix(client): show type error if `$get()` needs args

* denoify
2023-03-02 21:40:53 +09:00
Yusuke Wada
23a22e77c4 docs(readme): delightful 2023-03-02 19:58:13 +09:00
Yusuke Wada
b1c5059708
feat(jsonT): check JSON type (#939)
* feat(`jsonT`): check JSON type

* denoify

* use `JSONValue`

* create `TrueAndFalseToBoolean` and add a comment
2023-03-02 08:56:13 +09:00
tangye
73860a1595
fix: let the app.request behave the same as fetch (#933)
* fix: let the app.request behave the same as fetch

* fix: add deno dist files

---------

Co-authored-by: 唐烨 <tangye@xinpianchang.com>
2023-02-27 20:01:04 +09:00
Yusuke Wada
7ba91208b9
fix: add missing MergePath (#936)
* fix: add missing `MergePath`

* denoify
2023-02-27 19:10:16 +09:00
Taku Amano
b0501e03cd
feat: Improve route() (#929)
* feat: return a sub app cloning itself from route()

* feat: Add extra type parameter BasePath.

* refactor: The type of hono.basePath may simply be a string.

* refactor: first argument of route is required, default value is not required

* chore: denoify
2023-02-27 18:38:27 +09:00
Yusuke Wada
86afe0373e
chore: update sponsor link (#931) 2023-02-25 22:14:48 +09:00