sindresorhus/got (got)
### [`v14.1.0`](https://togithub.com/sindresorhus/got/releases/tag/v14.1.0)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v14.0.0...v14.1.0)
- Allow typing the body of a `RequestError` response ([#2325](https://togithub.com/sindresorhus/got/issues/2325)) [`5e4f6ff`](https://togithub.com/sindresorhus/got/commit/5e4f6ff)
### [`v14.0.0`](https://togithub.com/sindresorhus/got/releases/tag/v14.0.0)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v13.0.0...v14.0.0)
##### Breaking
- Require Node.js 20 ([#2313](https://togithub.com/sindresorhus/got/issues/2313)) [`a004263`](https://togithub.com/sindresorhus/got/commit/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](https://togithub.com/sindresorhus/got/issues/2306)) [`7c3f147`](https://togithub.com/sindresorhus/got/commit/7c3f147)
### [`v13.0.0`](https://togithub.com/sindresorhus/got/releases/tag/v13.0.0)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.6.1...v13.0.0)
As a reminder, Got continues to require ESM. For TypeScript users, this includes having [`"module": "node16", "moduleResolution": "node16"` in your tsconfig](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm).
##### Breaking
- Require Node.js 16 [`52a1063`](https://togithub.com/sindresorhus/got/commit/52a1063)
- Change the [`enableUnixSockets`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#enableunixsockets) option to be `false` by default [`852c312`](https://togithub.com/sindresorhus/got/commit/852c312)
- Most users don't need it.
##### Improvements
- Allow specifying `undefined` for options ([#2258](https://togithub.com/sindresorhus/got/issues/2258)) [`1cefe8b`](https://togithub.com/sindresorhus/got/commit/1cefe8b)
### [`v12.6.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.6.1)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.6.0...v12.6.1)
- Fix `get-stream` import statement ([#2266](https://togithub.com/sindresorhus/got/issues/2266)) [`67d5039`](https://togithub.com/sindresorhus/got/commit/67d5039)
### [`v12.6.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.6.0)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.5.3...v12.6.0)
- Update dependencies [`88c88fb`](https://togithub.com/sindresorhus/got/commit/88c88fb) [`979272e`](https://togithub.com/sindresorhus/got/commit/979272e)
- Loosen URL validation strictness ([#2200](https://togithub.com/sindresorhus/got/issues/2200)) [`0ca0b7f`](https://togithub.com/sindresorhus/got/commit/0ca0b7f)
### [`v12.5.3`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.3)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.5.2...v12.5.3)
- Fix abort event listeners not always being cleaned up ([#2162](https://togithub.com/sindresorhus/got/issues/2162)) [`3cc40b5`](https://togithub.com/sindresorhus/got/commit/3cc40b5)
### [`v12.5.2`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.2)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.5.1...v12.5.2)
- Improve TypeScript 4.9 compatibility ([#2163](https://togithub.com/sindresorhus/got/issues/2163)) [`39f83b6`](https://togithub.com/sindresorhus/got/commit/39f83b6)
### [`v12.5.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.1)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.5.0...v12.5.1)
- Fix compatibility with TypeScript and ESM [`3b3ea67`](https://togithub.com/sindresorhus/got/commit/3b3ea67)
- Fix request body not being properly cached ([#2150](https://togithub.com/sindresorhus/got/issues/2150)) [`3e9d3af`](https://togithub.com/sindresorhus/got/commit/3e9d3af)
### [`v12.5.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.0)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.4.1...v12.5.0)
- Disable method rewriting on 307 and 308 status codes ([#2145](https://togithub.com/sindresorhus/got/issues/2145)) [`e049e94`](https://togithub.com/sindresorhus/got/commit/e049e94)
- Upgrade dependencies [`8630815`](https://togithub.com/sindresorhus/got/commit/8630815) [`f0ac0b3`](https://togithub.com/sindresorhus/got/commit/f0ac0b3) [`4c3762a`](https://togithub.com/sindresorhus/got/commit/4c3762a)
### [`v12.4.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.4.1)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.4.0...v12.4.1)
##### Fixes
- Fix `options.context` being not extensible [`b671480`](https://togithub.com/sindresorhus/got/commit/b671480715dbbff908e9a385f5e714570c663cd7)
- Don't emit `uploadProgress` after promise cancelation [`693de21`](https://togithub.com/sindresorhus/got/commit/693de217b030816f574d6e4cb505ee2e77b21c29)
### [`v12.4.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.4.0)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.3.1...v12.4.0)
##### Improvements
- Support FormData without known length ([#2120](https://togithub.com/sindresorhus/got/issues/2120)) [`850773c`](https://togithub.com/sindresorhus/got/commit/850773c)
##### Fixes
- Don't call `beforeError` hooks with `HTTPError` if the `throwHttpErrors` option is `false` ([#2104](https://togithub.com/sindresorhus/got/issues/2104)) [`3927348`](https://togithub.com/sindresorhus/got/commit/3927348)
### [`v12.3.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.3.1)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.3.0...v12.3.1)
- Don't freeze signal when freezing Options ([#2100](https://togithub.com/sindresorhus/got/issues/2100)) [`43b1467`](https://togithub.com/sindresorhus/got/commit/43b1467)
### [`v12.3.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.3.0)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.2.0...v12.3.0)
- Add `.off()` method for events ([#2092](https://togithub.com/sindresorhus/got/issues/2092)) [`88056be`](https://togithub.com/sindresorhus/got/commit/88056be)
### [`v12.2.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.2.0)
[Compare Source](https://togithub.com/sindresorhus/got/compare/v12.1.0...v12.2.0)
- [Support `AbortController`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#signal) ([#2020](https://togithub.com/sindresorhus/got/issues/2020)) [`6a6d2a9`](https://togithub.com/sindresorhus/got/commit/6a6d2a9)
- Add [`enableUnixSockets`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#enableunixsockets) option ([#2062](https://togithub.com/sindresorhus/got/issues/2062)) [`461b3d4`](https://togithub.com/sindresorhus/got/commit/461b3d4)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^12.0.0
->^14.0.0
Release Notes
sindresorhus/got (got)
### [`v14.1.0`](https://togithub.com/sindresorhus/got/releases/tag/v14.1.0) [Compare Source](https://togithub.com/sindresorhus/got/compare/v14.0.0...v14.1.0) - Allow typing the body of a `RequestError` response ([#2325](https://togithub.com/sindresorhus/got/issues/2325)) [`5e4f6ff`](https://togithub.com/sindresorhus/got/commit/5e4f6ff) ### [`v14.0.0`](https://togithub.com/sindresorhus/got/releases/tag/v14.0.0) [Compare Source](https://togithub.com/sindresorhus/got/compare/v13.0.0...v14.0.0) ##### Breaking - Require Node.js 20 ([#2313](https://togithub.com/sindresorhus/got/issues/2313)) [`a004263`](https://togithub.com/sindresorhus/got/commit/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](https://togithub.com/sindresorhus/got/issues/2306)) [`7c3f147`](https://togithub.com/sindresorhus/got/commit/7c3f147) ### [`v13.0.0`](https://togithub.com/sindresorhus/got/releases/tag/v13.0.0) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.6.1...v13.0.0) As a reminder, Got continues to require ESM. For TypeScript users, this includes having [`"module": "node16", "moduleResolution": "node16"` in your tsconfig](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm). ##### Breaking - Require Node.js 16 [`52a1063`](https://togithub.com/sindresorhus/got/commit/52a1063) - Change the [`enableUnixSockets`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#enableunixsockets) option to be `false` by default [`852c312`](https://togithub.com/sindresorhus/got/commit/852c312) - Most users don't need it. ##### Improvements - Allow specifying `undefined` for options ([#2258](https://togithub.com/sindresorhus/got/issues/2258)) [`1cefe8b`](https://togithub.com/sindresorhus/got/commit/1cefe8b) ### [`v12.6.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.6.1) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.6.0...v12.6.1) - Fix `get-stream` import statement ([#2266](https://togithub.com/sindresorhus/got/issues/2266)) [`67d5039`](https://togithub.com/sindresorhus/got/commit/67d5039) ### [`v12.6.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.6.0) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.5.3...v12.6.0) - Update dependencies [`88c88fb`](https://togithub.com/sindresorhus/got/commit/88c88fb) [`979272e`](https://togithub.com/sindresorhus/got/commit/979272e) - Loosen URL validation strictness ([#2200](https://togithub.com/sindresorhus/got/issues/2200)) [`0ca0b7f`](https://togithub.com/sindresorhus/got/commit/0ca0b7f) ### [`v12.5.3`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.3) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.5.2...v12.5.3) - Fix abort event listeners not always being cleaned up ([#2162](https://togithub.com/sindresorhus/got/issues/2162)) [`3cc40b5`](https://togithub.com/sindresorhus/got/commit/3cc40b5) ### [`v12.5.2`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.2) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.5.1...v12.5.2) - Improve TypeScript 4.9 compatibility ([#2163](https://togithub.com/sindresorhus/got/issues/2163)) [`39f83b6`](https://togithub.com/sindresorhus/got/commit/39f83b6) ### [`v12.5.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.1) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.5.0...v12.5.1) - Fix compatibility with TypeScript and ESM [`3b3ea67`](https://togithub.com/sindresorhus/got/commit/3b3ea67) - Fix request body not being properly cached ([#2150](https://togithub.com/sindresorhus/got/issues/2150)) [`3e9d3af`](https://togithub.com/sindresorhus/got/commit/3e9d3af) ### [`v12.5.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.0) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.4.1...v12.5.0) - Disable method rewriting on 307 and 308 status codes ([#2145](https://togithub.com/sindresorhus/got/issues/2145)) [`e049e94`](https://togithub.com/sindresorhus/got/commit/e049e94) - Upgrade dependencies [`8630815`](https://togithub.com/sindresorhus/got/commit/8630815) [`f0ac0b3`](https://togithub.com/sindresorhus/got/commit/f0ac0b3) [`4c3762a`](https://togithub.com/sindresorhus/got/commit/4c3762a) ### [`v12.4.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.4.1) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.4.0...v12.4.1) ##### Fixes - Fix `options.context` being not extensible [`b671480`](https://togithub.com/sindresorhus/got/commit/b671480715dbbff908e9a385f5e714570c663cd7) - Don't emit `uploadProgress` after promise cancelation [`693de21`](https://togithub.com/sindresorhus/got/commit/693de217b030816f574d6e4cb505ee2e77b21c29) ### [`v12.4.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.4.0) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.3.1...v12.4.0) ##### Improvements - Support FormData without known length ([#2120](https://togithub.com/sindresorhus/got/issues/2120)) [`850773c`](https://togithub.com/sindresorhus/got/commit/850773c) ##### Fixes - Don't call `beforeError` hooks with `HTTPError` if the `throwHttpErrors` option is `false` ([#2104](https://togithub.com/sindresorhus/got/issues/2104)) [`3927348`](https://togithub.com/sindresorhus/got/commit/3927348) ### [`v12.3.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.3.1) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.3.0...v12.3.1) - Don't freeze signal when freezing Options ([#2100](https://togithub.com/sindresorhus/got/issues/2100)) [`43b1467`](https://togithub.com/sindresorhus/got/commit/43b1467) ### [`v12.3.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.3.0) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.2.0...v12.3.0) - Add `.off()` method for events ([#2092](https://togithub.com/sindresorhus/got/issues/2092)) [`88056be`](https://togithub.com/sindresorhus/got/commit/88056be) ### [`v12.2.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.2.0) [Compare Source](https://togithub.com/sindresorhus/got/compare/v12.1.0...v12.2.0) - [Support `AbortController`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#signal) ([#2020](https://togithub.com/sindresorhus/got/issues/2020)) [`6a6d2a9`](https://togithub.com/sindresorhus/got/commit/6a6d2a9) - Add [`enableUnixSockets`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#enableunixsockets) option ([#2062](https://togithub.com/sindresorhus/got/issues/2062)) [`461b3d4`](https://togithub.com/sindresorhus/got/commit/461b3d4)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.