Yusuke Wada
5f78e4e1b3
chore(lint): ESLint v9 ( #3393 )
...
* chore(lint): ESLint v9
* run prettier
2024-09-12 12:05:41 +09:00
Yusuke Wada
7a254bc0c7
fix(serve-static):supports directory contains .
and not ends /
( #3256 )
2024-08-11 13:01:29 +09:00
Taku Amano
ada10e5bf0
fix(stream): Fixed a problem that onAbort() is called even if request is normally closed in deno ( #3079 )
...
* Fix(stream): Fixed a problem that onAbort() is called even if request is normally closed in deno
* test: fix stream abort test for Node.js
2024-07-03 10:50:44 +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
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
Yusuke Wada
cc4b2b3c7f
chore(lint): update eslint rules ( #2790 )
...
* chore(lint): update eslint rules
* fix formats
2024-05-26 05:17:45 +09:00
Shotaro Nakamura
47f5c545f2
feat: Introduce WebSocket Helper / Adapter ( #2265 )
...
* feat: Add WebSocket API
* chore: format code
* chore: denoify
* feat: remove `bun-types`
* fix(ws): Cloudflare workers
* feat(ws): Add Deno Adapter
* fix(ws): Add Deno exports to package.json
* feat: test code
* chore: denoify
* chore: format code
* fix: eslint
* chore: createBunWebSocket to createWebSocket
* chore: able to import from index.ts
* feat: add workers test
* feat: add deno test
* typo: `normalizedReceiveData`
* refactor: change way to discrimination client type
* fix: bypass test
* fix: format code and bypass test
* fix: forget to delete `console.log` for debug
* feat(ws): remove `hono/ws/{adapter}` import
2024-03-05 22:04:04 +09:00
Yusuke Wada
f8371ab356
fix(serve-static): support extensionless files and refactor ( #2260 )
2024-02-24 22:38:39 +09:00
Yusuke Wada
74865a2c6d
Merge branch 'main' into v4
2024-01-27 23:02:59 +09:00
ryu
45d612d641
refactor(test): change to not use env
command ( #2062 )
...
* refactor(test): change to not use `env` command
* fix bun test
2024-01-23 17:07:31 +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
Yusuke Wada
a183fe403e
chore: enables lint and format for .tsx
( #1994 )
...
* chore: enables lint and format for `.tsx`
* ignore
2024-01-16 18:38:26 +09:00
watany
04b686ca39
feat: Introducing a New SSG Adaptor/Helper ( #1904 )
...
* first
* v0.1
* faster
* enhanced type
* tsx
* jsx
* split
* fix
* denoify
* fix: compatible with node:fs/promises
* rename
* fixed
* for bun
* add Deno
* add Deno
* fix
* revert
* 1.0
* denoify
* remove message
* ToSSGResult
* fix comment
* fix comment
2024-01-12 06:04:49 +09:00
Sor4chi
b8b0b384b6
feat: pass context to onNotFound callback in serveStatic ( #1865 )
...
* feat: pass context to onNotFound callback in serveStatic
* chore: denoify
* test: update notFoundHandler's callback expect
* feat: add Env generics for serveStatic to support `c.env` type in callback handler
* feat: add Env generics for serveStatic to support c.env type in cloudflare workers module's callback handler
2024-01-02 22:42:16 +09:00
Withee Poositasai
b128d02336
feat: Add onNotFound
handler in adapters' serveStatic
( #1825 )
...
* feat: add onNotFound handler in adapters' serveStatic
* test: add serveStatic onNotFound tests for bun and deno
* test: add serveStatic onNotFound tests for cloudflare workers
2023-12-27 07:04:46 +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
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
Yusuke Wada
21f4c196e7
feat(serve-static): rewriteRequestPath
option for Workers/Deno/Bun ( #1065 )
2023-05-03 23:05:21 +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