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 1 months 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
13 years old
201 releases · first in 2014
Parse response with non-2xx status code, when json option is true.
Parse response with non-2xx status code, when json option is true.
https://github.com/sindresorhus/got/compare/v2.7.0...v2.7.1
New json option for auto-parsing JSON response. abdd0f09606fa4c79b277d2b637a9aa47b9c9643
New json option for auto-parsing JSON response. abdd0f09606fa4c79b277d2b637a9aa47b9c9643
Before:
got('jsonendpoint.com', function (err, data) {
if (err) { return cb(err); }
var json;
try {
json = JSON.parse(data);
} catch (e) {
return cb(new Error('Reponse from jsonendpoint.com is broken: ' + e.message));
}
// working with json
});
After:
got('jsonendpoint.com', {json: true}, function (err, json) {
if (err) { return cb(err); }
// working with json
});
https://github.com/sindresorhus/got/compare/v2.6.0...v2.7.0
One column per quarter.
Thanks to nested-error-stacks by @mdlavin got now emits much more detailed errors! For example Error: getaddrinfo ENOTFOUND now looks like:
Thanks to nested-error-stacks by @mdlavin got now emits much more detailed errors! For example Error: getaddrinfo ENOTFOUND now looks like:
GotError: Request to .com failed
at ClientRequest.<anonymous> (index.js:123:7)
at ClientRequest.g (events.js:180:16)
at ClientRequest.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1552:9)
at Socket.emit (events.js:95:17)
at net.js:834:16
at process._tickCallback (node.js:442:13)
Caused By: Error: getaddrinfo ENOTFOUND
at errnoException (dns.js:37:11)
at Object.onanswer [as oncomplete] (dns.js:124:16)
Same goes for ungzip errors and response stream reading errors. All of them will be wrapped in GotError with url in message.
read-all-stream was updated to ^2.0.0 - release fixes hanging requests on error in underlying streams (like ungzip) 3e55aa613708472537ba4d3cf5fb1923ec5ec5f0https://github.com/sindresorhus/got/compare/v2.5.0...v2.6.0
Emit response event with response object in Stream mode, when server response is ready. https://github.com/sindresorhus/got/commit/929cb59857848c1c14e
Emit response event with response object in Stream mode, when server response is ready. https://github.com/sindresorhus/got/commit/929cb59857848c1c14e470baca9a1ae204d0be8b
https://github.com/sindresorhus/got/compare/v2.4.0...v2.5.0
Improve status code error messages. https://github.com/sindresorhus/got/commit/ef8bdeb22655e06ebe320b580bb0eae4d03f336d
Improve status code error messages. https://github.com/sindresorhus/got/commit/ef8bdeb22655e06ebe320b580bb0eae4d03f336d
https://github.com/sindresorhus/got/compare/v2.3.2...v2.4.0
Prevent duplicate headers of different casing. Node will throw if it encounters that.
Prevent duplicate headers of different casing. Node will throw if it encounters that.
https://github.com/sindresorhus/got/compare/v2.3.1...v2.3.2
https://github.com/sindresorhus/got/compare/v2.3.0...v2.3.1
https://github.com/sindresorhus/got/compare/v2.3.0...v2.3.1
!tumblr_mzkfuyhmyr1s373hwo1_400
$ npm update --save got
options.body. https://github.com/sindresorhus/got/commit/7693a7d645740e7a1d2f17f04310eb7d183bcaaemaxSockets set to Infinity. #22 https://github.com/sindresorhus/got/commit/5d5d0cc6e26192f45ec8c7816cce93355293aa2dhttps://github.com/sindresorhus/got/compare/v2.2.0...v2.3.0
Nothing published for this version
Nothing published for this version
Return an error object on connection failure instead of the HTTP status code. 4a6b6d7cc7a6f3d97f4e55ab07900bb9206a6da2 _The HTTP status code is now av
code property on the error object.HEAD request.timeout option. 14e0dd88924324ed25ece7beef6132f8acdb96a4Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →