Jay
ab06109b40
chore(release): v1.13.3 ( #7335 )
2026-01-20 19:47:13 +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
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
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
Subhan Kumar Rai
d7e6065346
fix(http2): Use port 443 for HTTPS connections by default. ( #7256 )
...
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2025-12-19 02:22:38 +02:00
Jay
a4230f5581
Revert "fix: silentJSONParsing=false should throw on invalid JSON ( #7253 ) (#7…" ( #7298 )
...
This reverts commit 7d19335e43 .
2025-12-08 14:19:20 +02:00
Nandan Acharya
e0a120620e
test: add Node unit tests for toFormData and refactor buildURL to avoid param reassignment ( #7272 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-08 08:22:30 +02:00
Rudransh
7d19335e43
fix: silentJSONParsing=false should throw on invalid JSON ( #7253 ) ( #7257 )
...
Co-authored-by: Rudransh Gupta <rudranshgupta@Rudranshs-MacBook-Pro.local>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-12-06 10:45:54 +02:00
KT0803
8092aee724
chore: remove TODO comment and dead code from http adapter error handler ( #7229 )
...
Remove commented-out code marked with @todo remove in the request error
handler. The code was already disabled and no longer needed.
2025-11-18 08:40:53 +02:00
Turadg Aleahmad
860e03396a
feat: compatibility with frozen prototypes ( #6265 )
...
* fix(types): some JSDoc param defs
* fix: compatibility with HardenedJS
* Update lib/utils.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-11-14 14:26:43 +02:00
Justin Dhillon
d5b76d4af7
style: get rid of redundency in imports ( #6315 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-11-12 21:11:56 +02:00
Gabriel Quaresma
6ef867e684
fix: unclear error message is thrown when specifying an empty proxy authorization ( #6314 )
...
* fix: add AxiosError to Invalid proxy authorization
* fix: minor update
* Update test/unit/adapters/http.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: remove redundant check
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: code style
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: style
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: correct assert
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: João Gabriel Quaresma de Almeida <joaoGabriel55>
Co-authored-by: Jay <jasonsaayman@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-12 21:04:39 +02:00
Jake Hayes
d6682b2035
chore: add options object to docstring so IDE's indicate it's available ( #5999 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-11-11 20:51:46 +02:00
Julian Dax
1c6a86dd2c
fix: turn AxiosError into a native error ( #5394 ) ( #5558 )
...
* fix: turn AxiosError into a native error (#5394 )
Being an object returned by the 'Error' constructor turns something into a 'native error'.
* fix: simplify code in AxiosError
* fix: simplify code in AxiosError
* refactor: implement AxiosError as a class
* refactor: implement CanceledError as a class
This turns CanceledError into a native error.
* refactor: simplify AxiosError.toJSON
* fix: improve error code handling in `AxiosError.from`
If no error code is provided, use the code from the underlying error.
* fix: set error status in `AxiosError.constructor`
If a response is passed to the constructor, set the response status as a property.
* fix: remove unnecessary async
---------
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-11-11 19:06:10 +02:00
github-actions[bot]
08b84b52d5
chore(release): v1.13.2 ( #7207 )
...
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-11-04 22:00:13 +02:00
Dmitriy Mozgovoy
8d372335f5
fix(http): fix 'socket hang up' bug for keep-alive requests when using timeouts; ( #7206 )
2025-11-04 01:08:35 +02:00
Dmitriy Mozgovoy
12c314b603
perf(http): fix early loop exit; ( #7202 )
2025-11-04 00:43:10 +02:00
Kasper Isager Dalsgarð
0588880ac7
fix(http): use default export for http2 module to support stubs; ( #7196 )
2025-10-29 21:10:29 +02:00
github-actions[bot]
1ef8e7218b
chore(release): v1.13.1 ( #7194 )
...
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2025-10-28 20:54:35 +02:00
Dmitriy Mozgovoy
bcd5581d20
fix(http): fixed a regression that caused the data stream to be interrupted for responses with non-OK HTTP statuses; ( #7193 )
2025-10-28 20:44:08 +02:00
github-actions[bot]
9ead04d8ab
[Release] v1.13.0 ( #7189 )
2025-10-27 18:07:18 +02:00
Dmitriy Mozgovoy
d000fbfd07
fix(http2): fix possible race condition when handling http2 stream on almost timed out session by improving timeout out algorithm; ( #7186 )
2025-10-27 00:46:40 +02:00
Nikhil Simon Toppo
889f8ef8be
docs: fix mismatched return type ( #7172 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com>
2025-10-23 14:39:30 +02:00
Dmitriy Mozgovoy
d676df7722
feat(http): add HTTP2 support; ( #7150 )
2025-10-19 15:06:36 +03:00
Jane Wangari
015faeca9f
fix(fetch): prevent TypeError when config.env is undefined ( #7155 )
2025-10-16 18:20:26 +03: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
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
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
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
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
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
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
최예찬
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
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
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
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]
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
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
Dimitrios Lazanas
5064b108de
fix(form-data): convert boolean values to strings in FormData serialization ( #6917 )
2025-05-21 17:32:38 +02:00