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

1735 Commits

Author SHA1 Message Date
Aviraj2929 c2911ccc6a docs: update Features section for clarity and readability (#7136)
* add contributors and documentation

* docs(adapters): add JSDoc for adapters module

* docs: add JSDoc comments to server.js

* docs: update Features section for clarity and readability

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-10-13 14:21:24 +02:00
Aviraj2929 e1f8ae627c docs: add JSDoc comments to server.js (#7135)
* add contributors and documentation

* docs(adapters): add JSDoc for adapters module

* docs: add JSDoc comments to server.js

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-10-12 16:49:35 +02:00
Usama Ayoub 9b9ec98548 fix: resolve issue #7131 (added spacing in mergeConfig.js) (#7133)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-10-12 16:47:04 +02:00
Aviraj2929 6e0c8e76a7 docs: add jsdoc to adapters (#7134)
* add contributors and documentation

* docs(adapters): add JSDoc for adapters module

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-10-12 16:38:54 +02:00
Amit Verma f1c17be4a9 refactor: improve Cookie Handling (#7129)
* Improve Cookie Handling

* Update lib/helpers/cookies.js

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

* Update lib/helpers/cookies.js

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

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-11 10:43:34 +02:00
Abhishek3880 34ed58167f docs: add comprehensive JSDoc documentation to bind helper function (#7119)
- Add complete JSDoc block with parameter descriptions
  - Include return type and description
  - Improve code documentation for better developer experience
  - Follow established JSDoc patterns in the codebase
2025-10-09 09:43:07 +02:00
Abhishek3880 f4970f35b8 chore: add missing Cloudflare HTTP status codes (#7117)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-10-09 09:42:44 +02:00
Abhishek3880 6306657396 chore: enhance package.json keywords for better discoverability (#7116)
- Add 'browser', 'fetch', 'rest', 'api', 'client' keywords
  - Improve npm package discoverability for common HTTP client searches
  - Better categorize axios functionality for developers

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-10-09 09:27:26 +02:00
Abhishek3880 b8e9958b05 docs: improve browser support table accessibility in README (#7115)
- Add proper table headers for better screen reader accessibility
  - Include descriptive alt text for browser logo images
  - Restructure table layout for improved readability
  - Remove redundant IE 11 entry that was misaligned

Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-10-09 09:22:50 +02:00
github-actions[bot] 793fd4f14d chore(sponsor): update sponsor block (#7043)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-10-09 05:04:49 +03:00
Aviraj2929 57f07dff82 docs: add contributors and documentation (#7112) 2025-10-07 19:50:57 +02:00
prasoon patel d46425e654 chore: update footer for light and dark mode (#7099)
Co-authored-by: Prasoon Patel <prasoonpatel@Prasoons-MacBook-Air.local>
2025-10-07 09:34:27 +02:00
Rahul Kumar 6a104de750 chore: add MIT license badge to README (#7073) 2025-10-02 20:23:16 +02:00
Supakorn Ieamgomol 51b23a13b3 docs: fix rate limiting link (#7065) 2025-10-01 17:18:49 +02:00
Kian-Meng Ang 54a1fcc1b6 docs: fix typos (#7046)
Found via `typos --hidden --format brief`
2025-09-19 15:01:16 +02:00
UTSUMI Keiji 12135b15e5 chore: add alt text to logo image (#7037)
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2025-09-16 16:04:19 +02:00
Dmitriy Mozgovoy ac3ba6487b chore(ci): fix missed condition to skip test:package step for ignored files; (#7039) 2025-09-16 16:27:01 +03:00
Noritaka Kobayashi e9cfed35cf chore: remove unused terser-webpack-plugin (#7032) 2025-09-15 08:14:30 +02:00
github-actions[bot] e5a33366d7 chore(release): v1.12.2 (#7031)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-09-14 15:58:39 +03:00
Noritaka Kobayashi 38726c7586 refactor: change if in else to else if (#7028)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-09-14 11:53:01 +02:00
Dmitriy Mozgovoy cf78825e12 fix(fetch): use current global fetch instead of cached one when env fetch is not specified to keep MSW support; (#7030) 2025-09-13 23:24:16 +03:00
Noritaka Kobayashi c26d00f451 refactor: remove redundant assignment (#7029) 2025-09-13 22:10:51 +03:00
Dmitriy Mozgovoy 9fb41a8fcd chore(ci): add local HTTP server for Karma tests; (#7022) 2025-09-13 17:50:32 +03:00
Dmitriy Mozgovoy 19f9f36850 docs(readme): add custom fetch section; (#7024) 2025-09-13 17:40:04 +03:00
github-actions[bot] 3cac78c2de chore(release): v1.12.1 (#7021)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-09-12 17:18:39 +03:00
Dmitriy Mozgovoy b5f26b75bd fix(types): fixed env config types; (#7020) 2025-09-12 16:33:42 +03:00
github-actions[bot] 0d8ad6e1de chore(release): v1.12.0 (#7013)
Co-authored-by: jasonsaayman <4814473+jasonsaayman@users.noreply.github.com>
2025-09-11 21:32:15 +02:00
Jason Saayman fd7f404488 fix: release pr run 2025-09-11 20:44:16 +02:00
Jason Saayman a2edc3606a fix: dont add dist on release 2025-09-11 20:37:08 +02:00
Jay 9ec86de257 fix: adding build artifacts 2025-09-11 20:25:48 +02:00
Ameer Assadi 945435fc51 fix(node): enforce maxContentLength for data: URLs (#7011)
* fix(node): enforce maxContentLength for data: URLs (pre-decode size check)- CVE-2025-58754

* feat(utils): add estimateDataURLDecodedBytes helper and fix duplicate condition in base64 padding check

* feat: add estimateDataURLDecodedBytes helper with tests
2025-09-10 15:08:43 +02:00
github-actions[bot] 28e5e3016d chore(sponsor): update sponsor block (#7005)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-09-06 16:59:31 +03:00
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