Packages

axios

1.21.1 · 9 Nov 2026MIT150.1M / weekRepositoryHomepagenpmAtom feed

Upgrading axios From 1.15.2 to 1.16.0

1 release in betweenevery note read

Other targets from 1.15.2Newest 1.x, Latest1.21.1Clears its 28 advisories1.20.0
  1. 1.15.2yours
  2. 1.16.0target

Security

Release by release

  1. 1.16.0

    2 May 20263 new · 8 fixes
    • New

      QUERY HTTP Method: Added support for the QUERY HTTP method across adapters and type definitions. (#10802)

    • New

      ECONNREFUSED Error Constant: Exposed ECONNREFUSED as a constant on AxiosError so callers can match connection-refused failures without comparing string literals (closes #6485). (#10680)

    • New

      Encode Helper Export: Exported the internal encode helper from buildURL so userland param serializers can reuse the same encoding logic that axios uses internally. (#6897)

    • Fixed

      Fetch adapter now enforces maxBodyLength and maxContentLength. These limits were silently ignored on the fetch adapter prior to 1.16.0 — anyone relying on them as a safety net (DoS protection, accidental large uploads) had no protection. (#10795)

2 other lines we could not sort, mostly version bumps
  • Basic auth credentials embedded in URLs are now URL-decoded. If you have percent-encoded credentials in a URL (e.g. https://user:p%40ss@host), the decoded value is what now goes on the wire. (#10825)

    1.16.0
  • transformRequest input typing change was reverted. The typing change introduced in #10745 was reverted in #10810 after follow-up review — net behavior is unchanged from 1.15.2. (#10745, #10810)

    1.16.0

5 internal lines (docs, tests, tooling) left out.

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.