openfga / js-sdk

OpenFGA SDK for node.js and JavaScript - https://www.npmjs.com/package/@openfga/sdk
https://openfga.dev
Apache License 2.0
50 stars 11 forks source link

Replace axios #18

Open rhamzeh opened 1 year ago

rhamzeh commented 1 year ago

Summary

axios v1 has brought a few breaking changes, so now's the time to reconsider whether it still is the best solution we have.

Motivation(s)

Downsides

Alternatives to consider

Criteria for success

State (as of June 2024)

We're currently favouring undici and planning on starting work on this soon

RichiCoder1 commented 1 year ago

I can definitely recommend ky. It's fetch with an excellent interface.

ntotten commented 4 months ago

The replacement should also support Cloudflare Workers like environments (https://github.com/openfga/js-sdk/issues/72)

nicoduj commented 4 months ago

Hi, Considering support for http corporate proxy with self signed certificate maybe ? ( see https://github.com/orgs/openfga/discussions/310 )

rhamzeh commented 4 months ago

Just as an FYI - we are planning on starting work on this within the next two months.

We are leaning heavily towards undici, mostly for performance & current maintenance reasons. Ensuring compatibility w/ fetch in environments where undici is not available (Cloudflare Workers, Vercel, Browser, etc..) is part of this work

gitaugakwa commented 4 months ago

I think got would be a great alternative, though I think anything but axios would be fine