Lint-staged is a popular npm package that helps developers automatically lint files staged in Git repositories before committing. This ensures code quality and consistency by running linters against only the changes you're about to submit. Comparing versions 3.3.0 and 3.3.1 reveals a subtle but important update. The primary difference lies in the upgrade of the listr dependency from version 0.10.0 to 0.11.0.
For developers, this listr upgrade translates to a potentially improved user experience during the linting process. Listr is responsible for creating elegant and informative task lists within the command-line interface. Version 0.11.0 likely brings enhancements such as improved error handling, better progress reporting, or new features that contribute to a smoother and more understandable linting workflow.
While the rest of the dependencies, including essential tools like execa, which, minimatch, cosmiconfig, and linters like eslint, remain consistent between the two versions, the listr update hints at a focus on refining the user interface and the robustness of the task execution. This makes version 3.3.1 a worthwhile upgrade for developers seeking a polished and reliable pre-commit linting experience, ensuring cleaner code and streamlined workflows with minimal effort. Both versions share the same core functionality, license, and repository, making the upgrade a low-risk way to potentially gain a better user experience.
All the vulnerabilities related to the version 3.3.1 of the package
Regular Expression Denial of Service (ReDoS) in cross-spawn
Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.