Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: honojs/hono
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.13.16
Choose a base ref
...
head repository: honojs/hono
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.13.17
Choose a head ref
  • 18 commits
  • 35 files changed
  • 14 contributors

Commits on Nov 4, 2026

  1. fix(cookie): match the __Secure- and __Host- prefixes case-insensitiv…

    …ely (#5608)
    
    * fix(cookie): match the __Secure- and __Host- prefixes case-insensitively
    
    * chore: remove comments
    yusukebe authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    f98dcc9 View commit details
    Browse the repository at this point in the history
  2. fix(utils/url): do not match a query key across separators (#5607)

    * fix(utils/url): do not match a query key across separators
    
    * chore: remove comments
    yusukebe authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    846e952 View commit details
    Browse the repository at this point in the history
  3. fix(etag,pretty-json): cancel the discarded response body (#5606)

    * fix(etag,pretty-json): cancel the discarded response body
    
    * chore: remove comments
    yusukebe authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    a512ba4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c0fd46e View commit details
    Browse the repository at this point in the history
  5. fix(timing): honor an explicit precision of 0 in setMetric (#5363)

    setMetric used toFixed(precision || 1), so passing precision: 0 (whole millisecond output) was silently replaced with 1 decimal place. Switch to precision ?? 1 so an explicit 0 is respected while the default stays 1. This also flows through endTime and wrapTime, which forward precision.
    Abhishek-B-R authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    edae2bf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e44d0a5 View commit details
    Browse the repository at this point in the history
  7. fix(timing): escape double quotes and backslashes in Server-Timing de…

    …scriptions (#5478)
    
    * fix(timing): escape double quotes and backslashes in Server-Timing descriptions
    
    * style(timing): fix formatting per check:fix
    
    * refactor(timing): escape desc in one place
    
    * test(timing): close the escaping describe block after the merge
    
    ---------
    
    Co-authored-by: Yusuke Wada <[email protected]>
    MustafaKemal0146 and yusukebe authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    28e7498 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2b3f65a View commit details
    Browse the repository at this point in the history
  9. fix(etag): preserve commas within quoted entity tags (#5353)

    * fix(etag): preserve commas within quoted entity tags
    
    * refactor(etag): pick the quoted tags instead of splitting on commas
    
    * chore: remove a comment and a stray node_modules symlink
    
    ---------
    
    Co-authored-by: Yusuke Wada <[email protected]>
    xianjianlf2 and yusukebe authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    b3f1272 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    98b35af View commit details
    Browse the repository at this point in the history
  11. fix(cookie): match the __Secure- and __Host- prefixes case-insensitiv…

    …ely in CookieConstraint (#5611)
    
    * fix(cookie): match the __Secure- and __Host- prefixes case-insensitively in CookieConstraint
    
    * test: add descriptions to the @ts-expect-error directives
    yusukebe authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    456fe46 View commit details
    Browse the repository at this point in the history
  12. fix(jsx): add the CSP nonce to all scripts generated by ErrorBoundary (…

    …#5430)
    
    #4216 added `scriptNonce` support via `StreamingContext`, but two of the
    three inline scripts ErrorBoundary emits while streaming were left without
    the nonce:
    
    - the script that swaps in the fallback when a child rejects during streaming
    - the cleanup script emitted after all nested Suspense boundaries resolve
    
    Under a nonce-based CSP these scripts are blocked, so the fallback is never
    shown and the boundary markers are never removed.
    
    The existing "with StreamingContext" test was asserting the nonce-less
    cleanup script; it now expects the nonce, and a test for the error path is
    added.
    koreahghg authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    bcfd02b View commit details
    Browse the repository at this point in the history
  13. fix(ssg): do not reuse created directories across toSSG runs (#5381)

    `saveContentToFile` remembered the directories it had created in a
    module-level Set so that each one was only passed to `mkdir` once. That
    Set was never cleared, so it outlived the `toSSG` call that filled it.
    
    When `toSSG` runs again in the same process after the output was
    removed (a clean step, a rebuild, a test that writes to a fresh
    directory), every directory created by an earlier run is skipped and
    `writeFile` fails with ENOENT for nested routes such as `/about/team`.
    
    Keep the Set per run: `toSSG` creates one and passes it to
    `saveContentToFile`, which falls back to a fresh Set when called on its
    own.
    Dev-next-gen authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    7852e0a View commit details
    Browse the repository at this point in the history
  14. fix(aws-lambda): sanitize non-ASCII header values in API Gateway v2 e…

    …vents (#5483)
    
    EventV2Processor.getHeaders passed header values to Headers.set() as is,
    so a request carrying a non-ASCII header value (for example Cloudflare's
    cf-ipcity) was answered with 400 Invalid request. The v1, ALB and VPC
    Lattice processors already encode such values with sanitizeHeaderValue().
    Apply the same handling to v2 in both hono/aws-lambda and @hono/aws-lambda.
    
    Co-authored-by: Claude Sonnet 5.5 <[email protected]>
    furuchanchan and claude authored Nov 4, 2026
    Configuration menu
    Copy the full SHA
    8b7f9e9 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2026

  1. fix(jsx): escape element and object attribute values (#5512)

    * fix(jsx): escape element and object attribute values
    
    Render JSX nodes and other objects as escaped attribute text, including
    promised values and asynchronous toString results. Mark precompiled JSX
    templates so their child-content escaping is not trusted inside attributes.
    
    Keep raw() and html values explicitly trusted, and prevent callbacks from
    escaped nodes from propagating into the outer stream. Cover both runtimes
    and the Deno precompile transform.
    
    Co-authored-by: Taku Amano <[email protected]>
    
    * perf(jsx): use a set for boolean attribute lookup
    
    Use Set.has for boolean attribute membership without changing the accepted
    attribute names or their rendering.
    
    * fix(jsx): serialize boolean attributes in precompiled JSX
    
    Omit false boolean attributes and emit an empty value for true ones in
    jsxAttr, matching JSXNode. Preserve true/false text for non-boolean names.
    
    * feat(jsx): support declarative Shadow DOM boolean attributes
    
    Recognize shadowrootclonable, shadowrootdelegatesfocus, and
    shadowrootserializable as boolean attributes. Cover true and false values
    in both attribute serializers.
    
    Co-authored-by: Taku Amano <[email protected]>
    
    * fix(jsx): omit null style attributes
    
    Skip null style values before traversing the style object in both
    JSXNode and jsxAttr. Cover null and undefined omission.
    
    Co-authored-by: Taku Amano <[email protected]>
    
    * fix(jsx): validate function attributes in precompiled JSX
    
    Skip on-prefixed event handlers and ref callbacks in jsxAttr. Reject
    functions on other attributes with the same rule as JSXNode, including
    when the Deno precompile transform calls jsxAttr.
    
    Co-authored-by: Taku Amano <[email protected]>
    
    * refactor(jsx): share attribute serialization between JSXNode and jsxAttr
    
    Use attributeToBuffer for both render paths so attribute handling cannot
    drift between them. Keep the explicit string conversion required by the
    buffer type.
    
    Handle dangerouslySetInnerHTML separately when the value is an object
    with __html; other values follow the normal attribute serializer.
    
    * perf(jsx): add a string fast path to jsxAttr
    
    Escape string values directly in jsxAttr instead of going through
    attributeToBuffer. Strings are the common case in precompiled JSX, and
    the shared serializer made them about 50% slower on Deno.
    
    * fix(jsx): resolve function form actions in precompiled JSX
    
    Functions passed to action and formaction threw in jsxAttr, while the
    form, input and button intrinsic elements accept them when rendered
    through JSXNode. Resolve them in the same way: use the permalink when
    one is attached and omit the attribute otherwise.
    
    * fix(jsx): escape async render results used as attribute values
    
    An asynchronous JSXNode.toString() resolves to an HtmlEscapedString that
    contains markup. It was trusted as an attribute value, while the string
    from a synchronous render was escaped. Mark it in the same way as a
    precompiled template so that both are escaped.
    
    * refactor(jsx): rename JSX_TEMPLATE to RENDERED_JSX
    
    The mark is no longer specific to precompiled templates; asynchronous
    JSXNode render results carry it too. Rename the symbol and its helper
    to match. No behavior change.
    
    ---------
    
    Co-authored-by: Neil <[email protected]>
    usualoma and ndycode authored Nov 5, 2026
    Configuration menu
    Copy the full SHA
    6cbe361 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb754bd View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2026

  1. Configuration menu
    Copy the full SHA
    1534ffa View commit details
    Browse the repository at this point in the history
  2. 4.13.17

    yusukebe committed Nov 7, 2026
    Configuration menu
    Copy the full SHA
    61f7c59 View commit details
    Browse the repository at this point in the history
Loading