Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

chore: upgrade got package #50

Merged
merged 1 commit into from Jan 15, 2020
Merged

chore: upgrade got package #50

merged 1 commit into from Jan 15, 2020

Conversation

Beanow
Copy link
Collaborator

@Beanow Beanow commented Jan 15, 2020

Full list of breaking changes listed here.
https://github.com/sindresorhus/got/releases/tag/v10.0.0

One breaking change affected our usage:
"Use the responseType option instead of encoding to get a Buffer"
sindresorhus/got#940

- got(…, {encoding: null});
+ got(…, {responseType: 'buffer'});

Closes: #45

Test plan: yarn test passes

Copy link
Contributor

@vsoch vsoch left a comment

Choose a reason for hiding this comment

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

Wow that's quite a few breaking changes! It looks like you changed the got.get request to exactly as it should be for the new release, asking for "buffer" instead of null and changing encoding to responseType. If tests pass with this change, we should be good, and I assume that if there were other uses of the module (I'm not familiar with the code base) tests wouldn't pass given the change. So LGTM.

Full list of breaking changes listed here.
https://github.com/sindresorhus/got/releases/tag/v10.0.0

One breaking change affected our usage:
"Use the responseType option instead of encoding to get a Buffer"
sindresorhus/got#940

- got(…, {encoding: null});
+ got(…, {responseType: 'buffer'});
@Beanow Beanow changed the base branch from pr/package-update to master January 15, 2020 19:05
@Beanow Beanow merged commit 805c59b into master Jan 15, 2020
@Beanow Beanow deleted the pr/upgrade-got branch January 15, 2020 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants