Webpack CLI version 6.0.0 represents a significant update compared to version 5.1.4, offering developers several notable changes. The most apparent shift is the peer dependency requirement; version 6.0.0 mandates webpack in the range of ^5.82.0, while 5.1.4 broadly supports 5.x.x. This suggests version 6.0.0 leverages newer webpack features, potentially offering performance improvements and access to recent webpack functionalities.
Several dependency updates enhance the developer experience. Commander.js has jumped from version 10.0.1 to version 12.1.0, likely introducing enhanced command-line argument parsing capabilities. Webpack-merge also sees an upgrade from 5.7.3 to 6.0.1, which could bring improvements to configuration merging strategies. Furthermore, the internal @webpack-cli packages like @webpack-cli/info, @webpack-cli/serve, and @webpack-cli/configtest have all received major version bumps, indicating potentially breaking changes or significant feature additions within these utility packages. A noteworthy change is the upgrade of @discoveryjs/json-ext from 0.5.0 to 0.6.1.
The file count in the distribution package decreased from 17 to 16 in the new version. The unpacked size slightly decreased, suggesting minor optimizations. Given the dependency updates, developers should carefully examine the migration guide to understand the impact on their existing webpack configurations. The new version ships more than 6 months after the previous version. These updates collectively aim to modernize the webpack CLI experience, providing developers with tools to efficiently manage and build their webpack projects. It's highly recommended to review the changelog for detailed information on breaking changes and new features.
The are not vulnerabilities for the version 6.0.0 of the package webpack-cli