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: nodejs/undici
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: da0e823
Choose a base ref
...
head repository: nodejs/undici
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f9c9185
Choose a head ref
  • 6 commits
  • 12 files changed
  • 7 contributors

Commits on Aug 18, 2025

  1. fix: fix wrong stream canceled up after cloning (v6) (#4414)

    * Add failing test repro
    
    * fix: register correct stream with finalization registry
    
    * fix: node21
    
    * port changes
    
    * remove duplicate test
    
    * be defensive with finalization registry
    snyamathi authored Aug 18, 2025
    Configuration menu
    Copy the full SHA
    44c23e5 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2025

  1. fix: fix EnvHttpProxyAgent for the Node.js bundle (#4064) (#4432)

    * fix: fix EnvHttpProxyAgent for the Node.js bundle
    
    The Dispatcher needs some methods from lib/api for EnvHttpProxyAgent,
    otherwise it's incomplete.
    
    * fixup! fix: fix EnvHttpProxyAgent for the Node.js bundle
    
    (cherry picked from commit a217002)
    
    Co-authored-by: Joyee Cheung <[email protected]>
    github-actions[bot] and joyeecheung authored Aug 21, 2025
    Configuration menu
    Copy the full SHA
    4cb3974 View commit details
    Browse the repository at this point in the history
  2. feat(ProxyAgent): match Curl behavior in HTTP->HTTP Proxy connections (

    …#4180) (#4433)
    
    * feat(ProxyAgent): match Curl behavior in HTTP->HTTP Proxy connections (#4180)
    
    * feat(ProxyAgent): match Curl behaviour for http-http Proxy connections
    
    Curl does not send a CONNECT request for to a Proxy server, by default,
    for cleartext communications to an endpoint, via a cleartext connection
    to a Proxy. It permits forcing a CONNECT request to be sent via the
    --tunnelproxy parameter.
    
    This change modifies ProxyAgent's constructor to accept a `tunnelProxy`
    option, sends a CONNECT if either `tunnelProxy` is true, or either the
    Proxy or endpoint use a non-http: protocol.
    
    Disabling tunneling for HTTP->HTTP by default would be a breaking change, so
    currently, the tunneling behaviour requires an opt-out. This may change depending
    on feedback during code review.
    
    This adds a new test case which explicitly disables tunneling for an HTTP->HTTP
    connection, and asserts that no CONNECT message is sent to the server or proxy,
    and that the expected HTTP request is sent to the proxy.
    
    Closes #4083
    
    * Part 2
    
    This version tries to expose less sketchiness -- it's not particularly well organized yet, and
    I'm sure it could be cleaned up a lot.
    
    Instead of adding the "rawSocket" stuff to RequestOptions, there's a new wrapper ProxyClient added,
    which intercepts the CONNECT message and prevents it from being dispatched.
    
    Unfortunately the wrapper client isn't quite written in a way to manage all of the client-ness,
    so ProxyAgent is still responsible for updating the PATH of HTTP->HTTP Proxy requests to include
    the endpoint domain.
    
    It is messy though, admittedly.
    
    * remove rawSocket from Dispatcher type definition
    
    * Add some docs
    
    * rename to proxyTunnel to match CURL
    
    * Rename  to  in the docs, too
    
    * Try to clarify the docs a bit
    
    initially just wanted to fix a typo, but thought maybe the original explanation wasn't great.
    
    (cherry picked from commit 95fd9d3)
    
    * fix: test
    
    ---------
    
    Co-authored-by: ⭐caitp⭐ <[email protected]>
    metcoder95 and caitp authored Aug 21, 2025
    Configuration menu
    Copy the full SHA
    4a06ffe View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2025

  1. feat(ProxyAgent) improve Curl-y behavior in HTTP->HTTP Proxy connecti…

    …ons (#4180) (#4340) (#4445)
    
    * feat(ProxyAgent) improve Curl-y behavior in HTTP->HTTP Proxy connections (#4180) (#4340)
    
    * test: adjust v18 expectations
    metcoder95 authored Aug 22, 2025
    Configuration menu
    Copy the full SHA
    422e397 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2025

  1. feat: make UndiciErrors reliable to instanceof (#4472) (#4480)

    * feat: make UndiciErrors reliable to instanceof
    
    * also take MockNotMatchedError into account
    
    (cherry picked from commit 5f256af)
    Uzlopak authored Aug 27, 2025
    Configuration menu
    Copy the full SHA
    f670f2a View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2025

  1. Bumped v6.22.0

    Signed-off-by: Matteo Collina <[email protected]>
    mcollina committed Oct 3, 2025
    Configuration menu
    Copy the full SHA
    f9c9185 View commit details
    Browse the repository at this point in the history
Loading