Skip to content
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

fetch instead of axios #307

Open
konsumer opened this issue Oct 25, 2022 · 2 comments · May be fixed by #314
Open

fetch instead of axios #307

konsumer opened this issue Oct 25, 2022 · 2 comments · May be fixed by #314

Comments

@konsumer
Copy link

If this library used fetch instead of axios (with cross-fetch as a polyfill for environments that don't have fetch) it would be usable in other js environments (deno, bun, cloudflare workers, maybe even browser!)

Possible Solution

Remove dependencies on axios, and use cross-fetch and standard fetch API.

I have seen browser-nano but haven't tested. It may already have support for this. This might be a nice way to merge these projects. It has a very thin wrapper to monkey-patch nano.

Context

For me specifically, it would enable me to use nano/couch more easily, directly with cloudflare workers (which have fetch built-in.)

@glynnbird
Copy link
Contributor

glynnbird commented Oct 25, 2022 via email

@glynnbird glynnbird linked a pull request Dec 16, 2022 that will close this issue
3 tasks
@SinanGabel
Copy link

Great to move to fetch.

Just a note: I am still using nano version 8.2.3 as there are some cookie problems - in my setup - using nano versions 9.x and 10.x.

Thanks for all the work, it is greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants