Commit 9b3cdc6
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
0 commit comments