Cssnano versions 5.0.3 and 5.0.4 are both modular CSS minifiers built upon the PostCSS ecosystem, offering developers a powerful tool for optimizing CSS files for production. Examining the differences between these releases reveals subtle but important updates. Both versions have the same dependencies like cosmiconfig, and is-resolvable. Both provide same plugins to work with PostCSS and autoprefixer.
The key change lies within the cssnano-preset-default dependency. Version 5.0.3 relies on cssnano-preset-default version 5.1.0, while version 5.0.4 upgrades to 5.1.1. This seemingly minor version bump usually signifies bug fixes or improvements within the default preset – making it preferable to update. It's advisable to consult the changelog for cssnano-preset-default 5.1.1 to understand specifically what has been addressed.
Additionally, the unpackedSize metric in the dist object indicates a slight increase from 34270 to 34726 with the new version, which could be attributed to either the updated preset default dependencies or some other changes included in the release. Developers utilizing cssnano should carefully consider which version to use based on their project's needs and compatibility requirements. The release dates also highlight the recency of version 5.0.4 relative to 5.0.3.
The are not vulnerabilities for the version 5.0.4 of the package cssnano