Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update got to the latest version 🚀 #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented May 29, 2017

Version 7.0.0 of got just got published.

Dependency got
Current Version 6.7.1
Type dependency

The version 7.0.0 is not covered by your current version range.

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of got.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Release Notes 7.0.0

Breaking changes

  • Changes stringifying options behavior. 51a3eaf
    Setting the body option to be an object to stringify is no longer possible without setting either the form option for URL encoding or the json option for JSON encoding. Previously, Got would use URL encoding by default, now it will throw an error. Since the json option also means Got will decode a JSON response for you, setting both options to true will encode the request as URL and decode the response as JSON.
  • Now also redirects on 307, 308, 303 responses. b45896a
  • The timeout option now applies to the whole request and we added ability to control the timeout of the individual phases. 7964f2c

Highlights

  • Added ability to cancel in-progress requests! 9ef7a5a
  • Added WHATWG URL support. f501fc2
  • Improve request retries by reducing the number of retries and making delays shorter. 14d0859
  • Only throws ParseError when parsing fails on 2xx responses. c86706b
  • No longer throws HTTPError on 304 responses. 7b12b75
  • Added protocol property to errors. 919703c
  • Added url property to errors. a287f8e
  • Includes response headers in errors, and redirect URLs in errors and the response. 8b4d06e
  • Improve use in Electron. 2130570 6fc1902

All changes

v6.7.1...v7.0.0

Commits

