This repository was archived by the owner on Jul 22, 2025. It is now read-only.
fix(deps): update dependency hono to v4.8.5 - autoclosed#108
Closed
renovate[bot] wants to merge 1 commit intomasterfrom
Closed
fix(deps): update dependency hono to v4.8.5 - autoclosed#108renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
e1307b9 to
12c14f8
Compare
12c14f8 to
9d75db4
Compare
9d75db4 to
0dc0202
Compare
0dc0202 to
76570e1
Compare
76570e1 to
14ad72d
Compare
14ad72d to
8b9dfa1
Compare
8b9dfa1 to
3f03570
Compare
3f03570 to
d320f85
Compare
d320f85 to
6ddd57e
Compare
175395a to
821d2db
Compare
821d2db to
2c9ffe8
Compare
52d6147 to
b109495
Compare
b109495 to
78d1a89
Compare
78d1a89 to
c2d817e
Compare
c2d817e to
5aaba41
Compare
5aaba41 to
15a1355
Compare
15a1355 to
051b786
Compare
051b786 to
e543314
Compare
e543314 to
a0a202f
Compare
a0a202f to
8845e9f
Compare
8845e9f to
b8d6257
Compare
b8d6257 to
4a20ab2
Compare
4a20ab2 to
4c3b0ce
Compare
4c3b0ce to
2e4b826
Compare
2e4b826 to
8f9c747
Compare
8f9c747 to
27e0ac7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
4.6.8->4.8.5Release Notes
honojs/hono (hono)
v4.8.5Compare Source
What's Changed
Full Changelog: honojs/hono@v4.8.4...v4.8.5
v4.8.4Compare Source
What's Changed
Proxyto support Node.js 24 by @yusukebe in https://github.com/honojs/hono/pull/4260signingSecretoption by @yusukebe in https://github.com/honojs/hono/pull/4263indexstring when calling$url()by @yusukebe in https://github.com/honojs/hono/pull/4267req.json()keeps the content as is by @yusukebe in https://github.com/honojs/hono/pull/4269Full Changelog: honojs/hono@v4.8.3...v4.8.4
v4.8.3Compare Source
What's Changed
tryDecodewhen parsing cookie by @yusukebe in https://github.com/honojs/hono/pull/4240JwtTokenIssuedAterror message by @yusukebe in https://github.com/honojs/hono/pull/4244pkg.pr.newby @NEKOYASAN in https://github.com/honojs/hono/pull/4245New Contributors
Full Changelog: honojs/hono@v4.8.2...v4.8.3
v4.8.2Compare Source
What's Changed
Full Changelog: honojs/hono@v4.8.1...v4.8.2
v4.8.1Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.8.0...v4.8.1
v4.8.0Compare Source
Release Notes
Hono v4.8.0 is now available!
This release enhances existing features with new options and introduces powerful helpers for routing and static site generation. Additionally, we're introducing new third-party middleware packages.
fire()FunctionPlus new third-party middleware:
Let's look at each of these.
Reduced the code size
First, this update reduces the code size! The smallest
hono/tinypackage has been reduced by about 800 bytes fromv4.7.11, bringing it down to approximately 11 KB. When gzipped, it's only 4.5 KB. Very tiny!Route Helper
New route helper functions provide easy access to route information and path utilities.
These helpers make route introspection cleaner and more explicit.
Thanks @usualoma!
JWT Custom Header Location
JWT middleware now supports custom header locations beyond the standard
Authorizationheader. You can specify any header name to retrieve JWT tokens from.This is useful when working with APIs that use non-standard authentication headers.
Thanks @kunalbhagawati!
JSX Streaming Nonce Support
JSX streaming now supports nonce values for Content Security Policy (CSP) compliance. The streaming context can include a nonce that gets applied to inline scripts.
Thanks @usualoma!
CORS Dynamic allowedMethods
CORS middleware now supports dynamic
allowedMethodsbased on the request origin. You can provide a function that returns different allowed methods depending on the origin.This enables fine-grained control over CORS policies per origin.
Thanks @Kanahiro!
JWK Allow Anonymous Access
JWK middleware now supports anonymous access with the
allow_anonoption. When enabled, requests without valid tokens can still proceed to your handlers.Additionally,
keysandjwks_urioptions now support functions that receive the context, enabling dynamic key resolution.Thanks @Beyondo!
Cache Status Codes Option
Cache middleware now allows you to specify which status codes should be cached using the
cacheableStatusCodesoption.Thanks @miyamo2!
Service Worker fire() Function
A new
fire()function is available from the Service Worker adapter, providing a cleaner alternative toapp.fire().The
app.fire()method is now deprecated in favor of this approach. Goodbyeapp.fire().SSG Plugin System
Static Site Generation (SSG) now supports a plugin system that allows you to extend the generation process with custom functionality.
For example, the following is easy implementation of a sitemap plugin:
Applying the plugin:
Plugins can hook into various stages of the generation process to perform custom actions.
Thanks @3w36zj6!
Third-party Middleware Updates
In addition to core Hono features, we're excited to introduce new third-party middleware packages that extend Hono's capabilities.
MCP Middleware
A new middleware package
@hono/mcpenables creating remote MCP (Model Context Protocol) servers over Streamable HTTP Transport. This is the initial release with more features planned for the future.Currently, this is ideal for creating stateless and authentication-less remote MCP servers.
Thanks @MathurAditya724!
UA Blocker Middleware
The new
@hono/ua-blockermiddleware allows blocking requests based on user agent headers. It includes blocking AI bots functions.Thanks @finxol!
Zod Validator v4 Support
The
@hono/zod-validatormiddleware now supports Zod v4!All Changes
res.clone()is not supported by @yusukebe in https://github.com/honojs/hono/pull/4198res.clone()is not supported (#4198)" by @yusukebe in https://github.com/honojs/hono/pull/4200cacheableStatusCodesoption by @miyamo2 in https://github.com/honojs/hono/pull/3943allow_anonoption & passingContextto callbacks by @Beyondo in https://github.com/honojs/hono/pull/3961propstoExecutionContextby @yusukebe in https://github.com/honojs/hono/pull/4030NO_COLORon cloudflare workers by @ryuapp in https://github.com/honojs/hono/pull/4094fire()by @yusukebe in https://github.com/honojs/hono/pull/4214app.fire()as deprecated by @yusukebe in https://github.com/honojs/hono/pull/4231New Contributors
Full Changelog: honojs/hono@v4.7.11...v4.8.0
v4.7.11Compare Source
What's Changed
URLSearchParamsto the query-params benchmark by @yusukebe in https://github.com/honojs/hono/pull/4149c.newResponse()for the response oferr.getResponse()by @yusukebe in https://github.com/honojs/hono/pull/4181New Contributors
Full Changelog: honojs/hono@v4.7.10...v4.7.11
v4.7.10Compare Source
What's Changed
#clone()by @yusukebe in https://github.com/honojs/hono/pull/4139header.algas fallback inverifyFromJwksby @yusukebe in https://github.com/honojs/hono/pull/4144Full Changelog: honojs/hono@v4.7.9...v4.7.10
v4.7.9Compare Source
What's Changed
getSignedCookieparameters type by @Hill-98 in https://github.com/honojs/hono/pull/4123New Contributors
Full Changelog: honojs/hono@v4.7.8...v4.7.9
v4.7.8Compare Source
What's Changed
4.12.0by @yusukebe in https://github.com/honojs/hono/pull/4096replaceRequest: falseoption for.mountby @geelen in https://github.com/honojs/hono/pull/4113New Contributors
Full Changelog: honojs/hono@v4.7.7...v4.7.8
v4.7.7Compare Source
What's Changed
c.header()when it's finalized by @yusukebe in https://github.com/honojs/hono/pull/4078New Contributors
Full Changelog: honojs/hono@v4.7.6...v4.7.7
v4.7.6Compare Source
What's Changed
hono is cooltohono is hotby @EdamAme-x in https://github.com/honojs/hono/pull/4035New Contributors
Full Changelog: honojs/hono@v4.7.5...v4.7.6
v4.7.5Compare Source
What's Changed
BunWebSocketDataandBunWebSocketHandlerby @yusukebe in https://github.com/honojs/hono/pull/4002New Contributors
Full Changelog: honojs/hono@v4.7.4...v4.7.5
v4.7.4Compare Source
What's Changed
Full Changelog: honojs/hono@v4.7.3...v4.7.4
v4.7.3Compare Source
What's Changed
BunWebSocketHandlerby @yusukebe in https://github.com/honojs/hono/pull/3964New Contributors
Full Changelog: honojs/hono@v4.7.2...v4.7.3
v4.7.2Compare Source
What's Changed
RequestandResponseclasses by @BarryThePenguin in https://github.com/honojs/hono/pull/3928Full Changelog: honojs/hono@v4.7.1...v4.7.2
v4.7.1Compare Source
What's Changed
next()by @usualoma in https://github.com/honojs/hono/pull/3905cryptoby @EdamAme-x in https://github.com/honojs/hono/pull/3916New Contributors
Full Changelog: honojs/hono@v4.7.0...v4.7.1
v4.7.0Compare Source
Release Notes
Hono v4.7.0 is now available!
This release introduces one helper and two middleware.
Plus, Standard Schema Validator has been born.
Let's look at each of these.
Proxy Helper
We sometimes use the Hono application as a reverse proxy. In that case, it accesses the backend using
fetch. However, it sends an unintended headers.For example,
fetchmay sendAccept-Encoding, causing the origin server to return a compressed response. Some runtimes automatically decode it, leading to aContent-Lengthmismatch and potential client-side errors.Also, you should probably remove some of the headers sent from the origin server, such as
Transfer-Encoding.Proxy Helper will send requests to the origin and handle responses properly. The above headers problem is solved simply by writing as follows.
You can also use it in more complex ways.
Thanks @usualoma!
Language Middleware
Language Middleware provides 18n functions to Hono applications. By using the
languageDetectorfunction, you can get the language that your application should support.You can get the target language in various ways, not just by using
Accept-Language.Accept-LanguageheaderThanks @lord007tn!
JWK Auth Middleware
Finally, middleware that supports JWK (JSON Web Key) has landed. Using JWK Auth Middleware, you can authenticate by verifying JWK tokens. It can access keys fetched from the specified URL.
Thanks @Beyondo!
Standard Schema Validator
Standard Schema provides a common interface for TypeScript validator libraries. Standard Schema Validator is a validator that uses it. This means that Standard Schema Validator can handle several validators, such as Zod, Valibot, and ArkType, with the same interface.
The code below really works!
Thanks @muningis!
New features
All changes
yarnby @EdamAme-x in https://github.com/honojs/hono/pull/3878toLowerCase()is unnecessary forreq.header()by @yusukebe in https://github.com/honojs/hono/pull/3880envtype by @yusukebe in https://github.com/honojs/hono/pull/3885c.json({})by @yusukebe in https://github.com/honojs/hono/pull/3873deno.lockby @yusukebe in https://github.com/honojs/hono/pull/3897New Contributors
Full Changelog: honojs/hono@v4.6.20...v4.7.0
v4.6.20Compare Source
What's Changed
npby @yusukebe in https://github.com/honojs/hono/pull/3874New Contributors
Full Changelog: honojs/hono@v4.6.19...v4.6.20
v4.6.19Compare Source
What's Changed
OnHandlerInterfaceby @sor4chi in https://github.com/honojs/hono/pull/3852envshould setctype correctly by @yusukebe in https://github.com/honojs/hono/pull/3856Full Changelog: honojs/hono@v4.6.18...v4.6.19
v4.6.18Compare Source
What's Changed
types.tsby @yusukebe in https://github.com/honojs/hono/pull/3836ParamKeysimply by @yusukebe in https://github.com/honojs/hono/pull/3837factory.createMiddleware()by @yusukebe in https://github.com/honojs/hono/pull/3849Full Changelog: honojs/hono@v4.6.17...v4.6.18
v4.6.17Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.6.16...v4.6.17
v4.6.16Compare Source
What's Changed
app.on(method,path[],middleware,handler)type by @yusukebe in https://github.com/honojs/hono/pull/3802Full Changelog: honojs/hono@v4.6.15...v4.6.16
v4.6.15Compare Source
c.json()etc. throwing type error when the status is contentless code, e.g., 204From this release, when
c.json(),c.text(), orc.html()returns content, specifying a contentless status code such as 204 will now throw a type error.At first glance, this seems like a breaking change but not. It is not possible to return a contentless response with
c.json()orc.text(). So, in that case, please usec.body().What's Changed
ResponseInitaccepts genericsStatusCodeforstatusby @yusukebe in https://github.com/honojs/hono/pull/3770COMPOSED_HANDLERby @yusukebe in https://github.com/honojs/hono/pull/3773New Contributors
Full Changelog: honojs/hono@v4.6.14...v4.6.15
v4.6.14Compare Source
What's Changed
Object.create(null)by @usualoma in https://github.com/honojs/hono/pull/3735charsetparameter from MIME type ofapplication/jsonby @SaekiTominaga in https://github.com/honojs/hono/pull/3743New Contributors
Full Changelog: honojs/hono@v4.6.13...v4.6.14
v4.6.13Compare Source
What's Changed
Array.prototype.at()to look at the end by @ryuapp in https://github.com/honojs/hono/pull/3703New Contributors
Full Changelog: honojs/hono@v4.6.12...v4.6.13
v4.6.12Compare Source
What's Changed
KBby @EdamAme-x in https://github.com/honojs/hono/pull/3696Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.