Yusuke Wada
e2e2c1452b
chore(package.json): remove @edge
for compute
( #2235 )
2024-02-17 18:12:47 +09:00
Taku Amano
86d1221122
feat(jsx): support HtmlEscapedString in html tag function ( #2233 )
...
* feat(jsx): support HtmlEscapedString in html tag function
* chore: denoify
2024-02-17 17:02:57 +09:00
Taku Amano
e35508940c
fix(jsx/dom): fix finding element to insert before ( #2230 )
...
* fix(jsx/dom): fix finding element to insert before
* chore: denoify
2024-02-17 16:51:51 +09:00
Taku Amano
7cf7432216
refactor(jsx): shorten use hook a bit ( #2231 )
...
* refactor(jsx): shorten use hook a bit
* chore: denoify
2024-02-17 16:40:35 +09:00
ryu
e49c140c62
docs(contribution): add install flag --frozen-lockfile
( #2229 )
2024-02-17 08:19:14 +09:00
Yusuke Wada
553d555e09
v4.0.3
2024-02-16 09:16:29 +09:00
Taku Amano
473a6f0999
refactor: jsx streaming ( #2216 )
...
* refactor(jsx): tweaks loop in order to avoid error for blank content
* feat(jsx): add data-hono-target attribute to streaming content
* chore: denoify
* test: fix runtime_tests/deno-jsx/jsx.test.tsx
2024-02-16 09:04:22 +09:00
Yusuke Wada
89f8e07a10
fix(hono-base): custom not found with middleware like compress ( #2220 )
...
* fix(hono-base): custom not found with middleware like compress
* denoify
2024-02-16 07:14:43 +09:00
Taku Amano
06cb43aa8e
fix(context): Inherit current status if not specified ( #2218 )
...
* fix(context): Inherit current status if not specified
* chore: denoify
2024-02-15 19:29:05 +09:00
Yusuke Wada
48c6ce9b6f
fix(jsx-renderer): support async component ( #2211 )
...
* fix(jsx-renderer): support async component
* denoify
* use `jsx(component, ...)`
* denoify
Co-authored-by: Taku Amano <taku@taaas.jp>
2024-02-15 05:49:30 +09:00
Yusuke Wada
4c9d50f212
v4.0.2
2024-02-14 18:05:22 +09:00
Yusuke Wada
fd32be10c6
fix(router): LinearRouter and PatternRouter support regexp quantifiers ( #2209 )
...
* fix(router): LinearRouter and PatternRouter support regexp quantifiers
* denoify
2024-02-14 18:02:48 +09:00
Yusuke Wada
048f33a793
docs(readme): tweak ( #2204 )
...
* docs(readme): tweak
* denoify
2024-02-13 21:45:52 +09:00
Fukui
13b58556c5
fix(client): Fix regex pattern with length limit at replaceUrlParam ( #2193 )
...
* fix: regex pattern with length limit at replaceUrlParam
* fix: multiple length limit case
* fix: use shorter pattern
2024-02-13 21:34:54 +09:00
Taku Amano
3fecc045e4
refactor(ssg): check c.env
variables to disable/enable SSG ( #2179 )
...
* refactor(ssg): generate static files only for GET or ALL routes
* feat(ssg): Introduce `isSSGContext()`
* refactor(ssg): use environment variable and special response object to disable/enable SSG
* chore: denoify
* refactor(ssg): tweaks check for SSG_DISABLED_RESPONSE
2024-02-13 18:14:23 +09:00
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