-
chore(deps): bump hono from 4.9.7 to 4.10.3 in /docs/_scripts/js_translation/codeblocks (#6339)
发布于
2025-11-04 21:52:15 +00:00 | 653 次提交 在此版本后已推送到 mainBumps hono from 4.9.7 to 4.10.3.
Release notes
Sourced from hono's releases.
v4.10.3
Securiy Fix
A security issue in the CORS middleware has been fixed. In some cases, a request header could affect the Vary response header. Please update to the latest version if you are using the CORS middleware.
What's Changed
- fix(aws-lambda): serve microsoft office files as binary in lambda
handler by
@matthiasfeistin honojs/hono#4469 - fix(request-id): validation accepts
=by@ryuappin honojs/hono#4478 - refactor(jwt): reduce the size of the code generated by minification
by
@usualomain honojs/hono#4480
New Contributors
@matthiasfeistmade their first contribution in honojs/hono#4469
Full Changelog: https://github.com/honojs/hono/compare/v4.10.2...v4.10.3
v4.10.2
Security hardening improvement
If you are using JWT middleware, please read the following and consider applying the configuration.
Improper Authorization in Hono (JWT Audience Validation)
Hono’s JWT authentication middleware did not validate the aud (Audience) claim by default. As a result, applications using the middleware without an explicit audience check could accept tokens intended for other audiences, leading to potential cross-service access (token mix-up).
The issue is addressed by adding a new
verification.audconfiguration option to allow RFC 7519–compliant audience validation. This change is classified as a security hardening improvement, but the lack of validation can still be considered a vulnerability in deployments that rely on default JWT verification.Recommended secure configuration
You can enable RFC 7519–compliant audience validation using the new
verification.audoption:import { Hono } from 'hono' import { jwt } from 'hono/jwt'const app = new Hono()
app.use(
'/api/*',
jwt({
secret: 'my-secret',
verification: {
// Require this API to only accept tokens with aud = 'service-a'
aud: 'service-a',
},
})
)
What's Changed
- tests: Fix test case of handlers without a path by
@IAmSSHin honojs/hono#4472
... (truncated)
Commits
fcefd504.10.395ae4d3refactor(jwt): reduce the size of the code generated by minification (#4480)d9b8b4bMerge commit from fork5216117fix(request-id): validation accepts=(#4478)253ec28fix(aws-lambda): serve microsoft office files as binary in lambda handler (#4...0c6455d4.10.245ba3bfMerge commit from fork4cbad8btests: Fix test case of handlers without a path (#4472)db764c24.10.18774bf9fix(types): cannot.usenon-return mw fromcreateMiddleware(#4465)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits
that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after
your CI passes on it@dependabot cancel mergewill cancel a previously requested merge
and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all
of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
Security Alerts
page.
Signed-off-by: dependabot[bot] support@github.com
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>下载附件
- fix(aws-lambda): serve microsoft office files as binary in lambda
handler by