Cssnano version 6.0.0 represents a significant update over the previous stable version, 5.1.15, for this popular CSS minification tool. Both versions, built upon the PostCSS ecosystem, aim to reduce CSS file sizes, but the newer version introduces notable changes in its dependency structure and potentially its internal workings. Version 6.0.0 depends on a newer cssnano-preset-default at version 6.0.0, while the older version uses version 5.2.14. Similarly, cssnano-preset-advanced moves to version 6.0.0 from version 5.3.10, but now only appears as a devDependency. One notable change for developers is the removal of the direct dependency on the yaml package in version 6.0.0. This might point to alterations in how configuration files are handled or a shift to a different configuration format. Although both versions list postcss as the peer dependency, the newer version comes with a smaller unpacked size and fewer files, which suggests improvements in efficiency. Developers should carefully evaluate the upgrade, particularly regarding configuration and any custom presets they may be using, to ensure compatibility. The newer version could bring performance enhancements but requires validation to guarantee a seamless transition. Both versions are under the MIT license, offer funding on Open Collective, and use the same repository.
The are not vulnerabilities for the version 6.0.0 of the package cssnano