eslint-plugin-prettier version 4.0.0 introduces key updates valuable for developers aiming for seamless code formatting. The most significant change lies in its peer dependency requirements. Version 4.0.0 mandates eslint version 7.28.0 or higher and prettier version 2.0.0 or higher. This is a notable jump from version 3.4.1, which supported eslint versions 5.0.0 and above and prettier versions 1.13.0 and up. Developers upgrading should ensure their projects meet these updated peer dependency constraints to avoid compatibility issues.
Furthermore, while both versions share the same core functionality of running Prettier as an ESLint rule and depend on prettier-linter-helpers, the updated version uses more recent development dependencies. For example, it uses graphql version ^15.5.1 while the previous stable version doesn't depends on it. This means the dev dependencies were updated under the hood.
The dist object also reveals subtle differences: version 4.0.0 has a slightly smaller unpacked size and an extra file as part of the changes that went into newer version. Finally, the release dates indicate that version 4.0.0 was released more recently, incorporating the latest improvements and bug fixes available up to August 2021. Developers should also consider this upgrade for access to these recent enhancements.
The are not vulnerabilities for the version 4.0.0 of the package eslint-plugin-prettier