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

307 Commits

Author SHA1 Message Date
Yusuke Wada
8bdbfcc49b v3.1.5 2023-03-31 18:42:17 +09:00
Yusuke Wada
5f4eac8466 v3.1.4 2023-03-30 21:39:50 +09:00
Yusuke Wada
ffbf2502d4 v3.1.3 2023-03-26 22:40:28 +09:00
Yusuke Wada
188aea1fb5
fix(package.json): fixed test:wrangler and test:lambda (#1012) 2023-03-26 08:37:17 +09:00
Yusuke Wada
27a9669161 v3.1.2 2023-03-20 23:36:02 +09:00
Yusuke Wada
ea67919b82 v3.1.1 2023-03-19 18:22:50 +09:00
Yusuke Wada
ccb5587270 v3.1.0 2023-03-17 16:50:21 +09:00
Yusuke Wada
1d558395ef
feat(adapter): introduce AWS Lambda Adapter (#987)
* feat: introduce AWS Lambda adapter

* denoify ignore

* export settings
2023-03-17 16:33:54 +09:00
Yusuke Wada
e2a174b8ac
fix(types): infer types correctly (#983)
* v3.1.0-rc.2

* fix(types): infer path param types correctly

* denoify

* fix: infer the value type in the validation funtion

* denoify
2023-03-14 23:43:33 +09:00
Yusuke Wada
a63a6375be v3.1.0-rc.1 2023-03-13 23:21:39 +09:00
Yusuke Wada
be02ca0975
test(bun): use test instead of wiptest! (#977) 2023-03-13 22:11:36 +09:00
Yusuke Wada
418941d01b Merge branch 'main' into next 2023-03-13 22:00:00 +09:00
Yusuke Wada
2721acd75e v3.0.5 2023-03-13 21:57:47 +09:00
Yusuke Wada
5cb8bf12fd Merge branch 'main' into next 2023-03-13 09:54:55 +09:00
Yusuke Wada
d2732101c3 v3.0.4 2023-03-13 09:51:31 +09:00
Yusuke Wada
ad880dba43
feat: env support enviroment variables for multi runtimes (#949)
* feat: `env` support enviroment variables for multi runtimes

* typo

* denoify

* fixed ci settings

* fixed deno command

* comment out lagon test

* remove warnings
2023-03-06 21:12:22 +09:00
Yusuke Wada
64956cb57d v3.0.3 2023-03-02 21:53:59 +09:00
Yusuke Wada
bb929b44cf v3.0.2 2023-02-25 13:40:49 +09:00
Yusuke Wada
96bd5258d1 v3.0.1 2023-02-20 19:53:09 +09:00
Yusuke Wada
22839f5a82 v3.0.0 2023-02-18 23:08:57 +09:00
Yusuke Wada
0187006c58 v3.0.0-rc.16 2023-02-18 06:52:19 +09:00
Yusuke Wada
6d8bd62d23
chore: honojs.dev to hono.dev (#900) 2023-02-16 23:18:34 +09:00
Yusuke Wada
119f4b6860 v3.0.0-rc.15 2023-02-15 22:12:30 +09:00
Yusuke Wada
25e5c01f58 chore(package.json): update description 2023-02-14 22:43:27 +09:00
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