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

feat: replace request with node-fetch, #100 #105

Merged
merged 2 commits into from
Sep 29, 2021
Merged

feat: replace request with node-fetch, #100 #105

merged 2 commits into from
Sep 29, 2021

Conversation

MrSwitch
Copy link
Member

Fixes #100

@MrSwitch MrSwitch requested a review from a team September 29, 2021 11:31
BREAKING CHANGE: Node fetch returns a different instance when used with `json:false` argument
@coveralls
Copy link

coveralls commented Sep 29, 2021

Coverage Status

Coverage remained the same at 100.0% when pulling 60e10fa on node-fetch into 63fc416 on main.

src/api.js Outdated Show resolved Hide resolved
// How to handle JSON
// Explitly request JSON response
const convertToJSON = json ?? true
if (convertToJSON) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if (json) {

Copy link
Member Author

Choose a reason for hiding this comment

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

I think you haven't noted the nullish coalescing ?? true

Co-authored-by: Iheb KHEMISSI <iheb.khemissi+github@gmail.com>
@MrSwitch MrSwitch merged commit 337df02 into main Sep 29, 2021
@MrSwitch MrSwitch deleted the node-fetch branch September 29, 2021 12:15
5app-Machine added a commit that referenced this pull request Sep 29, 2021
# [1.0.0](v0.3.1...v1.0.0) (2021-09-29)

### Features

* replace request with node-fetch, [#100](#100) ([#105](#105)) ([337df02](337df02))

### BREAKING CHANGES

* Node fetch returns a different instance when used with `json:false` argument

* chore: typo src/api.js

Co-authored-by: Iheb KHEMISSI <iheb.khemissi+github@gmail.com>

Co-authored-by: Iheb KHEMISSI <iheb.khemissi+github@gmail.com>
@5app-Machine
Copy link
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

Replace deprecated npm request with node-fetch
4 participants