This switches to use the fetch API instead of XMLHTTPRequest. It supports both github/fetch when used in a browser and bitinn/node-fetch when used via nodejs.
It also switches to using Promises by default; the node-js style callback format is still supported.
TODO
[x] remove the ajax helper in requester.js and just use fetch directly
[x] use promises everywhere instead of callbacks in the plugins
This switches to use the fetch API instead of
XMLHTTPRequest
. It supports both github/fetch when used in a browser and bitinn/node-fetch when used via nodejs.It also switches to using Promises by default; the node-js style callback format is still supported.
TODO
ajax
helper inrequester.js
and just use fetch directlytoPromise
function