Taku Amano
c910923aea
feat(jsx/server): introduce jsx/dom/server
module for compatibility with react-dom/server
( #2930 )
...
* feat(jsx/server): introduce `jsx/dom/server` module for compatibility with `react-dom/server`
* refactor: tweaks signature of onError callback in renderToReadableStream for compatibility
* Add jsx/dom/server to jsr.json
* fix: relative import path error in `deno publish`
2024-06-12 11:59:51 +09:00
Taku Amano
668a07cb8a
feat(jsx/dom): export createRoot and hydrateRoot from jsx/dom/client as default ( #2929 )
2024-06-12 11:56:31 +09:00
Yusuke Wada
75663ff162
v4.4.5
2024-06-11 10:22:18 +09:00
Taku Amano
ad04fbff1c
refactor(jsx): reduce code size and improve maintainability ( #2956 )
...
* refactor(jsx): Refactored an utility method to reduce code size and improve maintainability
* refactor: tweaks shared namespace string for svg and math for reduced size
* fix: degration of c0fade3
2024-06-11 10:08:39 +09:00
Yusuke Wada
32ba5ba836
refactor(request): shorten parseBody
and remove unnecessary check ( #2947 )
...
* refactor(request): shorten `parseBody` and remove unnecessary check
* refactored as https://github.com/honojs/hono/pull/2947#issuecomment-2158262418
Co-authored-by: Taku Amano <taku@taaas.jp>
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
2024-06-10 23:51:43 +09:00
Ame_x
208d77b06d
fix(context): default JSONRespond and TextRespond StatusCode generic arg ( #2954 )
...
* fix: default JSONRespond and TextRespond StatusCode generic arg
* chore: format
* revert
2024-06-10 18:13:58 +09:00
Yusuke Wada
e1e0e0976b
test(hono-base): add tests for covering 100% ( #2952 )
2024-06-10 08:17:53 +09:00
Yusuke Wada
7eb3e3b281
refactor(context): remove unnecessary initialization add add tests for Context ( #2949 )
...
* refactor(context): remove unnecessary initialization add add tests
* Don't initialize `_var`
Co-authored-by: Taku Amano <taku@taaas.jp>
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
2024-06-10 07:04:45 +09:00
Yusuke Wada
ddb1d862bc
refactor(hono-base): don't check argument values ( #2946 )
2024-06-09 22:55:53 +09:00
Yusuke Wada
0a974ffeb6
refactor(hono-base): make 2nd arg of app.route()
required ( #2945 )
2024-06-09 21:09:44 +09:00
Yusuke Wada
e72787968f
fix(jsx): rename Hono
to JSX
and export JSX
namespace ( #2937 )
...
* fix(jsx): rename `Hono` to `JSX` and export `JSX` namespace
* export as type
2024-06-09 07:57:18 +09:00
fzn0x
1a32ef4d9d
fix(cors): allow custom vary header ( #2934 )
2024-06-09 07:53:22 +09:00
Yusuke Wada
fe7cfcf719
v4.4.4
2024-06-06 23:01:46 +09:00
Yusuke Wada
8c5463f62b
refactor(connifo): create types.ts
for type definitions ( #2924 )
2024-06-06 22:55:37 +09:00
Yusuke Wada
fd6ad5e7b1
chore: add text
and html
for coverage reporter ( #2923 )
2024-06-06 22:25:38 +09:00
Taku Amano
71f5a0123a
refactor(middleware/serve-static): call getContent only once if the file does not exist ( #2922 )
2024-06-06 22:13:22 +09:00
Trung Dang
00f32b7c17
fix(types): SimplifyDeepArray
should now actually be "deep" ( #2920 )
...
* fix(types): `SimplifyDeepArray` should now actually be "deep"
Also now uses `Simplify` instead of inline declare the type
* tests(types): extra tests for `Should have correct types - interfaces`
* style: apply lint&style fixes
* docs: rewording SimplifyDeepArray jsdoc
* fix: type is possibly infinite
* fix: mismatching implementation of interface
* refactor: split JSONRespond return declaration to it's own type
DRY-er code and fixes a weird type is possibly infinite yelling
2024-06-06 22:09:33 +09:00
Yusuke Wada
731d7aebad
fix(types): add _
prefix to TypedResponse
properties ( #2917 )
2024-06-06 21:48:24 +09:00
Yusuke Wada
cb55866ab8
fix(filepath): allow suffix includes -
and _
( #2910 )
2024-06-06 18:50:18 +09:00
Akira Tsuno
817626ff7d
feat(jsx): support htmlfor attribute alias ( #2916 )
...
* add an attribute alias for 'for' to 'htmlFor'
* Updated the utils.test to include attribute aliases.
* bun run format:fix and lint:fix
2024-06-06 17:32:01 +09:00
Yusuke Wada
448a0027ba
feat(context): c.redirect()
supports TypedResponse
( #2908 )
2024-06-06 16:48:34 +09:00
Trung Dang
5beac4e217
fix(types): #2912 : interfaces array's respond typed as never
( #2915 )
...
* feat: add `DeepSimplify` type
* fix(types): #2912 : interfaces array's respond typed as `never`
* refactor: wording `DeepSimplify` => `SimplifyDeepArray`
* docs(jsdoc): add jsdoc for `Simplify`, `SimplifyDeepArray`
2024-06-06 16:44:19 +09:00
Trung Dang
fe0d787916
refactor(types): remove Prettify
as duplicated with Simplify
( #2914 )
2024-06-06 16:37:16 +09:00
Yusuke Wada
706c2f028a
fix(hono-base): return 404 if lacking response in a single sync handler ( #2909 )
2024-06-06 16:19:36 +09:00
ryu
0d851b689c
fix(cloudflare-workers): export getConnInfo() ( #2906 )
...
* fix(cloudflare-workers): export getConnInfo()
* format
2024-06-05 10:05:34 +09:00
Ame_x
96196ab52e
chore: create .gitpod.yml ( #2868 )
...
* chore: create .gitpod.yml
* tmp: delete lines breaks
* yarn to bun
2024-06-04 17:17:07 +09:00
James Ross
d13588e36b
chore(hono-base): improve unfinalized response error ( #2902 )
2024-06-04 17:14:24 +09:00
Taku Amano
524296e43f
feat(hono-base): skip import HTTPException by using HTTPResponseError ( #2898 )
...
This change is intended to make error handling more flexible and reduce bundle size.
This idea is originated from https://github.com/honojs/hono/pull/2885
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-06-04 06:35:44 +09:00
yasuaki640
d260d2166e
fix(typo): Fix typo in request.test.ts ( #2899 )
2024-06-04 06:31:09 +09:00
Yusuke Wada
6a5c649dce
v4.4.3
2024-06-03 20:48:41 +09:00
Yusuke Wada
ef70eafdb6
chore: update lockfile
2024-06-03 20:44:42 +09:00
Yusuke Wada
a0011518ca
feat(hono-base): add replaceRequest
option for app.mount
( #2852 )
...
* feat(hono-base): add `rewritePath` option for `app.mount`
* feat(hono-base): introduce `replaceRequest` option instead of `rewritePath` (#2873 )
* add non-null assertion
* change the test name
* update JSDoc
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
2024-06-03 20:42:38 +09:00
ryu
a036d70307
fix(types): fix typo for unofficial status code type ( #2894 )
...
* fix(types): fix typo for UnofficialStatusCode
* change pathname
* unify the descriptions
2024-06-03 16:32:46 +09:00
Yusuke Wada
5c348b2439
test(presets): add tests for hono/quick
and hono/tiny
( #2892 )
2024-06-03 00:30:20 +09:00
TATSUNO “Taz” Yasuhiro
b6934cb210
chore: Exclude type-only files from coverage ( #2890 )
2024-06-03 00:19:33 +09:00
TATSUNO “Taz” Yasuhiro
ec3648d0c3
refactor(aws-lambda): merge custom-context into types ( #2889 )
...
* refactor(aws-lambda): merge custom-context into types so they are excluded from coverage
* refactor: custom-context.ts is not needed since it is hidden by reexport
2024-06-03 00:16:07 +09:00
Yusuke Wada
786f9e2a9d
test(workerd): add tests for WebSocket ( #2891 )
2024-06-03 00:14:11 +09:00
Yusuke Wada
f634c82451
test(workerd): rename the runtime test wrangler
to workerd
( #2888 )
...
* test(workerd): rename the runtime test `wrangler` to `workerd`
* fixed ci.yml
* fixed a typo
* use node 20.x
2024-06-02 22:49:40 +09:00
Ron Keiser
eb3d85674f
fix(cloudflare-workers): Update websocket.ts to return 101 status code ( #2886 )
...
Closes #2883
2024-06-02 22:28:31 +09:00
JetLu
320b945eff
fix(websocket): the onopen event cannot be triggered during delayed operations in deno ( #2864 )
...
* fix: The onopen event cannot be triggered during delayed operations
* fix: The onopen event cannot be triggered during delayed operations
* chore: delete test
* chore: tidy
2024-06-02 17:56:31 +09:00
TATSUNO “Taz” Yasuhiro
80cbb44f50
chore: add coverage badge to README ( #2881 )
...
* chore: add coverage badge to README
* chore: move to "activity" category before "social" category
2024-06-02 17:33:55 +09:00
Yusuke Wada
9735283462
docs: update readme and migrate guide for migrating deno.land/x
to JSR ( #2879 )
2024-06-01 06:15:49 +09:00
TATSUNO “Taz” Yasuhiro
8cc8a05c89
ci: Report coverage with CodeCov ( #2862 )
...
* Output coverage per each test
* Collect coverage
* Exclude test-only files
* update comment
* exclude types
* Add config
* Update bun comment
* Generate coverage in Deno
2024-06-01 04:17:47 +09:00
Ame_x
0dfb794df7
docs(jsdoc): add jsdoc of some modules ( #2836 )
...
* add jsdoc of .route
* chore: format
* add jsdoc of .mount
* add
* chore: format
* chore fix
* change to format same as ".mount"
* chore fix
* chore fix
* docs: change jsdoc of .basePath
* docs: change jsdoc of onError
* same as doc
* delete
* docs: change jsdoc of .notFound
* docs: change jsdoc of .notFound
* docs: change jsdoc of .fetch
* chore: format
* docs: change jsdoc of .fire
* docs: change jsdoc of .fire
* docs: change jsdoc of hono-options
* docs: change jsdoc of http-exception
* docs: change jsdoc of hono-request
* docs: change jsdoc of context
* delete missing jsdoc
2024-06-01 04:00:13 +09:00
Ame_x
19f859d398
ci: change name of workflow jobs ( #2875 )
...
* ci: change name of workflow jobs
* change
2024-06-01 03:25:36 +09:00
Ame_x
4bf923746e
refactor: removed unnecessary line ( #2869 )
2024-05-31 17:51:46 +09:00
Sigui Kessé Emmanuel
df11eb182e
ci: Update workflow name of release.yml ( #2874 )
2024-05-31 17:38:42 +09:00
Yusuke Wada
0c89700f55
v4.4.2
2024-05-31 08:14:26 +09:00
Ame_x
a852327059
fix: add return types of void function ( #2870 )
...
* fix
* chore: format
2024-05-31 08:11:31 +09:00
Yusuke Wada
c8beddb7c7
v4.4.1
2024-05-31 08:02:07 +09:00