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

507 Commits

Author SHA1 Message Date
Taku Amano
593cb7a89d
feat(jsx/dom): introduce react-dom/client APIs and React.version (#2795)
* feat(jsx): export version string from jsx

* feat(jsx/dom): introduce react-dom/client APIs

* docs(jsx/dom/client): add module description

* chore: add jsx/dom/client to jsr.json

* refactor(jsx/dom): declare types explicitly.
2024-05-26 22:55:30 +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
Yusuke Wada
179d21b6d2 v4.4.0-rc.1 2024-05-25 10:27:50 +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
317b3d5534 v4.3.11 2024-05-24 17:33:21 +09:00
Yusuke Wada
a9d1e2c694 v4.3.10 2024-05-24 17:33:21 +09:00
Yusuke Wada
ab7144871b
refactor(cloudflare-workers): remove @cloudflare/workers-types (#2773)
* refactor(cloudflare-workers): remove `@cloudflare/workers-types`

* add `@denoify-ignore`

* add missing comment
2024-05-24 06:01:12 +09:00
watany
8cb59e400f
feat(middleware): Introduce Timeout Middleware (#2615)
* 0.1

* v0.2

* 1.0

* multi runtime

* adding duration

* fix

* interface

* fix

* only input number

* return a named function

* setting exception

* simply

* rename type

* adding typesVersions

* typo

* add JSDoc

* denoify
2024-05-23 05:40:09 +09:00
Shotaro Nakamura
a8a5fb97ca
feat: Introduce ConnInfo helper/adapter (#2595)
* feat: Introduce ConnInfo helper/adapter

* chore: format code

* chore: run ESLint and add `// @denoify-ignore`

* chore: denoify

* feat: export conninfo types

* fix: fix test

* feat(conninfo/bun): support that env be {server: server}

* chore: eslint

* chore: `lint:fix`

* fix(conninfo/bun): English syntax for error message

* fix: don't use singleQuote in string
2024-05-23 05:39:18 +09:00
Yusuke Wada
75a7a09fc5 v4.3.9 2024-05-21 09:02:58 +09:00
Yusuke Wada
7f309ecb9d v4.3.8 2024-05-19 20:02:16 +09:00
Yusuke Wada
753fcb4231 v4.3.7 2024-05-15 22:10:40 +09:00
Yusuke Wada
d0034c6948 v4.3.6 2024-05-13 07:55:57 +09:00
Yusuke Wada
f3f6f029a6 v4.3.5 2024-05-12 16:19:07 +09:00
Yusuke Wada
dd52c56736 v4.3.4 2024-05-09 22:51:04 +09:00
Yusuke Wada
6e471ef7dd v4.3.3 2024-05-08 14:30:54 +09:00
Yusuke Wada
a900fbeda9 v4.3.2 2024-05-05 08:23:59 +09:00
Yusuke Wada
6946f16e5c v4.3.1 2024-05-04 18:20:43 +09:00
Yusuke Wada
d44be955c0 v4.3.0 2024-05-03 19:36:38 +09:00
Hyeseong Kim
33a7707439
feat(serve-static): expose serve-static builder (#2515)
* feat: allow to use serve-static builder

* typo

* add stricter type requirement as it is public interface

* allow specifying content-type (and others) from user code

* fix type

* rename the export the `serve-static`

* add a test
2024-05-01 07:03:07 +09:00
Yusuke Wada
06fe3ecd33 v4.2.9 2024-04-29 13:44:38 +09:00
Yusuke Wada
347ef12a9b v4.2.8 2024-04-26 18:33:34 +09:00
ryu
a7617543ef
chore(package.json): prettier use cache (#2549) 2024-04-24 06:27:14 +09:00
Yusuke Wada
28e597f230 v4.2.7 2024-04-23 17:19:43 +09:00
Yusuke Wada
b38e40e21a v4.2.6 2024-04-22 09:00:25 +09:00
Yusuke Wada
fa9ed80619 v4.2.5 2024-04-18 13:58:36 +09:00
Yusuke Wada
13c3156c67 v4.2.4 2024-04-14 00:52:27 +09:00
Yusuke Wada
19ef40d64f v4.2.3 2024-04-09 17:04:53 +09:00
Yusuke Wada
b0d9417b55
fix(trailing-slash): export types in package.json correctly (#2483) 2024-04-09 16:37:25 +09:00
Yusuke Wada
e428a05316 v4.2.2 2024-04-05 02:41:15 -05:00
Yusuke Wada
84bcbe8a79 v4.2.1 2024-04-03 02:31:38 -05:00
Yusuke Wada
bda1321ae0 v4.2.0 2024-04-02 05:52:12 -05:00
Yusuke Wada
cb9669cd4e v4.2.0-rc.1 2024-03-31 22:51:52 +09:00
Yusuke Wada
a85b670202 Merge branch 'main' into next 2024-03-31 21:37:48 +09:00
Yu-huan Kuo
97ffa62afd
feat: add middlewares resolve trailing slashes on GET request (#2408)
* feat: add `trailing-slash` middlewares

* fix(middleware): exclude files from appending slashes

* style: format code as prescribed with prettier

* revert: rollback `yarn.lock` to 9b96662b8a

* chore: export `trailing-slash` middlewares in `exports`

* test(middleware): add tests of `/` and correct endpoints for `trailing-slash`

* feat(middleware): make `trailing-slash` suitable for most situations
2024-03-31 21:35:31 +09:00
Yusuke Wada
98d43341b7 v4.1.7 2024-03-31 18:54:16 +09:00
Yusuke Wada
d0e44d0ddc v4.1.6 2024-03-31 18:13:46 +09:00
Yusuke Wada
9e54e77bbc Merge branch 'main' into next 2024-03-30 17:57:40 +09:00
Yusuke Wada
9822548bf7
feat: introduce Method Override Middleware (#2420)
* feat: introduce Method Override Middleware

* added tests for header and query

* add export settings

* add JSDoc comments

* denoify

* refactor(method-override) (#2429)

* refactor(method-override): form, header, query are exclusive

* refactor(method-override): simplify the condition for options

* remove old comments

* denoify

---------

Co-authored-by: Taku Amano <taku@taaas.jp>
2024-03-29 14:47:08 +09:00
Yusuke Wada
b8855e8953 v4.1.5 2024-03-28 07:32:46 +09:00
Yusuke Wada
f00f69d1a3 v4.1.4 2024-03-25 16:54:10 +09:00
Yusuke Wada
10ed77fe08 v4.1.3 2024-03-20 21:57:50 +09:00
Yusuke Wada
95be96c284 v4.1.2 2024-03-19 06:02:29 +09:00
Yusuke Wada
01ee574894 v4.1.1 2024-03-17 09:50:54 +09:00
Yusuke Wada
139e863aa2 v4.1.0 2024-03-12 00:56:27 +09:00
Yusuke Wada
3126beb231
chore: bump up @hono/node-server (#2323)
* chore: bump up `@hono/node-server`

* update lock file
2024-03-07 15:37:16 +09:00
Yusuke Wada
8d8ecf45d9 Merge branch 'main' into next 2024-03-07 15:27:23 +09:00
Yusuke Wada
4ca5f60def v4.0.10 2024-03-06 07:27: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
2a75c89000 v4.1.0-rc.1 2024-03-04 22:21:49 +09:00