node-chromedriver icon indicating copy to clipboard operation
node-chromedriver copied to clipboard

Investigate remove Axios and use fetch api when it becomes stable

Open giggio opened this issue 3 years ago • 4 comments
trafficstars

Fetch api is only available in Node 18+, but experimentally, and at the time of this writing, it is still experimental in Node 20.

Investigate if the fetch api will be able to do everything Axios does (proxy support etc). Fetch api is also not yet stable on Node 20, if it is not stabilized we will need to wait until it is.

See the https://github.com/giggio/node-chromedriver/tree/fetch_api branch for an update on the update.js script (https://github.com/giggio/node-chromedriver/blob/fetch_api/update.js).

giggio avatar Sep 19 '22 17:09 giggio

Fetch has shipped as stable in v18 onwards 😉

christian-bromann avatar Jun 12 '23 08:06 christian-bromann

@christian-bromann docs still mention it as experimental.

giggio avatar Jun 15 '23 21:06 giggio

Fetch is documented as stable in Node v21! So the next LTS to have it will be v22. +1 to do this when the time is right :)

andrewiggins avatar Oct 31 '23 23:10 andrewiggins

Awesome! We'll need to wait until Node.js 20 is out of support, until April 2026. https://nodejs.org/en/about/previous-releases

giggio avatar Nov 01 '23 05:11 giggio