Skip to content

Commit 21d3404

Browse files
chore(deps-dev): bump undici from 6.21.0 to 7.0.0 (#4336)
1 parent 408063b commit 21d3404

File tree

5 files changed

+37
-11
lines changed

5 files changed

+37
-11
lines changed

.tav.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,11 @@ aws-sdk:
504504
# - In [email protected] the `request.origin` property was added, which we need
505505
# in the 'undici:request:create' diagnostic message.
506506
undici:
507+
- versions:
508+
mode: max-7
509+
include: '>=7.0.0 <8'
510+
node: '>=20.18.1'
511+
commands: node test/instrumentation/modules/undici/undici.test.js
507512
- versions:
508513
mode: max-7
509514
include: '>=6.0.0 <7'

docs/supported-technologies.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ so those should be supported as well.
140140
|https://www.npmjs.com/package/pg[pg] |>=4.0.0 <9.0.0 |Will instrument all queries
141141
|https://www.npmjs.com/package/redis[redis] |>=2.0.0 <5.0.0 |Will instrument all queries
142142
|https://www.npmjs.com/package/tedious[tedious] |>=1.9 <20.0.0 | (Excluding v4.0.0.) Will instrument all queries
143-
|https://www.npmjs.com/package/undici[undici] | >=4.7.1 <6 | Will instrument undici HTTP requests, except HTTP CONNECT. Requires node v14.17.0 or later, or the user to have installed the https://www.npmjs.com/package/diagnostics_channel['diagnostics_channel' polyfill].
143+
|https://www.npmjs.com/package/undici[undici] | >=4.7.1 <8 | Will instrument undici HTTP requests, except HTTP CONNECT. Requires node v14.17.0 or later, or the user to have installed the https://www.npmjs.com/package/diagnostics_channel['diagnostics_channel' polyfill].
144144
|https://www.npmjs.com/package/ws[ws] |>=1.0.0 <8.0.0 |Will instrument outgoing WebSocket messages
145145
|https://www.npmjs.com/package/kafkajs[kafkajs] |>=2.0.0 <3.0.0 |Will instrument all send methods for producers and message and batch processing for consumers.
146146
|=======================================================================

package-lock.json

Lines changed: 23 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
"thunky": "^1.1.0",
206206
"tree-kill": "^1.2.2",
207207
"typescript": "^5.0.2",
208-
"undici": "^6.2.1",
208+
"undici": "^7.0.0",
209209
"vasync": "^2.2.0",
210210
"wait-on": "^8.0.0",
211211
"ws": "^7.2.1"

test/_is_undici_incompat.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ function isUndiciIncompat() {
2929
const undiciVer = require('undici/package.json').version;
3030
const msg = `undici@${undiciVer} is incompatible with node@${nodeVer}`;
3131

32-
if (satisfies(undiciVer, '>=6.13.0') && satisfies(nodeVer, '<18.17.0')) {
32+
if (satisfies(undiciVer, '>=7.0.0') && satisfies(nodeVer, '<20.18.1')) {
33+
// https://github.com/nodejs/undici/pull/3880
34+
return msg;
35+
} else if (
36+
satisfies(undiciVer, '>=6.13.0') &&
37+
satisfies(nodeVer, '<18.17.0')
38+
) {
3339
// See discussion at https://github.com/nodejs/undici/issues/3123
3440
return msg;
3541
} else if (satisfies(undiciVer, '>=6.0.0') && satisfies(nodeVer, '<18.0.0')) {

0 commit comments

Comments
 (0)