0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-25 05:07:03 +01:00
Commit Graph

1562 Commits

Author SHA1 Message Date
ryu
c514da0804
chore: use official deno installer (#2250) 2024-02-22 11:33:14 +09:00
Yusuke Wada
e54a2c511f v4.0.5 2024-02-20 22:54:03 +09:00
Taku Amano
8c40d48980
feat(jsx/dom): support namespace for svg and mathml elements (#2241)
* feat(jsx/dom): support namespace for svg and mathml elements

* refactor(jsx/dom): eventAliasMap is readonly

* chore: denoify
2024-02-20 22:49:48 +09:00
Taku Amano
0b59827ada
refactor(context): skip jsx type import (#2248)
* refactor(context): skip jsx type import

* chore: denoify
2024-02-20 22:41:45 +09:00
watany
24ad3ead2c
fix(ssg): Dot-containing paths do not correctly receive extension completion. (#2243)
* fix: extension pattern

* simply
2024-02-20 17:27:31 +09:00
Yusuke Wada
f87373eff6 v4.0.4 2024-02-17 22:50:39 +09:00
Yusuke Wada
e2f1d145bd
fix(validator): use the cached content (#2234)
* fix(validator): use the cached content

* denoify
2024-02-17 22:47:23 +09:00
watany
d67babf9f2
fix(ssg): path of already extention (#2236)
* fix(ssg): path of already extention

* adding test
2024-02-17 22:25:19 +09:00
Yusuke Wada
1dd07d0c60
fix(jwt): import cookie helper correctly (#2238)
* fix(jwt): import cookie helper correctly

* denoify
2024-02-17 22:14:19 +09:00
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