Skip to content

Bump "axios" package version - #3861

Merged
updateclibot[bot] merged 1 commit into
masterfrom
updatecli_master_6a92006ed02c93a4ad363bb1559c3677fc6e71825aebfd014b2c87c9d32b228c
Nov 15, 2026
Merged

updateclibot[bot] merged 1 commit into
masterfrom
updatecli_master_6a92006ed02c93a4ad363bb1559c3677fc6e71825aebfd014b2c87c9d32b228c

Conversation

@updateclibot

@updateclibot updateclibot Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Bump "axios" package version

Bump "axios" package version to 1.21.1

ran shell command "npm install --package-lock-only --dry-run=$DRY_RUN axios@1.21.1"

v1.21.1
## v1.21.1 — November 9, 2026

This release raises the minimum `follow-redirects` version to fix a published CVE, fixes a Next.js prerendering failure caused by the response duration timer, corrects the `getAdapter` typings, and includes documentation corrections, new test coverage, CI runner changes and dependency updates.

## 🔒 Security Fixes

* **follow-redirects:** Raised the `follow-redirects` range from `^1.16.0` to `^1.16.2` to fix CVE-2026-116689 (GHSA-mrwp-f3q8-3g9p). In the vulnerable versions, `sensitiveHeaders` arrays from another realm were ignored and custom credentials could follow redirects. Only the Node.js HTTP adapter is affected, and there are no API changes. (__#11410__)

## 🐛 Bug Fixes

* **Response Duration:** `dispatchRequest` now measures `response.duration` with `performance.now()` and uses `Date.now()` only when `performance.now()` isn't available. In v1.21.0, any axios request from a Server Component failed Next.js production builds with Cache Components (`cacheComponents: true`), because Next.js rejects `Date.now()` while prerendering. The duration is still a whole number of milliseconds, and system clock changes no longer affect it. (__#11411__)
* **TypeScript:** `getAdapter` now accepts an optional `config?: AxiosRequestConfig` in `index.d.ts` and `index.d.cts`, matching what it does at runtime. You can now call `getAdapter('fetch', { env: { fetch: myFetch } })` without a cast. (__#11404__)

## 🔧 Maintenance & Chores

* **Documentation Corrections:** Brought the README and docs site in line with how axios actually behaves:
  * `transformRequest` runs for every method, and transformers receive `(data, headers, status)`.
  * `responseType` and `Content-Type` have no default value.
  * `AxiosHeaders#get` and `#normalize` are described correctly.
  * Errors should be identified with `axios.isAxiosError()`, not by `name`.
  * The error tables now list `ECONNREFUSED` and `ERR_FORM_DATA_DEPTH_EXCEEDED`, and note that FormData parsing has a fixed depth limit that `maxDepth` doesn't change.
  * New notes cover what `redact` doesn't scan, which adapters enforce `maxContentLength` / `maxBodyLength`, and how `formToJSON()` handles field name collisions.

  (__#11374__, __#11373__, __#11389__, __#11419__, __#11429__, __#11430__)
* **Docs Site:** Added a Partners page, a shared card design for sponsors and partners, a Namespace sponsor badge, and a blog whose first post announces HeroDevs Never-Ending Support for Axios v0. Also applied the v1.20.0/v1.21.0 release notes to the docs, and fixed internal links in the es, fr and zh translations so they keep their locale prefix. (__#11390__, __#11399__, __#11400__, __#11412__, __#11401__)
* **Test Coverage:** Added cancellation tests across the HTTP, fetch and XHR adapters. They cover `AbortSignal`, `CancelToken`, cancelling while a request interceptor is pending, and timeout precedence. Also added tests for `no_proxy` edge cases in `shouldBypassProxy`, such as internationalized domain names, malformed CIDR and IPv4 entries, and port-qualified entries. Neither changes runtime behavior. (__#11376__, __#11431__)
* **CI:** GitHub Actions jobs now run on Namespace runners. The npm publish job stays on GitHub-hosted runners, because npm provenance and trusted publishing (OIDC) only work there. (__#11396__)
* **Dependencies:** Updated development and tooling dependencies, including `vitest` and `@vitest/*` (to 5.x at the root), `typescript` (7.x at the root), `vite`, `rollup`, `eslint`, `playwright`, `@commitlint/*`, `@rollup/plugin-alias`, `@rollup/plugin-terser`, `body-parser`, `multer`, `serialize-javascript`, `fast-uri`, `qs`, `zizmorcore/zizmor-action`, and `follow-redirects` in `/docs`. (__#11383__, __#11375__, __#11372__, __#11345__, __#11392__, __#11387__, __#11386__, __#11385__, __#11391__, __#11388__, __#11395__, __#11421__, __#11422__, __#11426__)
* **Release:** Prepared the 1.21.1 release. (__#11435__)

## 🌟 New Contributors

We are thrilled to welcome our new contributors. Thank you for helping improve axios:

* __@Ghoscro__ (__#11374__)
* __@pei711__ (__#11373__)
* __@ivanhapaz__ (__#11399__)
* __@aelmanaa__ (__#11404__)
* __@Aryapatel-007__ (__#11429__, __#11430__)
* __@umair-ghafoor-ai__ (__#11376__)
* __@yxshee__ (__#11389__)
* __@malinele__ (__#11401__)
* __@AnantDuhan__ (__#11431__)

[Full Changelog](https://github.com/axios/axios/compare/v1.21.0...v1.21.1)
GitHub Action workflow link
Updatecli logo

Created automatically by Updatecli

Options:

Most of Updatecli configuration is done via its manifest(s).

  • If you close this pull request, Updatecli will automatically reopen it, the next time it runs.
  • If you close this pull request and delete the base branch, Updatecli will automatically recreate it, erasing all previous commits made.

Feel free to report any issues at github.com/updatecli/updatecli.
If you find this tool useful, do not hesitate to star our GitHub repository as a sign of appreciation, and/or to tell us directly on our chat!

Made with ❤️️ by updatecli
@updateclibot updateclibot Bot added the dependencies Pull requests that update a dependency file label Nov 15, 2026
@updateclibot
updateclibot Bot enabled auto-merge (squash) November 15, 2026 21:08
@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: de353bc4-36aa-4f20-bf8e-f97a93aaffe4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@updateclibot
updateclibot Bot merged commit d7d9fbc into master Nov 15, 2026
10 of 11 checks passed
@updateclibot
updateclibot Bot deleted the updatecli_master_6a92006ed02c93a4ad363bb1559c3677fc6e71825aebfd014b2c87c9d32b228c branch November 15, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants