Skip to content

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

Merged
Berkmann18 merged 5 commits into
all-contributors:masterfrom
favna:refactor/move-to-node-fetch
Aug 14, 2020
Merged

Berkmann18 merged 5 commits into
all-contributors:masterfrom
favna:refactor/move-to-node-fetch

Conversation

@favna

@favna favna commented Aug 13, 2020

Copy link
Copy Markdown
Contributor

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

@Berkmann18 Berkmann18 left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
2 of 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants