-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
platform support #36
Comments
Hi guys, @breinero shared with me the early access of 'fauna-js'. First of all, I want to say that you're doing an excellent job - I can already feel how much faster we will get with FQL.X! We're currently integrating fauna-js into Cloudflare Workers and running into the Axios incompatibility problem. So I asked @breinero if you're open to some contributions. He said yes, so here I am ;) We're currently creating a forked version of fauna-js where we replace Axios with fetch(). Fetch seems to be the best option to achieve support for all the major JS runtimes and providers. I created a list on the compatibility of
Some open points need to be clarified (Eventually, you can answer them?):
I marked Isomorphic Unfetch & Cross-fetch orange because neither seems the perfect solution. These are the suggested isomorphic libraries by node-fetch but:
The question is, how impactful do you rate these points? Especially considering that Node 14 has EOL April this year and Node 16 has EOL September this year. I expect to create a pull request during the upcoming week. To track our progress here:
|
@mmailaender Thanks for the awesome writeup! We are indeed killing axios and need to fill it in with an API that will work for web and Node. We also need to support HTTP2 for efficient connection management and to lay the foundation for server events (i.e. Event Streaming). Cross-fetch is great, but has problems with platform support like you said (plus no HTTP2). Node 18 has experimental support for the We are working on a test suite to make sure our solution is in fact compatible with various platforms. Hopefully we can point this issue at some PRs soon 😉 😄 |
This was shipped in #66 |
Axios hems us into a limited set of platforms. Re-evaluate http layer dependencies to support platforms including:
Cloudflare, Vercel Edge and Serverless functions, Web Assembly, the Deno runtime, AWS Lambda, Netlify Functions
The text was updated successfully, but these errors were encountered: