Commit Graph

1844 Commits

Author SHA1 Message Date
Jay
d905b7598d
refactor: refresh test suite to be modernised (#7489)
* chore: port karma tests

* chore: port karma tests

* chore: port karma tests

* chore: tests

* chore: tests

* chore: tests

* chore: fix issues with port collisions

* refactor: utils tests

* refactor: utils tests

* refactor: utils tests

* refactor: tests to vitests

* refactor: tests to vitests

* refactor: tests to vitests

* refactor: tests to vitests

* refactor: tests to vitests

* refactor: tests to vitests

* refactor: tests to vitests

* refactor: ci

* chore: install pw deps

* chore: fixx ai feedback

* chore: wip compatability tests

* chore: wip compatability tests

* chore: wip compatability tests

* refactor: wip smoke

* chore: smoke test run

* chore: update unzip

* chore: update testing

* chore: update testing

* chore: update testing

* chore: update testing

* chore: update testing

* chore: skip tests that cannot run on node 16 and lower

* chore: fix 16x under tests

* chore: rest of tests

* fix: functions and runs

* feat: added tests for esm smoke

* feat: added smoke

* chore: ignore ai gen plans

* chore: ci fixes

* chore: fix small p2s
2026-03-12 15:27:09 +02:00
Dmitriy Fedotov
f7a4ee21d5
fix(http): closing detached http2 session on timeout (#7457)
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2026-03-06 23:50:51 +02:00
Jay
fa337332b9
Update unit testing flows as part of migration to vitest (#7484)
* chore: small fixes to tests

* feat: transitional move to vitests

* feat: moving unit tests in progress

* feat: moving more unit tests over

* feat: more tests moved

* feat: updated more sections of the http test

* chore: wip http tests

* chore: wip http tests

* chore: more http tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: tests

* chore: remove un-needed docs

* chore: update package lock

* chore: update lock
2026-03-06 20:42:14 +02:00
NITESH SINGH
84285c8f63
docs: clarify behavior and relation to (#7460)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-03-02 08:31:56 +02:00
Eve
688826facd
fix(headers): trim trailing CRLF in normalized header values (#7456) 2026-03-01 17:48:03 +02:00
dependabot[bot]
f17a787026
chore(deps-dev): bump minimatch from 3.1.2 to 3.1.5 (#7453)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.1.2 to 3.1.5.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-27 17:37:09 +02:00
github-actions[bot]
7108c8877f
chore(release): prepare release 1.13.6 (#7446)
* 1.13.6

* chore(release): prepare release 1.13.6

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>
2026-02-27 17:28:22 +02:00
digital-wizard48
20a0ba3c01
refactor(deps): migrate @rollup/plugin-babel from v5.3.1 to v6.1.0 (#7424)
Co-authored-by: s0wa48 <msmaciejsowinski@gmail.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-02-25 10:35:22 +02:00
Mohsen
885b4af6f5
feat: support react native blob objects (#5764)
* feat: support react native blob objects

* test: cover react native blob objects detection

* fix: improve isReactNativeBlob and isReactNative checks for better validation

* feat: support appending React Native blob objects to FormData without recursion

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-02-24 20:36:32 +02:00
Janaka66
00d97b9730
docs(utils): add missing JSDoc comments (#7427)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-02-23 20:29:55 +02:00
dependabot[bot]
9712548a49
chore(deps-dev): bump the development_dependencies group across 1 directory with 5 updates (#7432)
Bumps the development_dependencies group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) | `7.28.6` | `7.29.0` |
| [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) | `7.28.6` | `7.29.0` |
| [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) | `20.3.1` | `20.4.2` |
| [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-conventional) | `20.3.1` | `20.4.2` |
| [rollup](https://github.com/rollup/rollup) | `2.79.2` | `2.80.0` |



Updates `@babel/core` from 7.28.6 to 7.29.0
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.29.0/packages/babel-core)

Updates `@babel/preset-env` from 7.28.6 to 7.29.0
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.29.0/packages/babel-preset-env)

Updates `@commitlint/cli` from 20.3.1 to 20.4.2
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v20.4.2/@commitlint/cli)

Updates `@commitlint/config-conventional` from 20.3.1 to 20.4.2
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v20.4.2/@commitlint/config-conventional)

Updates `rollup` from 2.79.2 to 2.80.0
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/v2.80.0/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.79.2...v2.80.0)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-version: 7.29.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development_dependencies
- dependency-name: "@babel/preset-env"
  dependency-version: 7.29.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development_dependencies
- dependency-name: "@commitlint/cli"
  dependency-version: 20.4.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development_dependencies
- dependency-name: "@commitlint/config-conventional"
  dependency-version: 20.4.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development_dependencies
- dependency-name: rollup
  dependency-version: 2.80.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development_dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-23 20:03:50 +02:00
Denis Frenademetz
d51accbea1
fix(core): copy status from source error in AxiosError.from (#7403)
When creating an AxiosError from an existing error without a response object,
the status property from the source error is now preserved. This ensures error
status information is not lost during error conversion.

Fixes #7364

Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-02-18 19:33:28 +02:00
jasonsaayman
3e30bbf1b3 chore: fix publish to only run on v1 tags 2026-02-18 18:33:56 +02:00
Shiwaangee
672491db34
fix: safe FormData detection for WeChat Mini Program (#7306) (#7324)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-02-14 17:42:56 +02:00
Alexander Gehres
822e3e40b4
fix: make AxiosError.message property enumerable (#7392)
* fix: make AxiosError.message property enumerable

Restores backward compatibility by making the message property
enumerable. In v1.13.3, the refactoring to extend native Error
made message non-enumerable, breaking code that uses Object.keys(),
Object.entries(), or spread operator on AxiosError instances.

This fix uses Object.defineProperty to explicitly make the message
property enumerable while maintaining the benefits of extending
the native Error class.

Breaking change introduced in: v1.13.3 (commit 1c6a86d)
Affects: Object.keys(), Object.entries(), spread operator, for...in loops

* chore: build fix

---------

Co-authored-by: Alexander Gehres <alexander.gehres@sap.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-02-14 17:31:52 +02:00
Jay
ef3711d1b3
feat: implement prettier and fix all issues (#7385)
* feat: implement prettier and fix all issues

* fix: failing tests

* fix: implement feedback from codel, ai etc

* chore: dont throw in trim function

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix: incorrect fix

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-02-14 16:59:48 +02:00
Mark Stacey
335b79ffb6
fix: fix export for React Native and Browserify (#7386)
Browserify and React Native projects (that aren't using
`unstable_enablePackageExports`) use the `main` field as the package

entrypoint. A recent PR (#5756) updated `main` to use a CommonJS bundle
for Node.js, which caused Browserify and React Native projects to
use the Node.js bundle. This led to many reports of broken React Native
builds.

This has been fixed by adding an entry to `browser` and `react-native`
to re-map the Node.js CommonJS bundle to the browser CommonJS bundle.
2026-02-10 08:34:23 +02:00
github-actions[bot]
29f75425f0
chore(release): prepare release 1.13.5 (#7379)
* 1.13.5

* chore(release): prepare release 1.13.5

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>
2026-02-08 12:53:34 +02:00
Jay
431c3a3614
ci: fix run condition (#7373)
* ci: fix run condition

* ci: tweak rules

* ci: revert change not needed

* ci: change build onditions
2026-02-05 19:30:29 +02:00
Jay
9ff3a78ad7
ci: update ymls (#7372)
* chore: update ymls

* chore: update patterns and some other smaller changes

* ci: run on push
2026-02-05 18:37:02 +02:00
SANDESH LENDVE
265b71234c
docs: fix deprecated Buffer constructor and formatting issues in README (#7371) 2026-02-05 16:59:58 +02:00
asmitha-16
475e75a260
feat: add input validation to isAbsoluteURL (#7326)
* Add input validation to isAbsoluteURL

* chore: add removed doc block

---------

Co-authored-by: Asmitha B <youremail@example.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-02-05 15:58:40 +02:00
Jay
28c721588c
fix: Denial of Service via __proto__ Key in mergeConfig (#7369)
* fix: sec issue as per advisory

* chore: expand and add tests
2026-02-04 20:25:06 +02:00
Sachin
04cf01969e
docs: clarify object check comment (#7323)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-02-04 19:21:44 +02:00
Willian Agostini
696fa753c5
fix: status is missing in AxiosError on and after v1.13.3 (#7368)
* test: add error handling tests for fetch and http adapters with status code

* fix: improve error handling in fetch adapter by including request and response in AxiosError

* fix: skip fetch test if fetch is not supported

* Update lib/adapters/fetch.js

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix: improve error handling in fetch adapter by using the correct request object

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-02-04 09:47:12 +02:00
Willian Agostini
569f028a58
fix: added a option to choose between legacy and the new request/response interceptor ordering
* test: add request interceptor tests for legacy and ordered execution

* feat: add legacy interceptor request/response ordering option

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-01-30 08:12:04 +02:00
dependabot[bot]
44b7c9f0c4
chore(deps-dev): bump karma-sourcemap-loader (#7360)
Bumps the development_dependencies group with 1 update in the / directory: [karma-sourcemap-loader](https://github.com/demerzel3/karma-sourcemap-loader).


Updates `karma-sourcemap-loader` from 0.3.8 to 0.4.0
- [Changelog](https://github.com/demerzel3/karma-sourcemap-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/demerzel3/karma-sourcemap-loader/commits/0.4.0)

---
updated-dependencies:
- dependency-name: karma-sourcemap-loader
  dependency-version: 0.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development_dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-29 20:40:52 +02:00
Jay
472c631e86
refactor: bump minors package versions (#7356)
* refactor: bump minors package versions

* fix: dtslint

* fix: package install

* chore: remove dts

* chore: attempt to fix issues with 12 and 14

* chore: remove unneeded package

* chore: remove unneeded package

* chore: remove unneeded package

* chore: try to install on older version

* chore: remove build for 12

* fix: sponsors
2026-01-29 20:34:43 +02:00
Jay
99d588dcea
chore: fix issues with yml (#7355)
* chore: fix issues with yml

* chore: fix issues with sponsor update yml
2026-01-28 19:57:41 +02:00
github-actions[bot]
9336cf9a33
chore(release): prepare release 1.13.4 (#7353)
* 1.13.4

* chore: codegen and some updates to workflows

* chore: add github token

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: jasonsaayman <jasonsaayman@gmail.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-01-27 20:13:03 +02:00
Jay
ee90dfc28a
fix: issues with version 1.13.3 (#7352) 2026-01-27 08:04:06 +02:00
Jason Saayman
af4f6d960f fix: release branch yml 2026-01-26 20:07:47 +02:00
Jason Saayman
253e3ad06a fix: all merge configs 2026-01-26 20:05:43 +02:00
Jay
8ff6c19e2d
refactor: ci and build (#7340)
* chore: add mise

* chore: re-position ci

* chore: move sponsors script

* chore: fix yml

* chore: yml

* fix: yml

* fix: yml

* chore: tweak sponsor yml

* chore: implement security suggestion

* chore: update templates for issues and PRs and update all workflows

* fix: copilot feedback

* feat: always run CI

* fix: linked resources

* chore: cancel run if new run starts

* feat: generate release notes with copilot
2026-01-25 18:17:31 +02:00
Jay
ab06109b40
chore(release): v1.13.3 (#7335) 2026-01-20 19:47:13 +02:00
Jay
2d6ad5e48b
revert(deps): bump peter-evans/create-pull-request from 7 to 8 in the github-actions group (#7334)
This reverts commit 25446920e3.
2026-01-19 21:38:27 +02:00
github-actions[bot]
cb49a6f84b
chore(sponsor): update sponsor block (#7330)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2026-01-19 20:27:52 +02:00
Copilot
d8233d9e8e
fix(types): restore AxiosError.cause type from unknown to Error (#7327)
* Initial plan

* fix(types): restore AxiosError.cause type from unknown to Error

Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>
2026-01-12 16:20:00 +02:00
Tackoil
5945e40bb1
fix(interceptor): handle the error in the same interceptor (#6269)
* fix(interceptor): handle the error in the same interceptor

* fix(interceptor): pass the config and data in promise chain

* fix(interceptor): filter out unexpected config and data in promise chain

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2026-01-08 21:11:34 +02:00
Adam Hines
7373fbff24
fix: main field in package.json should correspond to cjs artifacts (#5756)
When https://github.com/axios/axios/pull/4787 was implemented, the project was switched to `"type": "module"` and "./index.js" became an esm file instead of commonjs, however, the "main" entry in package.json still points to "index.js". As a result, consumers using this field may get unexpected behavior since the main field is supposed to be commonjs if the entry is provided.

Many consumers won't run into this as a practical problem (for example when just doing `const axios = require('axios').default` from inside of a cjs file in node) because the "exports" map takes precedence over the main/module fields, but tools that don't parse the object map when resolving still run into problems here.

The fix for this is to just point the "main" entry-point to the commonjs artifacts located at "./dist/node/index.cjs".

I also added a module entrypoint to improve compatability for the cases where the export map is not used (webpack 4 for example) since that would likely be reading the cjs "main" entrypoint now that main has switched back to cjs.

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-30 14:10:04 +02:00
Tibor Pilz
8d1271b49f
fix(types): add handlers to AxiosInterceptorManager interface (#5551)
* fix(types): add handlers to AxiosInterceptorManager interface

* fix: runwhen should be optional

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: make handlers optional

* chore: optional handlers

---------

Co-authored-by: Tibor Pilz <tibor.pilz@iu.org>
Co-authored-by: Jay <jasonsaayman@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-30 13:58:26 +02:00
techcodie
f8694341de
docs: refresh CDN URLs and example JSON headers (#7236)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-30 13:30:43 +02:00
SANDESH LENDVE
46db3316ac
doc: update deprecated var usage in documentation examples (#7246)
* test(http): fix HTTPS protocol test by using local HTTPS server instead of external request

* docs: update var usage in documentation examples

* docs: updated var to const

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-30 13:16:52 +02:00
rohit miryala
d6bbb3db86
docs: add async/await timeout handling example (#7250)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-30 13:14:19 +02:00
Ved Vadnere
3141c319c2
chore: remove unnecessary eslint-disable directive (#7283)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-30 13:11:30 +02:00
Akash Dhar Dubey
38be3b2e18
docs: add abort controller example (#7287)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-30 13:09:44 +02:00
Joseph Frazier
bf3f63237c
docs: fix typo in multipart/form-data README section (#7311)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-30 08:10:46 +02:00
dependabot[bot]
53aa420bb2
chore(deps): bump the production_dependencies group across 1 directory with 2 updates (#7231)
Bumps the production_dependencies group with 2 updates in the / directory: [follow-redirects](https://github.com/follow-redirects/follow-redirects) and [form-data](https://github.com/form-data/form-data).


Updates `follow-redirects` from 1.15.6 to 1.15.11
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.6...v1.15.11)

Updates `form-data` from 4.0.4 to 4.0.5
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.4...v4.0.5)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-version: 1.15.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production_dependencies
- dependency-name: form-data
  dependency-version: 4.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production_dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-30 08:07:33 +02:00
dependabot[bot]
25446920e3
chore(deps): bump peter-evans/create-pull-request (#7303)
Bumps the github-actions group with 1 update: [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request).


Updates `peter-evans/create-pull-request` from 7 to 8
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v7...v8)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-30 08:07:11 +02:00
Lubos
9af869126b
Add "API clients" section to Ecosystem (#7312)
Moved the existing API client generators to their own section and added Hey API
2025-12-23 10:14:39 +02:00