Eslint Plugin Jest has released version 22.6.2, a minor update following closely on the heels of version 22.6.1. Both versions provide ESLint rules specifically designed for Jest, the popular JavaScript testing framework, aiming to improve code quality and consistency in Jest test suites.
While superficially similar, a key distinction exists in their dependencies. Version 22.6.2 lists @typescript-eslint/experimental-utils":"^1.9.1-alpha.3" as a direct dependency, which was only included as a dev dependency in version 22.6.1. The inclusion in dependencies likely addresses a scenario where the utility is required by the plugin runtime, ensuring a more robust and predictable user experience, especially those working with typescript projects. Both versions share an MIT license and maintain the same author and repository origin. Both versions feature a wide array of devDependencies aimed at streamlining development, linting, and testing processes, including tools like Jest, Husky, ESLint, Prettier, and various Babel-related packages facilitating TypeScript compatibility. Developers leveraging Eslint Plugin Jest can expect consistent code style enforcement via Prettier integration, commit message validation through Commitlint, and pre-commit code formatting through Lint-Staged. The core functionality regarding Jest-specific linting rules remains consistent across the two versions, offering developers a solid foundation for maintaining high-quality, readable, and maintainable Jest test suites. While the difference might seem small, the correct declaration of dependencies is key to avoid unexpected runtime issues.
All the vulnerabilities related to the version 22.6.2 of the package
semver vulnerable to Regular Expression Denial of Service
Versions of the package semver before 7.5.2 on the 7.x branch, before 6.3.1 on the 6.x branch, and all other versions before 5.7.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.