Browserify version 1.8.0 introduces subtle but significant changes compared to its preceding stable release, 1.7.7, offering slight improvements for developers using this tool to run Node.js-style modules in the browser. The core functionality remains consistent: enabling require() statements for organized JavaScript in the client-side environment.
A notable difference lies in the introduction of "deputy" as a new dependency in version 1.8.0, although its specific function within Browserify isn't immediately obvious from this data alone. Also, detective dependecy version tag was updated from ">=0.0.1 <0.1" to "0.0.x". This can imply breaking changes/bug fixes/new functionalities in this specific internal package for browserify. For developers, this change could impact how Browserify analyzes module dependencies, depending on what deputy does.
Both versions rely on essential dependencies like resolve, optimist, commondir, and coffee-script to handle module resolution, argument parsing, common directory finding, and CoffeeScript compilation. The developer dependencies, including testing tools (seq, tap), templating (jade), and browser environment emulators (jsdom, connect, hashish, backbone, traverse, jquery-browserify), remain largely unchanged, but with different version tags.
Upgrading from 1.7.7 to 1.8.0 might be worthwhile for developers seeking the potential enhancements or resolving issues addressed by the introduction of "deputy" and the new version tag of detective. However, thorough testing is advisable to ascertain compatibility and prevent unexpected behavior due to the updated dependencies.
All the vulnerabilities related to the version 1.8.0 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.