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
Yusuke Wada
bb929b44cf
v3.0.2
2023-02-25 13:40:49 +09:00
Yusuke Wada
e035e289ee
feat(deno): export HonoRequest
type in Deno ( #927 )
2023-02-25 02:48:18 +09:00
Yusuke Wada
b788fe619f
fix(validator): clone Request object if json
or form
( #926 )
2023-02-25 02:36:11 +09:00
Yusuke Wada
b9227b890c
refactor(util): remove using Buffer
from encode.ts
( #925 )
2023-02-25 01:53:18 +09:00
Marc Höffl
71945cbfa2
fix: Expose HonoRequest Type ( #918 )
...
* Expose HonoRequest
* No additional empty line
2023-02-25 01:39:56 +09:00
Yusuke Wada
b3868d1075
fix(types): app.route
with multiple endpoints returns types correctly ( #919 )
...
* fix(types): `app.route` with multiple endpoints returns types correctly
* fix `OnHandlerInterface` patterns too.
* denoify
* fix type mismatch of Env
* remove unnecessary assert
2023-02-24 09:07:25 +09:00
hagishi
14ed9f7368
feat: allow pathname argument ( #921 )
...
* feat: allow pathname argument
* fix: add control input argument
* denoify
2023-02-23 23:41:50 +09:00
Jonas Hiltl
17755d8167
feat: Custom fetch method for Hono Client options ( #920 )
...
* Allow setting custom fetch method for hono client
* Run yarn denoify
2023-02-23 16:26:25 +09:00
Yusuke Wada
4c4bf2b85e
docs(readme): add "quick start"
2023-02-23 05:49:16 +09:00
Yusuke Wada
96bd5258d1
v3.0.1
2023-02-20 19:53:09 +09:00
Yusuke Wada
2c5b9891bd
feat(types): keep schema info with app.route()
( #909 )
2023-02-20 08:56:29 +09:00
hagishi
7ffb5b547e
feat(client): Inject common headers ( #908 )
...
* feat(client): Inject common headers
* feat: Accept a RequestOptions object as argument.
* refactor: Rename RequestOption to RequestOptions
* denoify
2023-02-20 08:22:01 +09:00
Yusuke Wada
22839f5a82
v3.0.0
2023-02-18 23:08:57 +09:00
Yusuke Wada
4b75b947bf
Merge pull request #905 from honojs/next
...
v3
2023-02-18 23:02:20 +09:00
Yusuke Wada
433ed530fc
docs(migration): add descriptions ( #904 )
2023-02-18 21:36:35 +09:00
Yusuke Wada
d7e67d1d73
docs: update migration guide for v3 ( #903 )
2023-02-18 14:17:24 +09:00
Yusuke Wada
02e3786016
docs(readme): update for v3 ( #902 )
...
* docs(readme): update for v3
* denoify
2023-02-18 08:27:54 +09:00
Yusuke Wada
0187006c58
v3.0.0-rc.16
2023-02-18 06:52:19 +09:00
Yusuke Wada
c98f71610a
fix(jsx): declare types for JSX correctly ( #901 )
2023-02-18 06:50:52 +09:00
Yusuke Wada
6d8bd62d23
chore: honojs.dev
to hono.dev
( #900 )
2023-02-16 23:18:34 +09:00
Yusuke Wada
d4e3728881
chore: denoify
2023-02-16 18:08:50 +09:00
Yusuke Wada
96aa3f12dd
refactor(req): remove async
keyword from json()
etc. ( #899 )
2023-02-16 18:07:26 +09:00
Yusuke Wada
79759a81ed
feat(client): introduce Fetch
type ( #898 )
...
* feat(client): introduce `Fetch` type
* denoify
2023-02-16 16:12:21 +09:00
Yusuke Wada
119f4b6860
v3.0.0-rc.15
2023-02-15 22:12:30 +09:00
Yusuke Wada
94df5fce68
feat(hc): add InferRequestType
( #894 )
...
* feat(hc): add `InferRequestType`
* denoify
2023-02-15 08:47:40 +09:00
Yusuke Wada
05ee837f78
feat: change the arg InferResponseType
receives ( #893 )
...
* feat: change the arg `InferResponseType` receives
* denoify
2023-02-15 07:05:39 +09:00
Yusuke Wada
733854f6cb
docs(readme): add bundlephobia badges ( #891 )
2023-02-14 22:50:58 +09:00
Yusuke Wada
25e5c01f58
chore(package.json): update description
2023-02-14 22:43:27 +09:00
Yusuke Wada
68cbbbcde7
refactor: rename ValidationTypes
to ValidationTargets
( #890 )
...
* refactor: rename `ValidationTypes` to `ValidationTargets`
* denoify
2023-02-14 06:21:30 +09:00
Yusuke Wada
5b29d4235e
refactor: rename to TypedResponse
( #889 )
...
* refactor: rename to `TypedResponse`
* denoify
2023-02-13 21:57:12 +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
0b2ac1678e
Merge branch 'main' into next
2023-02-13 06:47:05 +09:00
Yusuke Wada
93da44042c
v2.7.8
2023-02-13 06:35:37 +09:00
Alex Errant
d2abad3b34
header may return undefined ( #884 )
...
* header may return undefined
* fixed broken tests
* yarn denoify
* update CONTRIBUTING
2023-02-13 06:30:57 +09:00
Yusuke Wada
0903761a76
v3.0.0-rc.14
2023-02-12 22:45:24 +09:00
Yusuke Wada
e0059916e9
fix(deno): allow {}
for app.fetch
fo compatibility ( #887 )
2023-02-12 16:46:47 +09:00
Yusuke Wada
23b05425da
fix(deno): export deno adapter ( #886 )
2023-02-12 16:35:22 +09:00
Yusuke Wada
39e855f0a4
feat: move http-exception out of utils ( #883 )
2023-02-11 18:05:50 +09:00
Yusuke Wada
401ea08129
v3.0.0-rc.13
2023-02-11 16:25:41 +09:00
Yusuke Wada
ff7b225620
feat(app
): support multiple methods with app.on()
( #882 )
...
* feat(`app`): support multiple methods with `app.on()`
* use `flat()`
* denoify
2023-02-11 16:20:11 +09:00
Yudai Nakata
da7087c754
feat(adapter)!: simplify HandleInterface and save size ( #881 )
2023-02-11 16:16:56 +09:00
Yusuke Wada
bd90ec5d2b
chore: update Deno benchmark ( #880 )
2023-02-11 06:43:07 +09:00
Yusuke Wada
8ade1cf525
chore: update the benchmark result
2023-02-11 06:19:23 +09:00
Yusuke Wada
7534fbe748
v3.0.0-rc.12
2023-02-11 05:37:32 +09:00
Yusuke Wada
17af727d49
feat(validator): moved validator outside of middleware ( #879 )
2023-02-11 01:18:27 +09:00
Yusuke Wada
aca2f4c158
feat(adapter): handle(path, app)
for CF Pages & Next.js ( #878 )
2023-02-11 00:58:21 +09:00