2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-18 12:39:44 +03:00
Commit Graph

541 Commits

Author SHA1 Message Date
Dmitriy Mozgovoy c19f7bf770 fix(formdata): fixed setting NaN as Content-Length for form payload in some cases; (#5535) 2023-02-11 16:34:51 +02:00
Dmitriy Mozgovoy ea87ebfe6d fix(headers): fixed the filtering logic of the clear method; (#5542) 2023-02-11 16:31:03 +02:00
github-actions[bot] 0b449293fc chore(release): v1.3.2 (#5531)
Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
2023-02-03 20:09:55 +02:00
Dmitriy Mozgovoy 6b3c305fc4 fix(http): use explicit import instead of TextEncoder global; (#5530) 2023-02-03 19:34:07 +02:00
Dmitriy Mozgovoy 128d56f4a0 fix(http): treat http://localhost as base URL for relative paths to avoid ERR_INVALID_URL error; (#5528) 2023-02-03 19:02:50 +02:00
github-actions[bot] 54d3facb3b chore(release): v1.3.1 (#5522)
Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
2023-02-02 01:30:01 +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 08104c028c fix(serializer): fixed serialization of array-like objects; (#5518) 2023-02-01 20:38:59 +02:00
github-actions[bot] 7fbfbbeff6 chore(release): v1.3.0 (#5513)
Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
2023-01-31 18:54:52 +02:00
Dmitriy Mozgovoy 9957377260 chore(ci): change release-it git config; (#5512) 2023-01-31 15:39:10 +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
github-actions[bot] 5bde91cac7 chore(release): v1.2.6 (#5505)
Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
2023-01-28 18:40:09 +02:00
Dmitriy Mozgovoy 342c0ba9a1 fix(headers): added missed Authorization accessor; (#5502) 2023-01-27 02:01:36 +02:00
github-actions[bot] 366161e5e4 chore(release): v1.2.5 (#5500)
Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
2023-01-26 17:05:24 +02:00
github-actions[bot] 6600d51e6b [Release] v1.2.4 (#5487)
* chore(release): v1.2.4

* chore(changelog): update CHANGELOG;

Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2023-01-24 19:20:59 +02:00
github-actions[bot] 484e0b6ed2 chore(release): v1.2.3 (#5459)
Co-authored-by: DigitalBrainJS <DigitalBrainJS@users.noreply.github.com>
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
2023-01-15 19:33:15 +02:00
Jay 45c4948416 chore: build new version 2022-12-29 08:21:12 +02:00
Dmitriy Mozgovoy 46085e6ffc chore(ci): fix release action;
* chore(ci): Add release-it script;
* fix(utils): redesigned logic for obtaining the global link;;
* chore(git): updated .gitignore;
chore(npm): updated .npmignore;
* chore(git): fix husky prepare script;
* chore(github): reworked npm release action step;
* chore(ci): add CHANGELOG.md contributors section generator;
* chore(deps): add `auto-changelog` to package.json;
2022-12-20 20:45:24 +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
Jay 1fd79d3220 chore: release 1.2.1 2022-12-05 21:36:02 +02:00
Kevin Ennis 26874603b3 feat: export mergeConfig (#5151)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-12-01 20:41:57 +02:00
wenzheng e3d759491c fix: exception to sending formdata in webworker (#5139)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-12-01 19:15:23 +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
Arthur Fiorette cac6cfa6f6 fix: include config on new CancelledError (#4922)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-11-25 15:46:49 +02:00
Jay f92e167f76 chore(release): 1.2.0 2022-11-22 20:59:45 +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 3a7c363e54 chore: v1.2.0 pre-release 2022-11-10 20:59:51 +02:00
Jay bb59a737bb chore: release v1.2.0 2022-11-10 20:55:34 +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 9452f06aa9 Force CI restart;
Force CI restart;
2022-11-07 20:24:23 +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
Jay 9bd53214f6 chore: release 1.1.3 2022-10-15 15:43:01 +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
Jay 1b29f4e98e chore: release v1.1.2 2022-10-07 12:09:17 +02:00
Jay 1315e2282f chore: release v1.1.1 2022-10-07 11:08:35 +02:00
Jay 9fc94b7dcd fix: revert named exports 2022-10-07 10:43:43 +02:00
Jay a46beab152 fix: keep compatability with other changes 2022-10-07 10:24:18 +02:00
Jay 2149464bb4 fix: issue with exports not working correctly in common js scenarios 2022-10-07 10:19:25 +02:00
Jay 9c3dce366b chore: release v1.1.0 2022-10-06 21:17:46 +02:00
Richard Kořínek d701c7b591 Improved plain object checking (#5036) 2022-10-06 21:01:37 +02:00