PostCSS is a powerful tool for transforming styles with JavaScript plugins, offering developers a flexible and efficient way to manipulate CSS. Comparing version 8.4.22 with the previous stable version, 8.4.21, reveals subtle improvements that contribute to a better developer experience. One key difference lies in the dependency updates; specifically, nanoid, a popular library for generating unique IDs, is bumped from version 3.3.4 to version 3.3.6. While seemingly minor, such updates often include bug fixes and performance enhancements that ripple through the entire package. This newer version of PostCSS include some fixes that make developers lives easier.
The distribution metadata also reveals some differences. Version 8.4.22 contains 55 files, slightly more than the 54 files in version 8.4.21, and the unpacked size has increased from 187861 bytes to 193691 bytes. These differences suggest added features, documentation updates, or internal code adjustments aimed at improving stability or functionality. Both versions maintain the same core dependencies like picocolors and source-map-js, signifying continued reliance on these tools for enhanced styling and debugging capabilities. Crucially, both are licensed under the MIT license making the package reliable and open source. When upgrading, developers should be aware of potential minor breaking changes introduced by the nanoid upgrade, though these are typically well-documented by the nanoid project itself. Overall, the upgrade to 8.4.22 looks to be a positive evolution of the PostCSS library.
All the vulnerabilities related to the version 8.4.22 of the package
PostCSS line return parsing error
An issue was discovered in PostCSS before 8.4.31. It affects linters using PostCSS to parse external Cascading Style Sheets (CSS). There may be \r
discrepancies, as demonstrated by @font-face{ font:(\r/*);}
in a rule.
This vulnerability affects linters using PostCSS to parse external untrusted CSS. An attacker can prepare CSS in such a way that it will contains parts parsed by PostCSS as a CSS comment. After processing by PostCSS, it will be included in the PostCSS output in CSS nodes (rules, properties) despite being originally included in a comment.