got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Upgrading got From 11.8.6 to 12.1.0
6 releases in betweenevery note read
Reading releases, release notes and advisories…
- 19
- changes to make
- 0
- advisories fixed
- 21
- new
- 29
- fixes
Before you upgrade
Tick each one off as you go- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
Security
- 12.1.0
Release by release
- Security
- New
Add
response.ok(#2043) 22d58fb - Fixed
Do not redirect to UNIX sockets (#2047) 861ccd9
12.0.4nothing new or fixed in the note
- New
Allow more types in the
jsonoption (#2015) eb045bf
- New
- Fixed
Fix
encodingoption with{responseType: 'json'}(#1996) 0703318
- Fixed
- Fixed
Fix
nockcompatibility (#1959) bf39d2c - Fixed
Fix missing export of
RequestTypeScript type (#1940) 0f9f2b8
- Fixed
- Breaking
Got exports an
Optionclass that is specifically designed to parse and validate Got options. It is made of setters and getters that provide fast normalization and more consistent behavior. - Breaking
The
inithook now accepts a second argument:self, which points to anOptionsinstance. - Breaking
The
inithooks are ran only when passing an options object explicitly. - Breaking
options.merge()replacedgot.mergeOptionsandRequest.normalizeArguments
- Breaking
7 other lines we could not sort, mostly version bumps
- 12.0.4
Remove stream lock - unreliable since Node 17.3.0 bb8eca924c338ca12d5b90d6a26aa28dbddb42ee
- 12.0.0
Please don't open issues about
[ERR_REQUIRE_ESM]andMust use import to load ES Moduleerrors. This is a problem with your setup, not Got. - 12.0.0
Please don't open issues about using Got with Jest. Jest does not fully support ESM.
- 12.0.0
Pretty much any problem with loading this package is a problem with your bundler, test framework, etc, not Got.
- 12.0.0
If you use TypeScript, you will want to stay on Got v11 until TypeScript 4.6 is out. Why.
- 12.0.0
If you use a bundler, make sure it supports ESM and that you have correctly configured it for ESM.
- 12.0.0
The Got issue tracker is not a support channel for your favorite build/bundler tool.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.