Browserify version 1.4.0 introduces no visible alterations in dependencies beyond a shift in release date compared to version 1.3.0. Both versions cater to developers seeking a browser-compatible require() function, allowing the organization of JavaScript code into modules similar to Node.js environments. This facilitates code reuse and maintainability in browser-based projects.
The core functionality remains consistent: Browserify bundles JavaScript files and their dependencies into a single file suitable for inclusion in HTML pages. It handles require() statements, enabling developers to leverage npm modules directly within their client-side code. Both versions list identical dependencies, including nub, resolve, optimist, commondir, detective, and coffee-script, responsible for various tasks like dependency resolution, argument parsing, and code inspection.
The devDependencies section, crucial for development and testing, shows no change. These include packages like seq, jade, dnode, jsdom, connect, hashish, backbone, expresso, traverse, and jquery-browserify. These components likely aid in tasks such as asynchronous control flow, templating, remote procedure calls, DOM manipulation, server creation, and assertion.
The author, license (MIT/X11), and repository details stay the same, pointing to James Halliday (substack) as the author and the GitHub repository as the source. The difference lies in the dist section where the tarball URL reflects the version number, and the releaseDate has changed for 1.4.0 to July 30, 2011, while 1.3.0 version was release on July 15, 2011. Developers transitioning from 1.3.0 to 1.4.0 can expect identical functional behavior.
All the vulnerabilities related to the version 1.4.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.