Andrew
a654842d56
fix(client/types): make args param optional if the input has no required keys ( #1618 )
...
* feat(types.ts): add RequiredKeysOf and HasRequiredKeys utility types
* fix(client/types.ts): make args param optional if input has no required keys
* chore(types.ts): move RequiredKeysOf and HasRequiredKeys types to utils/types.ts
* chore(types.ts): rewrite ClientRequest type
* chore(types.ts): fix formatting
* chore(types.ts): denoify
2023-10-26 18:07:25 +09:00
Yusuke Wada
3c6b18fb2f
fix(hc): allows optional schemas ( #1608 )
...
* fix(hc): allows optional schemas
* denoify
2023-10-22 23:23:53 +09:00
hagishi
cdb36b80af
feat(client) add cookie type validate ( #1476 )
...
* feat: add hc header type check
* fix: revert comment
* denoify
* feat(client): add cookie type valid
* denoify
* feat: remove function from cookie helper
* refactor: modify client type
2023-09-19 07:25:34 +09:00
hagishi
a5ba936784
feat: Refactor ClientRequest Type for header validation ( #1462 )
...
* feat: add hc header type check
* fix: revert comment
* denoify
2023-09-17 01:09:47 +09:00
hagishi
00af2a5e60
feat: allow the type of app.request ( #1444 )
...
* feat: allow the type of app.request
* typo
2023-09-13 08:04:04 +09:00
Yusuke Wada
7418198e36
fix(client): remove async from $url()
( #1430 )
...
* v3.6.0-rc.1
* fix(client): remove async from `$url()`
* denoify
2023-09-09 16:15:13 +09:00
renzor
7b68ff61a4
feat: Add $url method to hono client to extract an endpoint's url ( #1384 )
2023-09-02 07:15:59 +09:00
Yusuke Wada
8ac21d3881
fix(context): different types using jsonT()
( #1379 )
...
* fix(context): `jsonT()` handle diferrent types
* denoify
2023-08-28 22:33:06 +09:00
Yusuke Wada
6034dd7f7f
fix(types): remove type-errors for routes ( #1371 )
...
* fix(types): remove type-errors for routes
* denoify
* fixed the client and the presets
* rename
2023-08-24 15:36:49 +09:00
Yusuke Wada
a168ed584b
fix(client): continue
if query value is undefined
( #1368 )
...
* fix(client): `continue` if query value is `undefined`
* denoify
2023-08-23 09:11:25 +09:00
Yusuke Wada
2b274662e9
fix(client): ignore header
and cookie
types ( #1359 )
...
* fix(client): ignore `header` and `cookie` types
* denoify
2023-08-21 00:19:04 +09:00
Tanner Scadden
fa1c7df42b
fix(client): Web query undefined check ( #1340 )
...
* Added check for undefined in query
* denofied
2023-08-18 16:18:21 +09:00
Yusuke Wada
91af6d3007
refactor: denoify ( #1344 )
2023-08-18 16:13:04 +09:00
flow
d6f4d1a501
Fix replaceUrlParam to ignore regexp in path ( #1214 )
...
* Fix replaceUrlParam to ignore regexp in path
* Generate deno_dist files
2023-07-02 22:25:19 +09:00
Yusuke Wada
5b873fcc5c
fix(types): allow not to set skipLibCheck
( #1206 )
...
* fix(types): allow not to set `skipLibCheck`
* use `unknown`
* denoify
2023-06-29 16:48:00 +09:00
Dmitry Poklonskiy
2a2f73a1c4
fix: Add missing client types and TypedResponse type ( #1135 )
2023-05-28 08:39:36 +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
cadb6eab41
feat(validator): query
supports array params ( #984 )
...
* feat(validator): `query` supports array params
* denoify
2023-03-16 21:49:28 +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
c996f2d542
denoify
2023-03-05 23:40:14 +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
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
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
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
79759a81ed
feat(client): introduce Fetch
type ( #898 )
...
* feat(client): introduce `Fetch` type
* denoify
2023-02-16 16:12:21 +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
68cbbbcde7
refactor: rename ValidationTypes
to ValidationTargets
( #890 )
...
* refactor: rename `ValidationTypes` to `ValidationTargets`
* denoify
2023-02-14 06:21:30 +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
c0d2e608a6
feat: hc
- Hono Client ( #862 )
2023-02-08 07:22:32 +09:00