chore(deps): bump hono from 4.13.17 to 4.13.20

DE
12h ago
+17-17

Bumps hono from 4.13.17 to 4.13.20.

Release notes

Sourced from hono's releases.

v4.13.20

What's Changed

  • fix(client): keep class instances in the init options as they are in honojs/hono#5650
  • fix(compress): send the compressed response headers for HEAD requests in honojs/hono#5651
  • fix(cookie): do not accept a lone double quote as a cookie value in honojs/hono#5652
  • fix(helper/websocket): do not depend on DOM-only types in honojs/hono#5653
  • fix(utils/types): keep JSONParsed cheap for non-recursive types in honojs/hono#5658
  • fix(jsx/dom): restore the useActionState changes removed by #5636 in honojs/hono#5656
  • fix(jsx): isolate the value of each async Provider in honojs/hono#5660
  • fix(utils/types): keep an optional property optional in JSONParsed in honojs/hono#5664
  • fix(aws-lambda,lambda-edge): keep a leading UTF-8 BOM in a text body in honojs/hono#5665

Full Changelog: https://github.com/honojs/hono/compare/v4.13.19...v4.13.20

v4.13.19

What's Changed

  • fix(jsx): render an async component that returns null, a boolean, or a number in honojs/hono#5594
  • fix(jsx/dom): align useActionState with React 19 in honojs/hono#5635
  • fix(jsx/dom): reset a form's pending state when its action rejects in honojs/hono#5636
  • fix(jsx/dom): keep an ErrorBoundary in sync when its parent re-renders in honojs/hono#5638
  • fix(jsx/dom): keep keyed components in order when they update with a reorder in honojs/hono#5637
  • fix(bun): pass errors thrown in WebSocket handlers to onError in honojs/hono#5620
  • fix(proxy): drop Transfer-Encoding and Keep-Alive from the headers option in honojs/hono#5640
  • fix(method-override): drop the body when overriding to GET or HEAD in honojs/hono#5641
  • fix(jsx/dom): restore attributes and effects when Suspense children suspend again in honojs/hono#5642
  • fix(combine): continue the chain when a Condition returns true in every() in honojs/hono#5392
  • docs: fix JSDoc parameter types and missing annotations in middleware and helpers in honojs/hono#5409
  • fix(jsx/dom): keep a falsy Suspense fallback in honojs/hono#5644
  • fix(lambda-edge): omit body in a 204 result in honojs/hono#5643
  • fix(utils/types): stop JSONParsed at a recursive JSON type in honojs/hono#5645
  • feat(secure-headers): add an overwrite option in honojs/hono#5634
  • feat(jwt): add a typ option to verify the token header in honojs/hono#5639

Full Changelog: https://github.com/honojs/hono/compare/v4.13.18...v4.13.19

v4.13.18

Security fixes

This release includes fixes for the following security issues:

validator() skips validation for requests whose Content-Type parameters are formatted differently

Affects: validator('json') and validator('form') in hono/validator. A Content-Type with whitespace before ;, a trailing ;, or an unusual parameter name was not recognized, so the validator saw an empty object while the handler could read all fields. This completes the fix for GHSA-4h7h-rv7c-7m2v. The validator now decides by the media type alone, as c.req.parseBody() does. GHSA-92p4-j3wq-jmqx

bodyLimit() keeps every transfer chunk of a request body in memory

Affects: bodyLimit() in hono/body-limit. A body sent in very small transfer chunks was retained as one object per chunk, so a request within the configured limit could exhaust memory. The body is now buffered in one array bounded by maxSize. GHSA-39q9-qp46-w8xg

... (truncated)

Commits
  • cd50668 4.13.20
  • 6575d5e chore(adapters): release @​hono/lambda-edge@​1.0.2
  • 4c28be6 chore(adapters): release @​hono/aws-lambda@​1.0.2
  • 64d4cd2 fix(aws-lambda,lambda-edge): keep a leading UTF-8 BOM in a text body (#5665)
  • 01b43fb fix(utils/types): keep an optional property optional in JSONParsed (#5664)
  • 24f5ada fix(jsx): isolate the value of each async Provider (#5660)
  • e86bdaf fix(jsx/dom): restore the useActionState changes removed by #5636 (#5656)
  • 75ff8e3 fix(utils/types): keep JSONParsed cheap for non-recursive types (#5658)
  • a8ae5b1 fix(helper/websocket): do not depend on DOM-only types (#5653)
  • fd7a330 fix(cookie): do not accept a lone double quote as a cookie value (#5652)
  • 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 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)

Summary by cubic

Updates hono from 4.13.17 to 4.13.20, a patch release with two security fixes and assorted bug fixes. validator('json') and validator('form') now validate requests correctly even when the Content-Type header is formatted unusually, and bodyLimit() no longer keeps every transfer chunk in memory.