Lint-staged is a popular npm package designed to streamline development workflows by linting files staged in Git. Comparing versions 1.0.0 and 1.0.1 reveals subtle yet important changes for developers. Both versions share similar core functionalities, using dependencies like ora for spinners, which to locate executables, minimatch for file matching, strip-eof for removing trailing whitespace, object-assign for object manipulation, and staged-git-files to identify staged files. The development dependencies, including eslint, npmpub, pre-commit, and eslint-config-es5, also remain consistent, indicating a focus on code quality and pre-commit hooks.
The key difference lies in the replacement of the npm-run dependency in version 1.0.0 with npm-which in version 1.0.1. This suggests a shift in how the package executes npm scripts. npm-which likely offers a more reliable or efficient method for locating npm installed binaries within the project’s node_modules, potentially resolving issues related to script execution in different environments or projects.
For developers, this update signifies improved stability and reliability in identifying and running linters and formatters against staged changes. The move from npm-run to npm-which may lead to more consistent behavior across diverse project setups. Therefore, upgrading to version 1.0.1 is recommended to benefit from these enhancements and ensure a smoother linting process. Both versions are licensed under the MIT license and are maintained by Andrey Okonetchnikov.
The are not vulnerabilities for the version 1.0.1 of the package lint-staged