Got Versions Save

🌐 Human-friendly and powerful HTTP request library for Node.js

v14.2.1

2 months ago
  • Fix error handling when UTF-8 decoding fails (#2336) c81a611

https://github.com/sindresorhus/got/compare/v14.2.0...v14.2.1

v14.2.0

3 months ago
  • Add cause property with the original error to RequestError (#2327) 4cbd01d

https://github.com/sindresorhus/got/compare/v14.1.0...v14.2.0

v14.1.0

3 months ago
  • Allow typing the body of a RequestError response (#2325) 5e4f6ff

https://github.com/sindresorhus/got/compare/v14.0.0...v14.1.0

v14.0.0

5 months ago

Breaking

  • Require Node.js 20 (#2313) a004263
    • Why not target the oldest active Node.js LTS, which is Node.js 18? I usually strictly follow this convention in my packages. However, this package is the exception because the HTTP part of Node.js is consistently buggy, and I don't have time to work around issues in older Node.js releases. I you need to still support Node.js 18, I suggest staying on Got v13, which is quite stable. Node.js 18 will be out of active LTS in 5 months.

Improvements

  • Make followRedirect option accept a function (#2306) 7c3f147

https://github.com/sindresorhus/got/compare/v13.0.0...v14.0.0

v13.0.0

11 months ago

As a reminder, Got continues to require ESM. For TypeScript users, this includes having "module": "node16", "moduleResolution": "node16" in your tsconfig.

Breaking

  • Require Node.js 16 52a1063
  • Change the enableUnixSockets option to be false by default 852c312
    • Most users don't need it.

Improvements

  • Allow specifying undefined for options (#2258) 1cefe8b

https://github.com/sindresorhus/got/compare/v12.6.1...v13.0.0

v12.6.1

11 months ago
  • Fix get-stream import statement (#2266) 67d5039

https://github.com/sindresorhus/got/compare/v12.6.0...v12.6.1

v12.6.0

1 year ago
  • Update dependencies 88c88fb 979272e
  • Loosen URL validation strictness (#2200) 0ca0b7f

https://github.com/sindresorhus/got/compare/v12.5.3...v12.6.0

v11.8.6

1 year ago
  • Destroy request object after successful response

https://github.com/sindresorhus/got/compare/v11.8.5...v11.8.6

v12.5.3

1 year ago
  • Fix abort event listeners not always being cleaned up (#2162) 3cc40b5

https://github.com/sindresorhus/got/compare/v12.5.2...v12.5.3

v12.5.2

1 year ago
  • Improve TypeScript 4.9 compatibility (#2163) 39f83b6

https://github.com/sindresorhus/got/compare/v12.5.1...v12.5.2