-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Update got to the latest version 🚀 #77
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #77 +/- ##
=======================================
Coverage 75.08% 75.08%
=======================================
Files 23 23
Lines 309 309
Branches 29 29
=======================================
Hits 232 232
Misses 56 56
Partials 21 21
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
The dependency got was updated from
9.6.0
to10.0.0
.This version is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Publisher: sindresorhus
License: MIT
Release Notes for v10.0.0
We're excited to announce Got 10! 🎉 This release has been in the works for almost a year and has been a major undertaking. Got was fully rewritten in TypeScript, which helped us catch many bugs and will give us more confidence in the codebase going forward. Got is now faster and much more stable. We also fixed a huge amount of bugs. Big thanks to everyone that helped make this release possible. 🙌
If you find Got useful, you might want to sponsor the Got maintainers.
Note: Some HTTP agents like
https-proxy-agent
andagentkeepalive
are not compatible with Node.js 10 and hence not compatible with Got as Got takes advantage of some Node.js 10-only APIs.Breaking
stream.pipeline
for more reliable stream handling. Node.js 8 will be out of LTS at the end of this month anyway.url
argument 92bc808query
option tosearchParams
and make it stricter b223663 5376216 518f0f5window.fetch
naming in the browser.baseUrl
option withprefixUrl
(#829) 0d534edurl
argument now cannot be prefixed with a slash when this option is used.json
option to accept an object instead of a boolean and to only be responsible for the request, not the response (#704) a6a7d5abody
option when you want to send JSON. This option also no longer sets the response type to JSON. You either call the.json()
method or specify theresponseType
option for that.{json: true}
worked and they also complained that they could not set the request/response type individually.responseType
option instead ofencoding
to get a Buffer (#940) 6cc3d9f{encoding: null}
to get a Buffer, but this was confusing. You now use{responseType: 'buffer'}
instead.got(…).buffer();
.POST
automatically when specifyingbody
(#756) e367bdbretries.retry
option was split intoretries.limit
andretries.calculateDelay
b15ce1dundefined
instead ofnull
to omit a header (https://github.com/sindresorhus/got#headers) 518f0f5null
..fromCache
to.isFromCache
(#768) b5e443bstream
option toisStream
518f0f5user-agent
header (#911) 95bed1egot/9.6.0 (https://github.com/sindresorhus/got)
→got (https://github.com/sindresorhus/got)
user-agent
header anyway.got.create()
518f0f5got.extend()
now.got.mergeInstances()
518f0f5gotInstance.extend(...gotInstances)
instead..options
and.response
property (#773) 6eaa81bgot.mergeInstances(...instances)
is deprecated. UseinstanceA.extend(instanceB)
instead.Enhancements
Huge thanks to @pmmmwh, @LinusU, @vladfrangu, @mastermatt, and everyone else that helped us with this rewrite. 🙌
context
option for storing custom metadata across request and hooks (#777) 3bb5aa7maxRedirects
option (#914) 0c505b0methodRewriting
option (#942) b82358ftough-cookie
for handling cookies (#882) 518f0f5beforeRedirect
hook (#812) 3557896.isFromCache
property to the stream API (#768) b5e443btimeout
option can now be modified in hooks d520a3aprefixUrl
option can now be modified in hooks (#867) 518f0f5URLSearchParams
instances mergeable (#734) 95c7c2cFixes
afterResponse
hook (#775) e2054cdport
not being reset on redirect (#729) ada5861retry
option value when specifying a number (#809) 9c04a7cbeforeError
hook 134c9b7204 No Content
when parsing response (#925) 518f0f5afterResponse
hook should triggerbeforeRetry
hook (#918) 518f0f5Docs
retry
behavior 5e6782aprefixUrl
behavior (#943) f008bc9retry
option doesn't work with streams 9088866Stream.pipeline()
when using the stream API 06afb27global-agent
(#822) ca8c560TimeoutError.timings
property 8fa18f4All commits
v9.6.0...v10.0.0
Commits
The new version differs by 163 commits.
abdfee2
10.0.0
aae7b89
Improve readme
71b8452
Improve types (#946)
f008bc9
Clarify
prefixUrl
behavior (#943)d968e49
Upgrade dependencies
b82358f
Add
methodRewriting
option (#942)966e7ff
10.0.0-beta.2
c537dee
Make TypeScript types conforms to strict mode (#928)
d9a3273
Clarify
retry
behavior (#944)6cc3d9f
Use
responseType
instead ofoptions.encoding
to get a Buffer (#940)3acdb69
Update a comment
d0f2dfd
Mention that
progress.total
can beundefined
8874a45
Preserve stacktrace when wrapping errors (#935)
b7a356a
Fix
.json()
usage inreadme.md
2c5d0c0
Follow-up to cd11a5092972c16e5295f4d13dee20c228dcb19c
There are 163 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