gax-nodejs icon indicating copy to clipboard operation
gax-nodejs copied to clipboard

Look into conditionally using native fetch when we move to Node 20

Open sofisl opened this issue 1 year ago • 2 comments

see b/337041278

Once we move to Node 18, we should look into checking whether we can use native fetch instead of node-fetch.

sofisl avatar May 16 '24 18:05 sofisl

I’ve completed some research on the topic - see:

  • https://github.com/googleapis/gaxios/issues/625
  • https://github.com/googleapis/gaxios/pull/618

danielbankhead avatar May 16 '24 18:05 danielbankhead

Awesome, thanks for doing that digging! We can use it to replace node-fetch here, as well.

sofisl avatar May 16 '24 20:05 sofisl