Skip to content

chore(deps): update dependency hono to v4.11.9#16

Open
renovate[bot] wants to merge 1 commit intodevfrom
renovate/hono-4.x-lockfile
Open

chore(deps): update dependency hono to v4.11.9#16
renovate[bot] wants to merge 1 commit intodevfrom
renovate/hono-4.x-lockfile

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 20, 2024

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
hono (source) 4.6.104.11.9 age confidence

Release Notes

honojs/hono (hono)

v4.11.9

Compare Source

v4.11.8

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.11.7...v4.11.8

v4.11.7

Compare 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: private or no-store could 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 ErrorBoundary

Fixed a reflected Cross-Site Scripting (XSS) issue in the ErrorBoundary component that could occur when untrusted strings were rendered without proper escaping.

Recommendation

Users are encouraged to upgrade to this release, especially if they:

  • Use IP Restriction Middleware
  • Use Cache Middleware on Deno, Bun, or Node.js
  • Use Serve Static Middleware with user-controlled paths on Cloudflare Workers
  • Render untrusted data inside ErrorBoundary components
Security Advisories & CVEs

Full Changelog: honojs/hono@v4.11.6...v4.11.7

v4.11.6

Compare Source

What's Changed
New Contributors

Full Changelog: honojs/hono@v4.11.5...v4.11.6

v4.11.5

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.11.4...v4.11.5

v4.11.4

Compare 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
import { jwt } from 'hono/jwt'

app.use(
  '/auth/*',
  jwt({
    secret: 'it-is-very-secret',
    alg: 'HS256', // required
  })
)
JWK/JWKS middleware
import { jwk } from 'hono/jwk'

app.use(
  '/auth/*',
  jwk({
    jwks_uri: 'https://example.com/.well-known/jwks.json',
    alg: ['RS256'], // required (asymmetric algorithms only)
  })
)

For more details, see the Security Advisory.

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.11.3...v4.11.4

v4.11.3

Compare Source

What's Changed

  • fix(types): fix middleware union type merging in MergeMiddlewareResponse by @​yusukebe in #​4602

Full Changelog: honojs/hono@v4.11.2...v4.11.3

v4.11.2

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.11.1...v4.11.2

v4.11.1

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.11.0...v4.11.1

v4.11.0

Compare 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, app did not have the correct type with pathless handlers:

const app = new Hono()
  .use(async (c, next) => {
    await next()
  })
  .get('/a', async (c, next) => {
    await next()
  })
  .get((c) => {
    return c.text('Hello')
  })

// app's type was incorrect

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 hc to get more precise URL types:

const client = hc<typeof app, 'http://localhost:8787'>(
  'http://localhost:8787/'
)

const url = client.api.posts.$url()
// url is TypedURL with precise type information
// including protocol, host, and path

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 NotFoundResponse type using module augmentation. This allows c.notFound() to return a typed response:

import { Hono, TypedResponse } from 'hono'

declare module 'hono' {
  interface NotFoundResponse
    extends Response,
      TypedResponse<{ error: string }, 404, 'json'> {}
}

const app = new Hono()
  .get('/posts/:id', async (c) => {
    const post = await getPost(c.req.param('id'))
    if (!post) {
      return c.notFound()
    }
    return c.json({ post }, 200)
  })
  .notFound((c) => c.json({ error: 'not found' }, 404))

Now the client can correctly infer the 404 response type.

Thanks @​miyaji255!

tryGetContext Helper

The new tryGetContext() helper in the Context Storage middleware returns undefined instead of throwing an error when the context is not available:

import { tryGetContext } from 'hono/context-storage'

const context = tryGetContext<Env>()
if (context) {
  // Context is available
  console.log(context.var.message)
}

Thanks @​AyushCoder9!

Custom Query Serializer

You can now customize how query parameters are serialized using the buildSearchParams option:

