chore(deps): update dependency hono to v4.12.3#27
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
f2b29f5 to
512f7e8
Compare
512f7e8 to
2611862
Compare
2611862 to
5f0ef16
Compare
e8e550b to
536c54a
Compare
89b892f to
0c28ded
Compare
0c28ded to
4756610
Compare
d11480b to
3e681b1
Compare
3e681b1 to
dd61c0f
Compare
dd61c0f to
dc3fd79
Compare
dc3fd79 to
96bf854
Compare
58238d0 to
5a2f0bc
Compare
5a2f0bc to
70fa3b3
Compare
70fa3b3 to
7a8ed15
Compare
7a8ed15 to
81ca07c
Compare
81ca07c to
2f990e8
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.10.6→4.12.3Release Notes
honojs/hono (hono)
v4.12.3Compare Source
What's Changed
Math.floorinstead of bitwise OR for safe timestamp by @EdamAme-x in #4754JwtVariablesforContextVariableMapby @yusukebe in #4764New Contributors
Full Changelog: honojs/hono@v4.12.2...v4.12.3
v4.12.2Compare Source
Security fix
Fixed incorrect handling of
X-Forwarded-Forin the AWS Lambda adapter behind ALB that could allow IP-based access control bypass. The detail: GHSA-xh87-mx6m-69f3Thanks @EdamAme-x
What's Changed
Full Changelog: honojs/hono@v4.12.1...v4.12.2
v4.12.1Compare Source
What's Changed
ApplyGlobalResponsefromhono/clientby @sushichan044 in #4743Full Changelog: honojs/hono@v4.12.0...v4.12.1
v4.12.0Compare Source
Release Notes
Hono v4.12.0 is now available!
This release includes new features for the Hono client, middleware improvements, adapter enhancements, and significant performance improvements to the router and context.
$pathfor Hono ClientThe Hono client now has a
$path()method that returns the path string instead of a full URL. This is useful when you need just the path portion for routing or key-based operations:Unlike
$url()which returns aURLobject,$path()returns a plain path string, making it convenient for use with routers or as cache keys.Thanks @ShaMan123!
ApplyGlobalResponseType Helper for RPC ClientThe new
ApplyGlobalResponsetype helper allows you to add global error response types to all routes in the RPC client. This is useful for typing common error responses fromapp.onError()or global middlewares:Thanks @mohankumarelec!
SSG Redirect Plugin
A new
redirectPluginfor SSG generates static HTML redirect pages for HTTP redirect responses (301, 302, 303, 307, 308):The generated redirect pages include a
<meta http-equiv="refresh">tag, a canonical link, and arobots noindexmeta tag.Thanks @3w36zj6!
onAuthSuccessCallback for Basic AuthThe Basic Auth middleware now supports an
onAuthSuccesscallback that is invoked after successful authentication. This allows you to set context variables or perform logging without re-parsing the Authorization header:The callback also works with async functions and the
verifyUsermode.Thanks @AprilNEA!
getConnInfofor AWS Lambda, Cloudflare Pages, and NetlifygetConnInfo()is now available for three additional adapters:Thanks @rokasta12!
alwaysRedirectOption for Trailing Slash MiddlewareThe trailing slash middleware now supports an
alwaysRedirectoption. When enabled, the middleware redirects before executing handlers, which fixes the issue where trailing slash handling doesn't work with wildcard routes:Progressive Locale Code Truncation
The
normalizeLanguagefunction in the language middleware now supports RFC 4647 Lookup-based progressive truncation. Locale codes likeja-JPwill matchjawhen only the base language is insupportedLanguages:Thanks @sorafujitani!
exportsField forExecutionContextThe
ExecutionContexttype now includes anexportsproperty for Cloudflare Workers. You can use module augmentation to type it with Wrangler's generated types:Thanks @toreis-up!
Performance Improvements
TrieRouter 1.5x ~ 2.0x Faster
The TrieRouter has been significantly optimized with reduced spread syntax usage, O(1)
hasChildrenchecks, lazy regular expression generation, and removal of redundant processes:GET /userGET /user/lookup/username/heyGET /static/index.htmlThanks @EdamAme-x!
Fast Path for
c.json()c.json()now has the same fast path optimization asc.text(). When no custom status, headers, or finalized state exists, the Response is created directly without allocating aHeadersobject:Benchmark results:
Thanks @mgcrea!
New features
ApplyGlobalResponsetype helper for RPC Client #4556alwaysRedirectoption to support wildcard routes #4658Performance
createResponseInstancefor new Response #4733All changes
ApplyGlobalResponsetype helper for RPC Client by @mohankumarelec in #4556alwaysRedirectoption to support wildcard routes by @yusukebe in #4658createResponseInstancefor new Response by @yusukebe in #4733New Contributors
Full Changelog: honojs/hono@v4.11.10...v4.12.0
v4.11.10Compare Source
What's Changed
91def7c)Full Changelog: honojs/hono@v4.11.9...v4.11.10
v4.11.9Compare Source
v4.11.8Compare Source
What's Changed
New Contributors
Full Changelog: honojs/hono@v4.11.7...v4.11.8
v4.11.7Compare Source
Security Release
This release includes security fixes for multiple vulnerabilities in Hono and related middleware. We recommend upgrading if you are using any of the affected components.
Components
IP Restriction Middleware
Fixed an IPv4 address validation bypass that could allow IP-based access control to be bypassed under certain configurations.
Cache Middleware
Fixed an issue where responses marked with
Cache-Control: privateorno-storecould be cached, potentially leading to information disclosure on some runtimes.Serve Static Middleware (Cloudflare Workers adapter)
Fixed an issue that could allow unintended access to internal asset keys when serving static files with user-controlled paths.
hono/jsx
ErrorBoundaryFixed a reflected Cross-Site Scripting (XSS) issue in the
ErrorBoundarycomponent that could occur when untrusted strings were rendered without proper escaping.Recommendation
Users are encouraged to upgrade to this release, especially if they:
ErrorBoundarycomponentsSecurity Advisories & CVEs
IP Restriction Middleware – IPv4 address validation bypass
Cache Middleware ignores
Cache-Control: privateServe Static Middleware (Cloudflare Workers adapter) – Arbitrary key read
hono/jsx
ErrorBoundary– Cross-Site Scripting (XSS)Full Changelog: honojs/hono@v4.11.6...v4.11.7
v4.11.6Compare Source
What's Changed
unique symbolfor more accurate typing. by @usualoma in #4651\rand\r\nline endings in writeSSE by @AprilNEA in #4644New Contributors
Full Changelog: honojs/hono@v4.11.5...v4.11.6
v4.11.5Compare Source
What's Changed
AlgorithmTypesby @yusukebe in #4642New Contributors
Full Changelog: honojs/hono@v4.11.4...v4.11.5
v4.11.4Compare Source
Security
Fixed a JWT algorithm confusion issue in the JWT and JWK/JWKS middleware.
Both middlewares now require an explicit algorithm configuration to prevent the verification algorithm from being influenced by untrusted JWT header values.
If you are using the JWT or JWK/JWKS middleware, please update to the latest version as soon as possible.
JWT middleware
JWK/JWKS middleware
For more details, see the Security Advisory.
What's Changed
@hono/eslint-configand enable curly rule by @yusukebe in #4620algoption for JWT middleware by @yusukebe in #4624New Contributors
Full Changelog: honojs/hono@v4.11.3...v4.11.4
v4.11.3Compare Source
What's Changed
Full Changelog: honojs/hono@v4.11.2...v4.11.3
v4.11.2Compare Source
What's Changed
HonoURLtypes by @yusukebe in #4592SimplifyinToSchemaby @yusukebe in #4597MergeMiddlewareResponsetype by @yusukebe in #4598New Contributors
Full Changelog: honojs/hono@v4.11.1...v4.11.2
v4.11.1Compare Source
What's Changed
Full Changelog: honojs/hono@v4.11.0...v4.11.1
v4.11.0Compare Source
Release Notes
Hono v4.11.0 is now available!
This release includes new features for the Hono client, middleware improvements, and an important type system fix.
Type System Fix for Middleware
We've fixed a bug in the type system for middleware. Previously,
appdid not have the correct type with pathless handlers:This has now been fixed.
Thanks @kosei28!
Typed URL for Hono Client
You can now pass the base URL as the second type parameter to
hcto get more precise URL types:This is useful when you want to use the URL as a type-safe key for libraries like SWR.
Thanks @miyaji255!
Custom NotFoundResponse Type
You can now customize the
NotFoundResponsetype using module augmentation. This allowsc.notFound()to return a typed response:Now the client can correctly infer the 404 response type.
Thanks @miyaji255!
tryGetContext Helper
The new
tryGetContext()helper in the Context Storage middleware returnsundefinedinstead of throwing an error when the context is not available:Thanks @AyushCoder9!
Custom Query Serializer
You can now customize how query parameters are serialized using the
buildSearchParamsoption:Thanks @bolasblack!
New features
All changes
New Contributors
Full Changelog: honojs/hono@v4.10.8...v4.11.0
v4.10.8Compare Source
What's Changed
IsAllowedOriginHandlerby @baseballyama in #4558IsAllowedSecFetchSiteHandlerby @baseballyama in #4559New Contributors
Full Changelog: honojs/hono@v4.10.7...v4.10.8
v4.10.7Compare Source
What's Changed
NotSpecifiedandStrictVerifyOptionsby @ysknsid25 in #4525bun.lockby @yusukebe in #4548New Contributors
Full Changelog: honojs/hono@v4.10.6...v4.10.7
Configuration
📅 Schedule: Branch creation - "on the first day of the month" (UTC), 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.