Lint-staged versions 11.2.6 and 11.2.5 are both tools designed to run linters against staged git files, ensuring code quality and consistency before commits. Both versions share a similar core functionality, leveraging dependencies like debug, execa, listr2, enquirer, colorette, commander and micromatch for debugging, executing commands, creating task lists, prompting users, colorizing output, parsing commands, and matching files with glob patterns, respectively. They also share common devDependencies like jest, husky, eslint, and prettier for testing, git hooks, and code formatting.
The key difference between these versions lies in their dependencies. Version 11.2.5 relies on js-yaml and lilconfig for handling YAML files and configuration, while version 11.2.6 replaces these with cosmiconfig. cosmiconfig offers a more versatile and flexible way to handle various configuration file formats (JSON, YAML, JS, etc.) enabling developers to easily configure lint-staged using their preferred configuration file type. This is a significant improvement as developers wanting to utilize configuration files other than YAML no longer need to install additional dependencies or write custom code.
Both versions are licensed under MIT, and authored by Andrey Okonetchnikov. The releases were just hours apart on 2021-10-26. Developers should choose the latest version in most cases as it includes all the improvements and does not have any breaking changes.
The are not vulnerabilities for the version 11.2.6 of the package lint-staged