Vonage/vonage-node-sdk

[Bug]: Update to use `fetch` over `node-fetch`?

Closed this issue · 1 comments

Node Version

22.x

Platform

Mac (Apple Silcon)

SDK Version

3.14.x

Code Sample

npm install @vonage/server-sdk
// use sdk in a index.js for example
node index.js

Expected Behavior

Runs without deprecation warning for punycode

Actual Behavior

Has deprecation warning for punycode
See node-fetch/node-fetch#1793 (comment)

I think we should be good to remove the node-fetch dependancy since fetch is available in node v18 and upwards (as experimental) and stable in v21. Not sure how experimental it is until v21, so I will leave it to you to decide if its worth making the change yet

@abdulajet, we can't use native fetch yet. It is native to node 22, and we need to support 18+. We have to support all LTS versions