Webpack-defaults version 0.2.0 builds upon the foundation laid by version 0.1.1, offering subtle but important improvements for developers aiming for consistent webpack configurations across projects. Both versions share the same core purpose: providing a standardized set of defaults to streamline webpack setup. They maintain identical core dependencies, chalk and mrm-core, suggesting the fundamental tooling and approach remain consistent.
The key differentiator lies in the devDependencies. Version 0.2.0 replaces babel-preset-webpack with babel-preset-env. This signals a move towards a more modern and adaptable Babel preset, babel-preset-env allows developers to specify target environments, automatically enabling only the necessary Babel transformations. This can lead to smaller bundle sizes and improved performance compared to the potentially broader transformations provided by the older babel-preset-webpack.
Both versions feature a comprehensive suite of development tools including testing (Jest), linting (ESLint), and pre-commit hooks. These tools encourage best practices and code quality within webpack projects. Maintaining a similar dependency list between versions signifies a commitment to stability and a consistent developer experience. The update from 0.1.1 to 0.2.0 shows a focus on utilizing more current and efficient build tools for improved web development workflows which results to be relevant to developers needing webpack's solid foundation.
All the vulnerabilities related to the version 0.2.0 of the package
Regular Expression Denial of Service (ReDoS) in cross-spawn
Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.