const client = hc<AppType>('http://localhost', {
  buildSearchParams: (query) => {
    const searchParams = new URLSearchParams()
    for (const [k, v] of Object.entries(query)) {
      if (v === undefined) continue
      if (Array.isArray(v)) {
        v.forEach((item) => searchParams.append(`${k}[]`, item))
      } else {
        searchParams.set(k, v)
      }
    }
    return searchParams
  },
})

Thanks @​bolasblack!

New features

  • feat(types): make Hono client's $url return the exact URL type #​4502
  • feat(types): enhance NotFoundHandler to support custom NotFoundResponse type #​4518
  • feat(timing): add wrapTime to simplify usage #​4519
  • feat(pretty-json): support force option #​4531
  • feat(client): add buildSearchParams option to customize query serialization #​4535
  • feat(context-storage): add optional tryGetContext helper #​4539
  • feat(secure-headers): add CSP report-to and report-uri directive support #​4555
  • fix(types): replace schema-based path tracking with CurrentPath parameter #​4552

All changes

New Contributors

Full Changelog: honojs/hono@v4.10.8...v4.11.0

v4.10.8

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.10.7...v4.10.8

v4.10.7

Compare Source

What's Changed
New Contributors

Full Changelog: honojs/hono@v4.10.6...v4.10.7

v4.10.6

Compare Source

Deperecated
bearer-auth options

The following options are deprecated and will be removed in a future version:

  • noAuthenticationHeaderMessage => use noAuthenticationHeader.message
  • invalidAuthenticationHeaderMessage => use invalidAuthenticationHeader.message
  • invalidTokenMessage => use invalidToken.message
What's Changed
New Contributors

Full Changelog: honojs/hono@v4.10.5...v4.10.6

v4.10.5

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.10.4...v4.10.5

v4.10.4

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.10.3...v4.10.4

v4.10.3

Compare Source

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

New Contributors

Full Changelog: honojs/hono@v4.10.2...v4.10.3

v4.10.2

Compare Source

v4.10.1

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.10.0...v4.10.1

v4.10.0

Compare Source

Release Notes

Hono v4.10.0 is now available!

This release brings improved TypeScript support and new utilities.

The main highlight is the enhanced middleware type definitions that solve a long-standing issue with type safety for RPC clients.

Middleware Type Improvements

Imagine the following app:

import { Hono } from 'hono'

const app = new Hono()

const routes = app.get(
  '/',
  (c) => {
    return c.json({ errorMessage: 'Error!' }, 500)
  },
  (c) => {
    return c.json({ message: 'Success!' }, 200)
  }
)

The client with RPC:

import { hc } from 'hono/client'

const client = hc<typeof routes>('/')

const res = await client.index.$get()

if (res.status === 500) {
}

if (res.status === 200) {
}

Previously, it couldn't infer the responses from middleware, so a type error was thrown.

CleanShot 2025-10-17 at 06 51 48@​2x

Now the responses are correctly typed.

CleanShot 2025-10-17 at 06 54 13@​2x

This was a long-standing issue and we were thinking it was super difficult to resolve it. But now come true.

Thank you for the great work @​slawekkolodziej!

cloneRawRequest Utility

The new cloneRawRequest utility allows you to clone the raw Request object after it has been consumed by validators or middleware.

import { cloneRawRequest } from 'hono/request'

app.post('/api', async (c) => {
  const body = await c.req.json()

  // Clone the consumed request
  const clonedRequest = cloneRawRequest(c.req)
  await externalLibrary.process(clonedRequest)
})

Thanks @​kamaal111!

New features

  • feat(types): passing middleware types #​4393
  • feat(ssg): add default plugin that defines the recommended behavior #​4394
  • feat(request): add cloneRawRequest utility for request cloning #​4382

All changes

New Contributors

Full Changelog: honojs/hono@v4.9.12...v4.10.0

v4.9.12

Compare Source

What's Changed

  • refactor: internal structure of PreparedRegExpRouter for optimization and added tests by @​usualoma in #​4456
  • refactor: use protected methods instead of computed properties to allow tree shaking by @​usualoma in #​4458

