got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
188 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 12.x
12.0.0
10 Dec 2021- Breaking
Got exports an
Optionclass that is specifically designed to parse and validate Got options.
It is made of setters and getters that provide fast normalization and more consistent behavior. - Breaking
The
inithook now accepts a second argument:self, which points to anOptionsinstance. - Breaking
The
inithooks are ran only when passing an options object explicitly.
Introducing Got v12.0.0 :tada
Long time no see! The latest Got version (v11.8.2) was released just in February ❄️
We have been working hard on squashing bugs and improving overall experience.If you find Got useful, you might want to sponsor the Got maintainers.
This package is now pure ESM
Please read this. Also see #1789.
Please don't open issues about
[ERR_REQUIRE_ESM]andMust use import to load ES Moduleerrors. This is a problem with your setup, not Got.Please don't open issues about using Got with Jest. Jest does not fully support ESM.
Pretty much any problem with loading this package is a problem with your bundler, test framework, etc, not Got.
If you use TypeScript, you will want to stay on Got v11 until TypeScript 4.6 is out. Why.
If you use a bundler, make sure it supports ESM and that you have correctly configured it for ESM.
The Got issue tracker is not a support channel for your favorite build/bundler tool.
Required Node.js >=14
While working with streams, we encountered more Node.js bugs that needed workarounds.
In order to keep our code clean, we had to drop Node.js v12 as the code would get more messy.
We strongly recommend that you update Node.js to v14 LTS.HTTP/2 support
Every Node.js release, the native
http2module gets more stable.
Unfortunately there are still some issues on the Node.js side, so we decided to keep HTTP/2 disabled for now.
We may enable it by default in Got v13. It is still possible to turn it on via thehttp2option.To run HTTP/2 requests, it is required to use Node.js v15.10 or above.
Bug fixes
Woah, we possibly couldn't make a release if we didn't fix some bugs!
Remove automatic
content-lengthon ReadStream (#1510) 472b8efFix promise shortcuts in case of error status code (#1543) ff918fb 1107cc6
Invert the
methodRewritingoption 51d88a0Fix
urlnot being reused on retry in rare case (#1487) 462bc63Prevent uncaught ParseErrors on initial successful response (#1527) 77df9c3
Throw an error when retrying with consumed body (#1507) 62305d7
Fix a Node.js 16 bug that hangs Got streams 06a2d3d
Fix default pagination handling for empty Link header (#1768) 1e1e506
Fix incorrect
response.completewhen using cache 9e15d88Fix
Cannot call enderror whenrequestreturns aWritable226cc39Fix Request options not being reused on retry 3c23eea
Fix types being not compatible with CommonJS 3c23eea
Generate a new object when passing options to the native
httpsmodule (#1567) 3c23eeaFix unhandled exception when lookup returns invalid IP early (#1737) 2453e5e
Fix relative URLs when paginating 439fb82
Require url to be an instance of URL when paginating (#1818) eda69ff
Fix
usernameandpasswordencoding in URL (#1169 #1317) d65d0caClone raw options 1c4cefc
Fix invalid
afterResponsereturn check cbc8902Fix
https.alpnProtocolsnot having an effect e1099fb
Improvements
Add generic argument to AfterResponseHook TypeScript type (#1589) 6fc04a9
Change the stackAllItems option to be false by default (#1645) 1120370
Throw when afterResponse hook returns an invalid value 4f21eb3
Add
retry.backoffLimitoption 41c4136Add
noiseretry option e830077Define
error.codef27e8d3Set
options.urleven if some options are invalid 8d6a680Improve memory usage when merging options 2db5ec5
Add missing
oncetypes for Stream API 3c23eeaNew error type:
RetryErrorwhich always triggers a new retry when thrown 3c23eeaerror.optionsis now enumerable 3c23eeadefaults.handlersdon't need a default handler now 3c23eeaAdd a parser for the
Linkheader 3c23eeaGeneral code improvements a5dd9aa
Breaking changes
Improved option normalization
- Breaking
Got exports an
Optionclass that is specifically designed to parse and validate Got options.
It is made of setters and getters that provide fast normalization and more consistent behavior.
When passing an option does not exist, Got will throw an error. In order to retrieve the options before the error, use
error.options.import got from 'got'; try { await got('https://httpbin.org/anything', { thisOptionDoesNotExist: true }); } catch (error) { console.error(error); console.error(error.options.url.href); // Unexpected option: thisOptionDoesNotExist // https://httpbin.org/anything }- Breaking
The
inithook now accepts a second argument:self, which points to anOptionsinstance.
In order to define your own options, you have to move them to
options.contextin aninithook or store them inoptions.contextdirectly.- Breaking
The
inithooks are ran only when passing an options object explicitly.
- await got('https://example.com'); // this will *not* trigger the init hooks + await got('https://example.com', {}); // this *will** trigger init hooks- Breaking
options.merge()replacedgot.mergeOptionsandRequest.normalizeArguments
- got.defaults.options = got.mergeOptions(got.defaults.options, {…}); + got.defaults.options.merge(…);This fixes issues like #1450
- Breaking
Legacy
Urlinstances are not supported anymore. You need to use WHATWG URL instead.
- await got(string, {port: 8443}); + const url = new URL(string); + url.port = 8443; + await got(url);- Breaking
No implicit timeout declaration.
- await got('https://example.com', {timeout: 5000}) + await got('https://example.com', {timeout: {request: 5000})- Breaking
No implicit retry declaration.
- await got('https://example.com', {retry: 5}) + await got('https://example.com', {retry: {limit: 5})- Breaking
dnsLookupIpVersionis now a number (4 or 6) or undefined
- await got('https://example.com', {dnsLookupIpVersion: 'ipv4'}) + await got('https://example.com', {dnsLookupIpVersion: 4})- Breaking
redirectUrlsandrequestUrlnow give URL instances
- request.requestUrl + request.requestUrl.origin + request.requestUrl.href + request.requestUrl.toString()
- request.redirectUrls[0] + request.redirectUrls[0].origin + request.redirectUrls[0].href + request.redirectUrls[0].toString()
- Breaking
Renamed
request.abortedtorequest.isAborted
- request.aborted + request.isAborted
Reason: consistency with
options.isStream.- Breaking
Renamed the
lookupoption todnsLookup
- await got('https://example.com', {lookup: cacheable.lookup}) + await got('https://example.com', {dnsLookup: cacheable.lookup})- Breaking
The
beforeRetryhook now accepts only two arguments:errorandretryCount
await got('https://example.com', { hooks: { beforeRetry: [ - (options, error, retryCount) => { - console.log(options, error, retryCount); - } + (error, retryCount) => { + console.log(error.options, error, retryCount); + } ] } })The
optionsargument has been removed, however it's still accessible viaerror.options. All modifications onerror.optionswill be reflected in the next requests (no behavior change, same as with Got 11).- Breaking
The
beforeRedirecthook's first argument (options) is now a cloned instance of the Request options.
This was done to make retrieving the original options possible:
plainResponse.request.options.await got('http://szmarczak.com', { hooks: { beforeRedirect: [ (options, response) => { - console.log(options === response.request.options); //=> true [invalid! our original options were overriden] + console.log(options === response.request.options); //=> false [we can access the original options now] } ] } })- Breaking
The
redirectevent now takes two arguments in this order:updatedOptionsandplainResponse.
- stream.on('redirect', (response, options) => …) + stream.on('redirect', (options, response) => …)Reason: consistency with the
beforeRedirecthook.- Breaking
The
socketPathoption has been removed. Use theunix:protocol instead.
- got('/containers/json', {socketPath: '/var/run/docker.sock'}) + got('unix:/var/run/docker.sock:/containers/json') + got('http://unix:/var/run/docker.sock:/containers/json')- Breaking
The
retryWithMergedOptionsfunction in anafterResponsehook no longer returns aPromise.
It now throws
RetryError, so this should this should be the last function being executed.
This was done to allowbeforeRetryhooks getting called.- Breaking
You can no longer set
options.agenttofalse.
To do so, you need to define all theoptions.agentproperties:http,httpsandhttp2.
await got('https://example.com', { - agent: false + agent: { + http: false, + https: false, + http2: false + } })- Breaking
When passing a
urloption when paginating, it now needs to be an absolute URL - theprefixUrloption is always reset from now on. The same when retrying in anafterResponsehook.
- return {url: '/location'}; + return {url: new URL('/location', response.request.options.url)};There was confusion around the
prefixUrloption. It was counterintuitive if used with the Pagination API. For example, it worked fine if the server replied with a relative URL, but if it was an absolute URL then theprefixUrlwould end up duplicated. In order to fix this, Got now requires an absolute URL - noprefixUrlwill be applied.- Breaking
got.extend(…)will throw when passing some options that don't accept undefined - undefined no longer retains the old value, as setting undefined explicitly may reset the option
Documentation
We have redesigned the documentation so it's easier to navigate and find exactly what you are looking for. We hope you like it :heart:
- 11.x
11.8.6
8 Dec 2022Destroy request object after successful response
11.6.0
2 Sep 2020Improvements
Add types for
http-cache-semanticsoptions 2e2295fMake
CancelErrorinheritRequestError1f132e8Add
retryAftertoRetryObject643a305Add documentation comments to exported TypeScript types (#1278) eaf1e02
Move cache options into a
cacheOptionsproperty 9c16d90
Bug fixes
Got promise shouldn't retry when the body is a stream 6e1aeae
11.5.0
7 Jul 2020Improvements
Fixes
Fix cache not working with HTTP2 ac5f67d
Fix
responseevent not being emitted on cache verify request (#1305) da4769eWork around a bug in Node.js <=12.18.2 f33e8bc
Remove request error handler after response is downloaded e1afe82
Revert "Remove request error handler after response is downloaded" aeb2e07
Docs
11.4.0
4 Jul 2020Fix hanging promise on timeout on HTTP error 934211f
Fix promise not returning Buffer on compressed response 5028c11
Fix hanging promise on timeout on HTTP error 934211f
Fix promise not returning Buffer on compressed response 5028c11
Clarify options.encoding docs 04f3ea4
Fix unhandled
The server aborted pending requestrejection 728aef9Add missing
ECONNRESETcode to an abort error d325d35Fix
prefixUrlnot working when theurlargument is empty 8d3412aImprove the
searchParamsoption 4dbada9Fix non-enumerable options [such as body] not being used 8f775c7
11.3.0
5 Jun 2020Add options to customize parsing/stringifying JSON (#1298) cb4da8d
Add
dnsLookupIpVersionoption (#1264) 7f643bb
11.1.4
16 May 2020Upgrade
cacheable-lookupto 5.0.3 9770e54
Upgrade
cacheable-lookupto 5.0.3 9770e54Mention
options.rejectUnauthorizedin the documentation 9b04963Test
responseTypeset toundefined0e8582fSlightly improve RunKit example 6f84051
Make
got.paginate()an alias forgot.paginate.each()5480b31Upgrade
decompress-responseto6.0.0c2bc014Migrate from
lolexto@sinonjs/fake-timers(#1270) df333dd
11.1.2
8 May 2020Disable
options.dnsCacheby default 79507c2
Bug fixes
Disable
options.dnsCacheby default 79507c2
This should stay disabled when making requests to internal hostnames such as localhost, database.local etc.
CacheableLookup uses dns.resolver4(..) and dns.resolver6(...) under the hood and fall backs to dns.lookup(...) when the first two fail, which may lead to additional delay.Enhancements
11.1.1
6 May 202011.0.3
30 Apr 202011.0.2
22 Apr 202011.0.1
20 Apr 2020HTTPErrors have unspecified response bodyOptions are duplicated while merging
Fixed two regressions:
HTTPErrors have unspecified response bodyOptions are duplicated while merging
Improved TypeScript types for errors inherited from
RequestError11.0.0
20 Apr 2020- Breaking
The
options.encodingbehavior has been reverted back to the Got 9 behavior.
In other words, the options is only meant for the Got promise API.
To set the encoding for streams, simply callstream.setEncoding(encoding). - Breaking
The error name
GotErrorhas been renamed toRequestErrorfor better readability and to comply with the documentation. - Breaking
The
agentoption now accepts only an object withhttp,httpsandhttp2properties.
While thehttpandhttpsproperties accept nativehttp(s).Agentinstances, thehttp2property must be an instance ofhttp2wrapper.Agentor be undefined.
Introducing Got 11! :tada: The last major version was in December last year. :snowflake: Since then, a huge amount of bugs has been fixed. There are also many new features, for example, HTTP2 support is finally live! :globe_with_meridians:
If you find Got useful, you might want to sponsor the Got maintainers.
Breaking changes
Removed support for
electron.netDue to the inconsistencies between the Electron's
netmodule and the Node.jshttpmodule, we have decided to officially drop support for it. Therefore, theuseElectronNetoption has been removed.You'll still be able to use Got in the Electron main process and in the renderer process through the
electron.remotemodule or if you use Node.js shims.The Pagination API is now stable
We haven't seen any bugs yet, so please give it a try!
If you want to leave some feedback, you can do it here. Any suggestion is greatly appreciated!{ - _pagination: {...} + pagination: {...} }API
- Breaking
The
options.encodingbehavior has been reverted back to the Got 9 behavior.
In other words, the options is only meant for the Got promise API.
To set the encoding for streams, simply callstream.setEncoding(encoding).
-got.stream('https://sindresorhus.com', {encoding: 'base64'}); +got.stream('https://sindresorhus.com').setEncoding('base64'); // Promises stay untouched await got('https://sindresorhus.com', {encoding: 'base64'});- Breaking
The error name
GotErrorhas been renamed toRequestErrorfor better readability and to comply with the documentation.
-const {GotError} = require('got'); +const {RequestError} = require('got');- Breaking
The
agentoption now accepts only an object withhttp,httpsandhttp2properties.
While thehttpandhttpsproperties accept nativehttp(s).Agentinstances, thehttp2property must be an instance ofhttp2wrapper.Agentor be undefined.
{ - agent: new https.Agent({keepAlive: true}) } { + agent: { + http: new http.Agent({keepAlive: true}), + https: new https.Agent({keepAlive: true}), + http2: new http2wrapper.Agent() + } }- Breaking
The
dnsCacheoption is now set to a default instance ofCacheableLookup. It cannot be aMap-like instance anymore. The underlyingcacheable-lookuppackage has received many improvements, for example, it has receivedhostsfile support! Additionally, thecacheAdapteroption has been renamed tocache. Note that it's no longer passed to Keyv, so you need to pass a Keyv instance it if you want to save the data for later.
{ - dnsCache: new CacheableLookup({ - cacheAdapter: new Map() - }) } { + dnsCache: new CacheableLookup({ + cache: new Keyv({ + cacheAdapter: new Map() + }) + }) } // Default: { dnsCache: new CacheableLookup() }- Breaking
Errors thrown in
inithooks will be converted to instances ofRequestError.RequestErrors provide much more useful information, for example, you can access the Got options (througherror.options), which is very useful when debugging.
const got = require('got'); (async () => { try { await got('https://sindresorhus.com', { hooks: { init: [ options => { if (!options.context) { throw new Error('You need to pass a `context` option'); } } ] } }); } catch (error) { console.log(`Request failed: ${error.message}`); console.log('Here are the options:', error.options); } })();- Breaking
The options passed in an
inithook may not have aurlproperty. To modify the request URL you should use abeforeRequesthook instead.
{ hooks: { - init: [ + beforeRequest: [ options => { options.url = 'https://sindresorhus.com'; } ] } }Note that this example shows a simple use case. In more complicated algorithms, you need to split the
inithook into anotherinithook and abeforeRequesthook.- Breaking
The
error.requestproperty is no longer aClientRequestinstance. Instead, it gives a Got stream, which provides a set of useful properties.
const got = require('got'); (async () => { try { await got('https://sindresorhus.com/notfound'); } catch (error) { console.log(`Request failed: ${error.message}`); console.log('Download progress:', error.request.downloadProgress); } })();Renamed TypeScript types
Some of the TypeScript types have been renamed to improve the readability:
Old type New type ResponseObject Response Defaults InstanceDefaults DefaultOptions Defaults DefaultRetryOptions RequiredRetryOptions GotOptions Options GotRequestMethod GotRequestFunction
Other
- Breaking
Now requires Node.js 10.19 or later.
Enhancements
HTTP2 support is here! Excited? Yay! Unfortunately, it's off by default to make the migration smoother. Many Got users have set up their own Agents and we didn't want to break them. But fear no more, it will come enabled by default in Got 12.
const got = require('got'); (async () => { const response = await got('https://nghttp2.org/httpbin/anything', {http2: true}); console.log(response.socket.alpnProtocol); //=> 'h2' })();The
mergefunction is slowUse
error.codeinstead oferror.messageto compare errorsPass error thrown in the
inithook tobeforeErrorhookErrors have undefined body when using streams
Spaces should be normalized as
+in query stringsModify response headers while using
got.stream(...)Make
error.requesta Got stream (af0b147).
Known bugs
When some errors occur, the
timingsmay indicate that the request was successful although it failed.When some errors occur, the
downloadProgressobject may show incorrect data.
Bug fixes
Requests to UNIX sockets are missing query strings
beforeRequesthooks aren't called on redirectsErrors are swallowed when using
stream.pipeline(got.stream(...), ...)Cannot use the
cachealong with thebodyoptionGot doesn't throw on leading slashes
Got throws when passing already frozen options
Cannot type Got options properly due to missing types
got.mergeOptions(...)doesn't mergeURLSearchParamsinstancesThe
authorizationheader is leakingPagination should ignore the
resolveBodyOnlyoptionCannot reuse user-provided options
Broken with Node.js ≥ 13.10.0
Cache is not decompressed
beforeRetryhooks are missingoptions.contextpromise.json()doesn't throwParseErrorNot compatible with
tough-cookie@4.0.0Shortcuts give body from the failed request on token renewal
No effect when replacing the
cacheoption in a Got instanceMemory leak when using
cacheGot doesn't throw on aborted requests by the server
All changes
- 10.x
10.7.0
24 Mar 202010.6.0
20 Feb 2020Add
allowGetBodyoption to allow GET requests with payload (#1081) 526b4bb
10.5.2
7 Feb 2020Forgot to include required
p-eventdependency 8373112
10.5.0
6 Feb 2020Add experimental pagination feature (#833) 761c7c6
We're looking for feedback on how it works.
10.2.1
1 Jan 202010.0.3
9 Dec 2019Fix the
responseTypeoptionFix unhandled
Premature closeandRequest timed outerrorsMake
options.pathbackwards-compatible
10.0.0
1 Dec 2019- Breaking
Require Node.js 10 633651f
- Breaking
Remove support for protocol-less URLs in the
urlargument 92bc808
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-agentandagentkeepaliveare not compatible with Node.js 10 and hence not compatible with Got as Got takes advantage of some Node.js 10-only APIs.Breaking
- Breaking
Require Node.js 10 633651f
Why: This is so that we can use
stream.pipelinefor more reliable stream handling. Node.js 8 will be out of LTS at the end of this month anyway.
- Breaking
Remove support for protocol-less URLs in the
urlargument 92bc808Why: To reduce ambiguity. It was not clear from just reading the code what it would default to.
Migrate:
- got('sindresorhus.com'); + got('https://sindresorhus.com');- Breaking
Rename the
queryoption tosearchParamsand make it stricter b223663 5376216 518f0f5Why: To get closer to the
window.fetchnaming in the browser.Migrate:
- got(…, {query: …}); + got(…, {searchParams: …});- Breaking
Replace the
baseUrloption withprefixUrl(#829) 0d534edNote: We also made it stricter to reduce ambiguity. The Got
urlargument now cannot be prefixed with a slash when this option is used.Why: We renamed it to make it clear that it doesn't do any URL resolution.
Migrate:
- got('/foo', {baseUrl: 'https://x.com'}); + got('foo', {prefixUrl: 'https://x.com'});- Breaking
Change the
jsonoption to accept an object instead of a boolean and to only be responsible for the request, not the response (#704) a6a7d5aNote: You now set the request body in this option instead of the
bodyoption 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 theresponseTypeoption for that.Why: Many people were confused how
{json: true}worked and they also complained that they could not set the request/response type individually.Migrate:
- got(url, {body: {x: true}, json: true}); + got.post(url, {json: {x: true}}).json();- Breaking
Use the
responseTypeoption instead ofencodingto get a Buffer (#940) 6cc3d9fWhy: Previously, you would pass
{encoding: null}to get a Buffer, but this was confusing. You now use{responseType: 'buffer'}instead.Tip: You can also use
got(…).buffer();.Migrate:
- got(…, {encoding: null}); + got(…, {responseType: 'buffer'});- Breaking
Don't infer
POSTautomatically when specifyingbody(#756) e367bdbWhy: We're trying to reduce the amount of magic behavior.
Migrate:
- got(…, {body: 'foo'}); + got.post(…, {body: 'foo'});- Breaking
The
retries.retryoption was split intoretries.limitandretries.calculateDelayb15ce1dMigrate:
got(…, { retry: { - retries: 2 + limit: 2 } });got(…, { retry: { - retries: iteration => iteration < 2 + calculateDelay: ({attemptCount}) => attemptCount < 2 } });- Breaking
Use
undefinedinstead ofnullto omit a header (github.com/sindresorhus/got) 518f0f5Why: We're trying to reduce the use of
null.Migrate:
got(…, { headers: { - 'user-agent': null + 'user-agent': undefined } });- Breaking
Rename the Promise API property
.fromCacheto.isFromCache(#768) b5e443b - Breaking
Rename the
streamoption toisStream518f0f5Why: To make it clearer that it's a boolean and that it doesn't expect a stream to be passed in.
Migrate:
- got(…, {stream: true}); + got(…, {isStream: true});- Breaking
Don't include the Got version in the default
user-agentheader (#911) 95bed1egot/9.6.0 (https://github.com/sindresorhus/got)→got (https://github.com/sindresorhus/got)Why: Importing package.json to get the version caused a lot of problems. And you should ideally set your own
user-agentheader anyway.
- Breaking
Remove
got.create()518f0f5You can achieve the same thing with
got.extend()now.
- Breaking
Remove
got.mergeInstances()518f0f5Use
gotInstance.extend(...gotInstances)instead.
- Breaking
Move top-level error properties into an
.optionsand.responseproperty (#773) 6eaa81bMigrate:
- error.gotOptions + error.options - error.headers + error.response.headers - error.statusCode + error.response.statusCode - error.statusMessage + error.response.statusMessage - error.body + error.response.body - error.redirectUrls + error.response.redirectUrls - error.host + error.options.host - error.hostname + error.options.hostname - error.method + error.options.method - error.protocol + error.options.protocol - error.url + error.options.url - error.path + error.options.path
- Breaking
Custom instance creation was simplified (#707) 8eaef94
Note:
got.mergeInstances(...instances)is deprecated. UseinstanceA.extend(instanceB)instead.Migrate:
# Merging instances - got.mergeInstances(instanceA, instanceB, instanceC, …); + instanceA.extend(instanceB, instanceC, …); # Merging options - instanceA.extend(optionsB).extend(optionsC).extend(…); + instanceA.extend(optionsB, optionsC, …); # Merging instances and options - got.mergeInstances(instanceA.extend(optionsB), instanceC); + instanceA.extend(optionsB, instanceC, …); # Extending handlers - got.mergeInstances(instanceA, got.create({handler: handlerB})); + instanceA.extend({handlers: [handlerB]});Enhancements
Got has been rewritten in TypeScript.
Why: This means we can provide our own type definitions and we can be more confident when working on the Got codebase and produce less bugs.
Add support for Brotli (Node.js 12 and later) (#706) d5d2e6f
Add
contextoption for storing custom metadata across request and hooks (#777) 3bb5aa7Add
maxRedirectsoption (#914) 0c505b0Add ability to use something other than
tough-cookiefor handling cookies (#882) 518f0f5Pass the response as the second argument to the
beforeRedirecthook (#812) 3557896Throw on canceled request with incomplete response (#767) 92b1005
Add
.isFromCacheproperty to the stream API (#768) b5e443bThe
timeoutoption can now be modified in hooks d520a3aThe
prefixUrloption can now be modified in hooks (#867) 518f0f5
Fixes
Fix parsing response when using
afterResponsehook (#775) e2054cdFix default
retryoption value when specifying a number (#809) 9c04a7cCorrectly handle promise- and stream-specific errors in the
beforeErrorhook 134c9b7Don't throw on early lookups 4faf5c7
Don't throw on
204 No Contentwhen parsing response (#925) 518f0f5When redirect fails, don't retry from scratch (#930) 518f0f5
Retrying inside
afterResponsehook should triggerbeforeRetryhook (#918) 518f0f5Fix a bug that sometimes caused the Node.js process to hang 518f0f5
Fix a bug where cookies weren't reset on redirect between two different sites 518f0f5
Make the progress events not be based on internal Node.js properties cd11a50
All commits
- 9.x
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.