Skip to content
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 request with fetch / other libraries #151

Open
gnify opened this issue Jan 22, 2025 · 4 comments
Open

Replace request with fetch / other libraries #151

gnify opened this issue Jan 22, 2025 · 4 comments
Labels
umbrella issue This issue contains a list of dependents of a package and tracks the progress in each

Comments

@gnify
Copy link

gnify commented Jan 22, 2025

request has been deprecated, see request/request#3142

npx github:Fuzzyma/e18e-tools request -n 100 -q -o md  -U https://npm.devminer.xyz/registry > request-output.md
# Downloads Traffic Version Package
1 3.74M 221.53 GB ^2.87.0 webdriver-manager
2 2.82M 167.02 GB ^2.88.0 @kubernetes/client-node
3 1.74M 103.28 GB ^2.88.2 coveralls
4 1.60M 94.93 GB ^2.81.0 phantomjs-prebuilt
5 1.20M 71.02 GB ^2.88.0 oci-image-builder
6 1.09M 64.44 GB ^2.88.2 ms-rest
7 1.01M 59.52 GB ^2.74.0 npm-registry-client
8 994.52k 58.89 GB ^2.88.0 ms-rest-azure
9 882.09k 52.23 GB ^2.44.0 get-pixels
10 881.13k 52.18 GB ^2.79.0 servify
11 762.84k 45.17 GB ^2.86.0 azure-storage
12 684.71k 40.54 GB ^2.79.0 google-auto-auth
13 555.64k 32.90 GB ^2.88.0 insight
14 355.69k 21.06 GB 2.88.0 wd
15 341.38k 20.21 GB ^2.72.0 testrail-api
16 300.67k 17.80 GB ^2.88.0 google-it
17 288.54k 17.09 GB ^2.88.0 uncss
18 286.06k 16.94 GB ^2.88.2 api-dylux
19 277.99k 16.46 GB ^2.88.0 unirest
20 265.78k 15.74 GB 2.75.x loggly
21 264.17k 15.64 GB ^2.45.0 nugget
22 259.77k 15.38 GB ^2.85.0 @resolver-engine/core
23 256.41k 15.18 GB ^2.88.2 @qiwi/npm-registry-client
24 243.47k 14.42 GB ^2.88.2 g-i-s
25 211.22k 12.51 GB ^2.55.0 pngjs-image
26 193.56k 11.46 GB ^2.87.0 lint
27 191.10k 11.32 GB ^2.88.2 kubernetes-client
28 189.50k 11.22 GB ~2.67.0 phantomjs
29 179.01k 10.60 GB ^2.0.0 hipchat-notifier
30 165.68k 9.81 GB 2.88.0 @luminati-io/luminati-proxy
31 161.80k 9.58 GB ^2.87.0 docsearch.js
32 150.83k 8.93 GB ^2.83.0 strapi-plugin-users-permissions
33 148.51k 8.79 GB ^2.81.0 @getbrevo/brevo
34 147.71k 8.75 GB ^2.88.0 swagger-fluent
35 138.60k 8.21 GB ^2.88.0 @lambdatest/node-rest-client
36 134.75k 7.98 GB 2.88.2 sign-addon
37 131.49k 7.79 GB ^2.88.0 surge
38 128.14k 7.59 GB 2.88.0 @parse/node-gcm
39 127.62k 7.56 GB 2.x.x chakram
40 126.41k 7.48 GB 2.88.0 node-quickbooks
41 125.89k 7.45 GB ^2.68 digitalocean
42 124.80k 7.39 GB ^2.81.0 azure-common
43 123.73k 7.33 GB >=0.1.0 curl
44 117.26k 6.94 GB ^2.81.0 @onelogin/sdk
45 116.63k 6.91 GB ^2.81.0 fb
46 109.45k 6.48 GB ^2.88.0 instagram-private-api
47 108.92k 6.45 GB ^2.81.0 node-gtts
48 106.72k 6.32 GB ^2.88.0 remove.bg
49 105.31k 6.24 GB ^2.51.0 bower-registry-client
50 104.06k 6.16 GB ^2.85.0 promise-request-retry
51 97.75k 5.79 GB ^2.87.0 percy-client
52 97.07k 5.75 GB ^2.88.0 jira-connector
53 94.86k 5.62 GB 2.88.2 create-graphback
54 90.96k 5.39 GB ^2.88.0 cloudant-follow
55 90.58k 5.36 GB ^2.88.2 api-spec-converter
56 87.02k 5.15 GB ^2.83.0 strong-remoting
57 85.96k 5.09 GB ^2.88.2 onesignal-node
58 82.67k 4.90 GB npm:@cypress/req elasticdump
59 81.79k 4.84 GB ^2.81.0 json-schema-generator
60 78.76k 4.66 GB ^2.88.0 mailchimp-api-v3
61 77.79k 4.61 GB ~2.88.0 gh
62 76.39k 4.52 GB ^2.87.0 authy
63 73.64k 4.36 GB ^2.88.0 @o3r/dev-tools
64 72.43k 4.29 GB ^2.88.2 request-ntlm-promise
65 72.15k 4.27 GB ^2.88.2 hubspot
66 71.03k 4.21 GB ^2.88.0 nforce
67 69.87k 4.14 GB ^2.72.0 octonode
68 69.63k 4.12 GB 2.88.2 codefresh-sdk
69 68.67k 4.07 GB 2.74.0 domotz-remote-pawn
70 67.69k 4.01 GB ~2.x node-slack
71 67.49k 4.00 GB ^2.44.0 get-pixels-frame-info-update
72 66.34k 3.93 GB ^2.85.0 local-cors-proxy
73 65.56k 3.88 GB ~2.40.0 yui
74 65.45k 3.88 GB * co-request
75 64.71k 3.83 GB ^2.79.0 googlemaps
76 64.56k 3.82 GB ^2.79.0 sparkpost
77 62.61k 3.71 GB ^2.72.0 twitter
78 61.70k 3.65 GB ^2.87.0 travis-ci
79 61.64k 3.65 GB ^2.88.2 cos-nodejs-sdk-v5
80 61.62k 3.65 GB ^2.58.0 dwdav
81 59.84k 3.54 GB ^2.88.2 laravel-echo-server
82 59.69k 3.53 GB 2.88.0 clickhouse
83 59.54k 3.53 GB ^2.87.0 express-request-proxy
84 54.83k 3.25 GB ^2.88.0 image-data-uri
85 54.21k 3.21 GB ^2.88.0 koa-proxy
86 52.95k 3.14 GB ^2.79.0 @2fd/graphdoc
87 52.89k 3.13 GB ~2.88.0 codeclimate-test-reporter
88 52.88k 3.13 GB 2.88.0 graphql-code-generator
89 52.41k 3.10 GB ^2.68.0 twit
90 52.07k 3.08 GB ^2.81.0 @sendinblue/client
91 51.75k 3.06 GB ^2.81.0 azure
92 51.73k 3.06 GB ^2.88.0 @webex/http-core
93 51.31k 3.04 GB ^2.88.0 lob
94 50.70k 3.00 GB * force
95 50.27k 2.98 GB ^2.88.2 @cubejs-backend/cloud
96 49.22k 2.91 GB 2.88.0 in-app-purchase
97 48.46k 2.87 GB ^2.66.0 node-ntlm-client
98 47.53k 2.81 GB ^2.72.0 node-slackr
99 47.28k 2.80 GB ^2.55.0 ampersand-sync
100 47.28k 2.80 GB ^2.65.0 node-xmpp-client
@gnify
Copy link
Author