Full Changelog: honojs/hono@v4.9.11...v4.9.12

v4.9.11

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.9.10...v4.9.11

v4.9.10

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.9.9...v4.9.10

v4.9.9

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.9.8...v4.9.9

v4.9.8

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.9.7...v4.9.8

v4.9.7

Compare Source

Security

  • Fixed an issue in the bodyLimit middleware where the body size limit could be bypassed when both Content-Length and Transfer-Encoding headers were present. If you are using this middleware, please update immediately. Security Advisory

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.9.6...v4.9.7

v4.9.6

Compare Source

Security

Fixed a bug in URL path parsing (getPath) that could cause path confusion under malformed requests.

If you rely on reverse proxies (e.g. Nginx) for ACLs or restrict access to endpoints like /admin, please update immediately.

See advisory for details: GHSA-9hp6-4448-45g2

What's Changed

Full Changelog: honojs/hono@v4.9.5...v4.9.6

v4.9.5

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.9.4...v4.9.5

v4.9.4

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.9.3...v4.9.4

v4.9.3

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.9.2...v4.9.3

v4.9.2

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.9.1...v4.9.2

v4.9.1

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.9.0...v4.9.1

v4.9.0

Compare Source

Release Notes

Hono v4.9.0 is now available!

This release introduces several enhancements and utilities.

The main highlight is the new parseResponse utility that makes it easier to work with RPC client responses.

parseResponse Utility

The new parseResponse utility provides a convenient way to parse responses from Hono RPC clients (hc). It automatically handles different response formats and throws structured errors for failed requests.

import { parseResponse, DetailedError } from 'hono/client'

// result contains the parsed response body (automatically parsed based on Content-Type)
const result = await parseResponse(client.hello.$get()).catch(
  // parseResponse automatically throws an error if response is not ok
  (e: DetailedError) => {
    console.error(e)
  }
)

This makes working with RPC client responses much more straightforward and type-safe.

Thanks @​NamesMT!

New features

  • feat(bun): allow importing upgradeWebSocket and websocket directly #​4242
  • feat(aws-lambda): specify content-type as binary #​4250
  • feat(jwt): add validation for the issuer (iss) claim #​4253
  • feat(jwk): add headerName to JWK middleware #​4279
  • feat(cookie): add generateCookie and generateSignedCookie helpers #​4285
  • feat(serve-static): use join to correct path resolution #​4291
  • feat(jwt): expose utility function verifyWithJwks for external use #​4302
  • feat: add parseResponse util to smartly parse hc's Response #​4314
  • feat(ssg): mark old hook options as deprecated #​4331

All changes

New Contributors

Full Changelog: honojs/hono@v4.8.12...v4.9.0

v4.8.12

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.8.11...v4.8.12

v4.8.11

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.8.10...v4.8.11

v4.8.10

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.8.9...v4.8.10

v4.8.9

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.8.8...v4.8.9

v4.8.8

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.8.7...v4.8.8

v4.8.7

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.8.6...v4.8.7

v4.8.6

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.8.5...v4.8.6

v4.8.5

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.8.4...v4.8.5

v4.8.4

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.8.3...v4.8.4

v4.8.3

Compare Source

What's Changed

New Contributors

Full Changelog: honojs/hono@v4.8.2...v4.8.3

[v4.8.2](https://redirect.github.com/

@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.11 fix(deps): update dependency hono to v4.6.12 Nov 25, 2024
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.12 fix(deps): update dependency hono to v4.6.13 Dec 6, 2024
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.13 fix(deps): update dependency hono to v4.6.14 Dec 14, 2024
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.14 fix(deps): update dependency hono to v4.6.15 Dec 28, 2024
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.15 fix(deps): update dependency hono to v4.6.16 Jan 5, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from ab51935 to 4e9ac52 Compare January 19, 2025 09:40
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.16 fix(deps): update dependency hono to v4.6.17 Jan 19, 2025
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.17 fix(deps): update dependency hono to v4.6.18 Jan 23, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch 2 times, most recently from 8e663e0 to f114564 Compare January 26, 2025 13:00
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.18 fix(deps): update dependency hono to v4.6.19 Jan 26, 2025
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.19 fix(deps): update dependency hono to v4.6.20 Jan 31, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from f114564 to c55c68c Compare January 31, 2025 09:24
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.6.20 fix(deps): update dependency hono to v4.7.0 Feb 7, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from c55c68c to eb2e868 Compare February 7, 2025 09:14
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.7.0 fix(deps): update dependency hono to v4.7.1 Feb 13, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from eb2e868 to 5917d73 Compare February 13, 2025 11:33
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.7.1 fix(deps): update dependency hono to v4.7.2 Feb 18, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 5917d73 to 3a7b117 Compare February 18, 2025 21:35
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch 2 times, most recently from 457ec6f to a00147d Compare March 5, 2025 01:33
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.7.2 fix(deps): update dependency hono to v4.7.3 Mar 5, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from a00147d to 6382c3f Compare March 5, 2025 06:39
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.7.3 fix(deps): update dependency hono to v4.7.4 Mar 5, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 6382c3f to 4c0dfbf Compare March 20, 2025 07:31
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.7.4 fix(deps): update dependency hono to v4.7.5 Mar 20, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 4c0dfbf to 424e813 Compare April 8, 2025 11:16
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.7.5 fix(deps): update dependency hono to v4.7.6 Apr 8, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 424e813 to 6867534 Compare April 16, 2025 02:41
@renovate renovate bot changed the title fix(deps): update dependency hono to v4.7.6 fix(deps): update dependency hono to v4.7.7 Apr 16, 2025
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.10.4 chore(deps): update dependency hono to v4.10.5 Nov 11, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 41228d8 to 77d7479 Compare November 14, 2025 16:55
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.10.5 chore(deps): update dependency hono to v4.10.6 Nov 14, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 77d7479 to e9827d0 Compare November 26, 2025 12:53
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.10.6 chore(deps): update dependency hono to v4.10.7 Nov 26, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from e9827d0 to 69a9696 Compare December 9, 2025 10:14
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.10.7 chore(deps): update dependency hono to v4.10.8 Dec 9, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 69a9696 to 5610c59 Compare December 13, 2025 09:40
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.10.8 chore(deps): update dependency hono to v4.11.0 Dec 13, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 5610c59 to 8eebe69 Compare December 15, 2025 01:09
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.11.0 chore(deps): update dependency hono to v4.11.1 Dec 15, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 8eebe69 to 7f1cdcf Compare December 25, 2025 13:59
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.11.1 chore(deps): update dependency hono to v4.11.2 Dec 25, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 7f1cdcf to db5349e Compare December 26, 2025 10:05
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.11.2 chore(deps): update dependency hono to v4.11.3 Dec 26, 2025
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch 2 times, most recently from ba918b5 to 9d75021 Compare January 13, 2026 05:03
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.11.3 chore(deps): update dependency hono to v4.11.4 Jan 13, 2026
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch 2 times, most recently from 6b147f6 to cad3ea0 Compare January 22, 2026 02:03
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.11.4 chore(deps): update dependency hono to v4.11.5 Jan 22, 2026
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from cad3ea0 to 5b086ce Compare January 26, 2026 16:55
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.11.5 chore(deps): update dependency hono to v4.11.6 Jan 26, 2026
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 5b086ce to 9169836 Compare January 27, 2026 14:51
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.11.6 chore(deps): update dependency hono to v4.11.7 Jan 27, 2026
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 9169836 to 9327ef1 Compare February 6, 2026 09:58
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.11.7 chore(deps): update dependency hono to v4.11.8 Feb 6, 2026
@renovate renovate bot force-pushed the renovate/hono-4.x-lockfile branch from 9327ef1 to 174b9a4 Compare February 8, 2026 16:46
@renovate renovate bot changed the title chore(deps): update dependency hono to v4.11.8 chore(deps): update dependency hono to v4.11.9 Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants