Packages

got

16.2.0 · 30 Oct 2026MIT53.2M / weekRepositoryHomepagenpmAtom feed

Upgrading got From 9.2.1 to 9.6.0

8 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 9.2.1Clears its advisory11.8.5Latest16.2.0
1
change to make
0
advisories fixed
7
new
6
fixes

Before you upgrade

Tick each one off as you go
  • Breaking9.5.0

Security

1 advisory still affects 9.6.0

Upgrading to 11.8.5 clears it.

Release by release

  1. 9.6.0

    17 Jan 20192 new
    • New

      Add init hook (#683) 677d0a4

    • New

      Add beforeError hook (#696) 29ffb44

  2. 9.5.1

    13 Jan 20192 fixes
    • Fixed

      Fix memory leak when using socket timeout and keepalive agent (#694) 203dadc

    • Fixed

      Fix strange timing data for HTTP requests d136e61

  3. 9.5.0

    Migration needed18 Dec 2018
    • Breaking

      Remove error thrown for URLs with auth component (#676) 5d20a43

  4. 9.4.0

    10 Dec 20182 new
    • New

      Add ability to specify which network error codes to retry on. 9f3a099

    • New

      Add Got options onto responses and errors. 33b838f

  5. 9.3.2

    8 Nov 20181 fix
  6. 9.3.1

    3 Nov 20182 fixes
    • Fixed

      Don't override headers defined in the url argument when it's an object. 191e00a

    • Fixed

      Don't set content-length header when upload body size is null. 311b184

  7. 9.3.0

    30 Oct 20183 new
    • New

      Add option to allow defaults to be mutable. b392f60

    • New

      Add beforeRedirect, beforeRetry, and afterResponse hooks. 325409c

    • New

      Support Electron renderer timings. 25f18be

  8. 9.2.2

    17 Sep 20181 fix
    • Fixed

      Don't override hooks when merging arguments. 3ad3950

9 other lines we could not sort, mostly version bumps
  • Correctly preserve original status code when returning cached responses d136e61

    9.5.1
  • Upgrade dependencies a1eadfe

    9.5.0
  • Correctly clear socket timeout on error. c8e358f

    9.4.0
  • No new timeouts after an error. d8dd881

    9.3.2
  • Retry on a few more errors. fbaaa2a

    9.3.0
  • Include body property in HTTPError. fdc0fa6

    9.3.0
  • Transform user set headers to lowercase. a07b2be

    9.3.0
  • Gracefully handle invalid Location redirect URLs. (#605) 7ae6939

    9.2.2
  • Merge hooks on got.extend(). (#608) 292f78a

    9.2.2

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.