PostCSS Nested offers a convenient way to write CSS with nested rules, mirroring Sass's familiar syntax and improving code readability. Comparing versions 5.0.6 and 5.0.5 reveals some subtle but important updates for developers. Version 5.0.6, released in July 2021, updates its dependency on postcss-selector-parser to version ^6.0.6, whereas version 5.0.5, released earlier in March 2021, relies on ^6.0.4. This suggests potential enhancements or bug fixes within the selector parsing logic, potentially impacting how nested selectors are processed.
A key difference lies in the peer dependency on postcss. Version 5.0.6 requires postcss version ^8.2.14 or higher, while the older 5.0.5 works with ^8.1.13. This signals that version 5.0.6 likely incorporates features or fixes that rely on a more recent postcss release. Developers using older postcss versions should stick with 5.0.5 or upgrade their postcss dependency for compatibility with 5.0.6.
Furthermore, the dist object shows that version 5.0.6 is slightly smaller, with an unpacked size of 11838 bytes compared to 13650 bytes for 5.0.5 and a lower file count. This could indicate code optimization or removal of unnecessary files, resulting in a potentially faster and more streamlined plugin. For developers seeking the most up-to-date and optimized experience, version 5.0.6 is the recommended choice, provided their project meets the peer dependency requirement for postcss.
The are not vulnerabilities for the version 5.0.6 of the package postcss-nested