Skip to content

Commit 9b3cdc6

Browse files
DavertMikclaude
andcommitted
fix(deps): set engines.node to >=20.19.0 and clear prod audit high/criticals
The 4.x dependency set already requires Node 20.19+ at runtime (chokidar@5 declares `engines.node >= 20.19.0`, commander/glob require >=20), but package.json still advertised `node: >=16.0` — so Node 16-18 users got a clean install and then broke inside dependencies. Raise the floor to match what CI actually tests, and sync the documented minimum. Audit hygiene (npm audit --omit=dev, no --force): - multer ^2.0.2 -> ^2.1.1 (out of the <=2.1.0 advisory range; only consumer is a comment in lib/test-server.js) - uuid 11.1.0 -> 11.1.1 (patch, clears the buffer-bounds advisory) - tmp override 0.2.5 -> 0.2.6 (advisory wants <0.2.6 gone) - npm audit fix (within ranges) for the rest Result: prod npm audit goes from 38 vulnerabilities (2 critical, 16 high) to 3 (0 critical, 1 high). The remaining 3 all route through mocha@11.7.5's pinned transitive deps (diff@7.0.0 via `^7.0.0`, serialize-javascript@6.0.2 via `^6.0.2`); the patched versions cross mocha's declared ranges and npm's only offered fix is `--force` to mocha@11.3.0 (a breaking change), deferred as a deliberate major-bump decision. They are DoS-class issues in a test runner's diff/serialization, low exploitability in normal use. Docs: state Node 20.19+ in migration-4.md and mcp.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a70c814 commit 9b3cdc6

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/mcp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ Storage capture is **enabled** for `run_code`, `snapshot`, `run_step_by_step` fa
441441

442442
### Server doesn't start
443443

444-
- Node 18+ recommended.
444+
- Node 20.19+ required.
445445
- Verify the path / `npx` resolution in your client config.
446446

447447
### Config not found

docs/migration-4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The rest of this guide documents every change the skill makes — read it if you
3535

3636
## 1. Update Node and Package
3737

38-
CodeceptJS 4.x supports Node 16+, but Node 20 or newer is recommended.
38+
CodeceptJS 4.x requires Node 20.19 or newer.
3939

4040
```bash
4141
npm install codeceptjs@4
@@ -764,4 +764,4 @@ You don't need these to upgrade, but they unlock new workflows:
764764
4. TypeScript users: run with `tsx` installed and confirm error stack traces point at `.ts` files.
765765
5. If you removed `autoLogin`: confirm sessions restore under the `auth` plugin.
766766
6. If you used `tryTo` / `retryTo` / `eachElement` plugins: grep your tests for the old globals and switch to subpath imports.
767-
7. CI: bump the Node version to 20+ if you were on 18 or below.
767+
7. CI: bump the Node version to 20.19+ if you were on a lower version.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@
127127
"mocha": "11.7.5",
128128
"monocart-coverage-reports": "2.12.9",
129129
"ms": "2.1.3",
130-
"multer": "^2.0.2",
130+
"multer": "^2.1.1",
131131
"ora-classic": "5.4.2",
132132
"parse-function": "5.6.10",
133133
"parse5": "7.3.0",
134134
"promise-retry": "1.1.1",
135135
"sprintf-js": "1.1.3",
136-
"uuid": "11.1.0",
136+
"uuid": "11.1.1",
137137
"xpath": "0.0.34",
138138
"zod": "^4.1.11"
139139
},
@@ -206,7 +206,7 @@
206206
}
207207
},
208208
"engines": {
209-
"node": ">=16.0",
209+
"node": ">=20.19.0",
210210
"npm": ">=5.6.0"
211211
},
212212
"es6": true,
@@ -217,7 +217,7 @@
217217
}
218218
},
219219
"overrides": {
220-
"tmp": "0.2.5",
220+
"tmp": "0.2.6",
221221
"js-yaml": "^4.1.1"
222222
}
223223
}

0 commit comments

Comments
 (0)