Prettier 2.0.0 marks a significant update from version 1.19.1 of this popular opinionated code formatter, offering developers enhanced control and improved formatting capabilities. While both versions share the same core function of automatically styling code for consistency and readability, eliminating tedious manual adjustments, the newer release introduces notable changes. One key difference lies in the increased "unpackedSize" of the distribution, suggesting expanded functionality or rule sets. Specifically, Prettier 2.0 boasts enhanced support for optional chaining and nullish coalescing operators in JavaScript, aligning with modern language features. This release drops support for Node.js versions older than 8, a common practice to streamline development and leverage newer platform features.
Developers will also appreciate the refined handling of certain edge cases and the inclusion of new configuration options that allow for finer-grained control over the formatting process. Prettier 2.0 solidifies its role as an indispensable tool for maintaining code quality and consistency across projects, particularly beneficial in collaborative environments where standardized styling promotes easier code review and comprehension. The jump in versioning, from 1.19.1 to 2.0.0, signals the magnitude of these internal updates and API changes. Developers relying heavily of the behaviour of Prettier should test their configuration carefully.
The are not vulnerabilities for the version 2.0.0 of the package prettier