r/node • • Feb 01 '22

Fetch API has landed into Node.js

https://github.com/nodejs/node/commit/6ec225392675c92b102d3caad02ee3a157c9d1b7
280 Upvotes

31 comments sorted by

View all comments

62

u/Zipdox Feb 01 '22

Now we can finally ditch node-fetch, which I've wanted to do ever since it switched to ESM.

1

u/spazz_monkey Feb 01 '22

I don't even know how to get node fetch to work with express and typescript. I constantly get the error, had to go back to V2 or whatever it is that works.

2

u/Zipdox Feb 01 '22

Yup, that's why I hate it. The dev said he would maintain V2 with critical fixes but NPM says V2 has high severity vulnerabilities.