Node-fetch is a lightweight module designed to bring the window.fetch API, familiar to browser-based JavaScript developers, to Node.js and io.js environments, enabling server-side data fetching with a modern, promise-based interface. Comparing version 1.2.0 with its predecessor, 1.1.2, reveals a subtle evolution in the package. While the core functionality described remains consistent – providing a fetch implementation – a key difference lies in their release dates. Version 1.2.0 was published on May 3, 2015, several days after version 1.1.2 which was released on April 29, 2015. This indicates a potential refinement or bug fix addressed in the newer version.
Both versions share identical dependencies, relying on the "encoding" package for broader character encoding support. Their development dependencies also mirror each other, incorporating tools like Bluebird for promise management, Chai and Chai-as-promised for testing, Coveralls for code coverage reporting, Istanbul for instrumentation, Mocha for test execution, and Resumer, suggesting no shift in the underlying testing or development workflow. The license, repository, and author remain constant, solidifying the project's core foundation. The "dist" section reveals where to download each version directly from the npm registry, packaged as gzipped tar archives. For a developer choosing between the two, opting for version 1.2.0 is advisable due to its later release date, implying potential bug fixes or minor enhancements that could improve stability, furthering its benefit for seamless integration into their server-side applications.
All the vulnerabilities related to the version 1.2.0 of the package
node-fetch forwards secure headers to untrusted sites
node-fetch forwards secure headers such as authorization
, www-authenticate
, cookie
, & cookie2
when redirecting to a untrusted site.