NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1225 most downloaded on npm
Human-friendly and powerful HTTP request library for Node.js
Last release 18 days ago
30 Aug 2026
Release timing varies
gaps range from 8 days to 3 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
201 releases · first in 2014
Fix for sending files with size 0 on stat (#1488) 7acd380
0 on stat (#1488) 7acd380beforeRetry allows stream body if different from original (#1501) 3dd2273https://github.com/sindresorhus/got/compare/v11.7.0...v11.8.0
Add `pfx` HTTPS option (#1364) c33df7f
pfx HTTPS option (#1364) c33df7fbody after beforeRequest (#1453) e1c1844promise.json() c97ce7chttps://github.com/sindresorhus/got/compare/v11.6.2...v11.7.0
One column per quarter.
Inherit the prefixUrl option from parent if it's undefined (#1448) a3da70a78aeb7f44dd3e0d0fa47cebe9541eb91e
prefixUrl option from parent if it's undefined (#1448) a3da70a78aeb7f44dd3e0d0fa47cebe9541eb91eRequestError links 3ed4af605ca6493c080cc8003a55c3b37988efeeFix options.port on redirect (#1439) 408e22a
options.port on redirect (#1439) 408e22ahttps://github.com/sindresorhus/got/compare/v11.6.0...v11.6.1
Add retry stream event (#1384) 707219825b2f8ff3df597230a53244636df21642
retry stream event (#1384) 707219825b2f8ff3df597230a53244636df21642http-cache-semantics options 2e2295fba63c260d347fef2081cdbcae45fa6116CancelError inherit RequestError 1f132e88b4e9b295631637757d64307032a4e56eretryAfter to RetryObject 643a305b4d710042d2a958a21e7637183713505ccacheOptions property 9c16d9083019fcb28f566659106036faa4839447CancelError docs 28c400f4df5f45990f80641a794a2d09439bef93README (#1425) 38bbb04ea24f01eed6f01e394bc3e9405df8cfc5Fixed deprecationWarning on https options (#1391) 9a309bdbe7e2552c5bffbea253d58c39d6e6c3e3
request migration guide (#1387) a748343363ecb0347897264fb49df4a8f4793997dnsCache: true having no effect 043c9501b85172e09819d44ac8eb49c574b27bdaUpgrade http2-wrapper to 1.0.0-beta.5.0 16e7f031bb371571e1948091b88385be3485d83f
http2-wrapper to 1.0.0-beta.5.0 16e7f031bb371571e1948091b88385be3485d83freadme.md 4ebd26a4b8eef704fe216d333e2614b39dedf695Add backoff option to pagination (#1182) 4be7446
backoff option to pagination (#1182) 4be7446response event not being emitted on cache verify request (#1305) da4769ebeforeRequest hook 779062ahttps://github.com/sindresorhus/got/compare/v11.4.0...v11.5.0
Fix hanging promise on timeout on HTTP error 934211f951bfd56751e90ec4eabe6379d8541a05
The server aborted pending request rejection 728aef989c1a6650d2b42a7f69b603075b5d35bfECONNRESET code to an abort error d325d353a28e6038140aa5b18f2b6f9f796f10b6prefixUrl not working when the url argument is empty 8d3412abb8aae3cefc75dd6f9e698988ed463dd6searchParams option 4dbada94e261ad890d2478c313ec3d74761b659eDeep merge https options (#1304) c98f0d7
https options (#1304) c98f0d7dnsLookupIpVersion option (#1264) 7f643bbhttps://github.com/sindresorhus/got/compare/v11.2.0...v11.3.0
Provide an overload for unknown responseType (#1276) b9ba18a
responseType (#1276) b9ba18abeforeRequest hook (#1293) d8c00cfready event if the file descriptor is already opened (#1289) 2c8fe19https://github.com/sindresorhus/got/compare/v11.1.4...v11.2.0
Clarify docs for got.HTTPError (#1244) 3f125f105e3b328942c04ef73579b1573fc39b5a
cacheable-lookup to 5.0.3 9770e540d088c35ec0b467fa3d2fafb60ed6797doptions.rejectUnauthorized in the documentation 9b049635570ebbdd9d534ad1860f01d34771a5eeresponseType set to undefined 0e8582f24e6903d9079a7d92e9b4d831cb5b5f17got.paginate() an alias for got.paginate.each() 5480b3134cfd35497f618f08f574927c2bd7624bdecompress-response to 6.0.0 c2bc014abc8818ad93dd69a0e8cc9d36d0dccb9clolex to @sinonjs/fake-timers (#1270) df333ddbc163e35537a9f49818e722c7aa6803c0calculateDelay promisable (#1266) 3745efc9d9d03c78c898f357a34524524cce514dDo not use deprecated request.abort() (#1242) ab338a70dd9547a6c48af18ab5e2306639e5cbad
request.abort() (#1242) ab338a70dd9547a6c48af18ab5e2306639e5cbadhost header on redirect (#1241) 8ff71d972ae55700887b45d50a265e3659ac8ccesearchParams in merge (#1208) 7d7361cc3845421f24288fc39464a8b38bd75d56Disable options.dnsCache by default 79507c2cdec137e65d715f36d13a5a0e577ddc01
options.dnsCache by default 79507c2cdec137e65d715f36d13a5a0e577ddc01This 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.
Improve Node.js 14 compatibility 50ef99a
got.mergeOptions() regression 157e02boptions.responseType optional when using a template 9ed0a39https://github.com/sindresorhus/got/compare/v11.1.0...v11.1.1
Add `pagination.stackAllItems` option (#1214) c1208d1
pagination.stackAllItems option (#1214) c1208d1https://github.com/sindresorhus/got/compare/v11.0.3...v11.1.0
Limit number of requests in pagination to prevent accidental overflows (#1181) 4344c3a
options.searchParams duplicates 429db40.abort() on a destroyed request 63c1b72cache and dnsCache can be false 7c5290dhttps://github.com/sindresorhus/got/compare/v11.0.2...v11.0.3
Fix response.statusMessage being null 965bd03ad463afb9fdbe098a48b16269b54de9bd
response.statusMessage being null 965bd03ad463afb9fdbe098a48b16269b54de9bdhttp2-wrapper dependency to 1.0.0-beta.4.4 4e8de8e32cccaafddf0c6ef4f31716810ab4a14bMerge as it's stricter than the intersection operator d3b972efaca28d8033468c7232a469e8cb034677options.body 835c70bd6fdc5b1ba7e7ffd322490b6d66fb407eHTTPErrors have unspecified response body
Fixed two regressions:
HTTPErrors have unspecified response body (#1162)Improved TypeScript types for errors inherited from RequestError
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 a
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.
electron.netDue to the inconsistencies between the Electron's net module and the Node.js http module, we have decided to officially drop support for it. Therefore, the useElectronNet option has been removed.
You'll still be able to use Got in the Electron main process and in the renderer process through the electron.remote module or if you use Node.js shims.
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: {...}
}
options.encoding behavior 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 call stream.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'});
GotError has been renamed to RequestError for better readability and to comply with the documentation.-const {GotError} = require('got');
+const {RequestError} = require('got');
agent option now accepts only an object with http, https and http2 properties.
While the http and https properties accept native http(s).Agent instances, the http2 property must be an instance of http2wrapper.Agent or 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()
+ }
}
dnsCache option is now set to a default instance of CacheableLookup. It cannot be a Map-like instance anymore. The underlying cacheable-lookup package has received many improvements, for example, it has received hosts file support! Additionally, the cacheAdapter option has been renamed to cache. 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()
}
init hooks will be converted to instances of RequestError. RequestErrors provide much more useful information, for example, you can access the Got options (through error.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);
}
})();
init hook may not have a url property. To modify the request URL you should use a beforeRequest hook 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 init hook into another init hook and a beforeRequest hook.
error.request property is no longer a ClientRequest instance. 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);
}
})();
Some of the TypeScript types have been renamed to improve the readability:
<table> <tr> <td>Old type</td> <td>New type</td> </tr> <tr> <td><code>ResponseObject</code></td> <td><code>Response</code></td> </tr> <tr> <td><code>Defaults</code></td> <td><code>InstanceDefaults</code></td> </tr> <tr> <td><code>DefaultOptions</code></td> <td><code>Defaults</code></td> </tr> <tr> <td><code>DefaultRetryOptions</code></td> <td><code>RequiredRetryOptions</code></td> </tr> <tr> <td><code>GotOptions</code></td> <td><code>Options</code></td> </tr> <tr> <td><code>GotRequestMethod</code></td> <td><code>GotRequestFunction</code></td> </tr> </table>
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'
})();
merge function is slow (#1016)error.code instead of error.message to compare errors (#981)init hook to beforeError hook (#929)+ in query strings (#1113)got.stream(...) (#1129)error.request a Got stream (af0b1472abf48a6c5491dcb36a1d8863c5227fb3).timings may indicate that the request was successful although it failed.downloadProgress object may show incorrect data.beforeRequest hooks aren't called on redirects (#994)stream.pipeline(got.stream(...), ...) (#1026)cache along with the body option (#1021)got.mergeOptions(...) doesn't merge URLSearchParams instances (#1011)authorization header is leaking (#1090)resolveBodyOnly option (#1140)beforeRetry hooks are missing options.context (#1141)promise.json() doesn't throw ParseError (#1069)tough-cookie@4.0.0 (#1131)cache option in a Got instance (#1098)cache (#1128)https://github.com/sindresorhus/got/compare/v10.7.0...v11.0.0
The deprecated useElectronNet option has been removed.
$ npm install got@11.0.0-beta.1
The release notes will be improved in the final v11 release.
Changes in beta 1:
options.encoding will no longer affect streams (reverting back to the Got 9 behavior), use got.stream(…).setEncoding(encoding) instead (to prevent confusion).GotError to RequestError.options.agent can no longer be an instance of http.Agent. Instead you need to pass:{
http: new http.Agent(…),
https: new https.Agent(…),
http2: new http2wrapper.Agent(…)
}
useElectronNet option has been removed.dnsCache is now enabled by default.dnsCache no longer can be a Map or a Keyv instance, instead you need to pass a CacheableLookup instance.init hooks will be converted to RequestErrors (why: RequestError provides much more useful information (e.g. Got options) than the usual TypeError etc.).options._pagination has been renamed to options.pagination.options.url property will no longer be visible in init hooks (design limitation).error.request property is no longer a ClientRequest instance. Instead, it gives a Got stream.ResponseObject type has been merged into the Response type.Defaults type to InstanceDefaults.DefaultOptions type to Defaults.DefaultRetryOptions type to RequiredRetryOptions.GotOptions type to Options.GotRequestMethod type to GotRequestFunction.request property (it's a Got stream).timings indicate that the request was successful (even though it errored).downloadProgress object may show incorrect data if the request has errored.https://github.com/sindresorhus/got/compare/v10.7.0...v11.0.0-beta.1
Fix got.paginate(…) TypeScript typings (#1099) 0b798ea
got.paginate(…) TypeScript typings (#1099) 0b798eaallItems and currentItems to _pagination.paginate() (#1100) 1cddd52decompress-response when bundling (#1105) 88f973f_pagination.transform (#1102) cf4fdadhttps://github.com/sindresorhus/got/compare/v10.6.0...v10.7.0
Add `allowGetBody` option to allow GET requests with payload (#1081) 526b4bb
allowGetBody option to allow GET requests with payload (#1081) 526b4bbhttps://github.com/sindresorhus/got/compare/v10.5.7...v10.6.0
Fix Init hooks not being called if extended acefaa4c2a0cb3c33b3f952be29ac0a9cb316e87
Fix Init hook logic 64aeb40d824008db48c956a3e03807383be62090
Fix merging pagination options 1f363b976cd23626462314c7cd5670cddd951c73
Fix _pagination not falling back to defaults ff1dba1e0c6f190da55d2799ebaa7a167f49ae9a
_pagination not falling back to defaults ff1dba1e0c6f190da55d2799ebaa7a167f49ae9aFix unhandled errors if throwing in an async handler 518d95aba5fde83d6708ee1289561fa445870436
Forgot to include required p-event dependency 8373112
p-event dependency 8373112https://github.com/sindresorhus/got/compare/v10.5.1...v10.5.2
Wait until body file descriptor is open (#1054) 453a3a3
https://github.com/sindresorhus/got/compare/v10.5.0...v10.5.1
Add experimental pagination feature (#833) 761c7c6 We're looking for feedback on how it works.
https://github.com/sindresorhus/got/compare/v10.4.0...v10.5.0
Update @szmarczak/cacheable-lookup dependency d527dae
@szmarczak/cacheable-lookup dependency d527daeParseErrors (#1044) 2813b73got.stream(...) not throwing ReadErrors 1f6ca6bhttps://github.com/sindresorhus/got/compare/v10.3.0...v10.4.0
Allow request body to be sent with a DELETE request (#1037) 17d629a
GotRequestMethod TypeScript type (#1017) f02694eReadError TypeScript type (#1027) d222164https://github.com/sindresorhus/got/compare/v10.2.2...v10.3.0
Do not include a request option in normalized http options 61009b3
request option in normalized http options 61009b3Ensure got.mergeOptions(...) can be assigned to defaults (#1008) 1360a1b
got.mergeOptions(...) can be assigned to defaults (#1008) 1360a1burl option is mutually exclusive with the url input argument e0f8aabRetryObject['error'] TypeScript types 5008bf7@szmarczak/http-timer dependency a1b8ffchttps://github.com/sindresorhus/got/compare/v10.2.0...v10.2.1
Soft-deprecate electron.net support (#995) b2f8ace
electron.net support (#995) b2f8ace
electron.remote module or if you use Node.js shims.hostname is not present dc53747Premature close errors fa60b5fhttps://github.com/sindresorhus/got/compare/v10.1.0...v10.2.0
Retry after certain Cloudflare errors (#991) 0569d45
content-length header not being set when using custom content-type 3149340https://github.com/sindresorhus/got/compare/v10.0.4...v10.1.0
Fix type conflicts for URL and URLSearchParams types (#983) cd4226d Just working around yet another TypeScript bug: https://github.com/DefinitelyTyped
URL and URLSearchParams types (#983) cd4226d
Just working around yet another TypeScript bug: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960https://github.com/sindresorhus/got/compare/v10.0.3...v10.0.4
Fix unhandled Premature close and Request timed out errors
responseType option (071bf5ed39a1262b1bf806067752395421090a23)Premature close and Request timed out errors (7b2ccb0d69fca9aba27373ab344f97d389d692f2)options.path backwards-compatible (b3f1ac9c9725459f4ffab9baa20b9459d3495fba)Fix TypeScript type problem with URL and URLSearchParams globals (#969) 2d5e28d
URL and URLSearchParams globals (#969) 2d5e28dgot.mergeOptions(...) TypeScript type (#953) b962d08https://github.com/sindresorhus/got/compare/v10.0.1...v10.0.2
Fix using the json option with got.stream.post 2ec5c4d
json option with got.stream.post 2ec5c4dhttps://github.com/sindresorhus/got/compare/v10.0.0...v10.0.1
Note: got.mergeInstances(...instances) is deprecated. Use instanceA.extend(instanceB) instead.
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 and agentkeepalive are not compatible with Node.js 10 and hence not compatible with Got as Got takes advantage of some Node.js 10-only APIs.
stream.pipeline for more reliable stream handling. Node.js 8 will be out of LTS at the end of this month anyway.url argument 92bc808
- got('sindresorhus.com');
+ got('https://sindresorhus.com');
query option to searchParams and make it stricter b223663 5376216 518f0f5906e1fcd38691555b17fb91db643f3d47
window.fetch naming in the browser.- got(…, {query: …});
+ got(…, {searchParams: …});
baseUrl option with prefixUrl (#829) 0d534ed
url argument now cannot be prefixed with a slash when this option is used.- got('/foo', {baseUrl: 'https://x.com'});
+ got('foo', {prefixUrl: 'https://x.com'});
json option to accept an object instead of a boolean and to only be responsible for the request, not the response (#704) a6a7d5a
body 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 the responseType option for that.{json: true} worked and they also complained that they could not set the request/response type individually.- got(url, {body: {x: true}, json: true});
+ got.post(url, {json: {x: true}}).json();
responseType option instead of encoding to get a Buffer (#940) 6cc3d9f
{encoding: null} to get a Buffer, but this was confusing. You now use {responseType: 'buffer'} instead.got(…).buffer();.- got(…, {encoding: null});
+ got(…, {responseType: 'buffer'});
POST automatically when specifying body (#756) e367bdb
- got(…, {body: 'foo'});
+ got.post(…, {body: 'foo'});
retries.retry option was split into retries.limit and retries.calculateDelay b15ce1d
got(…, {
retry: {
- retries: 2
+ limit: 2
}
});
got(…, {
retry: {
- retries: iteration => iteration < 2
+ calculateDelay: ({attemptCount}) => attemptCount < 2
}
});
undefined instead of null to omit a header (https://github.com/sindresorhus/got#headers) 518f0f5906e1fcd38691555b17fb91db643f3d47
null. got(…, {
headers: {
- 'user-agent': null
+ 'user-agent': undefined
}
});
.fromCache to .isFromCache (#768) b5e443bstream option to isStream 518f0f5906e1fcd38691555b17fb91db643f3d47
- got(…, {stream: true});
+ got(…, {isStream: true});
user-agent header (#911) 95bed1e
got/9.6.0 (https://github.com/sindresorhus/got) → got (https://github.com/sindresorhus/got)user-agent header anyway.got.create() 518f0f5906e1fcd38691555b17fb91db643f3d47
got.extend() now.got.mergeInstances() 518f0f5906e1fcd38691555b17fb91db643f3d47
gotInstance.extend(...gotInstances) instead..options and .response property (#773) 6eaa81b
- 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
got.mergeInstances(...instances) is deprecated. Use instanceA.extend(instanceB) instead.# 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]});
context option for storing custom metadata across request and hooks (#777) 3bb5aa7maxRedirects option (#914) 0c505b0methodRewriting option (#942) b82358ftough-cookie for handling cookies (#882) 518f0f5906e1fcd38691555b17fb91db643f3d47beforeRedirect 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 (https://github.com/sindresorhus/got/issues/867) 518f0f5906e1fcd38691555b17fb91db643f3d47URLSearchParams instances mergeable (#734) 95c7c2cafterResponse 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) 518f0f5906e1fcd38691555b17fb91db643f3d47afterResponse hook should trigger beforeRetry hook (#918) 518f0f5906e1fcd38691555b17fb91db643f3d47retry behavior 5e6782aprefixUrl behavior (#943) f008bc9retry option doesn't work with streams 9088866Stream.pipeline() when using the stream API 06afb27global-agent (#822) ca8c560TimeoutError.timings property 8fa18f4https://github.com/sindresorhus/got/compare/v9.6.0...v10.0.0
Nothing published for this version
While this is an beta release, the code is well-tested and fairly stable. We encourage you to test it out and [report any issues](https://github.com/s
While this is an beta release, the code is well-tested and fairly stable. We encourage you to test it out and report any issues.
$ npm install got@10.0.0-beta.2
Make sure you also read the alpha.1, alpha.2, alpha.3, and beta.1 release notes.
Changes in beta 2:
responseType option instead of encoding to get a Buffer (#940) 6cc3d9f
Previously, you would pass {encoding: null} to get a Buffer, but this was confusing. You now use {responseType: 'buffer'} instead.https://github.com/sindresorhus/got/compare/v10.0.0-beta.1...v10.0.0-beta.2
Remove the query option in favor of the searchParams option (It was previously deprecated) 518f0f5906e1fcd38691555b17fb91db643f3d47
While this is an beta release, the code is well-tested and fairly stable. We encourage you to test it out and report any issues.
$ npm install got@10.0.0-beta.1
Make sure you also read the alpha.1, alpha.2, and alpha.3 release notes.
Changes in beta 1:
query option in favor of the searchParams option (It was previously deprecated) 518f0f5906e1fcd38691555b17fb91db643f3d47stream option to isStream 518f0f5906e1fcd38691555b17fb91db643f3d47user-agent header (#911) 95bed1e
got/9.6.0 (https://github.com/sindresorhus/got) → got (https://github.com/sindresorhus/got)got.create() 518f0f5906e1fcd38691555b17fb91db643f3d47
got.extend() now.got.mergeInstances() 518f0f5906e1fcd38691555b17fb91db643f3d47
gotInstance.extend(...gotInstances) instead.undefined instead of null to omit a header (https://github.com/sindresorhus/got#headers) 518f0f5906e1fcd38691555b17fb91db643f3d47maxRedirects option (#914) 0c505b0tough-cookie for handling cookies (#882) 518f0f5906e1fcd38691555b17fb91db643f3d47options.timeout can now be modified in hooks d520a3aoptions.prefixUrl can now be modified in hooks (https://github.com/sindresorhus/got/issues/867) 518f0f5906e1fcd38691555b17fb91db643f3d47204 No Content when parsing response (#925) 518f0f5906e1fcd38691555b17fb91db643f3d47afterResponse hook should trigger beforeRetry hook (#918) 518f0f5906e1fcd38691555b17fb91db643f3d47retry behavior 5e6782ahttps://github.com/sindresorhus/got/compare/v10.0.0-alpha.3...v10.0.0-beta.1
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
While this is an alpha release, the code is well-tested and fairly stable. We encourage you to test it out and [report any issues](https://github.com/
While this is an alpha release, the code is well-tested and fairly stable. We encourage you to test it out and report any issues. However, we don't recommend TypeScript users to use this yet as the types are incomplete.
$ npm install got@10.0.0-alpha.2.2
Make sure you also read the alpha.1 release notes.
Changes in alpha.2:
afterResponse hook (#883) d0c2f05https://github.com/sindresorhus/got/compare/v10.0.0-alpha.1...v10.0.0-alpha.2
Nothing published for this version
Add beforeError hook (#696) 29ffb44
init hook (#683) 677d0a4beforeError hook (#696) 29ffb44https://github.com/sindresorhus/got/compare/v9.5.1...v9.6.0
Fix memory leak when using socket timeout and keepalive agent (#694) 203dadc
https://github.com/sindresorhus/got/compare/v9.5.0...v9.5.1
Remove error thrown for URLs with auth component (#676) 5d20a43
https://github.com/sindresorhus/got/compare/v9.4.0...v9.5.0
Add ability to specify which network error codes to retry on. 9f3a099
socket timeout on error. c8e358fhttps://github.com/sindresorhus/got/compare/v9.3.2...v9.4.0
No new timeouts after an error. https://github.com/sindresorhus/got/commit/d8dd881382dab612ad5b9204de93a02527dc81a9
https://github.com/sindresorhus/got/compare/v9.3.1...v9.3.2
Don't override headers defined in the url argument when it's an object. 191e00a
url argument when it's an object. 191e00acontent-length header when upload body size is null. 311b184https://github.com/sindresorhus/got/compare/v9.3.0...v9.3.1
Add option to allow defaults to be mutable. b392f60
beforeRedirect, beforeRetry, and afterResponse hooks. 325409cbody property in HTTPError. fdc0fa6https://github.com/sindresorhus/got/compare/v9.2.0...v9.3.0
Gracefully handle invalid Location redirect URLs. (#605) 7ae6939
Location redirect URLs. (#605) 7ae6939got.extend(). (#608) 292f78ahttps://github.com/sindresorhus/got/compare/v9.2.1...v9.2.2
Don't cache response when HTTP error was received. #597 b8480f3
https://github.com/sindresorhus/got/compare/v9.2.0...v9.2.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →