Lint-staged is a popular npm package that helps developers automatically lint files staged in Git, ensuring code quality and consistency before commits. Comparing versions 3.0.2 and 3.0.1 reveals subtle but potentially important differences for users. Notably, version 3.0.2 removes the ora and batchflow dependencies, while adding eslint-plugin-import. The removal of ora, which provides elegant terminal spinners, might impact the visual feedback during linting, potentially making the process feel slightly less interactive. The reason for the removal might be related to performance or dependency reduction. The removal of batchflow which is a control-flow utility, might indicate a refactoring of the internal asynchronous operations.
The addition of eslint-plugin-import could be a significant enhancement for developers using ESLint, which is a peer dependency. This plugin helps enforce coding standards related to ES6 import/export syntax, catching common mistakes and improving code maintainability. This change suggests a stronger focus on modern JavaScript practices in the newer version and potential developers will have even more confidence in the code base. Both versions share a core set of dependencies, including execa for running shell commands, listr for creating task lists in the terminal, and staged-git-files for identifying staged files. Therefore, the core functionality remains consistent, but the updated dependencies in version 3.0.2 reflect a shift towards improved ES module linting capabilities.
The are not vulnerabilities for the version 3.0.2 of the package lint-staged