gnify commented Jan 22, 2025

This depends on the exact usage of the package. I've dropped some of the simple modern examples in here es-tooling/module-replacements#192 (also keep in mind this one - #145)

For now replacements from here can be considered - request/request#3143

I think this needs further discussion

@gnify gnify changed the title Replace request with other functionality Replace request with fetch / other libraries Jan 22, 2025
@Fuzzyma Fuzzyma added the umbrella issue This issue contains a list of dependents of a package and tracks the progress in each label Jan 22, 2025
@talentlessguy
Copy link

how many of those are dead/deprecated/abandoned? with request it'll be harder to replace since most of the libs haven't had any commits in almost a decade

@43081j
Copy link
Collaborator

43081j commented Jan 23, 2025

It'd be good to know if many of them are just dependencies of other higher impact packages

Should we be looking at dependents of dependents?

@Fuzzyma
Copy link
Collaborator

Fuzzyma commented Jan 23, 2025

Unfortunately I dont have a md output for recursive lookups. This is dephs two.

 #1 3.74M ⬇️ , 221.53 GB - webdriver-manager       ^2.87.0 https://npmjs.com/webdriver-manager
   #1  3.50M ⬇️ , 275.40 GB - protractor                ^12.1.7 https://npmjs.com/protractor
     #1 86.94k ⬇️ ,  16.30 GB - gulp-protractor         ^5     https://npmjs.com/gulp-protractor
     #2 50.27k ⬇️ ,   9.42 GB - grunt-protractor-runner ^5.0.0 https://npmjs.com/grunt-protractor-runner
     #3 11.27k ⬇️ ,   2.11 GB - proui-utils             3.3.0  https://npmjs.com/proui-utils
     #4  9.74k ⬇️ ,   1.83 GB - @ui5/uiveri5            ~5.3.0 https://npmjs.com/@ui5/uiveri5
     #5  4.54k ⬇️ , 851.28 MB - @types/protractor       *      https://npmjs.com/@types/protractor
   #2 28.96k ⬇️ ,   2.28 GB - protractor-flake          ^12.1.1 https://npmjs.com/protractor-flake
     #1 3 ⬇️ , 29.54 KB - automationnpmtest    ^3.3.0 https://npmjs.com/automationnpmtest
     #2 0 ⬇️ ,          - @zalastax/nolb-protr latest https://npmjs.com/@zalastax/nolb-protr
   #3  6.42k ⬇️ , 505.05 MB - jsgantt-improved          ^13.0.0 https://npmjs.com/jsgantt-improved
     #1 193 ⬇️ , 386.95 MB - react-jsgantt             ^2.8.8 https://npmjs.com/react-jsgantt
     #2   5 ⬇️ ,  10.02 MB - @szivgy/ng-gantt          *      https://npmjs.com/@szivgy/ng-gantt
     #3   4 ⬇️ ,   8.02 MB - gost-gantt-chart          ^2.5.5 https://npmjs.com/gost-gantt-chart
     #4   2 ⬇️ ,   4.01 MB - @szivgy/ng-gantt-extended *      https://npmjs.com/@szivgy/ng-gantt-extended
     #5   0 ⬇️ ,           - @zalastax/nolb-jsg        latest https://npmjs.com/@zalastax/nolb-jsg
   #4  1.46k ⬇️ , 114.52 MB - @freelancercom/protractor 13.0.0  https://npmjs.com/@freelancercom/protractor
     #1 0 ⬇️ ,         - @zalastax/nolb-_fre latest https://npmjs.com/@zalastax/nolb-_fre
   #5  1.33k ⬇️ , 104.30 MB - conintervu                ^12.1.8 https://npmjs.com/conintervu
 #2 2.82M ⬇️ , 167.02 GB - @kubernetes/client-node ^2.88.0 https://npmjs.com/@kubernetes/client-node
   #1 887.00k ⬇️ , 1551.93 GB - @backstage/backend-common            0.20.0    https://npmjs.com/@backstage/backend-common
     #1 642.04k ⬇️ , 88.70 GB - @backstage/plugin-auth-node                     ^0.25.0 https://npmjs.com/@backstage/plugin-auth-node
     #2 493.20k ⬇️ , 68.13 GB - @backstage/plugin-permission-node               ^0.25.0 https://npmjs.com/@backstage/plugin-permission-node
     #3 284.71k ⬇️ , 39.33 GB - @backstage/backend-tasks                        ^0.24.1 https://npmjs.com/@backstage/backend-tasks
     #4 269.17k ⬇️ , 37.19 GB - @backstage/plugin-scaffolder-node               ^0.25.0 https://npmjs.com/@backstage/plugin-scaffolder-node
     #5 237.59k ⬇️ , 32.82 GB - @backstage/plugin-search-backend-module-catalog ^0.25.0 https://npmjs.com/@backstage/plugin-search-backend-module-catalog
   #2 359.01k ⬇️ ,  628.15 GB - browserstack-node-sdk                1.0.0-rc7 https://npmjs.com/browserstack-node-sdk
     #1 37 ⬇️ , 29.02 MB - @maxmattone/browserstack-side-runner ^1.32.0 https://npmjs.com/@maxmattone/browserstack-side-runner
     #2  0 ⬇️ ,          - @zalastax/nolb-browsers              latest  https://npmjs.com/@zalastax/nolb-browsers
   #3 191.10k ⬇️ ,  334.35 GB - kubernetes-client                    0.10.2    https://npmjs.com/kubernetes-client
     #1 93.10k ⬇️ , 67.90 GB - openshift-rest-client 9.0.0   https://npmjs.com/openshift-rest-client
     #2 27.24k ⬇️ , 19.87 GB - serverless-kubeless   ^3.12.0 https://npmjs.com/serverless-kubeless
     #3 18.96k ⬇️ , 13.83 GB - codefresh             ^9.0.0  https://npmjs.com/codefresh
     #4  5.11k ⬇️ ,  3.73 GB - @nestcloud/common     ^8.3.3  https://npmjs.com/@nestcloud/common
     #5  1.95k ⬇️ ,  1.42 GB - ibmapm-restclient     ^3.16.0 https://npmjs.com/ibmapm-restclient
   #4 125.47k ⬇️ ,  219.53 GB - @backstage/plugin-kubernetes-common  1.0.0-rc7 https://npmjs.com/@backstage/plugin-kubernetes-common
     #1 92.72k ⬇️ ,   1.84 GB - @backstage/plugin-kubernetes-backend         ^0.9.0 https://npmjs.com/@backstage/plugin-kubernetes-backend
     #2 89.00k ⬇️ ,   1.77 GB - @backstage/plugin-kubernetes-node            ^0.9.0 https://npmjs.com/@backstage/plugin-kubernetes-node
     #3 79.76k ⬇️ ,   1.59 GB - @backstage/plugin-kubernetes-react           ^0.9.0 https://npmjs.com/@backstage/plugin-kubernetes-react
     #4 72.12k ⬇️ ,   1.43 GB - @backstage/plugin-kubernetes                 ^0.9.0 https://npmjs.com/@backstage/plugin-kubernetes
     #5 17.54k ⬇️ , 348.69 MB - @backstage/plugin-catalog-backend-module-aws ^0.9.0 https://npmjs.com/@backstage/plugin-catalog-backend-module-aws
   #5  92.72k ⬇️ ,  162.22 GB - @backstage/plugin-kubernetes-backend 1.0.0-rc7 https://npmjs.com/@backstage/plugin-kubernetes-backend
     #1 161 ⬇️ , 11.81 MB - @yolossn/plugin-headlamp-backend                ^0.18.4 https://npmjs.com/@yolossn/plugin-headlamp-backend
     #2  24 ⬇️ ,  1.76 MB - @antoinedao/backstage-provider-kubernetes       ^0.9.2  https://npmjs.com/@antoinedao/backstage-provider-kubernetes
     #3   0 ⬇️ ,          - @headlamp-k8s/backstage-plugin-headlamp-backend ^0.18.4 https://npmjs.com/@headlamp-k8s/backstage-plugin-headlamp-backend
 #3 1.74M ⬇️ , 103.28 GB - coveralls               ^2.88.2 https://npmjs.com/coveralls
   #1 104.06k ⬇️ ,   1.09 GB - promise-request-retry ^3.0.0  https://npmjs.com/promise-request-retry
     #1 50 ⬇️ , 388.00 KB - iobroker.bsblan           ^1.0.2 https://npmjs.com/iobroker.bsblan
     #2 49 ⬇️ , 380.24 KB - jira-miner                ^1.0.1 https://npmjs.com/jira-miner
     #3 10 ⬇️ ,  77.60 KB - intermediate-component-sa 1.0.1  https://npmjs.com/intermediate-component-sa
     #4  6 ⬇️ ,  46.56 KB - @varkes/app-connector     ^1.0.2 https://npmjs.com/@varkes/app-connector
     #5  3 ⬇️ ,  23.28 KB - finabler                  ^1.0.1 https://npmjs.com/finabler
   #2  35.42k ⬇️ , 369.79 MB - karma-coveralls       ~3.0.0  https://npmjs.com/karma-coveralls
     #1 221 ⬇️ , 905.66 KB - @wvr/core            ^2.1.0 https://npmjs.com/@wvr/core
     #2 183 ⬇️ , 749.93 KB - @mapstore/project    2.1.0  https://npmjs.com/@mapstore/project
     #3 161 ⬇️ , 659.78 KB - karma-webpack-bundle ^2.1.0 https://npmjs.com/karma-webpack-bundle
     #4 133 ⬇️ , 545.03 KB - gulp-evrythng-tasks  ^1.1.2 https://npmjs.com/gulp-evrythng-tasks
     #5  56 ⬇️ , 229.49 KB - aqua                 ^1.1.2 https://npmjs.com/aqua
   #3   5.82k ⬇️ ,  60.79 MB - gulp-coveralls        ^2.11.2 https://npmjs.com/gulp-coveralls
     #1 80 ⬇️ , 352.24 KB - checkr-api        ^0.1.2 https://npmjs.com/checkr-api
     #2 62 ⬇️ , 272.99 KB - lithium-sdk       0.1.3  https://npmjs.com/lithium-sdk
     #3 38 ⬇️ , 167.31 KB - mandragora-bucket ^0.1.3 https://npmjs.com/mandragora-bucket
     #4 27 ⬇️ , 118.88 KB - monty-hall        ^0.1.4 https://npmjs.com/monty-hall
     #5 24 ⬇️ , 105.67 KB - lackey-cms        ^0.1.4 https://npmjs.com/lackey-cms
   #4   4.73k ⬇️ ,  49.40 MB - grunt-karma-coveralls ^2.10   https://npmjs.com/grunt-karma-coveralls
     #1 11 ⬇️ , 31.58 KB - copay-dash ^2.5.4 https://npmjs.com/copay-dash
   #5   3.67k ⬇️ ,  38.28 MB - @theforeman/test      ^3.0.9  https://npmjs.com/@theforeman/test
 #4 1.60M ⬇️ ,  94.93 GB - phantomjs-prebuilt      ^2.81.0 https://npmjs.com/phantomjs-prebuilt
   #1 568.86k ⬇️ , 9.87 GB - html-pdf                 ^2.1.16 https://npmjs.com/html-pdf
     #1 52.17k ⬇️ ,   3.80 GB - pdf-creator-node    ^3.0.1 https://npmjs.com/pdf-creator-node
     #2 25.70k ⬇️ ,   1.87 GB - docx-pdf            ^2.1.0 https://npmjs.com/docx-pdf
     #3 16.71k ⬇️ ,   1.22 GB - eml-parser          ^3.0.1 https://npmjs.com/eml-parser
     #4  4.80k ⬇️ , 349.84 MB - dynamic-html-pdf    3.0.1  https://npmjs.com/dynamic-html-pdf
     #5  3.72k ⬇️ , 271.11 MB - @t00nday/nestjs-pdf 3.0.1  https://npmjs.com/@t00nday/nestjs-pdf
   #2 560.26k ⬇️ , 9.72 GB - karma-phantomjs-launcher ^2.1.7  https://npmjs.com/karma-phantomjs-launcher
     #1 50.55k ⬇️ ,   1.79 GB - nwb                           1.0.4  https://npmjs.com/nwb
     #2  4.86k ⬇️ , 172.49 MB - webpack-karma-jasmine         ^1.0.4 https://npmjs.com/webpack-karma-jasmine
     #3  1.30k ⬇️ ,  46.02 MB - wix-gruntfile                 ^1.0.4 https://npmjs.com/wix-gruntfile
     #4  1.08k ⬇️ ,  38.47 MB - angular-password              ^1.0.0 https://npmjs.com/angular-password
     #5    783 ⬇️ ,  27.78 MB - builder-victory-component-dev ^1.0.2 https://npmjs.com/builder-victory-component-dev
   #3  87.74k ⬇️ , 1.52 GB - grunt-lib-phantomjs      ^2.1.3  https://npmjs.com/grunt-lib-phantomjs
     #1 40.68k ⬇️ , 272.45 MB - grunt-mocha           ^1.1.0 https://npmjs.com/grunt-mocha
     #2    275 ⬇️ ,   1.84 MB - grunt-blanket-mocha   ^1.0.2 https://npmjs.com/grunt-blanket-mocha
     #3    266 ⬇️ ,   1.78 MB - @code-dot-org/bramble 0.3.0  https://npmjs.com/@code-dot-org/bramble
     #4    130 ⬇️ , 870.61 KB - grunt-mip             ~0.6.0 https://npmjs.com/grunt-mip
     #5    119 ⬇️ , 796.94 KB - grunt-aspunit         ~0.4.0 https://npmjs.com/grunt-aspunit
   #4  66.08k ⬇️ , 1.15 GB - svg2png                  ^2.1.14 https://npmjs.com/svg2png
     #1 18.13k ⬇️ , 93.17 MB - gulp-svg2png         ^3.0.0 https://npmjs.com/gulp-svg2png
     #2  3.78k ⬇️ , 19.45 MB - lts                  4.1.1  https://npmjs.com/lts
     #3  1.19k ⬇️ ,  6.14 MB - font-awesome-assets  ^4.0.0 https://npmjs.com/font-awesome-assets
     #4    847 ⬇️ ,  4.35 MB - lcov-badge-generator ^4.1.1 https://npmjs.com/lcov-badge-generator
     #5    763 ⬇️ ,  3.92 MB - dr-svg-sprites       ^4.0.0 https://npmjs.com/dr-svg-sprites
   #5  62.29k ⬇️ , 1.08 GB - phantom                  ^2.1.16 https://npmjs.com/phantom
     #1 4.86k ⬇️ , 59.64 MB - svg-icon            ^2.1.14 https://npmjs.com/svg-icon
     #2   966 ⬇️ , 11.86 MB - sg-protractor-tools ^0.7.2  https://npmjs.com/sg-protractor-tools
     #3   322 ⬇️ ,  3.95 MB - charts              ~0.5.4  https://npmjs.com/charts
     #4   249 ⬇️ ,  3.06 MB - scraperjs           ^0.8.4  https://npmjs.com/scraperjs
     #5   196 ⬇️ ,  2.41 MB - htmltopdf           ^0.8.3  https://npmjs.com/htmltopdf
 #5 1.20M ⬇️ ,  71.02 GB - oci-image-builder       ^2.88.0 https://npmjs.com/oci-image-builder
   #1 0 ⬇️ ,         - @zalastax/nolb-oci latest https://npmjs.com/@zalastax/nolb-oci
     #1 0 ⬇️ ,         - @zalastax/nolb-oc latest https://npmjs.com/@zalastax/nolb-oc

Here are the stats accumulated:
Btw: is that math correct? When accumulating, I just put the download stats of the dependent packages on top of the original one but when downloading the dependent, isnt the original one also downloaded? Didnt think too much of it when I wrote it but this numbers might be totally wrong 😅

# Downloads Traffic Version Package
1 10.43M 617.44 GB ^2.88.0 @kubernetes/client-node
2 7.47M 442.10 GB ^2.87.0 webdriver-manager
3 3.21M 190.12 GB ^2.81.0 phantomjs-prebuilt
4 1.90M 112.48 GB ^2.88.2 coveralls
5 1.20M 71.02 GB ^2.88.0 oci-image-builder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
umbrella issue This issue contains a list of dependents of a package and tracks the progress in each
Projects
None yet
Development

No branches or pull requests

4 participants