mapbox / node-pre-gyp

Node.js tool for easy binary deployment of C++ addons
BSD 3-Clause "New" or "Revised" License
1.11k stars 260 forks source link

node-fetch upgrade to version 3.3.2 #700

Closed marck283 closed 11 months ago

marck283 commented 11 months ago

Upgrades node-fetch to version 3.3.2 to fix a MaxListenersExceededWarning warning and a Regular Expression Denial of Service bug (as noted here). Notice that I had to change the value of _msvsversion in run.util.js to 2022 because Visual Studio 2015 is not installed on my system.

Changes

  1. Changed require instruction for package node-fetch to a dynamic import to allow the usage of the latest version of node-fetch.
  2. Added Node.js 20.7.0 version to _abicrosswalk.json to allow the tests to be run under Node.js 20.7.0 environment.
  3. Changed the value of _msvsversion to 2022.