Skip to content

Commit a705b57

Browse files
deps: update undici to 5.25.4
1 parent f8f85ba commit a705b57

File tree

6 files changed

+9
-63
lines changed

6 files changed

+9
-63
lines changed

deps/undici/src/lib/core/connect.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ let tls // include tls conditionally since it is not always available
1313
// re-use is enabled.
1414

1515
let SessionCache
16-
if (global.FinalizationRegistry) {
16+
// FIXME: remove workaround when the Node bug is fixed
17+
// https://github.com/nodejs/node/issues/49344#issuecomment-1741776308
18+
if (global.FinalizationRegistry && !process.env.NODE_V8_COVERAGE) {
1719
SessionCache = class WeakSessionCache {
1820
constructor (maxCachedSessions) {
1921
this._maxCachedSessions = maxCachedSessions

deps/undici/src/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "undici",
3-
"version": "5.25.3",
3+
"version": "5.25.4",
44
"description": "An HTTP/1.1 client, written from scratch for Node.js",
55
"homepage": "https://undici.nodejs.org",
66
"bugs": {
@@ -93,7 +93,6 @@
9393
"bench:run": "CONNECTIONS=1 node benchmarks/benchmark.js; CONNECTIONS=50 node benchmarks/benchmark.js",
9494
"serve:website": "docsify serve .",
9595
"prepare": "husky install",
96-
"postpublish": "node scripts/update-undici-types-version.js && cd types && npm publish",
9796
"fuzz": "jsfuzz test/fuzzing/fuzz.js corpus"
9897
},
9998
"devDependencies": {

deps/undici/src/types/package.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

deps/undici/undici.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6178,7 +6178,7 @@ var require_connect = __commonJS({
61786178
var { InvalidArgumentError, ConnectTimeoutError } = require_errors();
61796179
var tls;
61806180
var SessionCache;
6181-
if (global.FinalizationRegistry) {
6181+
if (global.FinalizationRegistry && !process.env.NODE_V8_COVERAGE) {
61826182
SessionCache = class WeakSessionCache {
61836183
constructor(maxCachedSessions) {
61846184
this._maxCachedSessions = maxCachedSessions;

doc/contributing/maintaining/maintaining-dependencies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This a list of all the dependencies:
2828
* [openssl 3.0.8][]
2929
* [postject 1.0.0-alpha.6][]
3030
* [simdutf 3.2.17][]
31-
* [undici 5.25.3][]
31+
* [undici 5.25.4][]
3232
* [uvwasi 0.0.19][]
3333
* [V8 11.3.244.8][]
3434
* [zlib 1.2.13.1-motley-f5fd0ad][]
@@ -291,7 +291,7 @@ The [postject](https://github.com/nodejs/postject) dependency is used for the
291291
The [simdutf](https://github.com/simdutf/simdutf) dependency is
292292
a C++ library for fast UTF-8 decoding and encoding.
293293

294-
### undici 5.25.3
294+
### undici 5.25.4
295295

296296
The [undici](https://github.com/nodejs/undici) dependency is an HTTP/1.1 client,
297297
written from scratch for Node.js..
@@ -345,7 +345,7 @@ performance improvements not currently available in standard zlib.
345345
[openssl 3.0.8]: #openssl-308
346346
[postject 1.0.0-alpha.6]: #postject-100-alpha6
347347
[simdutf 3.2.17]: #simdutf-3217
348-
[undici 5.25.3]: #undici-5253
348+
[undici 5.25.4]: #undici-5254
349349
[update-openssl-action]: ../../../.github/workflows/update-openssl.yml
350350
[uvwasi 0.0.19]: #uvwasi-0019
351351
[v8 11.3.244.8]: #v8-1132448

src/undici_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// Refer to tools/update-undici.sh
33
#ifndef SRC_UNDICI_VERSION_H_
44
#define SRC_UNDICI_VERSION_H_
5-
#define UNDICI_VERSION "5.25.3"
5+
#define UNDICI_VERSION "5.25.4"
66
#endif // SRC_UNDICI_VERSION_H_

0 commit comments

Comments
 (0)