Lint-staged version 12.1.0 introduces a few changes compared to the previous stable version 12.0.3, offering developers subtle improvements in functionality and dependency management. Most notably, version 12.1.0 adds yaml as a direct dependency, specifically version ^1.10.2. This inclusion potentially allows lint-staged to handle YAML-based configurations more efficiently or directly incorporate YAML parsing functionality. Another change is the replacement of cosmiconfig dependency with lilconfig version 2.0.4. While both libraries are designed to load configuration files, lilconfig offers a more lightweight and potentially faster alternative. The fileCount and unpackedSize are also slightly different between the 2 versions (25 vs 24, and 88099 vs 86914) but this is just a side-effect of the dependency's change. For developers already using lint-staged, upgrading to 12.1.0 might be beneficial if they need YAML configuration support or seek performance gains from the lilconfig library. It's always recommended to review the changelog and test the update in a non-production environment to ensure compatibility with your existing setup. Moreover, both versions share a common set of valuable features, such as linting files staged in Git, supporting various linters and formatters through simple configuration, and integrating seamlessly with popular Git hooks using Husky. These capabilities help maintain code quality and consistency across projects.
The are not vulnerabilities for the version 12.1.0 of the package lint-staged