Skip to content

Releases: sindresorhus/got

v11.3.0

05 Jun 16:32
Compare
Choose a tag to compare

v11.2.0...v11.3.0

v11.2.0

01 Jun 07:36
Compare
Choose a tag to compare
  • Provide an overload for unknown responseType (#1276) b9ba18a
  • Fix overriding some options in a beforeRequest hook (#1293) d8c00cf
  • Fix hanging promise on aborted requests on Node v14.3.0 (#1296) 2ccc4c2
  • Do not wait for ready event if the file descriptor is already opened (#1289) 2c8fe19
  • General improvements to HTTPS API (#1255) 697de37

v11.1.4...v11.2.0

v11.1.4

16 May 16:30
Compare
Choose a tag to compare
  • Clarify docs for got.HTTPError (#1244) 3f125f1
  • Upgrade cacheable-lookup to 5.0.3 9770e54
  • Add a Runkit example (#1253) 48bbb36
  • Mention options.rejectUnauthorized in the documentation 9b04963
  • Test responseType set to undefined 0e8582f
  • Slightly improve RunKit example 6f84051
  • Make got.paginate() an alias for got.paginate.each() 5480b31
  • Don't force query string normalization (#1246) 761b8e0
  • Upgrade decompress-response to 6.0.0 c2bc014
  • Migrate from lolex to @sinonjs/fake-timers (#1270) df333dd
  • Make calculateDelay promisable (#1266) 3745efc

v11.1.3

10 May 13:02
Compare
Choose a tag to compare

v11.1.2

08 May 11:10
Compare
Choose a tag to compare

Bug fixes

  • Disable options.dnsCache by 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

v11.1.1

06 May 09:44
Compare
Choose a tag to compare
  • Improve Node.js 14 compatibility 50ef99a
  • Fix got.mergeOptions() regression 157e02b
  • Fix hanging promise when using cache 7b19e8f
  • Make options.responseType optional when using a template 9ed0a39

v11.1.0...v11.1.1

v11.1.0

02 May 11:49
Compare
Choose a tag to compare

v11.0.3...v11.1.0

v11.0.3

30 Apr 14:41
Compare
Choose a tag to compare

Fixes

  • Limit number of requests in pagination to prevent accidental overflows (#1181) 4344c3a
  • Fix promise rejecting before retry b927e2d
  • Fix options.searchParams duplicates 429db40
  • Prevent calling .abort() on a destroyed request 63c1b72

Docs

  • Fix incorrect usage in the readme examples (#1203) 16ff82f
  • Note that cache and dnsCache can be false 7c5290d

v11.0.2...v11.0.3

v11.0.2

22 Apr 09:22
Compare
Choose a tag to compare
  • Fix response.statusMessage being null 965bd03
  • Update the http2-wrapper dependency to 1.0.0-beta.4.4 4e8de8e
  • Use Merge as it's stricter than the intersection operator d3b972e
  • Prevent silent rejections in rare cases 8501c69
  • Do not alter options.body 835c70b

v11.0.1

20 Apr 17:44
Compare
Choose a tag to compare

Fixed two regressions:

  • HTTPErrors have unspecified response body (#1162)
  • Options are duplicated while merging (#1163)

Improved TypeScript types for errors inherited from RequestError