Replies: 10 comments
-
I am not fully sure how safe it would be to switch to |
Beta Was this translation helpful? Give feedback.
-
@yevheniyJ just to clarify, my proposal was to first switch to Also, since you mentioned the ability to use |
Beta Was this translation helpful? Give feedback.
-
@ImRodry |
Beta Was this translation helpful? Give feedback.
-
At the moment, without any experimental flags, |
Beta Was this translation helpful? Give feedback.
-
Yes or if you really want to use |
Beta Was this translation helpful? Give feedback.
-
Node v18 has now been released and fetch is declared globally without any flags. Can we switch to node's version of fetch now and release a new major version along with #137? |
Beta Was this translation helpful? Give feedback.
-
We'll think about this possibility. |
Beta Was this translation helpful? Give feedback.
-
May I know why this was closed @andrii-bodnar? Undici’s fetch is noow stable on the latest version of Node 18. |
Beta Was this translation helpful? Give feedback.
-
@ImRodry we've recently updated Axios to the latest version and improved Error handling. #226. It's based on the Axios exceptions. We definitely not going to migrate from Axios in the nearest future. When something changes we will reopen this issue. |
Beta Was this translation helpful? Give feedback.
-
That does not answer my question nor does it satisfy the original issue here. The goal here is to remove the dependency in favor of the built-in library that we’re all using already. Of course this would require a major version bump but it’s still something you should be doing. |
Beta Was this translation helpful? Give feedback.
-
Node.js has recently implemented the fetch API into it as an experimental flag (ref: nodejs/node#41749) which makes use of node's
undici
package and sets fetch and other features from it as global variables. As this is expected to come out officially in node 18 later this year, I recommend that we switch fromaxios
toundici
for all fetch requests. If the maintainers agree with this change I would be willing to open the PR that introduces that.Beta Was this translation helpful? Give feedback.
All reactions