front-end-monorepo icon indicating copy to clipboard operation
front-end-monorepo copied to clipboard

Swap superagent for a fetch API based request library

Open srallen opened this issue 6 years ago • 3 comments

Package lib-panoptes-js

Feature or Issue Description The panoptes.js library currently uses superagent for http request. Superagent is a mature and robust library that handles common security concerns and uses XHR for full browser support. However, we have decided to not support IE11 and all other modern browsers support the the Fetch API: https://caniuse.com/#search=fetch

Since we do not need to support XHR anymore and because we're starting to use service workers (SWs do not support XHR either), perhaps we should switch to a Fetch API based request library. frisbee looks promising.

(There's no rush to do this either)

To Dos

  • [ ] Example

srallen avatar Dec 05 '18 23:12 srallen