nitedani
c2b0de42a0
feat(context): make fetch Response headers mutable ( #3318 )
...
* make headers mutable
* add test
* immutability check
* revert change
* fix(context): clone response object if it's immutable
* test(runtime-node): specify ip address as numbers
* test(runtime-node): use address from server info instead of `127.0.0.1`
* test(runtime-node): use large date to test compress
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-09-08 15:59:42 +09:00
Taku Amano
8ca155ec9b
feat(helper/streaming): Support Promise<string> or (async) JSX.Element in streamSSE ( #3344 )
...
* feat(helper/streaming): Support Promise<string> or (async) JSX.Element in streamSSE
* refactor(context): enable to pass Promise<string> (includes async JSX.Element) to resolveCallback
2024-09-08 15:57:45 +09:00
Ivan Gabaldon
c8d5e3461d
feat(serveStatic): add precompressed
option ( #3366 )
...
* Initial update
* typo
* sort new logic
* remove extra cast
* add more testing
* fix content existence
2024-09-08 15:55:17 +09:00
Marcel Overdijk
fdf77862ac
feat(contextStorage): added Context Storage Middleware ( #3373 )
2024-09-08 15:53:01 +09:00
Yusuke Wada
39600c4449
feat(jsx-renderer): set Content-Encoding
when stream
is true
( #3355 )
2024-09-08 15:50:54 +09:00
hayatosc
6f69bf04b7
feat(websocket): Add generics type to WSContext
( #3337 )
...
* Extends WSContext's types
* Add new generics on UpgradeWebSocket types
* fix with linter
* revert createWSContext types
* prettier fix
2024-09-08 15:49:09 +09:00
Yusuke Wada
8e56989cde
feat(cloudflare-pages): enable c.env.eventContext
in handleMiddleware
( #3332 )
2024-09-08 15:45:53 +09:00
kbkn3
5a25e33e93
feat(secureHeader): add Permissions-Policy header to secure headers middleware ( #3314 )
...
* feat(secureHeader): add Permissions-Policy header to secure headers middleware
* refactor(secure-headers): optimize getPermissionsPolicyDirectives function
2024-09-08 15:43:50 +09:00
ryu
f9a23a9992
chore(deno): use the latest jsr libraries for testing ( #3375 )
2024-09-04 16:25:06 +09:00
Seiya Tagami
a1b477ccf7
chore(jsx-renderer): fix typo in JSDoc ( #3378 )
2024-09-04 16:14:06 +09:00
Yusuke Wada
350040470d
v4.5.11
2024-09-03 16:54:12 +09:00
sugar
1db161e343
refactor(utils/basic-auth): Moved Internal function to utils ( #3359 )
...
* refactor(utils/basic-auth): Split the code into utils
* remove: dependency on HonoRequest
2024-09-03 16:45:31 +09:00
Seiya Tagami
fa1954001c
chore: fix typo in JSDoc ( #3364 )
2024-09-03 15:42:11 +09:00
Yusuke Wada
bdaaa7fef8
docs: Twitter
to X
( #3354 )
2024-09-01 17:53:56 +09:00
Yusuke Wada
7593e75aca
refactor(utils/body): shorten the code ( #3353 )
2024-09-01 17:41:16 +09:00
Taku Amano
e4cc5aae73
perf(jsx): skip the special behavior when the element is in the head. ( #3352 )
2024-09-01 16:51:32 +09:00
Taku Amano
07125309b2
fix(jsx): race condition in ErrorBoundary with event loop ( #3343 )
...
Fixes #3333
2024-08-31 16:46:32 +09:00
Yusuke Wada
040b0d41de
v4.5.10
2024-08-31 11:33:24 +09:00
Marcel Overdijk
6c1942923c
fix(logger): removing spaces from logger ( #3334 )
2024-08-31 11:13:09 +09:00
yasuaki640
72f4c9dc2c
chore(test): replace deprecated vitest type ( #3338 )
2024-08-31 11:08:26 +09:00
yasuaki640
18f937d3be
chore(test): migrate to vitest v2 ( #3326 )
...
* migrate vitest v2
* re run bun i
2024-08-29 16:57:40 +09:00
TOMIKAWA Sotaro
e449c95ed1
feat(jsx): improve form attribute types ( #3330 )
2024-08-29 16:46:23 +09:00
TOMIKAWA Sotaro
bc2b7cfeeb
feat(jsx): add popover api attributes ( #3323 )
2024-08-28 17:19:07 +09:00
nitedani
12893e26ea
feat(compress): improve compress middleware ( #3317 )
...
* improve compression middleware
* run lint & format
* improve test
* refactor
* fix setting headers
* fix ctx.res setter
add tests
* revert change
* minor
* remove workaround and simplify
* remove diff
* update test
* improvements
2024-08-28 17:03:44 +09:00
Yusuke Wada
f9349ecca2
v4.5.9
2024-08-26 21:35:28 +09:00
Shotaro Nakamura
7ad1f05926
feat(pretty-json): support custom query ( #3300 )
...
* feat(pretty-json): support custom query
* feat: don't use default value
2024-08-26 21:18:36 +09:00
TOMIKAWA Sotaro
33189b8765
feat(jsx): improve type
(MIME) attribute types ( #3305 )
...
* feat(jsx): improve `type` (MIME) attribute types
embed, link, object, script, source, and style elements
* fix(jsx): `source` element allows only media mime in type attribute
2024-08-26 21:14:31 +09:00
ryu
0a94e53832
fix(color): Deno does not require permission for NO_COLOR
( #3306 )
2024-08-26 20:55:14 +09:00
m-shaka
6d7565e2a1
fix(types): broken test in future versions of typescript ( #3310 )
2024-08-25 15:55:37 +09:00
Yusuke Wada
d1c7f6f5f1
v4.5.8
2024-08-22 16:07:04 +09:00
Yusuke Wada
41ce840379
Merge commit from fork
2024-08-22 16:03:43 +09:00
Yusuke Wada
b0af71fbcc
v4.5.7
2024-08-21 11:14:42 +09:00
TOMIKAWA Sotaro
2646696f45
feat(jsx): improve input attribute types based on react ( #3302 )
...
ref. 865051c6be/types/react/index.d.ts (L3263-L3389)
2024-08-21 11:04:46 +09:00
Yusuke Wada
331b3d8a96
fix(client): replace optional params to url correctly ( #3304 )
2024-08-21 10:53:54 +09:00
Shotaro Nakamura
95a6b39895
docs(README): change Twitter to X ( #3301 )
2024-08-20 17:17:59 +09:00
TOMIKAWA Sotaro
54dab7e3df
feat(jsx): improve target
and formtarget
attribute types ( #3299 )
2024-08-20 12:25:55 +09:00
uttk
c378dd99a4
fix(validator): Fixed a bug in hono/validator where URL Encoded Data could not be validated if the Content-Type included charset. ( #3297 )
2024-08-19 14:44:57 +09:00
TOMIKAWA Sotaro
17c3b9ed10
feat(jsx): improve a-tag types with well known values ( #3287 )
...
* refactor: LiteralUnion type moves to utils
* feat(jsx): improve a-tag types with well known values
2024-08-19 10:21:45 +09:00
Taku Amano
1854e24145
perf(jsx/dom): improve performance ( #3288 )
...
Fixes #3264
* fix(test): fix test name
* refactor(jsx/dom): assign type and ref to node object directly. `Object.defineProperties` is too slow
* fix(jsx/hooks): `useReducer` returns the same function object no matter how many times it is called.
* refactor(jsx/dom): remove redundant property "s", "shadow virtual dom children" is not used
* refactor(jsx/dom): use for-loop instead of recursion for findInsertBefore
* perf(jsx/dom): improve performance of `getEventSpec`
* perf(jsx/dom): improve performance of `toAttributeName`
* perf(jsx/dom): for the same event handler, do nothing.
* perf(jsx/dom): reduce `container.nodeName` access
* perf(jsx/dom): remove `skipProps` and compare `key` with `'children'` directly
* perf(jsx/dom): use `for-in` instead of `Object.entries`
* perf(jsx/dom): if `defaultProps` does not exist, do not create a new `props` object.
* perf(jsx/dom): if `callbacks` is empty, do not call `requestAnimationFrame`
* perf(jsx/dom): optimize `build` function
* perf(jsx/dom): skip `push` call if target list is empty.
* perf(jsx/dom): optimize `apply` function
* refactor(jsx/dom): remove unused type import
* refactor(jsx/dom): remove redundant code `applyNode`
* test(jsx/dom): add tests
* refactor(jsx/dom): tweaks `delete node.vR` timing
2024-08-19 10:13:24 +09:00
Taku Amano
e6459e7304
fix(jsx/dom): Fixed a bug that caused Script elements to turn into Style elements. ( #3294 )
2024-08-19 09:54:49 +09:00
Yusuke Wada
8f1680238b
v4.5.6
2024-08-17 19:16:21 +09:00
TOMIKAWA Sotaro
f800cf15f4
feat(jsx): improve meta-tag types with well known values ( #3276 )
...
* fix(jsx): improve meta-tag types with well known values
* refactor(jsx): make more strict types
2024-08-17 19:05:38 +09:00
Nick Randall
0c1e89964e
fix(validator): Allow form data will mutliple values appended ( #3273 )
2024-08-17 18:55:40 +09:00
Ernest Badu
81a1f07d4b
fix(validator): support multipart headers without a space separating boundary ( #3286 )
2024-08-17 18:49:01 +09:00
Taku Amano
a5b2382da6
fix(jsx): await all promises at once to avoid race condition ( #3274 )
2024-08-15 20:27:52 +09:00
Yusuke Wada
986db292e8
v4.5.5
2024-08-11 13:05:23 +09:00
Yusuke Wada
7a254bc0c7
fix(serve-static):supports directory contains .
and not ends /
( #3256 )
2024-08-11 13:01:29 +09:00
Shotaro Nakamura
ac069d1696
feat(context): add Context-Type types to c.header
( #3255 )
...
* feat(context): add Context-Type types to `c.header`
* chore: add JSDoc
* chore: format code
* use strict mimetype types and change HeaderRecord
2024-08-11 12:57:37 +09:00
yasuaki640
8ba02273e8
fix(jsx): fix draggable type to accept boolean ( #3253 )
2024-08-10 16:27:32 +09:00
Shotaro Nakamura
7cd0248c5a
feat(context): Add types for c.header
( #3221 )
...
* feat(context): Add types for `c.header`
* use common types (#5 )
* refactor: apply header types to response
* chore: format code
---------
Co-authored-by: EdamAmex <121654029+EdamAme-x@users.noreply.github.com>
2024-08-08 22:41:31 +09:00