The new version differs by 31 commits.

  • c20bc5e 7.0.0
  • 6fc1902 Add ability to opt-out of using electron.net
  • 7964f2c Request timeout (#308)
  • b45896a Redirect on 307, 308, 303 (#307)
  • a299b00 Set up proxy event emitter before making a request (#304)
  • 2130570 Improve use in Electron (#311)
  • 359a5d1 Use class syntax for errors (#306)
  • f501fc2 Add WHATWG URL support (#289)
  • ff0cef0 Tiny cleanup
  • 9ef7a5a Add ability to cancel in-progress requests (#287)
  • c86706b Only throw ParseError on 2xx responses (#301)
  • 8b4d06e Include response headers and redirect URLs in error object (#302)
  • 6d19a72 Bump some devDependencies
  • 578f38d Set url and requestUrl directly on the response (#300)
  • 14d0859 reduce retries number and make delays shorter (#299)

There are 31 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 29, 2017

Version 7.0.0 just got published.

Update to this version instead 🚀

Release Notes 7.0.0

Breaking changes

  • Changes stringifying options behavior. 51a3eaf
    Setting the body option to be an object to stringify is no longer possible without setting either the form option for URL encoding or the json option for JSON encoding. Previously, Got would use URL encoding by default, now it will throw an error. Since the json option also means Got will decode a JSON response for you, setting both options to true will encode the request as URL and decode the response as JSON.
  • Now also redirects on 307, 308, 303 responses. b45896a
  • The timeout option now applies to the whole request and we added ability to control the timeout of the individual phases. 7964f2c

Highlights

  • Added ability to cancel in-progress requests! 9ef7a5a
  • Added WHATWG URL support. f501fc2
  • Improve request retries by reducing the number of retries and making delays shorter. 14d0859
  • Only throws ParseError when parsing fails on 2xx responses. c86706b
  • No longer throws HTTPError on 304 responses. 7b12b75
  • Added protocol property to errors. 919703c
  • Added url property to errors. a287f8e
  • Includes response headers in errors, and redirect URLs in errors and the response. 8b4d06e
  • Improve use in Electron. 2130570 6fc1902

All changes

v6.7.1...v7.0.0

Commits

The new version differs by commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jun 30, 2017
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jun 30, 2017

Version 7.1.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 17 commits ahead by 17, behind by 1.

  • b725ef5 7.1.0
  • 1da85aa Bump p-cancelable
  • 8bb556a Bump AVA
  • c0c6bcf Fix unix address parser (#339)
  • f535947 Escape dot in regex in a test
  • 1cf2bbf Support Array with the json option (#335)
  • ee405f4 Add all helper functions in the same loop (#336)
  • 8660ab7 Add test for err.response.body
  • 3f11737 url arg optimizations (#329)
  • 4e1b0bf Fix readme highlight link
  • f735bdd Bump dev dependencies
  • 049a050 Add a feature highlight section to the readme (#326)
  • 17e24e9 Remove nonexistent strictSSL option from test (#328)
  • f9d19e3 Add decompress option (#320)
  • ae1804b Update .travis.yml

There are 17 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Nov 16, 2017
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 16, 2017

Version 8.0.0 just got published.

Update to this version instead 🚀

Release Notes v8.0.0

v7.1.0...v8.0.0

Commits

The new version differs by 35 commits.

  • 570ff68 8.0.0
  • a9da2da Force bump versions of all dependencies
  • d39b681 Update to cacheable-request@2.1.1 (#416)
  • 98a7144 Fix EventEmitter memory leak (#415)
  • 6e4eafa Rewrite stream tests to use async/await
  • a4facf3 Readme and error message tweaks
  • ff41353 Do not throw when using a URL object with auth (#411)
  • e9aea98 Ensure cancel tests wait for a connection before cancelling (#414)
  • 883e40f Improve error handling (#412)
  • c5e2f8d Exclude passed headers with values null or undefined (#413)
  • 0c5e44c Fix socket connect listener memory leak (#406)
  • ae1a0fe Use HTTPS for protocol-less URLs (#405)
  • b9bf2e6 Support an object in the agent option (#386)
  • 01c2636 Use statusMessage returned by endpoint (#398)
  • 73b5614 Bump AVA

There are 35 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Dec 1, 2017
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 1, 2017

Version 8.0.1 just got published.

Update to this version instead 🚀

Release Notes v8.0.1
  • Correctly forwards stream errors. 974473a
  • Fix the request not aborting if the connection cannot be established and the timeout expires. 98d226c

v8.0.0...v8.0.1

Commits

The new version differs by 5 commits.

  • 685c7f3 8.0.1
  • 98d226c Update p-timeout to version 2.0.1 (#431)
  • dce4725 Add readme link to related GitLab got (gl-got) (#425)
  • 974473a Correctly forward stream errors (#424)
  • 9495256 Use @sindresorhus/is for type checking (#422)

See the full diff

greenkeeper bot added a commit that referenced this pull request Jan 13, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jan 13, 2018

Version 8.0.2 just got published.

Update to this version instead 🚀

Release Notes v8.0.2
  • Fix browser usage. 30c39bc
  • Validate that url is UTF-8 encoded. 4f5e6bf

v8.0.1...v8.0.2

Commits

The new version differs by 10 commits.

  • f607c7d 8.0.2
  • 30c39bc Check req.connection exists before attaching event listeners (#429)
  • 4f5e6bf Validate that url is UTF-8 encoded (#441)
  • 841ab63 Bump some dependencies
  • a49dcaf Tweak related section in the readme
  • ad1ea9f Add new related project to the readme (#440)
  • c28877f Update Electron website URL
  • 4ab6bd3 Document cache behaviour (#439)
  • 08cc66e Extract errors into errors.js (#436)
  • e0fff06 package.json indentation

See the full diff

greenkeeper bot added a commit that referenced this pull request Jan 20, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jan 20, 2018

Version 8.0.3 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

  • 3f427bb 8.0.3
  • e71d380 Thanks to MOXY for sponsoring my open source work!

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 11, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 11, 2018

Version 8.1.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • 1701125 8.1.0
  • b26c51e Allow calling of got.stream via options (#452)
  • 5a88943 Add throwHttpErrors option (#451)

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 19, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 19, 2018

Version 8.2.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • 3963b5a 8.2.0
  • cf23244 Don't set accept-encoding if decompress is false (#456)
  • 282b416 Bump dev dependencies

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 9, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Mar 9, 2018

Version 8.3.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 7 commits.

  • 7d1aa01 8.3.0
  • 9a646a3 Don't continue the request after cancellation (#464)
  • 871c3bd Bump p-cancelable
  • 43b51ba Prevent uncaught exception in some cases (#459)
  • 13d6b68 Fix socket 'connect' memory leak (#465)
  • dc068ea Improve docs (#457)
  • b8c8c51 Add documentation on how to test requests (#455)

See the full diff

greenkeeper bot added a commit that referenced this pull request May 1, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 1, 2018

Version 8.3.1 just got published.

Update to this version instead 🚀

Commits

The new version differs by 5 commits.

  • bd3315b 8.3.1
  • de9514d Set content-length header when using form-data
  • 82763c8 Clear the progress interval if the socket has been destroyed (#469)
  • b465f21 GitHub now natively supports SVG
  • 81f2537 Do not override Accept-Encoding header if already provided (#472)

See the full diff

greenkeeper bot added a commit that referenced this pull request Jul 3, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jul 3, 2018

Version 8.3.2 just got published.

Update to this version instead 🚀

Release Notes v8.3.2

Fix Got throwing an error in some cases when trying to pipe one got.stream into another one. 7ac705f

Commits

The new version differs by 2 commits.

  • ad7b361 8.3.2
  • 7ac705f fix Buffer.byteLength(req._header) throwing error (#490)

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 4, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Aug 4, 2018

Version 9.0.0 just got published.

Update to this version instead 🚀

Release Notes v9.0.0

This is a huge release! Many new awesome features and we have pretty much fixed all the open issues regarding Got bugs on the issue tracker.

Breaking changes

  • Requires Node.js 8.
    You might ask, why not follow the Node.js LTS cycle and target Node.js 6. In short, async/await and WHATWG URL, which enabled us to considerably simplify the codebase and reduce the dependency-tree. Got v8 is a stable release and you can continue using that if you need to support Node.js 6.
  • The retry functionality was rewritten to improve its reliability and to support retrying on HTTP status codes. Previously, it only retried on some network failures. 98b5664
    The option was renamed from retries to retry and it now accepts either a number of retries or an object with ability to specify number of retries, HTTP status codes and methods to retry on, and a function to decide how to retry. See the docs for more.
    Migration:
    - { retries: 4 }{ retry: 4 }
    - { retries: () => { … } }{ retry: { retries: () => { … } } }
  • Renamed the .canceled property to .isCanceled. 00fdeea
  • Dropped support for the body option being an Array when form: true. dfe5b1c
    The built-in new URLSearchParams() API doesn't support this either and it's a weird use-case. If you need support for this, just don't set form: true and handle stringifying yourself.

Improvements

  • Less dependencies!
  • The timeout option was rewritten to be more reliable and flexible. You can now set a timeout for every phase of the request if you want, or just for the whole request. That's up to you. da4f236
  • Added got.extend() which lets you easily create instances of Got with some options overriden. bc41a49
  • Added got.create() which is a more advanced and powerful version of got.extend(). With this API, you can create your own niche-specific instance of Got, for example, a HTTP-client for GitHub. bc41a49
  • Added a beforeRequest hook. 107756f
  • Added request and response events to the Promise API. e86aad7
  • The content-length header is now also automatically set if the body option is set to a fs.createReadStream instance. 6e7a455
  • You can now remove the default user-agent header by passing in 'user-agent': null as a header. e473a26
  • The body option can now be any kind of object, not just a plain object. 7a49ce7

Bug fixes

  • Fixed a problem with the cache not working when using the query option. 07a91cc
  • Less unhandled errors (Hopefully none!). f621184
  • Headers are now correctly proxied when you pipe got.stream(). 83bc44c
  • Lots of more bug fixes…

Other

  • 100% code coverage! Doing this caught a couple of bugs, so totally worth doing even if 100% doesn't mean bug-free.
  • The codebase was greatly refactored for better readability and maintainability. b54b680

Team

Welcome @szmarczak and @brandon93s as maintainers 🎉

Special shoutout to @jstewmon for helping us with many of the above improvements and fixes 🙌

All changes

v8.3.2...v9.0.0

Commits

The new version differs by 74 commits ahead by 74, behind by 2.

  • 3a145c0 9.0.0
  • bf3c463 Fix readme Highlights link to retry option
  • ba0cb0d Unify calculating content-length (#544)
  • 5c3adba Increase coverage (#543)
  • 10d22b7 Increase coverage (#542)
  • 99dbd97 Fix the behaviour of proxying headers
  • 4d92eb6 Ignore JSON option when using got.stream() (#541)
  • 6ba9e68 Fix the description of the next() function
  • bf206ca Don't recommend setting user-agent to undefined
  • 80a02fe Update readme links to Electron-related issues
  • af5c3fd Improve merging options (#539)
  • d369b08 Make got.mergeOptions() behavior more obvious and document its behavior (#538)
  • 6d654fa Drop ESOCKETTIMEDOUT error
  • da7f055 Add timeout for secureConnect event for HTTPS requests (#536)
  • 9d87e9f Document TimeoutError

There are 74 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 23, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Aug 23, 2018

Version 9.1.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 24 commits.

  • 1c54a03 9.1.0
  • c901c46 Normalize the URL in the baseUrl option (#579)
  • f241936 Remove AppVeyor
  • 3d98b9b Follow redirects with encoded URI (#564)
  • 45d3a60 Bump get-stream to 0.4.0 (#578)
  • 2ffcd49 Don't freeze any other values than plain objects and arrays (#577)
  • a7cd35a Tiny readme formatting tweak
  • b8a086f Allow the query option to be a URLSearchParams instance (#565)
  • 97533e5 Fix AWS example in readme (#575)
  • 8f30f1f Add note about global-tunnel package
  • eb652f8 Ignore empty query objects (#572)
  • ca2675e Upgrade to ava@1.0.0-beta.7
  • f30b623 Mention browser and Electron support in the comparison table (#556)
  • a3e77de Support retrying on HTTP 500
  • 2cdb3ed Fix a typo in the readme (#553)

There are 24 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 31, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Aug 31, 2018

Version 9.2.0 just got published.

Update to this version instead 🚀

Release Notes v9.2.0

v9.1.0...v9.2.0

Commits

The new version differs by 19 commits.

  • aec95d2 9.2.0
  • f8af5b0 Update http-timer dependency to 1.1.0
  • e66a6b6 Fix Electron throwing HTTP trailers are not supported error (#598)
  • eedebc9 Add cookieJar option (#596)
  • ab0d24b Add "Bugs" to the comparsion table
  • 887f02d Improve code readability
  • a8eb41b Proper fix for #469 (#594)
  • 78a56ec Provide timings (#590)
  • bb8175b Correct the comparison table
  • 7910e14 Unify calling mergeOptions
  • 488ac7e Remove redundant code
  • 21bef3c Update readme.md (#593)
  • 267cb66 Document the response object (#592)
  • d0757da Add tests for stripping port in host header (#591)
  • dda1ce9 Use correct package/module wording in the readme

There are 19 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Sep 6, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Sep 6, 2018

Version 9.2.1 just got published.

Update to this version instead 🚀

Release Notes v9.2.1
  • Don't cache response when HTTP error was received. #597 b8480f3
  • Fix merging default & custom handlers. 5f191b9

v9.2.0...v9.2.1

Commits

The new version differs by 7 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 8, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 8, 2020

  • The dependency got was updated from 6.7.1 to 10.5.5.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Feb 16, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 16, 2020

  • The dependency got was updated from 6.7.1 to 10.5.6.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Feb 16, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 16, 2020

  • The dependency got was updated from 6.7.1 to 10.5.7.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Feb 20, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Feb 20, 2020

  • The dependency got was updated from 6.7.1 to 10.6.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Mar 24, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Mar 24, 2020

  • The dependency got was updated from 6.7.1 to 10.7.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Apr 20, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Apr 20, 2020

  • The dependency got was updated from 6.7.1 to 11.0.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Apr 20, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Apr 20, 2020

  • The dependency got was updated from 6.7.1 to 11.0.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Apr 22, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Apr 22, 2020

  • The dependency got was updated from 6.7.1 to 11.0.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Apr 30, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Apr 30, 2020

  • The dependency got was updated from 6.7.1 to 11.0.3.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request May 2, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 2, 2020

  • The dependency got was updated from 6.7.1 to 11.1.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request May 6, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 6, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


  • The dependency got was updated from 6.7.1 to 11.1.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request May 8, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 8, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


  • The dependency got was updated from 6.7.1 to 11.1.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request May 10, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 10, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


  • The dependency got was updated from 6.7.1 to 11.1.3.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request May 16, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented May 16, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


  • The dependency got was updated from 6.7.1 to 11.1.4.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jun 1, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jun 1, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


  • The dependency got was updated from 6.7.1 to 11.2.0.

Update to this version instead 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants