PostCSS Logical underwent a significant upgrade from version 4.0.2 to 5.0.0, modernizing its build process and peer dependency requirements. The core functionality of enabling logical CSS properties and values remains consistent, aiding developers in creating layouts that adapt to different writing modes and directionality.
However, developers should note the peer dependency change: version 5.0.0 requires PostCSS version 8.3 or higher, whereas version 4.0.2 was compatible with PostCSS 7. This shift necessitates an upgrade of PostCSS in existing projects before adopting the new version.
On the development side, version 5.0.0 embraces a more contemporary toolchain, utilizing Rollup with Babel for bundling and ESLint for linting, reflected in the updated devDependencies. The older version used an earlier version of Rollup and other linting tools. Version 5.0.0 replaces babel-eslint with a direct configuration of eslint with the babel preset. These improvements translate to potentially better performance and maintainability.
The unpacked size increased from ~158KB to ~202KB, possibly due to adjustments and updates in build dependencies and the inclusion of new features or more comprehensive test suites, but still a relatively small asset. Developers are encouraged to review the changelog for a comprehensive list of changes and ensure compatibility with their existing PostCSS setup before upgrading.
The are not vulnerabilities for the version 5.0.0 of the package postcss-logical