useshortcut / shortcut-client-js

The official JavaScript client library for the Shortcut (formerly Clubhouse) REST API.
https://useshortcut.github.io/shortcut-client-js/
133 stars 31 forks source link

Make it compatible in browser #95

Closed charpeni closed 3 years ago

charpeni commented 3 years ago

Resolves #22, resolves #72, and resolves #88.

Currently, we're relying on a fetch API provided by fetch-everywhere, and it seems like it's not fully compatible in browsers or at least, requires some additional setup as well as being flagged as a vulnerable dependency.

Let's move away from fetch-everywhere in favor of cross-fetch which is providing a Universal WHATWG Fetch API for Node, Browsers, and React Native without side-effects.

molszanski commented 3 years ago

Cool! Will check it out :)