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

Service worker compatibility (fetch vs request)

Open AvivonCtrl opened this issue 4 years ago • 3 comments

Hey guys request-npm is deprecated, mainly because it uses XMLHttpRequest which is no longer supported in Service Workers which is now the background page of Chrome Extensions.

Are there any plans of migrating request to fetch to keep up with JS standards? :)

AvivonCtrl avatar May 16 '21 08:05 AvivonCtrl

Use fetch (and node-fetch) instead of request

jimmywarting avatar May 18 '21 10:05 jimmywarting

Hi guys, do you have any plans to migrate to node-fetch this year?

llravelo avatar Apr 08 '22 07:04 llravelo

I created a little ad-hoc polyfill and substitute it in using yarn config. It seems to work for my needs. Maybe it'll be helpful for others: https://github.com/apiology/upvoter-for-asana/commit/7d4ca40fba9943089c88f20a00b7b089ce300295

apiology avatar Nov 05 '22 03:11 apiology