* feat: types for JSX elements
* make it minimal
* add children
* denoify
* fixed some attributes
* denoify
* `dateTime` to `datetime`
* remove `onxxx`
* feat: Declare in the Hono namespace so that it can be overridden by the user. (#1616)
* feat: Declare in the Hono namespace so that it can be overridden by the user.
* feat: Use interface instead of type to enable overwriting
```ts
declare global {
namespace JSX {
interface IntrinsicElements {
'my-custom-element': Hono.HTMLAttributes & {
'x-event'?: 'click' | 'scroll';
}
}
}
}
```
---------
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
* remove `onxxx`
* denoify
---------
Co-authored-by: Taku Amano <taku@taaas.jp>
* fix: don't kebab case style property values
* add a test and format
* denoify and `denoify-ignore`
---------
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
* feat: add "all" option to parseBody
* feat: add parseBody option to `req.parseBody()`
* test: add single value (override) and multiple value cases to praseBody
* test: split parse case of parseBody
* chore: denoify
* refactor(body): make clear parseBody logic
* chore: denoify
* fix: single value of the field should not be parsed to array
* test: add some case of single value's field in "all" option
* chore: denoify
* fix: error to retrieve cookie
TypeError: Cannot read properties of undefined (reading 'split')
* add a test and denoify
---------
Co-authored-by: Yusuke Wada <yusuke@cloudflare.com>
* feat: improvement of parse body
* feat: add test for improvement of parse body commit
* chore: denoify and fix:format
* rm: test file on deno_dist
---------
Co-authored-by: irvan hakim <irvanhakim.dev@gmail.com>
* feat: implement stream api utility-class
* test: write the test of StreamApi
* feat: implement `c.stream` to context
* test: write the test of `c.stream()`
* chore: denoify
* fix: extend for bytes, remove buffer system, add pipe and log interface
* test: update test about log, pipe, etc... for streaming API
* feat: extend textStream interface, remove utf-8 content-type
* test: add test about `c.textStream`
* refactor: update some args name
* chore: denoify
* fix: for deno, removed the optional parameter of `write` and `writeln`
* chore: denoify
* feat: add charset for textStream content-type header
* fix: rename textStream to streamText
* fix: reuse stream in streamText for bundle size
* feat: add `stream.wait()` api
* chore: denoify
* fix: rename `stream.wait` to `stream.sleep`
* test: use `stream.sleep` for waiting
* refactor: remove `stream.log`
* fix: remove preHeader from `c.stream()` and use `transfer-encoding` only `c.streamText()`
* chore: denoify
* refactoring: remove preHeader initialize
* test: reduce sleep duration
* chore: denoify
Co-authored-by: Glen Maddern <glenmaddern@gmail.com>