Packages

undici

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

Your version

7.16.0

9 Sep 2025Where it was published

7.30.2 is the newest release of 7.x.

In short

1 removed2 new2 faster18 fixed14 changed25 internal

  • Removed

    eventsource: Remove promise for #reconnect method

Security

31 advisories affect 7.16.0; 7.30.1 fixes them

26 more

Release note

What's Changed

  • Drop npm token, use OIDC instead

  • fetch: Instantiate readableStream in extractBody with sync methods

  • Remove async on [kClose] and [kDestroy], only return Promise

  • fetch: Make consumeBody sync

  • Make client.connect() sync

  • fetch: Remove promise in exported fetch

  • #4451: Implement http2 cookie support

  • Avoid intermediate promise on BodyReadable.dump

  • Perf (fetch): use less promises for ReadableStream

  • Catch synchronous errors in request callbacks

  • Avoid instanceof MockNotMatchedError

  • Removed

    eventsource: Remove promise for #reconnect method

  • Make UndiciErrors reliable to instanceof

  • buildAndValidateMockOptions should always get an object passed and always return an object

  • Remove unused ResponseStatusCodeError

  • lint: Avoid unintented use of globals in code and tests, improve test for installing/overwriting globals

  • 'no-referrer-when-downgrade' in determineRequestsReferrer should return referrerURL

  • Deflake cache-fastimers-fix.js

  • Improve validation of IP addresses as trustworthy, correct ipv4 check

  • Test (pool.js): fix flakyness of clientTtl test

  • Test (eventsource): refactor tests for eventsource, speed them up

  • Remove useless catch in client-h1.js

  • Implement proper stale-while-revalidate behavior per RFC 5861

  • Test (websocket): speed up test/websocket/issue-2679.js

  • webidl: Fix existing and add missing buffer source converters

  • Use real wpt test server

  • Fix writing to websocketstream with SharedArrayBuffer/SharedArrayBuff…

  • h2: Adjust :scheme on h2 requests

  • Change webidl attribute to bitwise flag

  • Support for capping the number of origins in Agent

  • wpt: Properly handle write permissions errors in wpt-runner setup

  • fetch: Process content-encoding header only if relevant

  • websocket: Always emit error event

  • Wpt should use master branch

  • Shell command built from environment values

  • Disable SIMD for PPC64 architecture, add UNDICI_NO_WASM_SIMD env to facilitate testing

  • Make error symbols non enumerable

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.