Yusuke Wada
3670716311
feat(client): improve handling status code types
2024-08-18 18:22:30 +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
Taku Amano
fbed2df668
fix(jsx): allow null, undefined, and boolean to be returned from function component ( #3241 )
...
* fix(jsx): allow `null`, `undefined`, and `boolean` to be returned from function component
* fix(jsx): allow `null` to be returned from `FC` type
* test: add test for empty fragment in `"jsx": "precompile"`
Empty Fragment is converted to null in `"jsx": "precompile"`, so add a test for that pattern
2024-08-08 22:14:35 +09:00
Yusuke Wada
e1235462c8
v4.5.4
2024-08-06 20:21:43 +09:00
Yusuke Wada
d58b98aa72
fix(types): param
in ValidationTargets
supports optional param ( #3229 )
2024-08-06 20:15:21 +09:00
naporitan
b3b1e8af54
feat(client): Add WebSocket Provider Integration Tests and Enhance WebSocket Initialization ( #3213 )
...
* chore(client): add websocket provider testing
* feat(client): add websocket provider options
* chore(client): same function format
* chore(client): remove $ws method options
* chore(client): remove console.log
2024-08-06 20:13:02 +09:00
jonas
e42795c4d9
feat(jsx): allow to merge CSSProperties declaration ( #3228 )
...
* feat(jsx): allow to merge CSSProperties declaration
* fix the format
2024-08-06 20:04:55 +09:00
yasuaki640
c3679b8e4a
fix(jsx): corrects the type of 'draggable' attribute in intrinsic-elements.ts ( #3224 )
2024-08-03 14:38:11 +09:00
Yusuke Wada
1fafc7aec8
v4.5.3
2024-07-29 22:37:13 +09:00
Yusuke Wada
f0b012ddf7
fix(service-worker): refer to self.fetch
correctly ( #3200 )
2024-07-29 22:34:10 +09:00
Taku Amano
43fe52ce33
fix(jsx/dom): fix performance issue with adding many new node listings ( #3205 )
...
* fix(jsx/dom): fix performance issue with adding many new node listings
* First time rendering does not need to look for elements from child nodes
** Avoid unnecessary checks with `node.pP`.
* Sibling elements are always searched, so there is no need for a for loop.
** Need only `findInsertBefore(node.vC[0])`
* test(jsx/dom): add test for performance
2024-07-29 21:58:00 +09:00
Taku Amano
3a56ec58b6
fix(jsx): fix handling of SVG elements in JSX. ( #3204 )
...
* fix(jsx): preserve "title" element position in SVG
* fix(jsx): convert SVG attribute name from camelCase to kebab-case
2024-07-29 21:51:11 +09:00
Yusuke Wada
cdd48f4fd4
fix(validator): support application/json
with a charset ( #3199 )
2024-07-28 16:39:40 +09:00
Gaspard Wierzbinski
0417830fe9
fix(validator): Add double quotation marks to multipart checker regex ( #3195 )
2024-07-28 16:22:52 +09:00
Yusuke Wada
a63bcfd6fb
v4.5.2
2024-07-27 18:05:28 +09:00
Ame_x
8da482ac4f
feat(secure-headers): remove "X-Powered-By" should be an option ( #3177 )
...
* fix: Secure-Headers delete "X-Powered-By" should be an option
* fix: Secure-Headers delete "X-Powered-By" should be an option
* Update index.test.ts
* chore: format
* Update secure-headers.ts
* update tests
* update middleware
* chore
* change prop name
* chore
* chore: format
* revert the change of arg name
* some fix
* chore
2024-07-27 17:41:11 +09:00
yasuaki640
e8118e3a98
fix:(csrf) fix typo of csrf middleware ( #3178 )
2024-07-23 19:58:49 +09:00
m-shaka
8dc9e4899c
fix(type): degradation of generic type handling ( #3138 )
2024-07-22 15:44:46 +09:00
Yusuke Wada
4d33e1c0d4
Revert "fix(helper/adapter): don't check navigator
is undefined
( #3171 )" ( #3173 )
...
This reverts commit a285c4b3b4
.
2024-07-22 11:35:04 +09:00
m-shaka
bb14b1e5ba
fix(types): handle readonly array correctly ( #3172 )
2024-07-22 11:22:11 +09:00
Yusuke Wada
a285c4b3b4
fix(helper/adapter): don't check navigator
is undefined
( #3171 )
2024-07-21 21:49:28 +09:00
Yusuke Wada
0535579de5
v4.5.1
2024-07-20 23:10:42 +09:00
Yusuke Wada
4171896681
fix(validator): allow content-type mismatches ( #3165 )
2024-07-20 23:05:11 +09:00
Yusuke Wada
7389b4cad7
fix(client): support array values for query
in ws
( #3169 )
...
Co-authored-by: Alber Tenez <albert@zenettech.com>
2024-07-20 23:01:34 +09:00
Yusuke Wada
3b8e72a8ff
chore(factory): remove @experimental
from createApp
( #3164 )
2024-07-20 18:59:55 +09:00
Clément
66fc63d134
feat(bearer-auth): Allow empty bearer-auth middleware prefixes ( #3161 )
2024-07-20 18:53:02 +09:00
JulesVerner
09f1d20aff
fix(middleware/jwt): Changed the jwt-secret type to SignatureKey ( #3167 )
...
* Changed the jwt-secret type to SignatureKey
* Changed import to type-import
2024-07-20 18:39:05 +09:00
Ame_x
84424ad3a5
chore: moving the setup file of vitest ( #3157 )
2024-07-20 00:02:35 +09:00
Shotaro Nakamura
f23a416f75
chore: remove rimraf and use bun shell ( #3146 )
2024-07-18 18:34:33 +09:00
Yusuke Wada
801e1b9027
v4.5.0
2024-07-16 23:02:21 +09:00
Yusuke Wada
2f4bb3e382
Merge pull request #3144 from honojs/next
2024-07-16 22:57:37 +09:00
Yusuke Wada
c63251172c
fix(types): remove slow types ( #3147 )
2024-07-16 22:53:33 +09:00
yasuaki640
20d877167c
feat(jsx): add global attributes to interface definition ( #3142 )
2024-07-16 22:38:05 +09:00
Yusuke Wada
024ec0ff8d
fix(types): use ContextVariableMap
in Context<any>
( #3134 )
...
* fix(types): use `ContextVariableMap` in `Context<any>`
* use `any`
2024-07-16 21:57:33 +09:00
Yusuke Wada
1afecac402
chore: update comments in codes ( #3145 )
2024-07-16 21:50:27 +09:00
ottomated
1cee728193
feat(types): allow passing interface
s as Bindings / Variables ( #3136 )
...
* feat(types): allow passing `interface`s as Bindings / Variables
* test(context): add test for c.var
* fix lint warning
* test(types): add test for Bindings types
2024-07-16 21:41:38 +09:00
Yusuke Wada
9987b5908f
Merge branch 'main' into next
2024-07-16 21:15:11 +09:00
Taku Amano
9a6e52d734
feat(middleware/combine): Introduce combine middleware ( #2941 )
...
* feat(middleware/predicate): Introduce predicate middleware
* fix: apply `bun run format:fix`
* refactor: rename middleware predicate -> combine
2024-07-13 18:49:10 +09:00
ryu
e6d253d96f
feat(middleware): introduce Request ID middleware ( #3082 )
...
* feat(middleware): introduce Request ID middleware
* fix not to accept empty string in header
* rename requestID to requestId
* pass the context to the generator option
* add typesVersions
* fix typo
Co-Authored-By: Taku Amano <taku@taaas.jp>
* change to generate id if validation fails
Co-Authored-By: Taku Amano <taku@taaas.jp>
* fix limit length test
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
2024-07-13 14:02:36 +09:00
Yusuke Wada
2d0135956c
v4.4.13
2024-07-11 18:24:23 +09:00
Yusuke Wada
642dd29666
fix(types): app.use(path, mw)
return correct schema type ( #3128 )
...
Co-authored-by: Ame_x <121654029+EdamAme-x@users.noreply.github.com>
2024-07-11 18:20:53 +09:00