Skip to content

Commit d422132

Browse files
committed
fix(core): pin yargs to v17 for CJS CLI compatibility
yargs v18 is ESM-only and requires require()-of-ESM support, which only shipped unflagged in Node 20.19 / 22.12. Since the jazzer CLI entry point must remain loadable via require() on Node >= 20.6, pin yargs to the v17 line.
1 parent 6cd09ee commit d422132

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

package-lock.json

Lines changed: 10 additions & 10 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
@@ -73,7 +73,7 @@
7373
"**/!(compile_commands.json)*": "prettier --write --ignore-unknown --allow-empty --log-level debug"
7474
},
7575
"engines": {
76-
"node": ">= 20.0.0",
76+
"node": ">= 20.*",
7777
"npm": ">= 7.0.0"
7878
}
7979
}

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"@jazzer.js/fuzzer": "3.1.0",
2424
"@jazzer.js/hooking": "3.1.0",
2525
"@jazzer.js/instrumentor": "3.1.0",
26-
"tmp": "^0.2.3",
2726
"istanbul-lib-coverage": "^3.2.2",
2827
"istanbul-lib-report": "^3.0.1",
2928
"istanbul-reports": "^3.1.7",
30-
"yargs": "^18.0.0"
29+
"tmp": "^0.2.5",
30+
"yargs": "^17.7.2"
3131
},
3232
"devDependencies": {
33-
"@types/yargs": "^17.0.33"
33+
"@types/yargs": "^17.0.35"
3434
},
3535
"engines": {
3636
"node": ">= 14.0.0",

0 commit comments

Comments
 (0)