0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
Commit Graph

283 Commits

Author SHA1 Message Date
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
Yusuke Wada
0903761a76 v3.0.0-rc.14 2023-02-12 22:45:24 +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
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
328022be21 v3.0.0-rc.11 2023-02-09 20:04:12 +09:00
Yusuke Wada
8caa9afb7b v2.7.7 2023-02-09 18:29:17 +09:00
Yusuke Wada
9391278911
feat(router) [breaking]: StaticRouter obsolete (#873)
Co-authored-by: Taku Amano <taku@taaas.jp>
2023-02-09 16:58:28 +09:00
Yusuke Wada
c0d2e608a6
feat: hc - Hono Client (#862) 2023-02-08 07:22:32 +09:00
Yusuke Wada
2828e59a6c Merge branch 'main' into next 2023-02-06 07:09:03 +09:00
Yusuke Wada
c335a9272b v2.7.6 2023-02-06 07:04:44 +09:00
Yusuke Wada
ac3117659e v3.0.0-rc.10 2023-02-02 00:27:58 +09:00
Yusuke Wada
fbf8959b74
fix(breaking): obsolete no args c.req.valid() (#856)
* v3.0.0-rc.9

* fix(breaking): obsolete no args `c.req.valid()`

* more strict
2023-02-01 22:02:09 +09:00
Yusuke Wada
4ac0971976 v2.7.5 2023-01-24 08:55:29 +09:00
Yusuke Wada
a53ae499d3 Merge branch 'main' into next 2023-01-23 08:40:17 +09:00
Yusuke Wada
1908be8f7e v2.7.4 2023-01-23 08:37:44 +09:00
Yusuke Wada
e404319824
perf: use substring and //.test ... (#829)
* v3.0.0-rc.8

* perf: use `substring` and `//.test` ...
2023-01-22 13:59:31 +09:00
Yusuke Wada
59b75b6561 v3.0.0-rc.7 2023-01-19 22:45:25 +09:00
Yusuke Wada
f2360a1c68 v3.0.0-rc.6 2023-01-19 22:45:25 +09:00
Yusuke Wada
7beb64956c feat: [BREAKING] introduce adapters (#807)
* feat: [BREAKING] introduce adapters

* added Next.js adapter

* denoify
2023-01-19 22:45:25 +09:00
Yusuke Wada
733f05c21c refactor(types): more robust and flexible (#806)
* chore: denoify

* v3.0.0-rc.5

* refactor(types): more robust and flexible

* fixed some
2023-01-19 22:45:25 +09:00
Yusuke Wada
b55c5d91d4 v3.0.0-rc.4 2023-01-19 22:45:25 +09:00
Yusuke Wada
e84ac2cffb test: add tests and CI for Node.js (#785) 2023-01-19 22:45:23 +09:00
Yusuke Wada
f14b2c3656 ci: refine CI structures (#784)
* ci: refine CI structures

* fixed ci config
2023-01-19 22:44:38 +09:00
Yusuke Wada
3cd1b1dbf4 test: add tests and CI for Fastly Compute@Edge (#783)
* test: add tests and CI for Fastly Compute@Edge

* fix detecting which runtime is fastly and add the test for it
2023-01-19 22:44:38 +09:00
Yusuke Wada
50192ce5ad v3.0.0-rc.3 2023-01-19 22:44:37 +09:00
Yusuke Wada
397c12e181 refactor: refactor and fix Types (#748)
* wip

* refactor: refactor and fix Types
2023-01-19 22:44:34 +09:00
Yusuke Wada
85e3c6a275 feat: new validator middleware using 3rd-party & current middleware obsolete (#745)
* feat: introduce HonoRequest with "wrapper pattern" (#733)

* feat: HonoRequest

* avoid `awaits`

* use `raw` instead of `original`

* feat: types for "RPC" support & build-in validator obsolete

* feat: introduce HonoRequest with "wrapper pattern" (#733)

* feat: HonoRequest

* avoid `awaits`

* use `raw` instead of `original`

* create generic middleare for 3rd-party validator

* indent

* support multiple validators and refactor

* remove unsed lines

* denoify
2023-01-19 22:40:13 +09:00
Yudai Nakata
8dfdba9b44
build: validate package exports after build (#824) 2023-01-19 22:32:11 +09:00
Yusuke Wada
dd830d405a v2.7.3 2023-01-18 09:29:18 +09:00
Yusuke Wada
7126cf254e v2.7.2 2023-01-09 00:33:00 +09:00
Taishi Naritomi
897c4017b7
fix: package.json exports static-router (#776) 2023-01-04 17:49:48 +09:00
Yusuke Wada
cce0525965 v2.7.1 2022-12-30 10:04:11 +09:00
Yusuke Wada
aa080a8cec v2.7.0 2022-12-27 23:10:37 +09:00
Taishi Naritomi
ac7fcfaff2
fix package.json & tsconfig.build.json (#747)
Fix #668
2022-12-27 22:59:23 +09:00
Tom Lienard
884b287f3d
feat: Lagon support with runtime detection & tests (#742)
* feat: Lagon support with runtime detection & tests

* ci: build before running test:lagon

* refactor: remove mentions of Lagon since it's still in dev

* test: enable ETag test
2022-12-25 01:42:59 +09:00
Yusuke Wada
720d0c3ce2 v2.6.2 2022-12-14 22:14:28 +09:00
Yusuke Wada
52ef58396e v2.6.1 2022-12-11 11:15:13 +09:00
Yusuke Wada
7e8226623a v2.6.0 2022-12-10 17:21:06 +09:00
Yusuke Wada
6c294039c1 v2.5.10 2022-12-08 21:51:04 +09:00
Yusuke Wada
4c89a7ad54 v2.5.9 2022-12-08 00:59:11 +09:00
Yusuke Wada
08a1b7843d v2.5.8 2022-12-05 18:33:33 +09:00
Yusuke Wada
0774067e20 v2.5.7 2022-12-01 00:13:57 +09:00
Yusuke Wada
5b72c3ad6e v2.5.6 2022-11-26 16:04:11 +09:00
Taishi Naritomi
95973a5b95
fix(package.json): add "type": "module" (#679) 2022-11-26 15:45:24 +09:00
Yusuke Wada
8500949bd6 v2.5.5 2022-11-23 18:58:30 +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
5456709b4c chore(package.json): update the description 2022-11-20 23:42:23 +09:00
Yusuke Wada
ca9cb0cdf9 v2.5.4 2022-11-20 21:39:33 +09:00
Yusuke Wada
d01ed4da8a
fix(package.json): add typesVersions section (#670) 2022-11-20 21:37:37 +09:00
Yusuke Wada
797688f493 v2.5.3 2022-11-20 15:51:20 +09:00
Yusuke Wada
d2fa90f0fe
fix(package.json): exports types correctly (#669)
* fix(package.json): exports types correctly

* make jest config commonjs
2022-11-20 15:46:18 +09:00
Yusuke Wada
8ab08c444e v2.5.2 2022-11-17 15:14:20 +09:00
Yusuke Wada
ce31e2ac30 v2.5.1 2022-11-13 10:26:05 +09:00
Yusuke Wada
b82547f70a v2.5.0 2022-11-08 07:04:09 +09:00
Yusuke Wada
fadce52673 v2.4.1 2022-11-01 21:44:20 +09:00
Yusuke Wada
4d7c941836 v2.4.0 2022-11-01 17:45:16 +09:00
Yusuke Wada
ca52dd898e
fix(build): fix ESM support in Node.js / use esbuild (#631)
* fix(build): fix ESM support in Node.js / use `esbuild`

* add tsx

* denoify ignore
2022-10-28 08:46:02 +09:00
Yusuke Wada
d8da569299 v2.3.2 2022-10-25 00:02:29 +09:00
Yusuke Wada
47b54781a8 v2.3.1 2022-10-20 15:50:10 +09:00
Yusuke Wada
0dc90e4be6 v2.3.0 2022-10-19 20:30:53 +09:00
Yusuke Wada
f973fc134d v2.2.5 2022-10-04 09:03:16 +09:00
Yusuke Wada
03c3dec957 v2.2.4 2022-10-04 06:46:45 +09:00
Yusuke Wada
13ce2eef95 v2.2.3 2022-09-30 19:54:01 +09:00
Yusuke Wada
93b55bbf4a v2.2.2 2022-09-27 21:55:03 +09:00
Yusuke Wada
c3c5f8ad24 v2.2.1 2022-09-21 23:09:24 +09:00
Yusuke Wada
e934bb2aec v2.2.0 2022-09-21 11:46:23 +09:00
Yusuke Wada
a801674cf7
feat: support ES modules!! (#526)
* feat: support ES modules!!

* fix typo
2022-09-15 09:56:46 +09:00
Yusuke Wada
719ce857ec chore: bump up libraries version 2022-09-14 08:42:04 +09:00
Yusuke Wada
46c6a8de5e
feat(middleware): introduce "built-in" Validator Middleware (#505)
* feat(middleware): introduce built-in Validator Middleware

* fixed type of `req.json()`

* Feat/builtin validator middleware another idea (#508)

* Enable overwriting of query/header data.

* Returns only verified data.

* rename `index.test.ts` to `middleware.test.ts`

* add `removeAdditional` option

* handling error that the JSON body is null

* tidy

* check is it string or not

* implement `isIn`

* enable validation the valies are duplicate

Co-authored-by: Taku Amano <taku@taaas.jp>
2022-09-13 07:54:06 +09:00
Yusuke Wada
5a642ed5d3 chore(package.json): update homepage url 2022-09-08 20:16:55 +09:00
Yusuke Wada
e2f46cb746 v2.1.4 2022-09-05 22:00:12 +09:00
Yusuke Wada
be437ed695 v2.1.3 2022-08-31 18:04:36 +09:00
Yusuke Wada
28f3b977ad v2.1.2 2022-08-28 18:25:54 +09:00
Yusuke Wada
a4f47d163e v2.1.1 2022-08-27 23:59:06 +09:00
Yusuke Wada
404baa31a4 v2.1.0 2022-08-27 15:40:52 +09:00
Yusuke Wada
869ab52b42 chore: bump up jest-environment-miniflare 2022-08-20 11:43:28 +09:00
Yusuke Wada
b95156e7e6 v2.0.9 2022-08-19 07:32:35 +09:00
Yusuke Wada
bc5e9b3785 v2.0.8 2022-08-10 21:51:30 +09:00
Yusuke Wada
6d306b8218 v2.0.7 2022-08-07 06:48:41 +09:00
Yusuke Wada
7c60b4100c v2.0.6 2022-07-31 22:22:10 +09:00
Yusuke Wada
2e8aa2d612 v2.0.5 2022-07-24 20:46:32 +09:00
Yusuke Wada
7091348c8b v2.0.4 2022-07-24 18:13:07 +09:00
Yusuke Wada
393983013f
fix(package.json): fix path for exporting jsx/jsx-runtime types (#421) 2022-07-24 18:12:25 +09:00
Yusuke Wada
b3e63fb087 v2.0.3 2022-07-24 17:42:44 +09:00
Yusuke Wada
5f60a18227
feat(jsx): support jsxImportSource (#420)
* feat(jsx): support `jsxImportSource`

Support `jsxImportSource`.
You can use this option on Bun and Deno (Wrangler does not support it).
if you write tsconfig as below, JSX middleware will be enabled without `import { jsx } from 'hono/jsx'`.

```json
{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxFragmentFactory": "Fragment",
    "jsxImportSource": "hono/jsx"
  }
}
```

* fix export path
2022-07-24 17:36:37 +09:00
Yusuke Wada
47f7577934 chore: remove @types/mustache
It's not needed
2022-07-24 13:18:24 +09:00
Yusuke Wada
34b218ddf6 chore(pacakge.json): don't export cookie middleware 2022-07-23 15:09:33 +09:00
Yusuke Wada
c450c56460
feat(middleware): implement Cache Middleware (#417)
* feat(middleware): implement Cache Middleware

* denoify

* do not export Cache middleware for Deno.
2022-07-23 15:02:42 +09:00
Yusuke Wada
d94443d856 chore(package.json): remove mustache
It's not needed.
2022-07-21 08:32:10 +09:00
Yusuke Wada
1d73e3a8ed
fix(package.json): export compress middleware (#409) 2022-07-18 22:26:01 +09:00
Yusuke Wada
6f88fd9599 v2.0.2 2022-07-18 12:30:31 +09:00
Yusuke Wada
1cd5cb7c32 v2.0.1 2022-07-17 18:42:42 +09:00
Yusuke Wada
f573687abd
test(bun): use bun:test (#398) 2022-07-17 09:51:42 +09:00
Yusuke Wada
94d94198bc v2.0.0 2022-07-16 17:59:25 +09:00
Yusuke Wada
53658c2464 chore(prettier): remove markdown-nocjsp parser
Close #377
2022-07-16 10:03:01 +09:00
TANIGUCHI Masaya
fc26f1a490
feat: Add compress middleware (#386)
* Add compress middleware

* Format code

* Update order of executions

* Add test

* Remove version check

* Remove node:stream/web

* Update dependency

* Remove version check
2022-07-16 09:38:43 +09:00