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

58 Commits

Author SHA1 Message Date
Shotaro Nakamura
bd9effe34f
ci: use Deno v2 for a test running for deno (#3509)
* chore: use Deno v2 for a test running for deno

* use denoland/setup-deno@v2
2024-10-13 16:04:33 +09:00
Yusuke Wada
9986b47253
ci: use Deno v2 (#3506)
* ci: use Deno `v2`

* add `deno install` command

* use `bunx jsr publish --dry-run

* add `oven-sh/setup-bun@v1`
2024-10-12 14:09:21 +09:00
TATSUNO “Taz” Yasuhiro
f1ec415be0
chore(test): include bun coverage (#3457) 2024-09-28 11:54:31 +09:00
m-shaka
4878fcf57c
ci: prettify type check result and rm a comment (#3442) 2024-09-23 16:16:31 +09:00
m-shaka
66df4e1296
ci: Type check perf (#3406)
* chore: add scripts to monitor type check performance

* chore: add jobs for type-check-perf-monitoring

* chore: rm a comment

* refactor: mv type-check-perf perf-measures/type-check

* rm .eslintrc.cjs

* chore: ignore *result.txt
2024-09-22 18:11:32 +09:00
Yusuke Wada
dfbd717263
chore: rename runtime_tests to runtime-tests (#3419)
* chore: rename `runtime_tests` to `runtime-tests`

* fixed GitHub workflow
2024-09-17 14:51:43 +09:00
Taku Amano
2d3bc55954
fix(streaming): call stream.abort() explicitly when request is aborted (#3042)
* feat(utils/stream): enable to abort streaming manually

* feat(utils/stream): prevent multiple aborts, and enable to get the abort status

* fix(streaming): call `stream.abort()` explicitly when request is aborted

* test: add tests for streaming

* docs(stream): add comments

* test: add --allow-net to deno test command in ci.yml

* test(streaming): update test code

* test(stream): retry flaky test up to 3 times at "bun"

* test(streaming): refactor test to use afterEach

* fix(streaming): in bun, `c` is destroyed when the request is returned, so hold it until the end of streaming

* refactor(streaming): tweaks code layout
2024-06-29 07:00:28 +09:00
TATSUNO “Taz” Yasuhiro
1bbaf51279
chore(ci): enable lcov reporter for Bun test (#3022) 2024-06-24 05:39:29 +09:00
Yusuke Wada
8ced5caf0f
ci: use env for codecov GitHub Actions (#3010) 2024-06-21 16:34:29 +09:00
Yusuke Wada
f634c82451
test(workerd): rename the runtime test wrangler to workerd (#2888)
* test(workerd): rename the runtime test `wrangler` to `workerd`

* fixed ci.yml

* fixed a typo

* use node 20.x
2024-06-02 22:49:40 +09:00
TATSUNO “Taz” Yasuhiro
8cc8a05c89
ci: Report coverage with CodeCov (#2862)
* Output coverage per each test

* Collect coverage

* Exclude test-only files

* update comment

* exclude types

* Add config

* Update bun comment

* Generate coverage in Deno
2024-06-01 04:17:47 +09:00
Ame_x
19f859d398
ci: change name of workflow jobs (#2875)
* ci: change name of workflow jobs

* change
2024-06-01 03:25:36 +09:00
Sigui Kessé Emmanuel
df11eb182e
ci: Update workflow name of release.yml (#2874) 2024-05-31 17:38:42 +09:00
Ame_x
7cbca602e6
ci: removed v4 branch of target in actions. (#2849) 2024-05-29 18:09:22 +09:00
Antony David
9176c2bbfd
ci: include node22 tests (#2851) 2024-05-29 17:34:49 +09:00
Ame_x
a6c893c5e0
ci: added paths-ignore for ignore files of dont need tests (#2850) 2024-05-29 17:10:03 +09:00
Yusuke Wada
2b0b1f1fc3
chore(actions): update on condition for publish-to-jsr (#2786) 2024-05-25 10:43:29 +09:00
Yusuke Wada
1b2a4c0800
feat(jsr): support JSR (#2662)
* feat(jsr): reduce slow types (#2369)

* feat(jsr): reduce slow types

* fix: use allow function

* chore: format code

* chore: denoify

* add `deno.json`

* add `jsr-dry-run` command for CI

* don't put `JSX` on `global`

* fix test settings for deno

* don't use `dynamicClass`

* don't declare `ExecutionContext` in `global`

* goodbye denoify

* exports `./middleware`

* exports `./helper`

* exports each helper and middleware

* remove the `awslambda` implementation which is not enough

* feat(jsr): remove helper.ts and middleware.ts (#2667)

* feat(jsr): remove helper.ts and middleware.ts

* fix: fix test

* dont' use `SuperClass`

Co-authored-by: Taku Amano <taku@taaas.jp>

* feat(jsr): delete `mod.ts` (#2669)

* rename `deno.json` to `jsr.json`

* lint

* remove slow type in lambda adapter

* fixed runtime test for deno

* export all utils

* add a GitHub action to publish the package to JSR

* fixed declaring `ContextVariableMap`

* fixed the type error

* include `jsr.json` in `jsr.json`

* update `jsr.json`

---------

Co-authored-by: Shotaro Nakamura <79000684+nakasyou@users.noreply.github.com>
Co-authored-by: Taku Amano <taku@taaas.jp>
2024-05-24 17:47:28 +09:00
Yusuke Wada
506f7f1d1b
fix(utils/body): support multiple Files (#2665)
* fix(utils/body): support multiple `File`s

* denoify

* Make CI `Main` uses Node.js v20
2024-05-13 07:47:39 +09:00
Yusuke Wada
f64e448346
ci: fix bun version for denoify (#2362) 2024-03-16 21:01:35 +09:00
Yusuke Wada
ead3677601
chore: use Bun as a package manager (#2105)
* chore: use Bun as a package manager

* lock `np`
2024-01-29 23:27:54 +09:00
watany
23d96a9b08
refactor(ssg): Removal of Libraries Dependent on Node.js (#2012)
* remove Buffer

* fix

* fix

* type Bun

* test import

* fix & rename

* move a ssg test for deno

* import jsx

* console.log

* update CI

* revert toAbcSSG name

* rename

---------

Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-01-19 11:38:09 +09:00
Taku Amano
62f11a2817
feat(jsx/dom): rewrite renderer to use virtual tree (#1981)
* feat(jsx/dom): rewrite renderer to use virtual tree

* test(deno): add runtime_tests/deno/deno.json in order to allow `document`, `Element`, etc.

* refactor(jsx/dom): Removed redundant `map()` calls

* refactor(jsx/dom): tweaks getNextChildren for reduce code size

* refactor(jsx/dom): optimize findInsertBefore

* refactor(jsx/dom): optimize `build()`

* refactor(jsx/dom): reuse oldChild even in text nodes.

* feat(jsx/dom): handle promise rejection in use()

* feat(jsx): The result of using Suspense and use() is now the same as React's renderToReadableStream().

* chore: denoify

* test(deno): "dom.iterable" is required for 'Headers.entries()'
2024-01-16 11:32:44 +09:00
Yusuke Wada
4560df5efc
ci: remove lagon runtime tests and other lagon things (#1971)
* ci: remove lagon runtime tests and other lagon things

* remove lagon from github actions
2024-01-14 19:09:09 +09:00
Yusuke Wada
f259dd23a6
ci: enables CI in the v4 branch (#1933)
* ci: enables CI in the v4 branch

* fixed the errors
2024-01-10 08:47:58 +09:00
Yusuke Wada
4e08b8e15a
ci(bun): use 1.0.18 (#1832) 2023-12-19 07:52:22 +09:00
Yusuke Wada
1ed742bdb8
ci: rename fastly compute@edge to compute (#1708) 2023-11-16 16:36:28 +09:00
Taku Amano
652ef7c867
feat(jsx): Define jsxTemplate/jsxAttr/jsxEscape for "@jsx precompile" of Deno 1.38 (#1651)
* fix(jsx/streaming): Fix for renderToReadableStream(promise: Promise<HtmlEscapedString>).

* feat(jsx): Define jsxTemplate/jsxAttr/jsxEscape for "@jsx precompile" of Deno 1.38

* chore: denoify

* fix(jsx/streaming): some times jsxDEV is called with null props.

* test(deno-jsx): Add runtime tests for JSX by Deno.

* test: Refactor import map.

* test: Added @jsxImportSource to avoid type warnings
2023-11-08 21:07:35 +09:00
watany
d1ff3d89c7
chore(ci): maintenance Node.js (#1636) 2023-11-02 00:12:49 +09:00
watany
76a2c7f523
chore(ci): bun v1 (#1599)
* chore(ci): bun v1

* bun use jsx

* bun version
2023-10-20 18:18:05 +09:00
watany
fc9bdad5f5
chore(ci): update node v20 (#1598)
* update node v20

* node test

* only one Main
2023-10-20 15:21:38 +09:00
Yusuke Wada
62d4d44d34
test(validator): fix the error message for node v18.18 (#1596)
* test(validator): fix the error message for node v18.18

* ci: fix node version

* fixed version

* test: fix the test pattern
2023-10-18 22:38:37 +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
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
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
watany
954c06ed4b
chore: add format script (#1334)
* add format

* yarn format:fix

* fix linter
2023-08-15 22:34:45 +09:00
watany
c2cbc0a80b
ci: update ci action (#1222) 2023-07-07 17:48:36 +09:00
watany
edca699b96
feat(adapter): AWS Lambda Adapter supports requests via Lambda@edge (#1210)
* edge-adaptor

* add env

* Revert "add env"

This reverts commit 9662e574fd.

* Revert "add env"

This reverts commit 9662e574fd.

* v0.1

* Revert "edge-adaptor"

This reverts commit ed6b2566b1.

* runtimetest

* WIP: runtime-test

* lint

* build lambda-edge

* ci lambda-edge

* remove gitpod

* test fix

* fix of self check
2023-07-07 17:41:33 +09:00
Yusuke Wada
5965102619
ci(bun): fix Bun version (#1205) 2023-06-27 18:14:06 +09:00
Yusuke Wada
4263d373a6
ci: don't specify Bun version in CI (#1149) 2023-06-01 21:18:00 +09:00
Yusuke Wada
5c49f8d696
ci: use setup-bun (#1108) 2023-05-17 15:56:09 +09:00
Yusuke Wada
f29761e16b
chore: move runtime tests into runtime_tests (#1062)
* chore: move runtime tests into `runtime_tests`

* fixed ci
2023-05-02 21:16:17 +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
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
e9e1d3baee ci: run ci on next branch 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
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