got
16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed
Upgrading got From 11.8.6 to 12.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 19
- changes to make
- 0
- advisories fixed
- 19
- new
- 25
- 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
1 advisory still affects 12.0.0
- Got allows a redirect to a UNIX socketmoderate · GHSA-pfrx-2q88-qq97
Upgrading to 12.1.0 clears it.
Release by release
- 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
6 other lines we could not sort, mostly version bumps
- 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.