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

refactor: move from "request" to "node fetch" #277

Merged
merged 5 commits into from
Aug 14, 2020

Conversation

favna
Copy link
Contributor

@favna favna commented Aug 13, 2020

What:

I recently installed this CLI and got the helpful message from yarn that it was still using the request package which has been deprecated (see request/request#3142). To resolve this I rewrote the parts using request to instead use the node-fetch package.

Why:

As stated above, request has been deprecated. node-fetch is a good alternative that also didn't require too many changes to the code.

How:

By changing the code pretty much. What is there to say really. I have a lot of experience with node-fetch so I knew what to do and it helped that request was already being promisified.

Checklist:

  • Documentation N.A.
  • Tests
  • Ready to be merged
  • Added myself to contributors table

@favna favna changed the title Refactor/move to node fetch refactor: move to node fetch Aug 13, 2020
@favna favna changed the title refactor: move to node fetch refactor: move from "request" to "node fetch" Aug 13, 2020
Copy link
Member

@Berkmann18 Berkmann18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thank you.

@Berkmann18 Berkmann18 merged commit 74f3b71 into all-contributors:master Aug 14, 2020
@all-contributors-release-bot
Copy link
Member

🎉 This PR is included in version 6.17.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@favna favna deleted the refactor/move-to-node-fetch branch August 14, 2020 09:46
favna added a commit to favna/all-contributors-cli that referenced this pull request Aug 14, 2020
This accidentally got in as I was copypasting code as part of all-contributors#277
@favna favna mentioned this pull request Aug 14, 2020
4 tasks
Berkmann18 pushed a commit that referenced this pull request Aug 16, 2020
This accidentally got in as I was copypasting code as part of #277
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants