Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump hono from 4.6.20 to 4.7.0 #18294

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 7, 2025

Bumps hono from 4.6.20 to 4.7.0.

Release notes

Sourced from hono's releases.

v4.7.0

Release Notes

Hono v4.7.0 is now available!

This release introduces one helper and two middleware.

  • Proxy Helper
  • Language Middleware
  • JWK Auth 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.

app.all('/proxy/:path', (c) => {
  // Send unintended header values to the origin server
  return fetch(`http://${originServer}/${c.req.param('path')}`)
})

For example, fetch may send Accept-Encoding, causing the origin server to return a compressed response. Some runtimes automatically decode it, leading to a Content-Length mismatch 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.

import { Hono } from 'hono'
import { proxy } from 'hono/proxy'
app.get('/proxy/:path', (c) => {
return proxy(http://${originServer}/${c.req.param('path')})
})

You can also use it in more complex ways.

app.get('/proxy/:path', async (c) => {
  const res = await proxy(
    `http://${originServer}/${c.req.param('path')}`,
    {
      headers: {
        ...c.req.header(),
</tr></table> 

... (truncated)

Commits
  • 4203973 4.7.0
  • a8516db chore(runtime-tests): add deno.lock (#3897)
  • 3af17fd Merge pull request #3896 from honojs/next
  • 8fe1951 fix(client): correct inferring empty object c.json({}) (#3873)
  • 7ce0ddd feat(router): support greedy matches with subsequent static components. (#3888)
  • 438983b feat(etag): allow for custom hashing methods to be used to etag (#3832)
  • 6837649 feat(hono/jwk): JWK Auth Middleware (#3826)
  • 426cad6 feat(hono/context): add buffer returns (#3813)
  • fa92596 feat: add language detector middleware and helpers (#3787)
  • e4767af feat(factory): Allow HonoOptions<E> with factory (#3786)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies This PR involves changes to dependencies label Feb 7, 2025
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/hono-4.7.0 branch from 238a9a9 to 41b98cc Compare February 7, 2025 08:35
Bumps [hono](https://github.com/honojs/hono) from 4.6.20 to 4.7.0.
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](honojs/hono@v4.6.20...v4.7.0)

---
updated-dependencies:
- dependency-name: hono
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/hono-4.7.0 branch from 41b98cc to beb05ae Compare February 7, 2025 11:42
@TonyRL TonyRL merged commit 1618b57 into master Feb 7, 2025
44 of 45 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/hono-4.7.0 branch February 7, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto: allowed dependencies This PR involves changes to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant