2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00
Commit Graph

1703 Commits

Author SHA1 Message Date
Dmitriy Mozgovoy d03f245a40 chore(CI): fixed release info script to use npm registry instead of git as file history source; (#7006) 2025-09-04 08:33:40 +02:00
Willian Agostini a0bc911379 chore: removing dist files from src (#7002)
* chore: removing dist files from src

* chore: include build step in CI pipeline

* chore: add build step to PR and publish workflows
2025-09-03 08:41:23 +02:00
Dmitriy Mozgovoy c959ff2901 feat(fetch): add fetch, Request, Response env config variables for the adapter; (#7003)
* feat(fetch): add fetch, Request, Response env config variables for the adapter;

* feat(fetch): fixed design issue for environments without fetch API globals;
2025-08-30 22:02:24 +03:00
Emiedonmokumo Dick-Boro a9f47afbf3 fix(fetch-adapter): set correct Content-Type for Node FormData (#6998)
* fix(fetch-adapter): set correct Content-Type for Node FormData

* Update lib/helpers/resolveConfig.js

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

* test(fetch): replace chai expect with Node assert

* fix: define formHeaders for FormData to resolve no-undef error

* fix: filter headers to only update the target headers

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-08-25 20:46:53 +02:00
github-actions[bot] 066b39195a chore(sponsor): update sponsor block (#6992)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-08-20 15:37:05 +03:00
Willian Agostini 2a9763426e feat: support reviver on JSON.parse (#5926)
* test: test to support reviver on JSON.parse

* feat: support reviver for JSON.parse on parse response data

#5924

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-08-12 09:34:42 +02:00
Willian Agostini 7960d34ede feat(types): extend AxiosResponse interface to include custom headers type (#6782) 2025-08-12 09:29:02 +02:00
Gligor Kotushevski aa78ac23fc fix: package exports (#5627)
* fix package exports

* fix(package): comma missed at merge
2025-08-06 10:03:07 +02:00
최예찬 6d84189349 fix(params): removing '[' and ']' from URL encode exclude characters (#3316) (#5715)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-08-01 20:44:47 +02:00
Aleksandar Dimitrov 0dbb7fd4f6 fix(types): change the type guard on isCancel (#5595)
* fix(types): change the type guard on isCancel

… to `CanceledError<any>`. This makes more sense as it reflects what
`isCancel` is actually doing. In fact, if I'm not mistaken, the
`Cancel` type is no longer in the project. It got removed in
7f12366. It should probably also be removed from the types.

* Parameterize `CanceledError` in `isCancel`

Thanks to @samavati for the suggestion.

Co-authored-by: Ehsan Samavati <samaavaati@gmail.com>

---------

Co-authored-by: Ehsan Samavati <samaavaati@gmail.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-07-30 20:38:36 +02:00
Jay 5a079ca394 chore: update semver docs in readme (#6985)
closes https://github.com/axios/axios/issues/5134
2025-07-30 20:28:32 +02:00
khani 78b290c57c feat(adapter): surface low‑level network error details; attach original error via cause (#6982)
* feat(adapter): surface low‑level network error details; attach original error via `cause`

Node http adapter:
- Promote low-level `err.code` to `AxiosError.code`, prefixing message (e.g. `ECONNREFUSED – …`)
- Keep original error on standard `Error.cause`

XHR adapter:
- Preserve browser `ProgressEvent` on `error.event`
- Use event message when available

Tests:
- Add Node ESM tests under `test/unit/adapters` to assert `code` and `cause` behavior

Types:
- Ensure `AxiosError.cause?: unknown` and `event?: ProgressEvent` are present

* fix(adapter): use fs instead of fs/promises for sync file read in tests to fix GitHub Actions
2025-07-30 09:57:27 +02:00
Zeroday BYTE 2c2a56ab87 chore: update sandbox client.html (#6980) 2025-07-28 17:18:01 +02:00
github-actions[bot] e7b7253f87 chore(sponsor): update sponsor block (#6976)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2025-07-23 17:18:13 +03:00
github-actions[bot] b76c4ac6f8 chore(release): v1.11.0 (#6974)
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>
2025-07-23 08:04:30 +02:00
izzy goldman e72c193722 fix: form-data npm pakcage (#6970) 2025-07-22 20:58:10 +02:00
James Nail 8517aa16f8 fix(types): resolve type discrepancies between ESM and CJS TypeScript declaration files (#6956)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-07-16 19:50:56 +02:00
Manish Sahani a2214ca1bc fix: prevent RangeError when using large Buffers (#6961) 2025-07-15 20:18:24 +02:00
Noritaka Kobayashi 6161947d9d refactor: use spread operator instead of '.apply()' (#6938)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-07-06 16:59:56 +02:00
Noritaka Kobayashi a1d16dd9c5 refactor: use an object spread instead of Object.assign (#6939)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-07-06 16:51:51 +02:00
github-actions[bot] 07183cd149 chore(sponsor): update sponsor block (#6952)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-07-06 16:46:59 +02:00
Tejaswi1305 ef36347fb5 docs(CONTRIBUTING): update docs link for accuracy (#6894)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-06-27 08:46:36 +02:00
github-actions[bot] b29bd6a641 chore(sponsor): update sponsor block (#6948)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-06-26 01:05:36 +03:00
github-actions[bot] a406a93e2d chore(sponsor): update sponsor block (#6937)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-06-15 16:11:02 +03:00
github-actions[bot] 73a836dae7 chore(release): v1.10.0 (#6943)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-06-14 15:11:07 +03:00
Dmitriy Mozgovoy 3d343b86dc fix(package): add module entry point for React Native; (#6933) 2025-06-08 20:17:59 +03:00
Uhyeon Park 0f50af8e07 fix(adapter): pass fetchOptions to fetch function (#6883)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-06-01 18:57:50 +02:00
Noritaka Kobayashi ee7799e13c refactor: remove unused import in test (#6922)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-06-01 18:31:50 +02:00
Noritaka Kobayashi eb0a2db04b chore: fix typos in test (#6923)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-06-01 18:28:07 +02:00
Dmitriy Mozgovoy 7d551393c3 docs(readme): improve error descriptions; (#6920) 2025-06-01 17:52:54 +03:00
github-actions[bot] f4fc6b8564 chore(sponsor): update sponsor block (#6921)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-05-30 14:28:58 +03:00
Dimitrios Lazanas 5064b108de fix(form-data): convert boolean values to strings in FormData serialization (#6917) 2025-05-21 17:32:38 +02:00
Sampo Silvennoinen c7e0fea787 CI: add Node 24 (#6913)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-05-09 15:58:39 +02:00
github-actions[bot] 7ba895c887 chore(sponsor): update sponsor block (#6907)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-05-09 04:34:40 +03:00
Dmitriy Mozgovoy f31d2bab75 chore(ci): fix github action glob in PR labeler action config; (#6893) 2025-04-26 19:42:56 +03:00
Dmitriy Mozgovoy b998b7d6c7 chore(ci): run PR guard action only for forks; (#6892) 2025-04-26 19:10:21 +03:00
Adrian Knapp 63f1fce233 feat(types): improved fetchOptions interface (#6867)
* feat(types): added js native interface for fetchOptions

* fix(types): adjusted to fetchOptions accept any value as the original version

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-04-25 21:31:32 +02:00
Howie Zhao 2d7911e52b docs(README): corrected description of keepAlive option (#6872)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-04-25 21:08:54 +02:00
github-actions[bot] cdcfd214c1 chore(release): v1.9.0 (#6891)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-04-24 23:18:14 +03:00
Ionuț G. Stan 987d2e2dd3 fix(http): send minimal end multipart boundary (#6661) 2025-04-24 22:19:48 +03:00
Dmitriy Mozgovoy f112edfdfa chore(ci): add PR files guard action; (#6890) 2025-04-24 21:16:06 +03:00
Dmitriy Mozgovoy 61de4c05cc chore(ci): update github actions; (#6889) 2025-04-24 19:34:08 +03:00
Dmitriy Mozgovoy c3aba3d8f7 chore(ci): add labeler github action; (#6888) 2025-04-24 17:37:56 +03:00
Dmitriy Mozgovoy f7a3b5e0f7 fix(headers): fixed support for setting multiple header values from an iterated source; (#6885) 2025-04-23 19:24:08 +03:00
FatahChan e61a8934d8 fix(types): fix autocomplete for adapter config (#6855)
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2025-04-19 18:54:33 +03:00
Dmitriy Mozgovoy 6c5d4cd692 fix(core): fix the Axios constructor implementation to treat the config argument as optional; (#6881) 2025-04-18 02:22:31 +03:00
Dmitriy Mozgovoy dfe8411c9a fix(fetch): fixed ERR_NETWORK mapping for Safari browsers; (#6767) 2025-04-15 01:52:53 +03:00
Dmitriy Mozgovoy d4f7df4b30 fix(headers): fix getSetCookie by using 'get' method for caseless access; (#6874) 2025-04-14 22:38:27 +03:00
Dmitriy Mozgovoy 1b1f9ccdc1 fix(headers): allow iterable objects to be a data source for the set method; (#6873) 2025-04-14 21:55:27 +03:00
github-actions[bot] 47a611f084 chore(sponsor): update sponsor block (#6864)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-04-10 08:27:11 +02:00