Packages

undici

8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed

Your version

7.0.0

major27 Nov 2024Where it was published

7.30.2 is the newest release of 7.x.

In short

4 breaking1 removed25 new7 faster82 fixed52 changed86 internal

  • Breaking

    Upgrade llhttp to 9.2.0

  • Breaking

    Drop interceptors

  • Breaking

    Drop throwOnError

  • Breaking

    deps: Bump concurrently from 8.2.2 to 9.0.0 in /benchmarks (node < 18 unsupported)

  • Removed

    Drop node v18

Security

28 advisories affect 7.0.0; 7.30.1 fixes them

23 more

Release note

What's Changed

  • fetch: Fix content-encoding order

  • Add regression test for broken body

  • Post request signal

  • Revert "fix: post request signal (#3354)"

  • websocket: Don't use pooled buffer in mask pool

  • Consider bytes read when dumping

  • Use explicit flag for when use has interacted with stream

  • Refactor example documentation structure and add CacheableLookup example

  • Ensure onConnect is always called

  • Refactor responseHeader to responseHeaders

  • Don't override user defined MaxListeners

  • Forward dispatch return value

  • Throw on retry when payload is consume by downstream

  • Remove file

  • Breaking

    Upgrade llhttp to 9.2.0

  • websocket: Reduce memory usage

  • Implement BodyReadable.bytes

  • websocket: Avoid using Buffer.byteLength

  • Separate whatwg websocket logic from rfc 6455

  • websocket: Add fast-path for string input

  • Add generic type for opaque object

  • interceptors: Move throwOnError to interceptor

  • Breaking

    Drop interceptors

  • Don't call onConnect automatically

  • In CITGM, skip tests that are flaky there

  • Fix signature of RetryHandler

  • Fix fetch duplex docs

  • Restore externalized Node.js dep compatibility

  • Cast falsy servername to null to avoid falsy inequality

  • Add backport action

  • Increased memory in finalization first appearing in v6.16.0

  • Breaking

    Drop throwOnError

  • types: Allow non strict HTTPMethod

  • Remove core isErrored and isReadable

  • Use bodyUnusable to check if body is unusable

  • non-recursive implementation of euclidian gcd in balanced pool

  • Do validation first before actual business logic, like super()

  • Use FinalizationRegistry for cloned response body

  • Use isIPv6 for checking if hostname is isIPv6

  • stripURLForReferrer jsdoc in fetch logic

  • Remove kInterceptors in ProxyAgent

  • Fix codesmells in retry-handler

  • Add autocompletable header types

  • Add missing kOriginalDispatch Symbol in mock-logic

  • Fix jsdoc in cookies/parse.js

  • Remove unnecessary parameters in USVString calls

  • Add jsdoc in tree.js, avoiding codesmells

  • Set isLowerCase param on all calls of HeadersList.append

  • Instantiation of ResponseError, pass headers and data correctly

  • meta: Move nightly comment body to issue body

  • types: Add Autocomplete utility type

  • Instantiation of SecureProxyConnectionError should pass options to parent class

  • Workflow commit user

  • Only create wasm buffer if requested

  • types: MockAgent accepts ProxyAgent, EnvHttpProxyAgent and RetryAgent for agent option

  • Stricter Headers brand checks in cookies

  • Update WPT

  • setEncoding should not throw on body #1125

  • websocket: Set websocket readyState on fail

  • Update WPT

  • Reduce memory usage in client-h1

  • Refactor fast timers, fix UND_ERR_CONNECT_TIMEOUT on event loop blocking

  • Remove third party everything support in fetch

  • Remove double validation in webidl

  • Update WPT

  • Populate defaultValues in webidl dict. converter when passing null or undefined

  • Change webidl.util.Type return to an enum value

  • Set default argument values to undefined instead of {}

  • Update WPT

  • Remove unused symbol

  • Fix formdata arg validation

  • Remove patched DOM types

  • Run asserts first if possible

  • Add jsdoc and do minor changes in utils.js

  • Update WPT

  • Update WPT

  • Jsdoc and minor optimizations in client-h1.js

  • Handle websocket closed correctly

  • Extract noop everywhere

  • jsdoc: lib/api/readable.js, fix some types

  • Use fasttimers for all connection timeouts

  • Breaking

    deps: Bump concurrently from 8.2.2 to 9.0.0 in /benchmarks (node < 18 unsupported)

  • Update WPT

  • jsdoc: Improve typing of deepClone

  • Update WPT

  • util: Rename validateHandler to assertRequestHandler, minor changes in util.js

  • mock: Remove Error.captureStackTrace in MockNotMatchedError

  • DRY up lib/core/diagnostics.js

  • Husky deprecation warning

  • Update WPT

  • diagnostics-channel: Use not deprecated subscribe fn

  • Update WPT

  • fetch: Make fullyReadBody sync

  • jsdoc: Add jsdoc to lib/web/fetch/constants.js

  • fetch: pullAlgorithm passes the async resume function through

  • Update WPT

  • Update WPT

  • fetch: Avoid async function in mainFetch to generate response

  • Update WPT

  • Append crlf to formdata body

  • Fire close on failed WebSocket connection

  • Fire close on failed WebSocket connection

  • Handle body errors

  • Make cloned request inherit dispatcher

  • Remove symbols from web specs

  • Cleanup web symbol removal

  • Implement WebSocketStream

  • Export WebSocketStream, add docs and types

  • Add DNS interceptor

  • Prefer fail over close the websocket connection in error cases

  • Update WPT

  • mock: Fix mocking of Uint8Array and ArrayBuffers as provided mock-responses

  • ws: Move implementation agnostic onFail logic to shared function

  • Update WPT

  • Add option ignoreTrailingSlash to MockAgent and .intercept()

  • Ignore leading and trailing crlfs in formdata body

  • jsdoc: Adds some jsdoc to fetch headers implementation, minor changes

  • Check maxHeadersSize on client instantiation and not on Parser instantion

  • Replace instanceof in brand checks with isPrototypeOf

  • Restructure determineRequestsReferrer to match better spec

  • Set ws readyState if closed before connection could be established

  • types: Fix return type of WebidlUtil.Type

  • fetch: Refactor referrer policy util functions

  • PoolBase kClose and kDestroy should await and not return the Promise

  • data-url set extractValue of collectAnHTTPQuotedString by default to false

  • Faster brand check

  • web: Mark as uncloneable when possible

  • http: extract listeners from client-h1

  • http2: Extract listenHandlers and one bugfix

  • Http caching

  • types: Add missing cache prop to RequestInit

  • Follow up

  • #3736: Leaked error event on response body

  • Unsafe methods not causing cache purge

  • Fix filename* parsing

  • Fix http2 test

  • Add unsafe-url referrerPolicy test

  • Dns interceptor ip ttl

  • Add node v23 workflow

  • Dns interceptor affinity

  • Fix aborting Streams

  • Add tests from cookie package

  • http2 queueing

  • Use resolved ports in dns interceptor

  • Cache

  • Assume blocking unless HEAD

  • Handle Headers in RedirectHandler

  • Skip debuglog tests

  • h2: Do not emit data after goaway

  • Fix redirect interceptor with FormData body

  • Handle undici Headers and Maps in redirect-handler

  • Handle undefined deref() of WeakRef(socket)

  • Range end is zero-indexed

  • lib: More cache fixes

  • Cache fixes

  • Headers webidl errors

  • Fix goaway

  • Update WPT

  • Memory store

  • lib: Add nowAbsolute to fast timers

  • Cache etag support

  • Support request cache control directives

  • Bench updates prior to release

  • #3817: Send servername for SNI on TLS

  • Revert nowAbsolute, add regression test

  • Missing error handler

  • 301 and 302 change method to GET

  • Sqlite cache store

  • Sending formdata bodies with http2

  • Update return type of RetryCallback

  • Cleanup sqlite store

  • Pass down context in onConnect

  • Cache fixes

  • We can redirect disturbed request body if it's not going to be used

  • Only prune if adding new entry

  • Fixed the issue that there is no running request when http2 goaway

  • New hooks

  • Multiple fixes for SQLiteStore, enable it in CI

  • Update WPT

  • cache: Fix stale-while-revalidate and stale-if-error

  • Removed

    Drop node v18

  • Store data as blobs in sql cache

  • Move statusMessage as optional arg in end

  • Port retry to new hooks

  • Cache rm unused branch

  • Response error interceptor broken

  • Make the responseError interceptor backward compatible, add a body property

  • Add support for Timeout and Trailers

  • Correctly parse JSON contentType in responseError interceptor

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.