Browserify, a tool enabling the use of Node.js-style require() statements in browser-side JavaScript, saw a minor version bump from 1.9.1 to 1.9.2 in January 2012. Both versions share the same core functionality, described as enabling developers to use browser-side modules with require(). The dependencies remained consistent, including packages like "nub," "deputy," "resolve," and "optimist," reflecting a stable base for core operations like dependency resolution and argument parsing. Both listing "coffee-script" as a dependency, important around those days.
The most notable change can be found in the "devDependencies". Version 1.9.2 upgraded the "tap" testing harness from "0.0.x" to "0.2.x", indicating improvements or updates to the testing framework used during development. This suggests a possible focus on code quality and reliability in the later release. Both versions share many of the same packages, including packages such as "jade", "lazy", "dnode", "jsdom", "connect", "hashish", "backbone", "traverse", and "jquery-browserify".
For developers considering Browserify in the early 2012 timeframe, these versions offered a reliable way to manage JavaScript dependencies and write modular code for the browser. However, the updated "tap" version in 1.9.2 hints at a potentially more robust testing environment, possibly leading to a slightly more stable and predictable development experience between the two versions.
All the vulnerabilities related to the version 1.9.2 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.