Prettier 1.4.0 represents a notable evolution from version 1.3.1 of this popular opinionated JavaScript formatter. While both versions share the core mission of automatically enforcing a consistent code style, several key changes cater to developers seeking enhanced flexibility and broader language support.
One significant difference lies in the dependencies. Version 1.4.0 sheds dependencies like ast-types while incorporating new ones such as diff, eslint, postcss, webpack, uglify-es, cross-spawn, postcss-less, and postcss-scss, suggesting expanded capabilities for handling different file types and integration with other tools. The upgrade to dependencies like babylon (beta.10) points to improved JavaScript parsing and future language feature compatibility. Specifically, the addition of postcss-* dependencies indicates enhanced support for CSS and related preprocessor formatting, which is great for web developers using Prettier across their entire projects. Downgrading the Prettier version in devDependencies also indicates a change in testing strategy or a focus on compatibility between the formatters.
Developers should also note changes in development dependencies, such as updated versions of jest-validate and the introduction of eslint-plugin-prettier, potentially streamlining the testing and linting workflow, resulting in a more seamless developer experience.
The update of dependencies related to Rollup, a module bundler, may signal internal improvements to the build process or performance optimizations. These changes collectively offer a more robust and versatile formatting experience.
The are not vulnerabilities for the version 1.4.0 of the package prettier