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
Aris Kemper
b0cac62cf1
refactor: request param ( #2088 )
2024-01-27 21:33:05 +09:00
Taku Amano
8c62c64631
fix: enable to return Response like object ( #2085 )
...
* fix: enable to return Response like object
This improves behavior, especially in cases where Response is being overwritten on a node-server.
* chore: denoify
2024-01-27 21:28:54 +09:00
Ame_x
ab915f9296
feat!: goodbye lagon ( #2087 )
...
* goodbye: lagon
* chore: format
* chore: last return
2024-01-27 21:23:28 +09:00
watany
9df32310aa
chore: vitest test.pool to forks
( #2098 )
2024-01-27 14:32:49 +09:00
Ame_x
b98e850924
feat(types): explicitly specify statusCode ( #2073 )
...
* fix: explicit all statusCode
* chore: format
* docs: add jsdoc
2024-01-25 21:42:38 +09:00
Yusuke Wada
b23cf8d65d
fix(factory): correct types inside of createMiddleware()
( #2081 )
...
* fix(factory): correct types inside of `createMiddleware()`
* denoify
2024-01-25 21:38:21 +09:00
Yusuke Wada
4ec3a9bf41
v3.12.7
2024-01-25 10:44:45 +09:00
Taku Amano
4a239ad208
fix(hono-base): fix not found handler calling timing when one middleware ( #2080 )
2024-01-25 10:37:21 +09:00
watany
197d05bb2b
fix:(ssg): make files
mandatory in ToSSGResult ( #2071 )
2024-01-25 05:59:32 +09:00
watany
5809f753dc
fix: await generate hook ( #2074 )
...
* fix
* denoify
2024-01-24 14:08:56 +09:00
watany
67f9735175
feat(ssg): support Improve Hook Handling ( #2054 )
...
* hook
* merge sample
* test
* fix
2024-01-24 07:10:31 +09:00
Taku Amano
3aa0f3e7b9
feat: Introduce useViewTransition()
hook and viewTransition()
helper ( #2053 )
...
* feat(css): remove async variable support in css helper
This feature probably wont be used much.
* refactor(jsx/dom): we can use `finally()` simply
* refactor(jsx/dom): `HtmlEscapedCallbackPhase.BeforeDom` will not be used anymore.
* refactor(css): re-implement css helper both for renderToString and renderToDom
* feat(jsx/dom): introduce useViewTransition hook
* chore(css): enable to import css module from 'jsx/dom/css'
* refactor(css): insert cssRules at the end of the sheet
* test(css): export `minify()` for test
* test(css): add tests
* refactor(jsx/dom): add support for boolean attributes
* test(jsx/dom): add attribute test
* fix(css): fix type of viewTransition
* refactor(jsx/dom): tweaks startViewTransition function
* fix(jsx/dom): reset style before applying new style
* perf(css): improve css() performance
* test(jsx/dom): add test for `useViewTransition()`
* test: fix eslint error
* chore: denoify
2024-01-23 20:37:11 +09:00
watany
adc90c3712
fix(ssg): Uniformly Convert Paths Ending with Slash to 'index.ext' Format ( #2056 )
...
* fix(ssg): trailingslash
* denoify
2024-01-23 18:39:15 +09:00
Ame_x
841f4887de
feat!(JSX Renderer): use DOCTYPE by default ( #2064 )
...
* fix: use DOCTYPE by default
* chore: format
2024-01-23 17:35:14 +09:00
Ame_x
fdfa55a770
refactor: rename accept to accepts ( #2063 )
...
* refactor: rename accept to accpets
* chore: denoify
* fix: deno entry file
2024-01-23 17:30:57 +09:00
Agata Naomichi
64a24d7b77
fix!(types): Fix context type when chaining routes with middlewares ( #2046 )
...
* fix(types): Fix handler return types not to leak Context types
* fix specs
* denoify
* fix specs
* yarm format:fix && yarn denoify
* Add tests
2024-01-23 17:26:22 +09:00
Aris Kemper
27521e68c2
refactor(utils/url): splitRoutingPath ( #2058 )
...
* refactor: url util splitRoutingPath
* refactor: splitRoutingPath
2024-01-23 17:20:39 +09:00
Aris Kemper
0802633e7b
refactor(utils/stream): stream pull ( #2057 )
2024-01-23 17:12:02 +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
ryu
39aa58211c
feat(dev): support NO_COLOR
( #2007 )
...
* feat(dev): support `NO_COLOR`
* fmt
* remove unused Bun
* follow informal standard
https://no-color.org/
* fmt
* evade denoify bug
When removing optional-chaining, denoify creates node:node:process, so I disable the eslint error by a comment.
* add test
* fix typo
* fix test
2024-01-23 11:15:52 +09:00
Yusuke Wada
66e768e391
v4.0.0-rc.2
2024-01-22 05:51:19 +09:00
Kengo Watanabe
68011665fd
docs: Add JSDoc ( #1916 )
...
* docs: Add JSDoc for App
* docs: Add JSDoc for Routing
* docs: Add JSDoc for Context
* docs: Add JSDoc for HonoRequest
* docs: Add JSDoc for Exception
* add .header JSDoc & getPath JSDoc (`nabeken5:feat/add-jsdoc#1`)
* add .header JSDoc & getPath JSDoc
* fix: Apply the format to JSDoc
---------
Thanks @EdamAme-x
Co-authored-by: Kengo Watanabe <121782456+nabeken5@users.noreply.github.com>
* refactor: format
* feat: run denoify
---------
Co-authored-by: Ame_x <121654029+EdamAme-x@users.noreply.github.com>
2024-01-21 23:32:30 +09:00
Aris Kemper
c02b83bccd
refactor: body parser ( #2045 )
2024-01-21 06:17:48 +09:00