You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/10/25 19:57:10 UTC

[GitHub] [couchdb-nano] glynnbird commented on issue #307: fetch instead of axios

glynnbird commented on issue #307:
URL: https://github.com/apache/couchdb-nano/issues/307#issuecomment-1291066266

   Totally agree. Just need fetch to be in a node lts release.
   
   On Tue, 25 Oct 2022, 20:46 David Konsumer, ***@***.***> wrote:
   
   > 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
   > <https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API>.
   >
   > I have seen browser-nano <https://github.com/achesco/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
   > <https://github.com/achesco/browser-nano/blob/master/lib/index.js> 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.)
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/couchdb-nano/issues/307>, or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AAFKMRNJKYYTZNSRYQSUYDLWFA2IZANCNFSM6AAAAAAROJMI3E>
   > .
   > You are receiving this because you are subscribed to this thread.Message
   > ID: ***@***.***>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org