You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure the deprecation of request will impact the JS driver much here. It uses XHR libs under the hood. However, the newer driver we've been working on had a request engine that we'll now have to refactor. It would be nice to find something with some longevity.
Personally, I'm not all that enamored with async. Callbacks, for all of their verbose expression, are still one of JavaScript's strengths. I fear the async pattern could lead to a lot of poorly written code that stalls waiting for the event loop. Promises make sense but promises + serial execution + network latency leads to slow, slow code.
We are currently looking at different options (fetch-nodejs, axios).
The only reason I openen an issue here was because we currently use the method Gitana.streamDownload which uses the request module. Which on a side note we sometimes see issues downloading images, I modified the options passed to the request object to include encoding: null and that makes it work.
Yes, the async pattern for web related stuff has its drawbacks but if used correctly it can make code easier to understand since we will not have the famous callback hell
The Request module has been deprecated.
The text was updated successfully, but these errors were encountered: