Yusuke Wada
5cbd89c3ae
fix(validator): cache arrayBuffer
to use after validation ( #1393 )
...
* wip
* fix(validator): cache `arrayBuffer` to use after validation
* denoify
* refactor
* denoify
* make it `bufferToFormData()` in utils/buffer.ts
2023-09-03 14:43:01 +09:00
Yusuke Wada
f254fdc846
feat(req): cache body content ( #1333 )
...
* feat(req): cache body content
* denoify
* use destruction
* denoify
2023-08-18 16:25:48 +09:00
Yusuke Wada
85b54920f9
feat(parseBody): allow passing generics to parseBody()
( #1289 )
...
* feat(parseBody): allow passing generics to `parseBody()`
* denoify
2023-08-05 18:10:12 +09:00
Kelly Littlepage
387d696303
fix: application/x-www-form-urlencoded decoding ( #1189 )
...
The current logic for decoding application/x-www-form-urlencoded is
overly restrictive and misses `Content-Type` headers with a character
encoding set, i.e., application/x-www-form-urlencoded; charset=UTF-8.
This fix harmonizes the logic for handling multipart/form-data
and application/x-www-form-urlencoded in the `parseBody` method of
request objects.
2023-06-21 22:51:59 +09:00
Yusuke Wada
b567a574d6
refactor: form body should be Record<string, string | File>
( #771 )
...
* refactor: form body should be `Record<string, string | File>`
* refactored
2023-01-19 22:44:38 +09:00
Yusuke Wada
1eb49b8d96
refactor: support new @cloudflare/worker-types
( #673 )
...
* refactor: support new `@cloudflare/worker-types`
* do not attach crypto to global
* denoify ignore serve-static for cloudlfare
* ignore the utility for cloudflare
* import types
2022-11-23 07:27:42 +09:00
Yusuke Wada
976b2c310e
feat: c.req.body
and c.req.json
accept generics ( #529 )
2022-09-20 22:01:03 +09:00
Yusuke Wada
128a59aec2
fix: make that c.req.parseBody
parses only FormData
( #487 )
2022-08-27 11:38:48 +09:00
Yusuke Wada
c7ee2e7603
fix: enable passing Generics to c.req.parseBody, default is any ( #481 )
2022-08-25 09:25:11 +09:00
Yusuke Wada
8a9ebc1470
fix(utils/crypto): make Binary and JSON object crypto correct ( #454 )
2022-08-06 00:31:11 +09:00
Yusuke Wada
5838f9dccc
Revert "refactor: add Json
type for JSON object ( #453 )"
...
It's difficult to handle `Json`. So, it's ok to go with `object`.
This reverts commit bc736da6a5
.
2022-08-05 08:10:41 +09:00
Yusuke Wada
bc736da6a5
refactor: add Json
type for JSON object ( #453 )
2022-08-05 06:41:28 +09:00
Yusuke Wada
9f2a270c28
refactor(utils/html
): rename Buffer
to StringBuffer
( #449 )
2022-08-03 11:24:51 +09:00
Yusuke Wada
3c371d0d07
chore: denoify
2022-07-31 22:19:28 +09:00
Yusuke Wada
d9e9e62e47
feat: support Deno! ( #336 )
2022-07-02 15:09:45 +09:00