Lint-staged is a handy npm package that helps developers automatically lint files staged in Git, ensuring code quality before commits. Comparing versions 1.0.1 and 1.0.2, several key differences emerge that might impact developers' workflows. The most notable change is the replacement of the which dependency (version ^1.2.9 in 1.0.1) with app-root-path (version ^1.2.1) in 1.0.2, and the removal of strip-eof (version ^1.0.0) from the dependencies. While both versions share common dependencies like ora, minimatch, npm-which, object-assign, and staged-git-files, this shift suggests a change in how the package locates the project root or handles end-of-file whitespace.
For developers using lint-staged, understanding these changes is important. The move to app-root-path might affect how lint-staged resolves the project’s root directory, potentially influencing configuration loading or file matching. The removal of strip-eof means developers might need to handle end-of-file whitespace differently in their linting configurations. Both version depends on eslint version 2.9.0 and can be an issue for modern codebases. Version 1.0.1 was released on June 7, 2016, while version 1.0.2 was released on June 30, 2016, indicating a relatively quick update cycle. Developers should carefully evaluate these differences when upgrading to ensure compatibility with their existing configurations and linting rules.
The are not vulnerabilities for the version 1.0.2 of the package lint-staged