kslr / disposable-email-domains

Anti-cheating, temporary (disposable/throwaway) email list
MIT License
26 stars 5 forks source link

Update dependency got to v10 #5

Closed renovate[bot] closed 4 years ago

renovate[bot] commented 4 years ago

This PR contains the following updates:

Package Type Update Change
got dependencies major 9.6.0 -> 10.0.4

Release Notes

sindresorhus/got ### [`v10.0.4`](https://togithub.com/sindresorhus/got/releases/v10.0.4) [Compare Source](https://togithub.com/sindresorhus/got/compare/v10.0.3...v10.0.4) - Fix type conflicts for `URL` and `URLSearchParams` types ([#​983](https://togithub.com/sindresorhus/got/issues/983)) [`cd4226d`](https://togithub.com/sindresorhus/got/commit/cd4226d) Just working around yet another TypeScript bug: [DefinitelyTyped/DefinitelyTyped#​34960](https://togithub.com/DefinitelyTyped/DefinitelyTyped/issues/34960) ### [`v10.0.3`](https://togithub.com/sindresorhus/got/releases/v10.0.3) [Compare Source](https://togithub.com/sindresorhus/got/compare/v10.0.2...v10.0.3) - Fix the `responseType` option ([`071bf5e`](https://togithub.com/sindresorhus/got/commit/071bf5ed39a1262b1bf806067752395421090a23)) - Fix unhandled `Premature close` and `Request timed out` errors ([`7b2ccb0`](https://togithub.com/sindresorhus/got/commit/7b2ccb0d69fca9aba27373ab344f97d389d692f2)) - Make `options.path` backwards-compatible ([`b3f1ac9`](https://togithub.com/sindresorhus/got/commit/b3f1ac9c9725459f4ffab9baa20b9459d3495fba)) ### [`v10.0.2`](https://togithub.com/sindresorhus/got/releases/v10.0.2) [Compare Source](https://togithub.com/sindresorhus/got/compare/v10.0.1...v10.0.2) - Fix TypeScript type problem with `URL` and `URLSearchParams` globals ([#​969](https://togithub.com/sindresorhus/got/issues/969)) [`2d5e28d`](https://togithub.com/sindresorhus/got/commit/2d5e28d) - Fix `got.mergeOptions(...)` TypeScript type ([#​953](https://togithub.com/sindresorhus/got/issues/953)) [`b962d08`](https://togithub.com/sindresorhus/got/commit/b962d08) - Fix unhandled timeout errors when connection drops [`5a8f461`](https://togithub.com/sindresorhus/got/commit/5a8f461) ### [`v10.0.1`](https://togithub.com/sindresorhus/got/releases/v10.0.1) [Compare Source](https://togithub.com/sindresorhus/got/compare/v10.0.0...v10.0.1) - Fix using the `json` option with `got.stream.post` [`2ec5c4d`](https://togithub.com/sindresorhus/got/commit/2ec5c4d) ### [`v10.0.0`](https://togithub.com/sindresorhus/got/releases/v10.0.0) [Compare Source](https://togithub.com/sindresorhus/got/compare/v9.6.0...v10.0.0) 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](https://togithub.com/sindresorhus/got?sponsor=1)._ **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. ##### Breaking - Require Node.js 10 [`633651f`](https://togithub.com/sindresorhus/got/commit/633651f) \- Why: This is so that we can use `stream.pipeline` for more reliable stream handling. Node.js 8 will be out of LTS at the end of this month anyway. - Remove support for protocol-less URLs in the `url` argument [`92bc808`](https://togithub.com/sindresorhus/got/commit/92bc808) \- Why: To reduce ambiguity. It was not clear from just reading the code what it would default to. \- Migrate: ```diff - got('sindresorhus.com'); + got('https://sindresorhus.com'); ``` - Rename the `query` option to `searchParams` and make it stricter [`b223663`](https://togithub.com/sindresorhus/got/commit/b223663) [`5376216`](https://togithub.com/sindresorhus/got/commit/5376216) [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) \- Why: To get closer to the `window.fetch` naming in the browser. \- Migrate: ```diff - got(…, {query: …}); + got(…, {searchParams: …}); ``` - Replace the `baseUrl` option with `prefixUrl` ([#​829](https://togithub.com/sindresorhus/got/issues/829)) [`0d534ed`](https://togithub.com/sindresorhus/got/commit/0d534ed) \- Note: We also made it stricter to reduce ambiguity. The Got `url` argument now [cannot be prefixed with a slash](https://togithub.com/sindresorhus/got#prefixurl) when this option is used. \- Why: We renamed it to make it clear that it doesn't do any URL resolution. \- Migrate: ```diff - got('/foo', {baseUrl: 'https://x.com'}); + got('foo', {prefixUrl: 'https://x.com'}); ``` - Change the `json` option to accept an object instead of a boolean and to only be responsible for the request, not the response ([#​704](https://togithub.com/sindresorhus/got/issues/704)) [`a6a7d5a`](https://togithub.com/sindresorhus/got/commit/a6a7d5a) \- Note: You now set the request body in this option instead of the `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. \- Why: Many people were confused how `{json: true}` worked and they also complained that they could not set the request/response type individually. \- Migrate: ```diff - got(url, {body: {x: true}, json: true}); + got.post(url, {json: {x: true}}).json(); ``` - Use the [`responseType`](https://togithub.com/sindresorhus/got#responsetype) option instead of [`encoding`](https://togithub.com/sindresorhus/got#encoding) to get a Buffer ([#​940](https://togithub.com/sindresorhus/got/issues/940)) [`6cc3d9f`](https://togithub.com/sindresorhus/got/commit/6cc3d9f) \- Why: Previously, you would pass `{encoding: null}` to get a Buffer, but this was confusing. You now use `{responseType: 'buffer'}` instead. \- Tip: You can also use `got(…).buffer();`. \- Migrate: ```diff - got(…, {encoding: null}); + got(…, {responseType: 'buffer'}); ``` - Don't infer `POST` automatically when specifying `body` ([#​756](https://togithub.com/sindresorhus/got/issues/756)) [`e367bdb`](https://togithub.com/sindresorhus/got/commit/e367bdb) \- Why: We're trying to reduce the amount of magic behavior. \- Migrate: ```diff - got(…, {body: 'foo'}); + got.post(…, {body: 'foo'}); ``` - The `retries.retry` option was split into `retries.limit` and `retries.calculateDelay` [`b15ce1d`](https://togithub.com/sindresorhus/got/commit/b15ce1d) \- Migrate: ```diff got(…, { retry: { - retries: 2 + limit: 2 } }); ``` ```diff got(…, { retry: { - retries: iteration => iteration < 2 + calculateDelay: ({attemptCount}) => attemptCount < 2 } }); ``` - Use `undefined` instead of `null` to omit a header () [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) \- Why: We're trying to [reduce the use of `null`](https://togithub.com/sindresorhus/meta/issues/7). \- Migrate: ```diff got(…, { headers: { - 'user-agent': null + 'user-agent': undefined } }); ``` - Rename the Promise API property `.fromCache` to `.isFromCache` ([#​768](https://togithub.com/sindresorhus/got/issues/768)) [`b5e443b`](https://togithub.com/sindresorhus/got/commit/b5e443b) - Rename the `stream` option to `isStream` [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) \- Why: To make it clearer that it's a boolean and that it doesn't expect a stream to be passed in. \- Migrate: ```diff - got(…, {stream: true}); + got(…, {isStream: true}); ``` - Don't include the Got version in the default `user-agent` header ([#​911](https://togithub.com/sindresorhus/got/issues/911)) [`95bed1e`](https://togithub.com/sindresorhus/got/commit/95bed1e) \- `got/9.6.0 (https://github.com/sindresorhus/got)` → `got (https://github.com/sindresorhus/got)` \- Why: Importing package.json to get the version caused a lot of problems. And you should ideally set your own `user-agent` header anyway. - Remove `got.create()` [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) \- You can achieve the same thing with `got.extend()` now. - Remove `got.mergeInstances()` [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) \- Use `gotInstance.extend(...gotInstances)` instead. - Move top-level error properties into an `.options` and `.response` property ([#​773](https://togithub.com/sindresorhus/got/issues/773)) [`6eaa81b`](https://togithub.com/sindresorhus/got/commit/6eaa81b) \- Migrate: ```diff - 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 ``` - Custom instance creation was simplified ([#​707](https://togithub.com/sindresorhus/got/issues/707)) [`8eaef94`](https://togithub.com/sindresorhus/got/commit/8eaef94) \- Note: `got.mergeInstances(...instances)` is deprecated. Use `instanceA.extend(instanceB)` instead. \- Migrate: ```diff ### 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]}); ``` ##### Enhancements - Got has been rewritten in TypeScript. \- Why: This means we can provide our own type definitions and we can be more confident when working on the Got codebase and produce less bugs. Huge thanks to [@​pmmmwh](https://togithub.com/pmmmwh), [@​LinusU](https://togithub.com/LinusU), [@​vladfrangu](https://togithub.com/vladfrangu), [@​mastermatt](https://togithub.com/mastermatt), and everyone else that helped us with this rewrite. 🙌 - Add support for [Brotli](https://en.wikipedia.org/wiki/Brotli) (Node.js 12 and later) ([#​706](https://togithub.com/sindresorhus/got/issues/706)) [`d5d2e6f`](https://togithub.com/sindresorhus/got/commit/d5d2e6f) - Add opt-in [DNS cache](https://togithub.com/sindresorhus/got#dnscache) ([#​731](https://togithub.com/sindresorhus/got/issues/731)) [`cd12351`](https://togithub.com/sindresorhus/got/commit/cd12351) - Add [`context` option](https://togithub.com/sindresorhus/got#context) for storing custom metadata across request and hooks ([#​777](https://togithub.com/sindresorhus/got/issues/777)) [`3bb5aa7`](https://togithub.com/sindresorhus/got/commit/3bb5aa7) - Add [option to ignore invalid cookies](https://togithub.com/sindresorhus/got#ignoreinvalidcookies) ([#​826](https://togithub.com/sindresorhus/got/issues/826)) [`e9c01e0`](https://togithub.com/sindresorhus/got/commit/e9c01e0) - Add [`maxRedirects` option](https://togithub.com/sindresorhus/got#maxredirects) ([#​914](https://togithub.com/sindresorhus/got/issues/914)) [`0c505b0`](https://togithub.com/sindresorhus/got/commit/0c505b0) - Allow method rewriting on redirects ([#​913](https://togithub.com/sindresorhus/got/issues/913)) [`b7ead5f`](https://togithub.com/sindresorhus/got/commit/b7ead5f) - Add [`methodRewriting` option](https://togithub.com/sindresorhus/got#methodrewriting) ([#​942](https://togithub.com/sindresorhus/got/issues/942)) [`b82358f`](https://togithub.com/sindresorhus/got/commit/b82358f) - Add ability to use something other than [`tough-cookie`](https://www.npmjs.com/package/tough-cookie) for handling cookies ([#​882](https://togithub.com/sindresorhus/got/issues/882)) [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) - Preserve stack trace when wrapping errors ([#​935](https://togithub.com/sindresorhus/got/issues/935)) [`8874a45`](https://togithub.com/sindresorhus/got/commit/8874a45) - Proxy headers from server request to Got ([#​772](https://togithub.com/sindresorhus/got/issues/772)) [`00e5fd5`](https://togithub.com/sindresorhus/got/commit/00e5fd5) - Pass the response as the second argument to the `beforeRedirect` hook ([#​812](https://togithub.com/sindresorhus/got/issues/812)) [`3557896`](https://togithub.com/sindresorhus/got/commit/3557896) - Throw on canceled request with incomplete response ([#​767](https://togithub.com/sindresorhus/got/issues/767)) [`92b1005`](https://togithub.com/sindresorhus/got/commit/92b1005) - Add [`.isFromCache` property](https://togithub.com/sindresorhus/got#streams-1) to the stream API ([#​768](https://togithub.com/sindresorhus/got/issues/768)) [`b5e443b`](https://togithub.com/sindresorhus/got/commit/b5e443b) - The [`timeout` option](https://togithub.com/sindresorhus/got#timeout) can now be modified in hooks [`d520a3a`](https://togithub.com/sindresorhus/got/commit/d520a3a) - The [`prefixUrl` option](https://togithub.com/sindresorhus/got#prefixurl) can now be modified in hooks ([#​867](https://togithub.com/sindresorhus/got/issues/867)) [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) - Make `URLSearchParams` instances mergeable ([#​734](https://togithub.com/sindresorhus/got/issues/734)) [`95c7c2c`](https://togithub.com/sindresorhus/got/commit/95c7c2c) ##### Fixes - Fix parsing response when using `afterResponse` hook ([#​775](https://togithub.com/sindresorhus/got/issues/775)) [`e2054cd`](https://togithub.com/sindresorhus/got/commit/e2054cd) - Fix `port` not being reset on redirect ([#​729](https://togithub.com/sindresorhus/got/issues/729)) [`ada5861`](https://togithub.com/sindresorhus/got/commit/ada5861) - Fix the retry functionality ([#​787](https://togithub.com/sindresorhus/got/issues/787)) [`0501e00`](https://togithub.com/sindresorhus/got/commit/0501e00) - Fix default `retry` option value when specifying a number ([#​809](https://togithub.com/sindresorhus/got/issues/809)) [`9c04a7c`](https://togithub.com/sindresorhus/got/commit/9c04a7c) - Correctly handle promise- and stream-specific errors in the `beforeError` hook [`134c9b7`](https://togithub.com/sindresorhus/got/commit/134c9b7) - Don't throw on early lookups [`4faf5c7`](https://togithub.com/sindresorhus/got/commit/4faf5c7) - Fix Node.js 13 compatibility ([#​915](https://togithub.com/sindresorhus/got/issues/915)) [`b0dfc95`](https://togithub.com/sindresorhus/got/commit/b0dfc95) - Fix memory leak when using cache feature ([#​792](https://togithub.com/sindresorhus/got/issues/792)) [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) - Don't throw on `204 No Content` when parsing response ([#​925](https://togithub.com/sindresorhus/got/issues/925)) [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) - When redirect fails, don't retry from scratch ([#​930](https://togithub.com/sindresorhus/got/issues/930)) [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) - Retrying inside `afterResponse` hook should trigger `beforeRetry` hook ([#​918](https://togithub.com/sindresorhus/got/issues/918)) [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) - Fix a bug that sometimes caused the Node.js process to hang [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) - Fix a bug where cookies weren't reset on redirect between two different sites [`518f0f5`](https://togithub.com/sindresorhus/got/commit/518f0f5906e1fcd38691555b17fb91db643f3d47) - Make the progress events not be based on internal Node.js properties [`cd11a50`](https://togithub.com/sindresorhus/got/commit/cd11a50) ##### Docs - Clarify `retry` behavior [`5e6782a`](https://togithub.com/sindresorhus/got/commit/5e6782a) - Clarify `prefixUrl` behavior ([#​943](https://togithub.com/sindresorhus/got/issues/943)) [`f008bc9`](https://togithub.com/sindresorhus/got/commit/f008bc9) - Document that `retry` option doesn't work with streams [`9088866`](https://togithub.com/sindresorhus/got/commit/9088866) - Encourage using `Stream.pipeline()` when using the stream API [`06afb27`](https://togithub.com/sindresorhus/got/commit/06afb27) - Add instructions for `global-agent` ([#​822](https://togithub.com/sindresorhus/got/issues/822)) [`ca8c560`](https://togithub.com/sindresorhus/got/commit/ca8c560) - Mention the `TimeoutError.timings` property [`8fa18f4`](https://togithub.com/sindresorhus/got/commit/8fa18f4) - Mention how to abort the request using hooks [`96ea75f`](https://togithub.com/sindresorhus/got/commit/96ea75f) ##### All commits

Renovate configuration

:date: Schedule: At any time (no schedule defined).

:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.

:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

:no_bell: Ignore: Close this PR and you won't be reminded about this update again.



Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.