Yargs version 17.0.0 represents an evolution of the popular command-line argument parsing library, building upon the foundation laid by version 16.2.0. Both versions share core dependencies crucial for their functionality, including y18n for internationalization, cliui for building command-line user interfaces, escalade for traversing the file system, string-width for handling string widths in the terminal, yargs-parser for parsing arguments, get-caller-file for determining the calling file, and require-directory for loading modules from directories.
Key differences lie in the development dependencies. Notably, version 17.0.0 introduces c8 at version ^7.7.0 for code coverage, replacing the older version ^7.0.0 in 16.2.0 and also adds eslint and rollup-plugin-terser for code linting and creating smaller bundles when using yargs in the browser. Version 16.2.0 had standardx which is not present in the newer version, suggesting a possible shift in linting strategy. Also, the unpacked size shrunk (286271 to 273064) with the file count increasing, indicating that some of the source code might have been split but properly minified.
For developers, these updates indicate a focus on improved code quality (via eslint), better coverage reporting (via the updatd c8), and potentially smaller bundle sizes when using yargs in browser environments (rollup-plugin-terser). The core functionality remains consistent, ensuring a smooth transition for existing users while offering enhancements for new projects utilizing the command-line argument parsing library.
The are not vulnerabilities for the version 17.0.0 of the package yargs