unfetch icon indicating copy to clipboard operation
unfetch copied to clipboard

fix: update node-fetch to 3.x

Open RishikeshDarandale opened this issue 3 years ago • 2 comments

node-fetch is now ESM module only, thus this will be a breaking change and will requires at least Node.js 12.20.0.

As suggested by node-fetch, async import() function is used to load node-fetch asynchronously.

BREAKING CHANGE: requires at least node 12.20.0

Related: #143 #154

RishikeshDarandale avatar Feb 03 '22 09:02 RishikeshDarandale

@developit , test cases are failing for me and I am stuck in one of the test case where node-fetch needs to be mocked-up.

RishikeshDarandale avatar Feb 03 '22 12:02 RishikeshDarandale

Hope you take a look @developit

paul-phan avatar Feb 16 '22 05:02 paul-phan