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:46:10 UTC

[GitHub] [couchdb-nano] konsumer opened a new issue, #307: fetch instead of axios

konsumer opened a new issue, #307:
URL: https://github.com/apache/couchdb-nano/issues/307

   <!--- Provide a general summary of the issue in the Title above -->
   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.)
   


-- 
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.apache.org

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


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

Posted by GitBox <gi...@apache.org>.
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


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

Posted by "SinanGabel (via GitHub)" <gi...@apache.org>.
SinanGabel commented on issue #307:
URL: https://github.com/apache/couchdb-nano/issues/307#issuecomment-1405126022

   **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!
   


-- 
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