Change8

Migrating to Axios v0.31.1

Version v0.31.1 introduces 2 breaking changes. This guide details how to update your code.

Released: 4/19/2026

2
Breaking Changes
2
Migration Steps
9
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

isFormDatamergeConfigAxiosURLSearchParams.encodetoFormDatatransportenvBlobformSerializerwithXSRFToken

Breaking Changes

Issue #1

Bower support has been removed, and committed `dist/` artifacts are no longer included in the repository. Consumers relying on Bower or direct git tree installs must switch to npm or a CDN.

Issue #2

The `bower.json` file and the Grunt `package2bower` task have been removed.

Migration Steps

  1. 1
    If using Bower, migrate installations to use npm or a CDN.
  2. 2
    If relying on direct access to files in the `dist/` directory within the repository, update code to use npm/CDN artifacts.

Release Summary

This release backports significant security hardenings from the v1 line, addressing prototype pollution, recursion DoS, and XSRF handling. It also removes deprecated Bower support and committed `dist/` artifacts.

Need More Details?

View the full release notes and all changes for Axios v0.31.1.

View Full Changelog