Packages

axios

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

Your version

0.25.0

18 Jan 2022Where it was published

0.35.0 is the newest release of 0.25.x.

In short

6 breaking2 new6 fixed27 internal

  • Breaking

    Fixing maxBodyLength enforcement

  • Breaking

    Don't rely on strict mode behaviour for arguments

  • Breaking

    Adding error handling when missing url

  • Breaking

    Update isAbsoluteURL.js removing escaping of non-special characters

  • Breaking

    Use native Array.isArray() in utils.js

  • Breaking

    Adding error handling inside stream end callback

Security

23 advisories affect 0.25.0; 1.18.0 fixes them

18 more

Release note

Breaking changes

  • Breaking

    Fixing maxBodyLength enforcement

  • Breaking

    Don't rely on strict mode behaviour for arguments

  • Breaking

    Adding error handling when missing url

  • Breaking

    Update isAbsoluteURL.js removing escaping of non-special characters

  • Breaking

    Use native Array.isArray() in utils.js

  • Breaking

    Adding error handling inside stream end callback

Fixes and Functionality

  • Added aborted even handler

  • Header types expanded allowing boolean and number types

  • Fix cancel signature allowing cancel message to be undefined

  • Updated type checks to be formulated better

  • Avoid unnecessary buffer allocations

  • Adding a socket handler to keep TCP connection live when processing long living requests

  • Added toFormData helper function

  • Adding responseEncoding prop type in AxiosRequestConfig

Documentation

Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:

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.