Node-fetch is a lightweight module bringing the Fetch API, familiar from browsers, to Node.js environments. Comparing versions 3.2.3 and 3.2.2, developers will notice subtle but important changes. The core dependencies remain consistent, ensuring compatibility with existing projects using features like data URI handling (data-uri-to-buffer), binary data manipulation (fetch-blob), and form data construction (formdata-polyfill). This suggests that updates haven't introduced any breaking changes in fundamental API usage.
The development dependencies, crucial for contributors and maintainers, are also identical, indicating a stable environment for testing and development. This consistency ensures that the tools used for quality assurance, code linting (xo), and test running (mocha, chai) haven't been significantly altered.
The key difference lies in the release date and potentially in the package contents, suggested by the slightly different unpackedSize in the dist section. The release date signifies that version 3.2.3 was published after 3.2.2, probably containing bug fixes, performance improvements, or internal adjustments. These smaller changes contribute to an evolution of the library without requiring major modifications for users of Node-fetch. Developers should consider upgrading to the latest version for the newest enhancements and potential security patches, ensuring a robust and efficient data fetching solution within their Node.js applications. The provided URLs in the data support further investigation into the project's repository and funding.
All the vulnerabilities related to the version 3.2.3 of the package
node-fetch Inefficient Regular Expression Complexity
node-fetch is a light-weight module that brings window.fetch to node.js.
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the isOriginPotentiallyTrustworthy()
function in referrer.js
, when processing a URL string with alternating letters and periods, such as 'http://' + 'a.a.'.repeat(i) + 'a'
.