-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Replace axios dependency with native fetch #165
Comments
Is replacing an
And it's (almost) all done? Except this 3 points:
I mean what about error handling? According to the article above, which, I have read it too:
I am a bit depressed how old |
Thanks for the comment. Yes, replacing axios call in About error handling, you raised a valid point. I haven't thought much about it, as this issue is fairly low on my priority list for now. I'll look at different approaches and comment on this once I form my opinion, hopefully within next few weeks. |
TL;DR: I decided I’m not going to pursue this change in the near future. There’s a lot of work to be done to get it right and I’m not sure if benefits are worth it. I took some time to analyze this issue and here are my thoughts. First, some statistics. As of October 2020, out of 15 public projects reported by GitHub as dependent on BlizzAPI, 9 of them are Node.js apps, 5 of them are browser apps and 1 is an environment-agnostic library. Excluding my own projects, numbers look as follows: 3 Node.js apps and 5 browser apps. While BlizzAPI was never meant to be a browser library, I’m happy to recognize wide adoption of it among web applications. Browser-based apps would definitely benefit from using native API rather than third-party implementation. Even though I’d still have to bring a polyfill library (most likely For Node.js apps replacing one dependency with another isn’t really an issue as long as it APIs that rely on it remain compatible. However, replacing
Based on the above, I’m not going to pursue this change in the near future. There’s much more work to be done to get it right and I’m not sure if this is what I want to do. I might reconsider my stance on this if any of the following happens:
|
Replace axios dependency with native fetch
https://blog.logrocket.com/axios-or-fetch-api/
The text was updated successfully, but these errors were encountered: