Webpack version 0.9.1, released on March 13, 2013, is a minor update to the preceding version 0.9.0, released just two days prior on March 11, 2013. Both versions share the core functionality of a module bundler, packing CommonJs, AMD, and labeled modules for browser deployment. This allows splitting codebases into manageable bundles loaded on demand, significantly improving initial load times for web applications. They both support various loaders for preprocessing different file types, including JSON, Jade, CoffeeScript, CSS, and LESS, fostering flexibility in project structure and technology choices.
The dependencies and devDependencies are exactly the same across both versions. Developers leveraging either version benefit from a rich ecosystem of loaders, facilitating integration with diverse asset types and build processes. The 'webpack-dev-middleware' listed as a devDependency suggests capabilities for rapid development cycles with features like hot module replacement. Uglify-js allows production code to be minified.
Given the near-identical feature set and dependency list, upgrading from 0.9.0 to 0.9.1 likely addresses bug fixes or minor improvements not explicitly detailed in the provided metadata. While using either version offers substantial benefits for module management, developers should consult release notes or changelogs (if available) for specific fixes to determine if upgrading is crucial for their project's stability.
All the vulnerabilities related to the version 0.9.1 of the package
Incorrect Handling of Non-Boolean Comparisons During Minification in uglify-js
Versions of uglify-js
prior to 2.4.24 are affected by a vulnerability which may cause crafted JavaScript to have altered functionality after minification.
Upgrade UglifyJS to version >= 2.4.24.
Regular Expression Denial of Service in uglify-js
Versions of uglify-js
prior to 2.6.0 are affected by a regular expression denial of service vulnerability when malicious inputs are passed into the parse()
method.
var u = require('uglify-js');
var genstr = function (len, chr) {
var result = "";
for (i=0; i<=len; i++) {
result = result + chr;
}
return result;
}
u.parse("var a = " + genstr(process.argv[2], "1") + ".1ee7;");
$ time node test.js 10000
real 0m1.091s
user 0m1.047s
sys 0m0.039s
$ time node test.js 80000
real 0m6.486s
user 0m6.229s
sys 0m0.094s
Update to version 2.6.0 or later.