Packages

axios

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

Your version

0.27.0

25 Apr 2022Where it was published

0.35.0 is the newest release of 0.27.x.

npm marks 0.27.0 as deprecated: Formdata complete broken, incorrect build size

In short

5 breaking1 new2 fixed1 changed2 internal

  • Breaking

    New toFormData helper function that allows the implementor to pass an object and allow axios to convert it to FormData

  • Breaking

    Removed functionality that removed the the Content-Type request header when passing FormData

  • Breaking

    (*) Refactored error handling implementing AxiosError as a constructor, this is a large change to error handling on the whole

  • Breaking

    Separated responsibility for FormData instantiation between transformRequest and toFormData

  • Breaking

    (*) Improved and fixed multiple issues with FormData support

Security

23 advisories affect 0.27.0; 1.18.0 fixes them

18 more

Release note

Breaking changes

  • Breaking

    New toFormData helper function that allows the implementor to pass an object and allow axios to convert it to FormData

  • Breaking

    Removed functionality that removed the the Content-Type request header when passing FormData

  • Breaking

    (*) Refactored error handling implementing AxiosError as a constructor, this is a large change to error handling on the whole

  • Breaking

    Separated responsibility for FormData instantiation between transformRequest and toFormData

  • Breaking

    (*) Improved and fixed multiple issues with FormData support

QOL and DevX improvements

  • Added a multipart/form-data testing playground allowing contributors to debug changes easily

Fixes and Functionality

  • Refactored project file structure to avoid circular imports (#4515) &

  • Bumped follow-redirects to ^1.14.9

Notes

  • (*) Please read these pull requests before updating, these changes are very impactful and far reaching.

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.