0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-29 17:46:30 +01:00
Commit Graph

403 Commits

Author SHA1 Message Date
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
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
1eb4a1dcdc
fix(types): fix AddDollar (#1373) 2023-08-24 16:58:02 +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
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
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
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
Yusuke Wada
2faaa15ea1
fix(req): fix inferring types in req.valid() (#1351)
* fix(req): fix inferring types in `req.valid()`

* denoify
2023-08-19 17:48:49 +09:00
Yusuke Wada
dc0696f2d1
refactor(context): allow passing HonoRequest as 1st arg (#1312)
* perf(context): allow passing `HonoRequest` as 1st arg

* denoify

* test: fix the node runtime test

* test: fix deno tests
2023-08-19 16:20:08 +09:00
Torsten Engelbrecht
1a2c0d58e5
fix(middleware): signed cookie misinterpretation of cookie values with dot (#1342)
Close #1337
2023-08-18 18:56:10 +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
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
Sor4chi
49ce537684
refactor(compress-middleware): resolve type assertion using const assertion (#1343)
* refactor: resolve type assertion using const assertion

* denoify
2023-08-18 16:14:58 +09:00
Yusuke Wada
91af6d3007
refactor: denoify (#1344) 2023-08-18 16:13:04 +09:00
Sor4chi
8ab0ccd7cc
docs: support change of escapeTextForBrowser path in react (#1336) 2023-08-16 07:39:35 +09:00
Yusuke Wada
acbd495bbe
fix(app): set / for path as default (#1330)
* fix(app): set `/` for `path` as default

* denoify
2023-08-15 00:33:16 +09:00
Yusuke Wada
70e0b3b8c6 denoify 2023-08-14 23:34:56 +09:00
Yusuke Wada
88537363d8 denoify 2023-08-14 22:46:45 +09:00
sizumita
fa75c26d0b
fix(type): Fix reflecting basePath when no path in handler (#1325)
* fix(type): Reflects BasePath in HandlerInterface if without path

* test(path): add path param tests for routing without path and with basePath

* did denonify

* fix(type): Handler type

* test(path): add test for chained route
2023-08-14 22:09:44 +09:00
CyberFlame
66b1619f2d
fix(cookie): misspell (#1321)
* fix misspell

* denoify
2023-08-14 16:11:14 +09:00
rosahaj
5320ed6c57
fix(type): Export Schema type to allow route exports in declaration files (#1309)
* Export Schema type to allow route exports in declaration files

* Apply changes to src/mod.ts as well

* denoify
2023-08-11 07:05:51 +09:00
Yusuke Wada
b7f12ddbe9 Revert "refactor(utils/url): remove unnecessary code (#1315)"
This reverts commit ce4ac5a6f5.
2023-08-10 16:39:28 +09:00
Yusuke Wada
ce4ac5a6f5
refactor(utils/url): remove unnecessary code (#1315)
* refactor(utils/url): remove unnecessary code

* denoify
2023-08-10 15:02:14 +09:00
Yusuke Wada
48a8729862
perf(hono-base): use constructor.name instead of instanceof (#1311)
* perf(hono-base): use `constructor.name` instead of `instanceof`

* denoify
2023-08-10 10:10:40 +09:00
Tim Fish
9be3b7b6dd
Add missing wasm mime type (#1307)
* Add missing wasm mime type

* deno dist
2023-08-09 21:45:07 +09:00
Yusuke Wada
a104bf0010
fix(netlify): fix import paths (#1304) 2023-08-08 09:35:05 +09:00
Yusuke Wada
f7bce19751
fix(validator): support async validator func (#1303)
* fix(validator): support async validator func

* denoify
2023-08-07 21:26:53 +09:00
Yusuke Wada
85f8ab663f
refactor(app): add "deprecate message" for app.handleEvent() (#1298)
* refactor(app): add "deprecate message" for `app.handleEvent()`

* denoify
2023-08-05 23:41:45 +09:00
Yusuke Wada
4a3c5834de
chore(benchmark): update the handle-event benchmark (#1297)
* chore(benchmark): update the handle-event benchmark

* denoify
2023-08-05 23:37:41 +09:00
Yusuke Wada
8e2eaf9d24
docs(jsdoc): fix a app.route() JSDoc description (#1296)
* docs(jsdoc): fix a `app.route()` JSDoc description

* denoify
2023-08-05 23:28:34 +09:00
Yusuke Wada
8b0f189a3f refactor(json-pretty): don't use c.pretty() (#1288) 2023-08-05 18:14:57 +09:00
Yusuke Wada
09368ac9cc
feat(adapter): add Netlify adapter (#1290)
* feat(adapter): add Netlify adapter

* denoify
2023-08-05 18:12:02 +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
Torsten Engelbrecht
35246d0de6
feat(middleware): Simple cookie signing functionality (#1279) 2023-08-05 17:19:08 +09:00
Yusuke Wada
47ae014724
perf(context): add init flag (#1284)
* perf(context): add `init` flag

* denoify
2023-08-04 00:09:12 +09:00
Yusuke Wada
d5cfe040d8
fix(types): add a missing handler type (#1283)
* fix(types): add a missing handler type

* fix & denoify
2023-08-03 23:09:58 +09:00
watany
4f7d027f5b
doc(readme): adding Lambda@Edge (#1278) 2023-08-01 10:38:28 +09:00
Yusuke Wada
e851e9bd82
perf(utils/url): use regexp instead of indexOf() (#1276)
* perf(utils/url): use regexp instead of `indexOf()`

* remove unused file

* denoify
2023-07-29 23:38:55 +09:00
Yusuke Wada
8ea833a7d0
refactor(hono-base): remove async/await from app.request (#1275)
* refactor(hono-base): remove async/await from `app.request`

* denoify
2023-07-28 17:52:11 +09:00
Yusuke Wada
77b7ac7fe7
fix(utils/filepath): allow .. in filename (#1272)
* fix(utils/filepath): allow `..` in filename

* denoify

* support `./foo../bar.txt`

* denoify

* add tests

---

Co-authored-by: Taku Amano <taku@taaas.jp>
2023-07-27 11:43:42 +09:00
Yusuke Wada
614ab9d6e4
fix(utils/filepath): don't allow dot segments (#1271) 2023-07-27 08:37:20 +09:00