Open janbiasi opened 5 years ago
For the monorepo way; lets keep in mind that I'd still like to offer a local
version (next to remote
). Remote being the sdk that connects to an existing API, local
being connecting straight to a database
At the moment I'd go for version 2 just because the modern browsers would benefit a lot, and v1 adds just more complexity. Eventually we'll also find some other possible fixes for this one :D
🚀 feature request
Description
Axios is a quite heavy library for simple promise based HTTP calls (gzipped about ~4.3kB), so it would be great to replace it with a better alternative or other approach on API calls.
Describe the solution you'd like
1) Make a monorepository out of the SDK while providing
@directus/sdk-js
package for the main SDK@directus/sdk-adapter
for the adapter spec and basics@directus/sdk-adapter-node
for NodeJS projects@directus/sdk-adapter-browser
for default web projects@directus/sdk-adapter-auto
for lazy guys (optional)2) Use an isomorphic tool like fetch
3) ... to be defined