Dmitriy Mozgovoy
3c0c11cade
fix(security): fixed formToJSON prototype pollution vulnerability; ( #6167 )
2024-01-03 21:37:32 +02:00
Guy Nesher
75af1cdff5
fix(security): fixed security vulnerability in follow-redirects ( #6163 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2024-01-03 21:32:50 +02:00
Willian Agostini
5e7ad38fb0
fix: Regular Expression Denial of Service (ReDoS) ( #6132 )
2023-12-26 22:29:26 +02:00
Dmitriy Mozgovoy
cff996779b
feat(withXSRFToken): added withXSRFToken option as a workaround to achieve the old withCredentials behavior; ( #6046 )
2023-11-14 15:38:25 +02:00
Valentin Panov
96ee232bd3
fix(CSRF): fixed CSRF vulnerability CVE-2023-45857 ( #6028 )
...
Co-authored-by: DigitalBrainJS <robotshara@gmail.com >
2023-10-26 22:54:06 +03:00
Dmitriy Mozgovoy
7d45ab2e2a
chore(tests): fixed tests to pass in node v19 and v20 with keep-alive enabled; ( #6021 )
2023-10-22 18:20:44 +03:00
Dmitriy Mozgovoy
5aaff532a6
fix(dns): fixed lookup function decorator to work properly in node v20; ( #6011 )
2023-10-22 17:12:33 +03:00
Dmitriy Mozgovoy
e4107797a7
fix(adapters): improved adapters loading logic to have clear error messages; ( #5919 )
2023-09-26 19:43:25 +03:00
Przemyslaw Motacki
4c89f25196
fix(headers): allow content-encoding header to handle case-insensitive values ( #5890 ) ( #5892 )
2023-09-12 15:23:03 +03:00
夜葬
ca73eb878d
feat: export getAdapter function ( #5324 )
2023-08-26 20:42:25 +03:00
Dmitriy Mozgovoy
8fda2766b1
fix(headers): fixed common Content-Type header merging; ( #5832 )
2023-08-26 16:26:50 +03:00
Dmitriy Mozgovoy
d8b4ca0ea5
fix(headers): added support for setting header names that overlap with class methods; ( #5831 )
2023-08-25 21:07:51 +03:00
PIYUSH NEGI
e18fdd893d
refactor: remove deprecated url-search-params polyfill for URLSearchParams ( #5670 )
2023-04-28 00:58:07 +03:00
Dmitriy Mozgovoy
2701911260
feat(dns): added support for a custom lookup function; ( #5339 )
2023-04-26 02:04:59 +03:00
Dmitriy Mozgovoy
df38c949f2
fix(package): export package internals with unsafe path prefix; ( #5677 )
2023-04-26 00:17:21 +03:00
Dmitriy Mozgovoy
aa372f7306
fix(utils): make isFormData detection logic stricter to avoid unnecessary calling of the toString method on the target; ( #5661 )
2023-04-19 20:14:32 +03:00
Dmitriy Mozgovoy
a56c866120
fix(params): re-added the ability to set the function as paramsSerializer config; ( #5633 )
2023-04-05 19:44:36 +03:00
Dmitriy Mozgovoy
a3b246c9de
fix(http): fixed regression bug when handling synchronous errors inside the adapter; ( #5564 )
2023-02-22 21:50:31 +02:00
Dmitriy Mozgovoy
ea87ebfe6d
fix(headers): fixed the filtering logic of the clear method; ( #5542 )
2023-02-11 16:31:03 +02:00
Dmitriy Mozgovoy
96d336f527
fix(formdata): add hotfix to use the asynchronous API to compute the content-length header value; ( #5521 )
2023-02-02 00:55:05 +02:00
Dmitriy Mozgovoy
9263473154
chore(ci): fixed contributors avatar rendering for CHANGELOG.md; ( #5514 )
2023-01-31 17:56:09 +02:00
Dmitriy Mozgovoy
6ac574e00a
feat(fomdata): added support for spec-compliant FormData & Blob types; ( #5316 )
2023-01-31 01:10:39 +02:00
ItsNotGoodName
65e8d1e28c
fix(http): add zlib headers if missing ( #5497 )
2023-01-31 00:49:37 +02:00
Dmitriy Mozgovoy
9915635c69
fix(headers): fixed & optimized clear method; ( #5507 )
2023-01-31 00:35:06 +02:00
Dmitriy Mozgovoy
580f1e8033
fix(types): fixed AxiosHeaders to handle spread syntax by making all methods non-enumerable; ( #5499 )
2023-01-26 16:01:06 +02:00
Dmitriy Mozgovoy
2a71f49bc6
fix(types): renamed RawAxiosRequestConfig back to AxiosRequestConfig; ( #5486 )
2023-01-23 01:09:18 +02:00
Dmitriy Mozgovoy
6486929f70
Fix AxiosRequestHeaders & AxiosHeaders types; ( #5482 )
2023-01-21 17:31:24 +02:00
Dmitriy Mozgovoy
08119634a2
fix(types): fixed AxiosRequestConfig header interface by refactoring it to RawAxiosRequestConfig; ( #5420 )
2023-01-06 02:02:08 +02:00
Dmitriy Mozgovoy
7a2f901f42
Fix/typescript tests ( #5375 )
...
* chore(ci): Add release-it script;
* chore(ci): add `release:no-npm` script to release the package without making an npm release;
* fix(test): fixed `d.ts` typings;
refactor(test): refactor typescript tests;
2022-12-14 22:49:49 +02:00
Dmitriy Mozgovoy
1e58a659ec
fix: fixed Brotli decompression; ( #5353 )
...
test: added decompression tests;
fix: added legacy `x-gzip` & `x-compress` encoding types;
2022-12-07 20:57:02 +02:00
Winnie
56e9ca1a86
fix: Add missing HttpStatusCode ( #5345 )
2022-12-06 22:34:48 +02:00
Kevin Ennis
26874603b3
feat: export mergeConfig ( #5151 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-12-01 20:41:57 +02:00
Dmitriy Mozgovoy
9041c7d272
Fixed decompression for responses without Content-Length header ( #5306 )
...
* Fixed decompression for responses without `content-length` header;
* Add Brotli encoding to the `Accept-Encoding` header only if it is supported.
* `content-length` header transformation moved up;
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-12-01 16:22:20 +02:00
Ivan Barsukov
786b113a40
fix: removing multiple/trailing/leading whitespaces ( #5022 )
...
* fix: removing multiple/trailing/leading whitespaces
* Reverting changes in the dist directory
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-11-25 15:56:31 +02:00
Dmitriy Mozgovoy
d032edda08
Refactored adapters loader; ( #5277 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-11-22 20:53:56 +02:00
Dmitriy Mozgovoy
a3d901777b
Fixed Z_BUF_ERROR when content-encoding is set but the response body is empty; ( #5250 )
...
Fixed download progress capturing for compressed responses;
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-11-22 20:49:26 +02:00
Dmitriy Mozgovoy
b7ee49f637
Added toJSONObject util; ( #5247 )
...
Fixed AxiosError.toJSON method to avoid circular references;
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-11-22 20:44:24 +02:00
Jay
bb59a737bb
chore: release v1.2.0
2022-11-10 20:55:34 +02:00
Remco Haszing
abf954185a
fix: fix TypeScript type definitions for commonjs ( #5196 )
...
This is done by duplicating `index.d.ts` into `index.d.cts`, and
modifying it for CommonJS. The same was done for type tests.
Unfortunately I was unable to find a way to re-use types without
drastically changing the code base.
To test this, a minimum TypeScript version of 4.7 is needed, so it has
been updated. The old types still work with older TypeScript versions.
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-11-10 20:23:02 +02:00
Dmitriy Mozgovoy
ab77a40e1c
Fixed & Imporoved AxiosHeaders class ( #5224 )
...
* Refactored AxiosHeaders class;
* Added support for instances of AxiosHeaders as a value for the headers option;
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-11-07 21:11:42 +02:00
Dmitriy Mozgovoy
c0a723ab6c
Added support for Axios to be loaded with require('axios').default; ( #5225 )
...
Added module import tests;
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-11-07 20:32:24 +02:00
Dmitriy Mozgovoy
0c3a1e9fde
Refactored module exports; ( #5162 )
...
* Refactored build pipeline;
Added module exports tests;
Added missing ESM export for parity with Axios factory;
Added `toFormData`, `formToJSON`, `isAxiosError`, `spread`, `isCancel`, `all` as named export to `index.d.ts`;
* Added ESM entry test;
* Updated README.md `installing` section;
* Added TypeScript importing test;
Added missed `CanceledError` & `AxiosHeaders` to `AxiosStatic` interface;
* Exclude `/test/module/` from tslint;
2022-10-30 18:46:17 +02:00
ChronosMasterOfAllTime
b0ebf9fcac
Fix: Don't add null values to query string. ( #5108 )
...
* feat: add boolean flag to mimic pre 1.x behavior for paramsSerializer custom function
* chore: update ParamsSerializer Readme
* fix: dont slice hash off URL if not appending params
* Omit nulls from formData serialization
* fix: dont add nulls or undefined values to arrays either
* readme update
* fix test
* chore: documentation
* chore: do TS properly
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-10-15 15:01:59 +02:00
Dmitriy Mozgovoy
9d4b016dde
feat: added custom params serializer support; ( #5113 )
...
* Added custom params serializer support;
* Added missed semicolon;
Fixed allowUnknown option;
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-10-13 22:12:10 +02:00
Patrick Petrovic
717f476b0f
fix: restore proxy config backwards compatibility with 0.x ( #5097 )
...
* fix: restore proxy config backwards compatibility with 0.x
* Formatting
Co-authored-by: Patrick Petrovic <patrick@Air-de-Patrick.lan >
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-10-13 21:55:20 +02:00
Dmitriy Mozgovoy
110ae9ae61
fix: handling of array values for AxiosHeaders ( #5085 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-10-13 21:11:01 +02:00
shingo.sasaki
a6e40c3bb2
fix(type): add clear to AxiosInterceptorManager ( #5010 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-10-06 08:16:27 +02:00
Dmitriy Mozgovoy
3e4d52171e
Fixed query params composing; ( #5018 )
...
* Fixes #4999 ;
* Added regression test;
2022-10-05 21:29:50 +02:00
Willian Agostini
58ec93a95e
Allow null indexes on formSerializer and paramsSerializer ( #4960 )
...
* test: Failed test
Param indexes from formSerializer and paramsSerializer receiving null
Closes #4959
* fix: Allow null to indexes in SerializerOptions
Closes #4959
Co-authored-by: Willian Agostini <willian.agostini@fleetcor.com.br >
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-09-29 08:18:35 +02:00
Luca Pizzini
05338f4454
Removed unused imports ( #4949 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-09-28 21:16:14 +02:00