HtmlWebpackPlugin simplifies the creation of HTML files for webpack bundles. Version 4.1.0 was released on April 9, 2020, shortly after version 4.0.4 released on April 1, 2020. While both versions share the same core functionality and many dependencies, some key differences exist that developers should consider. Both rely on dependencies like lodash, tapable, and html-minifier-terser. Examining the devDependencies, typescript upgraded from version 3.5.2 to 3.8.3. Also webpack-recompilation-simulator was updated from 3.0.0 to 3.2.0.
The peer dependency for webpack changed from ^4.0.0 to >=4.0.0 < 6.0.0, which specifies more accurate requirements for compatibility. This change indicates a defined commitment to supporting webpack 4 while explicitly stating incompatibility with webpack 6 and later, which is essential for developers managing webpack upgrades. Finally, version 4.1.0 has a larger unpacked size, 136821 compared to 125838. For developers looking for the most up-to-date fixes and refinements while using webpack 4, version 4.1.0 is recommended. However, those already on 4.0.4 may only need to upgrade if they explicitly require the changes to peer dependency support or improvements from the updated dev dependencies.
The are not vulnerabilities for the version 4.1.0 of the package html-webpack-plugin