jkeys089
d6ec48ee02
feat(cookie): cookie parsing improvements ( #1428 )
2023-09-09 17:05:09 +09:00
Yusuke Wada
f2bdfd8423
Merge branch 'main' into next
2023-09-09 16:55:59 +09:00
Yusuke Wada
0cd3ea416a
v3.6.0-rc.1
2023-09-09 16:55:37 +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
Yusuke Wada
e83da7460c
test: tsc
before vitest
( #1427 )
2023-09-08 22:31:15 +09:00
Yusuke Wada
bb1b9146ed
fix(types): fix MergeSchemaPath
correct ( #1426 )
...
* fix(types): fix `MergeSchemaPath` correct
* denoify
2023-09-08 22:22:38 +09:00
Yusuke Wada
2d5b8e6d8c
ci: add --no-warnings
option for main
( #1425 )
...
* test: add `--no-warnings` option for node
* enable it only for CI
2023-09-08 18:38:54 +09:00
Yusuke Wada
b7161090ea
test: ignore sandbox
dir ( #1424 )
2023-09-08 18:10:12 +09:00
Derrick Farris
5b07146cf8
test(vitest): replace jest
with vitest
( #1404 )
...
* test(vitest): replace `jest` with `vitest` for core tests
* test(fastly): `jest` -> `vitest`, correct env for fastly
* test(jest): remove `jest-environment-miniflare` as dep
* test(lagon): configure `lagon` tests to run on `vitest`
* test(lambda): `jest` -> `vitest`
* test(lambda-edge): `jest` -> `vitest`
* test(node): `jest` -> `vitest`
* test(wrangler): `jest` -> `vitest`
* chore(deps): remove `jest` and `ts-jest` from deps
* test(vitest): add `yarn coverage` for checking coverage
* test(fastly): fix check for `globalThis.crypto`
* test(handler): fix stray `.only`
* test(lagon): change env file back to original path
* test(fastly): go back to `jest` until `vitest` has support for fastly env
* test(fastly): remove hack for the `crypto` global from the test
2023-09-08 17:42:28 +09:00
Yusuke Wada
8fdf0cf4b7
feat(vercel): pass RequestContext
( #1421 )
...
* vercel pass RequestContext
* add an appropriate type and make it throws error is `passThroughOnException` is called
* denoify-ignore
---------
Co-authored-by: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com>
2023-09-08 17:00:59 +09:00
Yusuke Wada
963b94e67e
Merge branch 'main' into next
2023-09-05 22:09:01 +09:00
Yusuke Wada
aee2093a39
feat(req): deprecate c.req.headers
(not c.req.header
) and others ( #1410 )
...
* feat(req): deprecate `c.req.headers` (not `c.req.header`) and others
* denoify
2023-09-05 22:08:43 +09:00
Yusuke Wada
e20a9e1d92
v3.5.8
2023-09-05 18:19:14 +09:00
Yusuke Wada
3351e9db96
fix(jsx): enable Fragment
( #1412 )
...
* fix(jsx): enable `Fragment`
* denoify
2023-09-05 18:14:32 +09:00
Yusuke Wada
405ec8cdb7
fix(utils/buffer
): don't decode space as +
( #1411 )
...
* fix(`utils/buffer`): don't decode space as `+`
* denoify
2023-09-05 17:30:40 +09:00
Yusuke Wada
40c350cd88
feat(context): introduce c.render()
( #1397 )
...
* feat(context): introduce `c.render()`
* denoify
2023-09-05 16:01:58 +09:00
Derrick Farris
8cea5bc9c3
feat(context): add status
to TypedResponse
( #1403 )
...
* feat(context): add `status` to `TypedResponse`
* test(context): make sure `tRes` has `status` prop
2023-09-05 15:58:43 +09:00
Yusuke Wada
08cd702760
Merge branch 'main' into next
2023-09-05 15:55:47 +09:00
watany
dbd484176d
ci: Avoid denoify
API rate limit ( #1407 )
2023-09-05 15:41:41 +09:00
watany
e8c3e3f3d2
ci: checkout@v4 ( #1408 )
2023-09-05 15:37:04 +09:00
Yusuke Wada
d194e9b3c2
fix(rpc): infer path with route()
and basePath()
( #1401 )
...
* fix(rpc): infer path with `route()` and `basePath()`
* denoify
2023-09-04 07:59:04 +09:00
Yusuke Wada
4550b31030
v3.5.7
2023-09-03 14:55:12 +09:00
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
jkeys089
0316bbadf6
feat: improvements to secure headers middleware ( #1395 )
2023-09-03 07:51:36 +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
4d8034ea89
v3.5.6
2023-08-29 23:10:59 +09:00
Yusuke Wada
0ac27fc817
fix(types): infer a response type for async handler ( #1385 )
...
* fix(types): infer a response type for async handler
* denoify
2023-08-29 23:07:27 +09:00
Yusuke Wada
5d24a87bea
v3.5.5
2023-08-28 23:08:17 +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
6a7a11b975
fix: revert "feat(package.json
): export hono/context
" ( #1381 )
...
This reverts commit 29fe930b67
.
2023-08-28 22:25:57 +09:00
Yusuke Wada
47e5080abc
ci: check if it is denoified ( #1378 )
...
* add ci denoify check
* ci fix
* fix ci
* npm run denoify before npm test
* adding job name
* yamllint fix
* separate the denoify check from `main`
* rename the CI name
* fake commit
* revert
---------
Co-authored-by: watany <76135106+watany-dev@users.noreply.github.com>
2023-08-28 21:52:25 +09:00
Yusuke Wada
e16c1528bb
v3.5.4
2023-08-24 16:59:01 +09:00
Yusuke Wada
1eb4a1dcdc
fix(types): fix AddDollar
( #1373 )
2023-08-24 16:58:02 +09:00
Yusuke Wada
6400bbc14c
v3.5.3
2023-08-24 16:34:17 +09:00
Yusuke Wada
3bd44fa25c
fix(types): export ToSchema
( #1372 )
...
* fix(types): export `ToSchema`
* denoify
2023-08-24 16:12:17 +09:00
Yusuke Wada
614d11e9e9
v3.5.2
2023-08-24 15:41:54 +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
f860435553
v3.5.1
2023-08-23 09:18:54 +09:00
Yusuke Wada
d678c75808
fix(compress): delete content-length
header ( #1366 )
...
* fix(compress): delete `content-length` header
* denoify
2023-08-23 09:11:37 +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
2685a9b017
v3.5.0
2023-08-21 18:42:30 +09:00
Yusuke Wada
f1c9d7b74d
fix(middleware.ts
): export secure-headers for Deno ( #1361 )
2023-08-21 15:38:35 +09:00
Yusuke Wada
e07019125d
feat: introduce "Helpers" ( #1353 )
...
* mv jsx
* introduce helper
* denoify & add src/helper.ts for Deno
* remove `c` not used
* remove `c` in lagon test
* remove `src/adapter.ts` not used
2023-08-21 15:22:37 +09:00
watany
66b915ac07
feat(middleware): Alternative middleware equivalent to Helmet ( #1341 )
...
* v0.1
* v0.2
* v0.3
* v0.4
* v0.5
* v1.0
* adding require-corp
* fix
* denoify
* rename header"s"
* await phase
* refactor routing
* rename packages
* format and lint
* denoify
* add testing
* Cross-Origin-Embedder-Policy
* csp
* denoify
* linter
* disable eslint fix
* default likes helmet
* denoify
2023-08-21 00:24:59 +09:00
asaxeye
88e7650ee8
fix(types): corrected argument types for Context
methods ( #1357 )
2023-08-21 00:23:05 +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
Yusuke Wada
07bc29ee60
feat(app): pass env
to getPath()
( #1345 )
...
* feat(app): pass `env` to `getPath()`
* denoify
2023-08-20 16:03:25 +09:00
sizumita
4a027474f1
fix(type): add missing S to RemoveBlankRecord ( #1354 )
...
* fix(type): add missing S to RemoveBlankRecord
* fix(test): Fix testcase mistake
* run prettier
2023-08-20 15:45:22 +09:00
Yusuke Wada
8adc8c14c4
feat(validator): supports header
and cookie
( #1352 )
...
* feat(validator): supports `header` and `cookie`
* denoify
2023-08-19 18:23:04 +09:00
Yusuke Wada
9e391cf8f9
feat(validator): deprecate queries
(use query
instead) ( #1350 )
...
* fixed test
* denoify
2023-08-19 17:50:50 +09:00