-
-
Notifications
You must be signed in to change notification settings - Fork 221
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 deprecated "request-promise-native" dependency #6250
Comments
This is a probably not totally accurate side-by-side api comparison:
|
I still like In terms of ease of use, I think In terms of npm/git stats:
*Running |
Axios! |
@latin-panda Why do you prefer axios? |
+1 Axios. I used it in the past and it is simple, and works in both the browser and the server (despite we are planning for now just a replacement for scripts and backends). Furthermore:
|
Agree that Axios might be preferable in terms of migration effort, since it has an API similar enough to request-promise-native and has similar error handling capabilities. |
Hi @garethbowen ! |
I think both have merit. In regards to what feels "Standard" (re @latin-panda), I would say that Have I ever reached to |
I have one argument against node-fetch: it's annoying to stub in unit tests because of the default export. This is how others are trying to do it.. All options looks pretty bad. |
It seems there are some unwanted interactions between Node 20 and I've removed the low priority tag, as this is blocking us from confidently upgrading NodeJs. |
@garethbowen says that since we've now upgraded to Node 22, we can just use the built-in fetch instead. |
Updates e2e tests request to use built-in fetch instead of request-promise-native. Removes sessions from e2e tests, these are not needed anymore. Updates all (except 2) datasource e2e tests to query api directly. These tests required that global fetch had a session enabled to work, and stopped working once sessions were removed. #6250
Should I have waited until Feb 18th? To have a 5 year anniversary on this? |
Describe the issue
The
request
package (which is required byrequest-promise-native
) has been deprecated so we need to find an alternative which is being maintained.Describe the improvement you'd like
Pick another library that is being maintained. Some options are listed here: request/request#3143
Describe alternatives you've considered
We could stay with
request-promise-native
for a while and only switch when an issue is found but I'd prefer to get a head start on this.The text was updated successfully, but these errors were encountered: