Prettier version 2.2.0 represents a notable update to the popular code formatter, building upon the foundation laid by version 2.1.2. Both versions maintain the core functionality of Prettier as an opinionated code formatter designed to enforce consistent code styles across projects, licensed under the MIT license and maintained in a GitHub repository. However, several key differences emerge when comparing the two releases.
One significant aspect is the increase in size. Version 2.2.0 exhibits a marked increase in both file count (33 compared to 18) and unpacked size (19250175 bytes versus 9084897 bytes) compared to version 2.1.2. This suggests a substantial expansion in features, language support, or internal improvements. Developers should note this increased size, especially considering potential impacts on installation time and disk space, though it typically reflects enhancements.
The release date also highlights the recency of version 2.2.0, published in November 2020, compared to version 2.1.2, released in September 2020. The later release date likely incorporates bug fixes, performance improvements, and potentially new formatting rules for recently introduced language features or coding styles. Developers seeking the latest refinements and most comprehensive code formatting capabilities should favor version 2.2.0. The larger size could indicate more robust language support, stricter linting rules or just internal code enhancements.
The are not vulnerabilities for the version 2.2.0 of the package prettier