fix(deps): update dependency hono to v4 #8
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.11.12
->^4.0.0
Release Notes
honojs/hono (hono)
v4.5.1
Compare Source
What's Changed
@experimental
fromcreateApp
by @yusukebe in https://github.com/honojs/hono/pull/3164query
inws
by @yusukebe in https://github.com/honojs/hono/pull/3169New Contributors
Full Changelog: honojs/hono@v4.5.0...v4.5.1
v4.5.0
Compare Source
v4.4.13
Compare Source
What's Changed
string[] | File[]
for RPC form value by @yusukebe in https://github.com/honojs/hono/pull/3117app.use(path, mw)
return correct schema type by @yusukebe in https://github.com/honojs/hono/pull/3128Full Changelog: honojs/hono@v4.4.12...v4.4.13
v4.4.12
Compare Source
What's Changed
path
when chaining afteruse
by @yusukebe in https://github.com/honojs/hono/pull/3087download
attribute is set to a boolean value. by @oon00b in https://github.com/honojs/hono/pull/3094@module
docs by @yusukebe in https://github.com/honojs/hono/pull/3101New Contributors
Full Changelog: honojs/hono@v4.4.11...v4.4.12
v4.4.11
Compare Source
What's Changed
hono/client
by @naporin0624 in https://github.com/honojs/hono/pull/3066HandlerInterface
's(path, handler)
s overloads down by @NamesMT in https://github.com/honojs/hono/pull/3072New Contributors
Full Changelog: honojs/hono@v4.4.10...v4.4.11
v4.4.10
Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.4.9...v4.4.10
v4.4.9
Compare Source
What's Changed
Context
by @yusukebe in https://github.com/honojs/hono/pull/3046package.json
and README by @yusukebe in https://github.com/honojs/hono/pull/3052Full Changelog: honojs/hono@v4.4.8...v4.4.9
v4.4.8
Compare Source
What's Changed
env
for codecov GitHub Actions by @yusukebe in https://github.com/honojs/hono/pull/3010Full Changelog: honojs/hono@v4.4.7...v4.4.8
v4.4.7
Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.4.6...v4.4.7
v4.4.6
Compare Source
What's Changed
Full Changelog: honojs/hono@v4.4.5...v4.4.6
v4.4.5
Compare Source
What's Changed
Hono
toJSX
and exportJSX
namespace by @yusukebe in https://github.com/honojs/hono/pull/2937app.route()
required by @yusukebe in https://github.com/honojs/hono/pull/2945app.on()
by @yusukebe in https://github.com/honojs/hono/pull/2946parseBody
and remove unnecessary check by @yusukebe in https://github.com/honojs/hono/pull/2947Full Changelog: honojs/hono@v4.4.4...v4.4.5
v4.4.4
Compare Source
What's Changed
Prettify
as duplicated withSimplify
by @NamesMT in https://github.com/honojs/hono/pull/2914never
by @NamesMT in https://github.com/honojs/hono/pull/2915c.redirect()
supportsTypedResponse
by @yusukebe in https://github.com/honojs/hono/pull/2908-
and_
by @yusukebe in https://github.com/honojs/hono/pull/2910_
prefix toTypedResponse
properties by @yusukebe in https://github.com/honojs/hono/pull/2917SimplifyDeepArray
should now actually be "deep" by @NamesMT in https://github.com/honojs/hono/pull/2920text
andhtml
for coverage reporter by @yusukebe in https://github.com/honojs/hono/pull/2923types.ts
for type definitions by @yusukebe in https://github.com/honojs/hono/pull/2924New Contributors
Full Changelog: honojs/hono@v4.4.3...v4.4.4
v4.4.3
Compare Source
What's Changed
deno.land/x
to JSR by @yusukebe in https://github.com/honojs/hono/pull/2879wrangler
toworkerd
by @yusukebe in https://github.com/honojs/hono/pull/2888hono/quick
andhono/tiny
by @yusukebe in https://github.com/honojs/hono/pull/2892replaceRequest
option forapp.mount
by @yusukebe in https://github.com/honojs/hono/pull/2852New Contributors
Full Changelog: honojs/hono@v4.4.2...v4.4.3
v4.4.2
Compare Source
What's Changed
Full Changelog: honojs/hono@v4.4.1...v4.4.2
v4.4.1
Compare Source
What's Changed
{ server: server }
by @nakasyou in https://github.com/honojs/hono/pull/2812New Contributors
Full Changelog: honojs/hono@v4.4.0...v4.4.1
v4.4.0
Compare Source
Hono v4.4.0 is now available! Let's take a look at the new features.
Support JSR
Now, Hono is available on JSR - a new JavaScript/TypeScript registry! You can install the Hono package from JSR right now. If you want to run your Hono app on Deno, you can install it with the following command:
Then, use it in your code!
And run it:
If you edit the
deno.json
and set the paths appropriately, the exact same code that you are familiar with will work in Deno, Cloudflare Workers, and Bun.deno.json
:Area.mp4
JSR is not exclusive to Deno. You can use it with npm and Bun.
And, removing "slow types" has improved the performance of TypeScript type inference.
With the introduction of JSR, the previous package publishing from
deno.land/x
will be obsolete.Introduce ConnInfo Helper
The ConnInfo Helper is a helper helps you to get the connection information. For example, you can get the client's remote address easily.
Thank you for creating the feature, @nakasyou!
Introduce Timeout Middleware
The Timeout Middleware is a middleware enables you to easily manage request timeouts in your application.
Here is a simple example:
Thank you for creating the feature, @watany-dev!
Improving JSDoc
We are now trying to improve the JSDocs. In the PR, we've added the JSDocs for all middleware. Thank you, @goisaki!
Other features
getPath
https://github.com/honojs/hono/pull/2714parseBody
https://github.com/honojs/hono/pull/2675parseBody
https://github.com/honojs/hono/pull/2771All Updates
parseBody
by @fzn0x in https://github.com/honojs/hono/pull/2675@cloudflare/workers-types
by @yusukebe in https://github.com/honojs/hono/pull/2773c.req.param()
by @usualoma in https://github.com/honojs/hono/pull/2780on
condition forpublish-to-jsr
by @yusukebe in https://github.com/honojs/hono/pull/2786index.ts
by @yusukebe in https://github.com/honojs/hono/pull/2793jsr.json
by @yusukebe in https://github.com/honojs/hono/pull/2803v4.4.0
by @yusukebe in https://github.com/honojs/hono/pull/2769New Contributors
Full Changelog: honojs/hono@v4.3.9...v4.4.0
v4.3.11
Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.3.10...v4.3.11
v4.3.10
Compare Source
What's Changed
RETAINED_304_HEADERS
by @yusukebe in https://github.com/honojs/hono/pull/2763Full Changelog: honojs/hono@v4.3.9...v4.3.10
v4.3.9
Compare Source
What's Changed
CreateHandlersInterface
by @yusukebe in https://github.com/honojs/hono/pull/2752Full Changelog: honojs/hono@v4.3.8...v4.3.9
v4.3.8
Compare Source
What's Changed
v20.13.1
by @yusukebe in https://github.com/honojs/hono/pull/2682any
by @fzn0x in https://github.com/honojs/hono/pull/2684Partial
for the options by @yusukebe in https://github.com/honojs/hono/pull/2712Partial
for the options by @yusukebe in https://github.com/honojs/hono/pull/2713ResponseInit
toc.body
by @codeflows in https://github.com/honojs/hono/pull/2690New Contributors
Full Changelog: honojs/hono@v4.3.7...v4.3.8
v4.3.7
Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.3.6...v4.3.7
v4.3.6
Compare Source
What's Changed
File
s by @yusukebe in https://github.com/honojs/hono/pull/2665New Contributors
Full Changelog: honojs/hono@v4.3.5...v4.3.6
v4.3.5
Compare Source
What's Changed
any
by @yusukebe in https://github.com/honojs/hono/pull/2658fetch
signature for better compatibility withdeno serve
by @usualoma in https://github.com/honojs/hono/pull/2661Full Changelog: honojs/hono@v4.3.4...v4.3.5
v4.3.4
Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.3.3...v4.3.4
v4.3.3
Compare Source
What's Changed
c.req.param()
by @yusukebe in https://github.com/honojs/hono/pull/2613@typescript-eslint/unbound-method
by @yusukebe in https://github.com/honojs/hono/pull/2622createFactory()
destruction by @yusukebe in https://github.com/honojs/hono/pull/2623form
supports multiple values withfoo[]
by @yusukebe in https://github.com/honojs/hono/pull/2639New Contributors
Full Changelog: honojs/hono@v4.3.2...v4.3.3
v4.3.2
Compare Source
What's Changed
Full Changelog: honojs/hono@v4.3.1...v4.3.2
v4.3.1
Compare Source
What's Changed
ToSchema
compatibility by @NamesMT in https://github.com/honojs/hono/pull/2605Full Changelog: honojs/hono@v4.3.0...v4.3.1
v4.3.0
Compare Source
Hono v4.3.0 is now available! Let's take a look at the new features.
Improve the RPC-mode
Thanks to @kosei28, @nakasyou, and @NamesMT, the RPC mode has been improved!
c.text()
is typedThe response of
c.text()
was just aResponse
object, not typed.With this release, it will be a
TypedResponse
and you can get the type within the client created byhc
.Support all JSON primitives
We added the tests for the responses of
c.json()
to have the correct types and support inferring all primitives. The all tests below are passed!Status code type
If you explicitly specify the status code, such as
200
or404
, inc.json()
. It will be added as a type for passing to the client.You can get the data by the status code.
Improve compatibility with React
The compatibility of
hono/jsx/dom
has been improved. Now, these React libraries work withhono/jsx/dom
!The below demo is working with
hono/jsx/dom
, not React.If you want to use React libraries with
hono/jsx/dom
, set-uptsconfig.json
andvite.config.ts
like the followings:tsconfig.json
:vite.config.ts
:Thanks @usualoma!
createApp()
in Factory HelpercreateApp()
method is added to Factory Helper. If you use this method withcreateFactory()
, you can avoid redundancy in the definition of theEnv
type.If your application is like this, you have to set the
Env
in two places:By using
createFactory()
andcreateApp()
, you can set the Env only in one place.Deprecate
serveStatic
for Cloudflare WorkersserveStatic
exported byhono/cloudflare-workers
has been deprecated. If you create an application which serves static asset files, use Cloudflare Pages instead.Other features
headerName
option https://github.com/honojs/hono/pull/2514crossOrigin
in TimingOptions to be a function https://github.com/honojs/hono/pull/2359init
option https://github.com/honojs/hono/pull/2592All Updates
headerName
option by @eliasbrange in https://github.com/honojs/hono/pull/2514Configuration
📅 Schedule: Branch creation - "on the first day of the week" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.