Packages

axios

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

Your version

0.28.0

12 Feb 2024Where it was published

0.35.0 is the newest release of 0.28.x.

In short

1 removed1 security12 new1 faster8 fixed9 changed

  • Removed

    Removed incorrect argument for NetworkError constructor

Security

Fixes 1 advisory that affected 0.27.2

27 advisories affect 0.28.0; 1.20.0 fixes them

22 more

Release note

Release notes

Bug Fixes

  • Security

    security: Fixed CVE-2023-45857 by backporting withXSRFToken option to v0.x

Backports from v1.x

  • Allow null indexes on formSerializer and paramsSerializer v0.x

  • Fixing content-type header repeated #4745

  • Fixed timeout error message for HTTP 4738

  • Added axios.formToJSON method

  • URL params serializer

  • Fixed toFormData Blob issue on node>v17 #4728

  • Adding types for progress event callbacks #4675

  • Fixed max body length defaults #4731

  • Added data URL support for node.js

  • Added isCancel type assert

  • Added the ability for the url-encoded-form serializer to respect the formSerializer config

  • Add string to AxiosRequestHeaders type

  • Allow type definition for axios instance methods

  • Fixed AxiosError stack capturing;

  • Fixed AxiosError status code type;

  • Adding Canceler parameters config and request

  • types: Allow to specify partial default headers for instance creation

  • Added blob to the list of protocols supported by the browser

  • Fixing Z_BUF_ERROR when no content

  • Fixed race condition on immediate requests cancellation

  • Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an Axios instance #4248

  • Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill

  • Fix TS definition for AxiosRequestTransformer

  • Use type alias instead of interface for AxiosPromise

  • Include request and config when creating a CanceledError instance

  • Added generic TS types for the exposed toFormData helper

  • Optimized the code that checks cancellation

  • Replaced webpack with rollup

  • Added stack trace to AxiosError

  • Updated AxiosError.config to be optional in the type definition

  • Removed

    Removed incorrect argument for NetworkError constructor

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.