Cssnano is a popular, modular minifier for CSS, built upon the PostCSS ecosystem. Versions 5.0.10 and 5.0.11 offer nearly identical core functionality, focusing on CSS optimization and reducing file sizes. Both versions support YAML configuration via the "^1.10.2" dependency, utilize lilconfig for configuration loading ("^2.0.3"), and depend on is-resolvable ("^1.1.0") for module resolution. Cssnano relies heavily on PostCSS (peer and dev dependency at "^8.2.15") enabling developers to easily integrate it into existing PostCSS workflows and integrates Autoprefixer to improve and guarantee cross-browser compatibility("10.3.7").
The primary difference between versions 5.0.10 and 5.0.11 lies in the cssnano-preset-default dependency. Version 5.0.10 uses cssnano-preset-default@^5.1.6, while 5.0.11 updates this to cssnano-preset-default@^5.1.7. This seemingly minor version bump in the preset likely includes bug fixes, performance improvements, or tweaks to the default minification rules, making the upgrade worthwhile to benefit from the lastest improvements by the cssnano team.
The release date also separates them, with version 5.0.11 released on November 16, 2021, while version 5.0.10 was released on November 6, 2021. This reinforces that 5.0.11 is a patch update, incorporating the changes to cssnano-preset-default. The unpacked size is marginally smaller in the newer version(7984 vs 8043), which indicates underlying optimizations. Developers should update because newer minor versions contain new features and fixes.
The are not vulnerabilities for the version 5.0.11 of the package cssnano