undici
8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed
Upgrading undici From 7.15.0 to 7.16.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 4
- new
- 18
- fixes
Before you upgrade
Tick each one off as you go- Breaking7.16.0
Security
31 advisories still affect 7.16.0
- undici vulnerable to response truncation via oversized chunked responses in the dump interceptorlow · GHSA-2gqq-gqf2-x968
- undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared cachesmoderate · GHSA-2jfj-6hjv-fm6j
- undici vulnerable to TLS certificate validation bypass via dropped tls options in Agenthigh · GHSA-2m5v-pch6-74hx
Upgrading to 7.30.1 clears them.
Release by release
- Breaking
eventsource: Remove promise for #reconnect method
- New
Make
client.connect()sync - New
Avoid intermediate promise on
BodyReadable.dump - New
Make UndiciErrors reliable to instanceof
- Breaking
14 other lines we could not sort, mostly version bumps
- 7.16.0
Drop npm token, use OIDC instead
- 7.16.0
fetch: Instantiate readableStream in extractBody with sync methods
- 7.16.0
fetch: Make consumeBody sync
- 7.16.0
fetch: Remove promise in exported fetch
- 7.16.0
Perf (fetch): use less promises for ReadableStream
- 7.16.0
Test (pool.js): fix flakyness of clientTtl test
- 7.16.0
Test (eventsource): refactor tests for eventsource, speed them up
- 7.16.0
Test (websocket): speed up test/websocket/issue-2679.js
- 7.16.0
Use real wpt test server
- 7.16.0
Change webidl attribute to bitwise flag
25 internal lines (docs, tests, tooling) left out.
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.