Skip to content

Commit 2709f5c

Browse files
sup3xclaude
andcommitted
fix: downgrade undici to v6 for Node.js 18 compatibility
undici v7 requires the File global which is only available in Node.js 20+. Since reqbench targets Node.js >= 18, use undici v6 which supports it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5fdd406 commit 2709f5c

2 files changed

Lines changed: 29 additions & 87 deletions

File tree

package-lock.json

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

package.json

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,27 @@
22
"name": "reqbench",
33
"version": "1.0.0",
44
"description": "Simple, beautiful API load testing from the terminal",
5-
"keywords": ["benchmark", "load-test", "http", "api", "performance", "cli", "latency"],
5+
"keywords": [
6+
"benchmark",
7+
"load-test",
8+
"http",
9+
"api",
10+
"performance",
11+
"cli",
12+
"latency"
13+
],
614
"author": "Kerim Gulen",
715
"license": "MIT",
8-
"repository": { "type": "git", "url": "https://github.com/sup3x/reqbench" },
9-
"bin": { "reqbench": "./dist/index.js" },
10-
"files": ["dist"],
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/sup3x/reqbench"
19+
},
20+
"bin": {
21+
"reqbench": "./dist/index.js"
22+
},
23+
"files": [
24+
"dist"
25+
],
1126
"type": "module",
1227
"scripts": {
1328
"build": "tsup",
@@ -17,11 +32,13 @@
1732
"lint": "tsc --noEmit",
1833
"prepublishOnly": "npm run test:run && npm run build"
1934
},
20-
"engines": { "node": ">=18" },
35+
"engines": {
36+
"node": ">=18"
37+
},
2138
"dependencies": {
2239
"chalk": "^5.3.0",
2340
"commander": "^12.1.0",
24-
"undici": "^7.0.0"
41+
"undici": "^6.24.0"
2542
},
2643
"devDependencies": {
2744
"@types/node": "^22.0.0",

0 commit comments

Comments
 (0)