watany
06fcf687f5
refactor(ssg): filter SSG Route ( #2181 )
...
* filter
* refactor
* move dev to util
* simply loop
2024-02-13 10:50:47 +09:00
Taku Amano
a49d4e4e15
fix(jsx/dom): Do not call insertBefore if the element position does not change ( #2196 )
...
* fix(jsx/dom): Do not call insertBefore if the element position does not change
* chore: denoify
2024-02-12 13:24:35 +09:00
Shotaro Nakamura
fab6f547ba
fix: createHandler
Response Types (handler x1) ( #2192 )
...
* fix: Crate Handler Response Types (handler x1)
* chore: denoify
* chore: format code
* chore: denoify
* chore: reformat code & denoify
2024-02-12 13:14:53 +09:00
Yusuke Wada
253c645f84
v4.0.1
2024-02-11 11:58:53 +09:00
watany
1ce18c26dc
feat(sse): Allow sending retry for SSE connection ( #2188 )
2024-02-11 11:53:13 +09:00
Taku Amano
cceee36ce9
refactor(ssg): create request from saved requestInit in order to avoid memory leak warnings ( #2186 )
...
* refactor(ssg): create request from saved requestInit in order to avoid memory leak warnings
* chore: denoify
2024-02-11 11:45:13 +09:00
Taku Amano
c62556ae06
fix(context): remove duplicate definition of render method ( #2191 )
...
* fix(context): remove duplicate definition of render method
The `render` method was defined twice in the `Context` class.
This duplicate definition was causing a TypeScript error below if `tsc` is used to compile the project:
```
node_modules/hono/dist/types/context.d.ts(134,5): error TS2300: Duplicate identifier 'render'.
```
* chore: denoify
2024-02-11 11:06:02 +09:00
Yusuke Wada
ca6f365110
v4.0.0
2024-02-09 15:08:47 +09:00
Yusuke Wada
2c44ad7dfa
Merge pull request #2167 from honojs/v4
...
v4
2024-02-09 14:53:16 +09:00
ryu
88a82bae9a
perf(mime): make getExtension()
fast ( #2168 )
2024-02-08 09:57:07 +09:00
Yusuke Wada
7072927936
docs: update the migration guide for releasing v4 ( #2159 )
2024-02-08 02:22:26 +09:00
Yusuke Wada
651c4977fd
Merge branch 'main' into v4
2024-02-08 02:20:33 +09:00
Yusuke Wada
a3dfe0f87a
v3.12.12
2024-02-08 02:18:51 +09:00
Taku Amano
34615abea1
feat(jsx): add event attributes types ( #2165 )
...
* feat(jsx): add event attributes types
* feat(jsx/dom): onDoubleClick is an alias of onDblClick
* feat(jsx/dom): support event capture phase
* chore: denoify
* fix(jsx): fix event types
* fix(jsx/dom): remove capture phase event listener correctly
2024-02-08 02:13:44 +09:00
Taku Amano
7cc7adf084
fix(jsx): The third argument of jsx(), key, is optional ( #2162 )
2024-02-07 20:09:25 +09:00
Taku Amano
1549c70f42
fix(jsx): ignore function object in attribute value in toString() ( #2161 )
...
* refactor(jsx): ignore function object in attribute value in toString()
* test(jsx): fix lint error
* chore: denoify
2024-02-07 19:49:19 +09:00
Yusuke Wada
09845e5e04
fix(types): MergeSchemaPath
infer inputs not only params ( #2154 )
...
* fix(types): `MergeSchemaPath` infer inputs not only params
* denoify
* format
2024-02-06 08:32:43 +09:00
Yusuke Wada
97dd369f5e
v3.12.11
2024-02-05 21:50:23 +09:00
Yusuke Wada
12e30d6399
fix(types): MergeSchemePath
infers param types correctly ( #2152 )
...
* fix(types): `MergeSchemePath` infers param types correctly
* denoify
2024-02-05 21:48:32 +09:00
Taku Amano
82dab2510d
refactor!(jsx): Tidyup the types to be exported ( #2151 )
...
* refactor(jsx): export types from src/jsx/types.ts
* refactor(jsx): migrate to new type definition
* chore: denoify
* fix(jsx): use `export *` for now until denoify bug is fixed
2024-02-05 10:56:11 +09:00
Yusuke Wada
37842fbada
fix!(deno): put SSG helper into helper.ts
( #2150 )
...
* fix!(deno): put SSG helper into `helper.ts`
* denoify
* fixed runtime test
2024-02-05 05:43:09 +09:00
Taku Amano
cb9d6a8b8f
feat(jsx): "className" is now an alias for "class" ( #2146 )
...
* refactor(jsx/dom): make sure that even if props is undefiend, it does not cause an error.
* feat(jsx): "className" is now an alias for "class"
* chore: denoify
2024-02-04 21:04:54 +09:00
Yusuke Wada
a52cd0a83e
v4.0.0-rc.4
2024-02-04 08:58:36 +09:00
Taku Amano
0623c21e58
Merge branch 'main' into v4
2024-02-04 06:06:38 +09:00
javascripter
f44c7055e0
fix(html): Remove circular dependencies in hono/html
( #2143 )
...
* refactor: Refactor helper/html and utils/html to remove circular dependencies
* chore: denoify
* chore: reformat code
* chore: denoify
2024-02-03 21:35:07 +09:00
Taku Amano
88f2983c10
refactor(jsx): Remove unused HONO_COMPONENT feature ( #2139 )
...
* refactor(jsx): Remove unused HONO_COMPONENT feature
* chore: denoify
2024-02-03 18:13:35 +09:00
Taku Amano
6adc806cbc
feat(jsx/dom): more react staff ( #2132 )
...
* fix(jsx): fix context provider with async component (#2124 )
* test(jsx): add test for Context with Suspense
* fix(jsx): fix context provider with async component
* chore: denoify
* feat(jsx): Introduce useMemo and useLayoutEffect hooks
* feat(jsx): Introduce isValidElement and cloneElement.
* fix(jsx/dom): fix context handling in renderToDom
* feat(jsx): enable to use 'hono/jsx/dom' for replacement of 'react'.
You can use dom-specific version of hooks and utils by importing from 'hono/jsx/dom'.
* refactor(jsx): refactor memo()
* test(jsx/dom): migrate existing tests to use `requestAnimationFrame`
* test(jsx): add tests
* refactor(jsx): move constant to its own file
* chore: denoify
2024-02-03 17:55:55 +09:00
Yusuke Wada
f2ec8d458d
v3.12.10
2024-02-02 22:22:40 +09:00
Yusuke Wada
0852f1b9de
fix(trie-router): fix same parameter name issue ( #2136 )
...
* fix(trie-router): fix same parameter name issue
* denoify
2024-02-02 22:16:20 +09:00
Yusuke Wada
ebbd444661
feat!(validator): supports transformation ( #2130 )
...
* feat!(validator): supports transformation
* refactored
* denoify
2024-02-02 13:21:08 +09:00
Yusuke Wada
14cd5e6e54
fix(jsx-renderer): correct nested layouts ( #2128 )
...
* fix(jsx-renderer): correct nested layouts
* add test
* denoify
2024-02-02 13:20:56 +09:00
Yusuke Wada
dc39e02def
v3.12.9
2024-01-31 23:47:22 +09:00
Kyiro
a37026fad6
feat(types): better c.var
type ( #2121 )
...
* feat(types): better `c.var` type
* chore: `denoify`
* chore: fix formatting
* chore: `denoify` again
2024-01-31 23:42:58 +09:00
Taku Amano
0ed91a7ad1
fix(jsx): fix context provider with async component ( #2124 )
...
* test(jsx): add test for Context with Suspense
* fix(jsx): fix context provider with async component
* chore: denoify
2024-01-31 23:26:04 +09:00
Yusuke Wada
f970a64027
fix(types): infer complex path params ( #2122 )
...
* fix(types): infer complext path params
* denoify
* supports SubPath only pattern
* denoify
2024-01-31 13:30:48 +09:00
ryu
3b833ecac8
feat!(mime): reduce default mimes ( #2119 )
2024-01-31 04:34:44 +09:00
Yusuke Wada
0d24ab7b09
feat(ssg): introduce disableSSG
and onlySSG
( #2104 )
...
* feat(ssg): introduce `disableSSG` and `onlySSG`
* denoify
* lint and format
* denoify
2024-01-31 04:18:29 +09:00
Yasha
60e85b31cf
fix(bun): replace fs.existsSync() with Bun.file().exists() ( #2115 )
2024-01-30 03:51:00 +09:00
ryu
d74d95d11c
feat(serve-static): mimes
option for serve-static ( #2094 )
...
* feat(serve-static): `mime` option for serve-static
* undo getExtension()
* add mime and serve-static tests
* reaname mimes to baseMime
* rename mime to mimes and add getMimeType() callback
Co-Authored-By: Yusuke Wada <yusuke@kamawada.com>
* update test description
---------
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-01-30 03:16:49 +09:00
Yusuke Wada
b24f9e38da
Merge branch 'main' into v4
2024-01-29 23:44:20 +09:00
Yusuke Wada
5c3a1bf23d
docs(contributing): add Installing dependencies
( #2113 )
2024-01-29 23:38:30 +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
Yusuke Wada
f616ed9abe
chore(lint): set curly
rule as all
( #2112 )
...
* chore(lint): set `curly` rule as `all`
* denoify
2024-01-29 22:21:09 +09:00
MohammadHasan Akbari
4031fa8937
chore: add development environment ( #2095 )
...
* feat: add development environment
* refactor: update README
* refactor: update README and run yarn denoify
* refactor: update CONTRIBUTING
2024-01-28 22:32:51 +09:00
Yusuke Wada
a96f5ec3c6
v4.0.0-rc.3
2024-01-28 05:31:57 +09:00
Yusuke Wada
74865a2c6d
Merge branch 'main' into v4
2024-01-27 23:02:59 +09:00
Yusuke Wada
8ad3b61bb4
v3.12.8
2024-01-27 22:47:13 +09:00
Sor4chi
98dcd0d995
fix(package.json): add typesVersions of accepts helper ( #2096 )
2024-01-27 21:55:48 +09:00
Ame_x
0e8f26ad2f
refactor(hono-base): "if" on one line and deletion of unneeded variables ( #2093 )
...
* refactor: "if" on one line
* chore: denoify & format
2024-01-27 21:53:23 +09:00
Ame_x
763c0dab37
refactor: faster for loop in jsx/dom ( #2092 )
...
* refactor: faster for loop
* chore: denoify & format
2024-01-27 21:50:57 +09:00