Skip to content

Update dependency axios to ^0.31.0#25

Open
renovate[bot] wants to merge 1 commit intodevfrom
renovate/axios-0.x
Open

Update dependency axios to ^0.31.0#25
renovate[bot] wants to merge 1 commit intodevfrom
renovate/axios-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Jan 18, 2022

This PR contains the following updates:

Package Change Age Confidence
axios (source) ^0.24.0^0.31.0 age confidence

Release Notes

axios/axios (axios)

v0.31.0

Compare Source

This release backports security fixes from v1.x, hardens the CI/CD supply chain with OIDC publishing and zizmor scanning, resolves TypeScript typing issues in AxiosInstance, and fixes a performance regression in isEmptyObject().

🔒 Security Fixes

  • Header Injection & Proxy Bypass: Backports v1 security hardening — sanitizes outgoing header values to strip invalid bytes, CRLF sequences, and boundary whitespace (including array values); adds proper NO_PROXY/no_proxy enforcement covering wildcards, explicit ports, loopback aliases (localhost, 127.0.0.1, ::1), bracketed IPv6, and trailing-dot hostnames. Proxy bypass is now checked before the proxy URL is parsed, and parsed.host is used for correct port and IPv6 handling. (#​10688)

  • CI Security: SHA-pins all actions and disables credential persistence in v0.x CI, introduces zizmor security scanning with SARIF upload to code scanning, adds an OIDC Trusted Publishing workflow with npm provenance attestations, and gates all publishes behind a required npm-publish GitHub Environment with configurable reviewer protections. (#​10638, #​10639, #​10667)

🐛 Bug Fixes

  • TypeScript — AxiosInstance Return Types: Fixes return types in AxiosInstance methods to correctly resolve to Promise<R> (matching AxiosPromise<T> semantics), and corrects the generic call signature so TypeScript properly enforces the response data type. TypeScript-only changes; no runtime impact. (#​6253, #​7328)

  • Performance: Fixes a performance regression in isEmptyObject() that caused excessive computation when the argument was a large string. (#​6484)

🔧 Maintenance & Chores

  • Versioning & CI Workflow: Adds an automated versioning flow for v0.x, renames the CI workflow for consistency with the v1.x naming convention, and corrects the branch name reference in CI config. (#​10690, #​10691, #​10692)

🌟 New Contributors

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

Full Changelog

v0.30.3: Release notes - v0.30.3

Compare Source

This is a critical security maintenance release for the v0.x branch. It addresses a high-priority vulnerability involving prototype pollution that could lead to a Denial of Service (DoS).

Recommendation: All users currently on the 0.x release line should upgrade to this version immediately to ensure environment stability.

🛡️ Security Fixes

  • Backport: Fix DoS via proto key in merge config
    • Patched a vulnerability where specifically crafted configuration objects using the proto key could cause a Denial of Service during the merge process. - by @​FeBe95 in PR #​7388

⚙️ Maintenance & CI

  • CI Infrastructure Update
    • Updated Continuous Integration workflows for the v0.x branch to maintain long-term support and build reliability. - by @​jasonsaayman in PR #​7407

⚠️ Breaking Changes

Configuration Merging Behavior:

As part of the security fix, Axios now restricts the merging of the proto key within configuration objects. If your codebase relies on unconventional deep-merging patterns that target the object prototype via Axios config, those operations will now be blocked. This is a necessary change to prevent prototype pollution.

Full Changelog: v0.30.2...v0.30.3

v0.30.2

Compare Source

What's Changed

New Contributors

Full Changelog: axios/axios@v0.30.1...v0.30.2

v0.30.1

Compare Source

Release notes:

Bug Fixes
Contributors to this release

Full Changelog: axios/axios@v0.30.0...v0.30.1

v0.30.0

Compare Source

Release notes:

Bug Fixes
Contributors to this release

Full Changelog: axios/axios@v0.29.0...v0.30.0

v0.29.0

Compare Source

Release notes:

Bug Fixes
Contributors to this release

v0.28.1

Compare Source

Release notes:

Release notes:

Bug Fixes
  • fix(backport): custom params serializer support (#​6263)
  • fix(backport): uncaught ReferenceError req is not defined (#​6307)

v0.28.0

Compare Source

Release notes:

Bug Fixes
Backports from v1.x:
  • Allow null indexes on formSerializer and paramsSerializer v0.x (#​4961)
  • Fixing content-type header repeated #​4745
  • Fixed timeout error message for HTTP 4738
  • Added axios.formToJSON method (#​4735)
  • URL params serializer (#​4734)
  • 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 (#​4725)
  • Added isCancel type assert (#​4293)
  • Added the ability for the url-encoded-form serializer to respect the formSerializer config (#​4721)
  • Add string[] to AxiosRequestHeaders type (#​4322)
  • Allow type definition for axios instance methods (#​4224)
  • Fixed AxiosError stack capturing; (#​4718)
  • Fixed AxiosError status code type; (#​4717)
  • Adding Canceler parameters config and request (#​4711)
  • fix(types): allow to specify partial default headers for instance creation (#​4185)
  • Added blob to the list of protocols supported by the browser (#​4678)
  • Fixing Z_BUF_ERROR when no content (#​4701)
  • Fixed race condition on immediate requests cancellation (#​4261)
  • 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 (#​4229)
  • Fix TS definition for AxiosRequestTransformer (#​4201)
  • Use type alias instead of interface for AxiosPromise (#​4505)
  • Include request and config when creating a CanceledError instance (#​4659)
  • Added generic TS types for the exposed toFormData helper (#​4668)
  • Optimized the code that checks cancellation (#​4587)
  • Replaced webpack with rollup (#​4596)
  • Added stack trace to AxiosError (#​4624)
  • Updated AxiosError.config to be optional in the type definition (#​4665)
  • Removed incorrect argument for NetworkError constructor (#​4656)

v0.27.2

Compare Source

Fixes and Functionality:

  • Fixed FormData posting in browser environment by reverting #​3785 (#​4640)
  • Enhanced protocol parsing implementation (#​4639)
  • Fixed bundle size

v0.27.1

Compare Source

Fixes and Functionality:
  • Removed import of url module in browser build due to huge size overhead and builds being broken (#​4594)
  • Bumped follow-redirects to ^1.14.9 (#​4615)

v0.27.0

Compare Source

Breaking changes:
  • New toFormData helper function that allows the implementor to pass an object and allow axios to convert it to FormData (#​3757)
  • Removed functionality that removed the the Content-Type request header when passing FormData (#​3785)
  • (*) Refactored error handling implementing AxiosError as a constructor, this is a large change to error handling on the whole (#​3645)
  • Separated responsibility for FormData instantiation between transformRequest and toFormData (#​4470)
  • (*) Improved and fixed multiple issues with FormData support (#​4448)
QOL and DevX improvements:
  • Added a multipart/form-data testing playground allowing contributors to debug changes easily (#​4465)
Fixes and Functionality:
  • Refactored project file structure to avoid circular imports (#​4515) & (#​4516)
  • Bumped follow-redirects to ^1.14.9 (#​4562)
Internal and Tests:
  • Updated dev dependencies to latest version
Documentation:
  • Fixing incorrect link in changelog (#​4551)
Notes:
  • (*) Please read these pull requests before updating, these changes are very impactful and far reaching.

v0.26.1

Compare Source

Fixes and Functionality:
  • Refactored project file structure to avoid circular imports (#​4220)

v0.26.0

Compare Source

Fixes and Functionality:
  • Fixed The timeoutErrorMessage property in config not work with Node.js (#​3581)
  • Added errors to be displayed when the query parsing process itself fails (#​3961)
  • Fix/remove url required (#​4426)
  • Update follow-redirects dependency due to Vulnerability (#​4462)
  • Bump karma from 6.3.11 to 6.3.14 (#​4461)
  • Bump follow-redirects from 1.14.7 to 1.14.8 (#​4473)

v0.25.0

Compare Source

Breaking changes:
  • Fixing maxBodyLength enforcement (#​3786)
  • Don't rely on strict mode behaviour for arguments (#​3470)
  • Adding error handling when missing url (#​3791)
  • Update isAbsoluteURL.js removing escaping of non-special characters (#​3809)
  • Use native Array.isArray() in utils.js (#​3836)
  • Adding error handling inside stream end callback (#​3967)
Fixes and Functionality:
  • Added aborted even handler (#​3916)
  • Header types expanded allowing boolean and number types (#​4144)
  • Fix cancel signature allowing cancel message to be undefined (#​3153)
  • Updated type checks to be formulated better (#​3342)
  • Avoid unnecessary buffer allocations (#​3321)
  • Adding a socket handler to keep TCP connection live when processing long living requests (#​3422)
  • Added toFormData helper function (#​3757)
  • Adding responseEncoding prop type in AxiosRequestConfig (#​3918)
Internal and Tests:
  • Adding axios-test-instance to ecosystem (#​3786)
  • Optimize the logic of isAxiosError (#​3546)
  • Add tests and documentation to display how multiple inceptors work (#​3564)
  • Updating follow-redirects to version 1.14.7 (#​4379)
Documentation:
  • Fixing changelog to show corrext pull request (#​4219)
  • Update upgrade guide for https proxy setting (#​3604)

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


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Jan 18, 2022
@renovate renovate bot force-pushed the renovate/axios-0.x branch from f547bb8 to 69da972 Compare February 13, 2022 15:21
@renovate renovate bot changed the title fix(deps): update dependency axios to ^0.25.0 fix(deps): update dependency axios to ^0.26.0 Feb 13, 2022
@renovate renovate bot force-pushed the renovate/axios-0.x branch from 69da972 to 4801656 Compare May 15, 2022 20:07
@renovate renovate bot changed the title fix(deps): update dependency axios to ^0.26.0 fix(deps): update dependency axios to ^0.27.0 May 15, 2022
@renovate renovate bot force-pushed the renovate/axios-0.x branch from 4801656 to f7a1820 Compare September 25, 2022 16:05
@renovate renovate bot force-pushed the renovate/axios-0.x branch from f7a1820 to 63c7897 Compare November 20, 2022 10:44
@renovate renovate bot force-pushed the renovate/axios-0.x branch from 63c7897 to fcbe04c Compare February 12, 2024 19:20
@renovate renovate bot changed the title fix(deps): update dependency axios to ^0.27.0 fix(deps): update dependency axios to ^0.28.0 Feb 12, 2024
@renovate renovate bot changed the title fix(deps): update dependency axios to ^0.28.0 fix(deps): update dependency axios to ^0.29.0 Nov 21, 2024
@renovate renovate bot force-pushed the renovate/axios-0.x branch from fcbe04c to 633ecb7 Compare November 21, 2024 18:03
@renovate renovate bot force-pushed the renovate/axios-0.x branch from 633ecb7 to 145464d Compare March 26, 2025 18:56
@renovate renovate bot changed the title fix(deps): update dependency axios to ^0.29.0 fix(deps): update dependency axios to ^0.30.0 Mar 26, 2025
@renovate renovate bot force-pushed the renovate/axios-0.x branch 2 times, most recently from 58fd80d to cb07a8f Compare August 10, 2025 12:39
@renovate renovate bot force-pushed the renovate/axios-0.x branch from cb07a8f to 888cd13 Compare August 19, 2025 14:35
@renovate renovate bot force-pushed the renovate/axios-0.x branch 2 times, most recently from 3ae3a58 to 6edeb45 Compare September 27, 2025 12:23
@renovate renovate bot force-pushed the renovate/axios-0.x branch from 6edeb45 to be7c99f Compare October 21, 2025 17:02
@renovate renovate bot force-pushed the renovate/axios-0.x branch from be7c99f to aaca6e5 Compare November 10, 2025 15:12
@renovate renovate bot force-pushed the renovate/axios-0.x branch from aaca6e5 to 505fefa Compare November 19, 2025 00:38
@renovate renovate bot force-pushed the renovate/axios-0.x branch from 505fefa to 4f67749 Compare December 31, 2025 13:53
@renovate renovate bot force-pushed the renovate/axios-0.x branch 2 times, most recently from 12345d6 to 03faf3d Compare January 23, 2026 18:52
@renovate renovate bot force-pushed the renovate/axios-0.x branch from 03faf3d to 2226d09 Compare February 2, 2026 17:14
@renovate renovate bot force-pushed the renovate/axios-0.x branch 2 times, most recently from 1d27b5c to dc965d2 Compare February 18, 2026 20:55
@renovate renovate bot force-pushed the renovate/axios-0.x branch from dc965d2 to 7d1a42f Compare March 5, 2026 14:10
@renovate renovate bot force-pushed the renovate/axios-0.x branch from 7d1a42f to 64d51c1 Compare March 13, 2026 17:56
@renovate renovate bot changed the title fix(deps): update dependency axios to ^0.30.0 Update dependency axios to ^0.30.0 Apr 8, 2026
@renovate renovate bot force-pushed the renovate/axios-0.x branch from 64d51c1 to dfd9bf6 Compare April 8, 2026 17:56
@renovate renovate bot changed the title Update dependency axios to ^0.30.0 Update dependency axios to ^0.31.0 Apr 12, 2026
@renovate renovate bot force-pushed the renovate/axios-0.x branch from dfd9bf6 to 5f1606b Compare April 12, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔍 Ready for Review Pull Request is not reviewed yet size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants