Skip to content

Chore/update deps adopt yargs#91

Open
actualben wants to merge 2 commits intotonistiigi:masterfrom
backplane:chore/update-deps-adopt-yargs
Open

Chore/update deps adopt yargs#91
actualben wants to merge 2 commits intotonistiigi:masterfrom
backplane:chore/update-deps-adopt-yargs

Conversation

@actualben
Copy link

This pull request updates the CLI argument parsing library from optimist to yargs, modernizes dependencies, and refreshes documentation to match the latest CLI options and coding standards. The most significant changes are grouped below:

Dependency and CLI Library Updates:

  • Replaced the deprecated optimist library with yargs for command-line argument parsing in cli.js, and updated all related code to use yargs methods and syntax. (cli.js, package.json)
  • Updated several dependencies to more recent versions, including async, glob, mkdirp, underscore, and mocha, to improve compatibility and security. (package.json)

Documentation Improvements:

  • Refreshed the CLI usage and options section in README.md to reflect the new yargs-generated help output, including new flags and improved formatting.
  • Updated API usage examples in README.md to use modern JavaScript conventions (double quotes, semicolons, improved formatting).
  • Improved markdown formatting for emphasis (italicizing notes and warnings) and consistency in README.md.
  • Added missing code block formatting in installation and dependency sections of README.md for clarity.

Replace optimist with yargs to fix prototype pollution in minimist
(GHSA-vh95-rmgr-6w4m, GHSA-xvch-5gv4-984h). Update underscore to
1.13.x to fix CVE in older versions. Bump async, glob, mkdirp, and
mocha to current supported releases.

Resolves all 10 npm audit vulnerabilities (5 high, 5 critical).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant