Commit Graph

509 Commits

Author SHA1 Message Date
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
Ivan Pepelko
7a06a3616f
Fix commonjs & umd exports (#5030) 2022-10-06 10:59:47 +02:00
Dmitriy Mozgovoy
3e4d52171e
Fixed query params composing; (#5018)
* Fixes #4999;

* Added regression test;
2022-10-05 21:29:50 +02:00
Trim21
d61dbede95
add missing export (#5003) 2022-10-05 08:02:35 +02:00
Jay
ff34f6dd51
chore: release v1.0.0 2022-10-04 20:25:21 +02:00
C. T. Lin
7c60c6282a
chore: simplify the import path of AxiosError (#4875)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-26 21:16:44 +02:00
WD
daa426a01c
fix: the error of calling extend to pass parameters #4844 (#4857)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-26 20:14:37 +02:00
felipedamin
738fa63661
Use WHATWG URL API instead of url.parse() (#4852)
* replace url.parse with new whatwg url api

* remove comments

* use const instead of var

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-14 21:40:08 +02:00
Bassel Rachid
242c1d9782
fix(adapters/http): remove repeated compression algorithm (#4820)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-14 21:28:09 +02:00
Dmitriy Mozgovoy
379fdebc46
Fixed a regression bug with unsubscribing from cancel token; (#4819)
Reverts #4795;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-14 21:24:22 +02:00
Dmitriy Mozgovoy
cd8989a987
Fixed missed minified builds; (#4805)
* Fixed missed minified builds;
Refactored utils.js;
Refactored `utils.isStandardBrowserEnv()` as a `platform/browser` property;
Added builds size log;

* Replaced `rollup-plugin-filesize` with `rollup-plugin-bundle-size`;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-08-01 19:13:14 +02:00
wenzheng
d17d9a66c5
feat: brower platform add data protocol. (#4804)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-08-01 18:58:12 +02:00
Dmitriy Mozgovoy
bdf493cf8b
Axios ES2017 (#4787)
* Added AxiosHeaders class;

* Fixed README.md href;

* Fixed a potential bug with headers normalization;

* Fixed a potential bug with headers normalization;
Refactored accessor building routine;
Refactored default transforms;
Removed `normalizeHeaderName` helper;

* Added `Content-Length` accessor;
Added missed `has` accessor to TS types;

* Added `AxiosTransformStream` class;
Added progress capturing ability for node.js environment;
Added `maxRate` option to limit the data rate in node.js environment;
Refactored event handled by `onUploadProgress` && `onDownloadProgress` listeners in browser environment;
Added progress & data rate tests for the http adapter;
Added response stream aborting test;
Added a manual progress capture test for the browser;
Updated TS types;
Added TS tests;
Refactored request abort logic for the http adapter;
Added ability to abort the response stream;

* Remove `stream/promises` & `timers/promises` modules usage in tests;

* Use `abortcontroller-polyfill`;

* Fixed AxiosTransformStream dead-lock in legacy node versions;
Fixed CancelError emitting in streams;

* Reworked AxiosTransformStream internal logic to optimize memory consumption;
Added throwing an error if the request stream was silently destroying (without error) Refers to #3966;

* Treat the destruction of the request stream as a cancellation of the request;
Fixed tests;

* Emit `progress` event in the next tick;

* Initial refactoring;

* Refactored Mocha tests to use ESM;

* Refactored Karma tests to use rollup preprocessor & ESM;
Replaced grunt with gulp;
Improved dev scripts;
Added Babel for rollup build;

* Added default commonjs package export for Node build;
Added automatic contributors list generator for package.json;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-18 11:19:27 +02:00
visortelle
5ba3f787c4
Fix - Request ignores false, 0 and empty string as body values (#4785)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-14 21:56:17 +02:00
Jay
5db829d118
docs(adapters/http) 2022-06-02 20:57:16 +02:00
Jay
8a92772d16
docs(axios.js) 2022-06-02 20:56:53 +02:00
Jay
31fbee888f
docs(cancel/CancelToken) 2022-06-02 20:56:32 +02:00
Jay
a009842af9
docs(cancel/CanceledError) 2022-06-02 20:56:09 +02:00
Jay
b80c7d3844
docs(core/Axios) 2022-06-02 20:55:27 +02:00
Jay
c4c30b22d6
docs(core/AxiosError) 2022-06-02 20:54:47 +02:00
Jay
fb8efb9a70
docs(core/InterceptorManager) 2022-06-02 20:54:24 +02:00
Jay
81c0b3568f
docs(core/buildFullPath) 2022-06-02 20:53:57 +02:00
Jay
4f4c1d3be9
docs(core/dispatchRequest) 2022-06-02 20:53:31 +02:00
Jay
722640aeda
docs(core/mergeConfig) 2022-06-02 20:53:07 +02:00
Jay
6e0aff9407
docs(core/settle) 2022-06-02 20:52:44 +02:00
Jay
e9bd1626ff
docs(core/transformData) 2022-06-02 20:52:22 +02:00
Jay
0148e4563d
docs(defaults/index) 2022-06-02 20:52:04 +02:00
Jay
e8dd5cb1ed
docs(helpers/AxiosURLSearchParams) 2022-06-02 20:51:32 +02:00
Jay
6f06e25f53
docs(helpers/buildURL) 2022-06-02 20:51:03 +02:00
Jay
18e563d7f8
docs(helpers/combineURLs) 2022-06-02 20:50:41 +02:00
Jay
714daab1e7
docs(helpers/deprecatedMethod) 2022-06-02 20:50:16 +02:00
Jay
ff2f0b4bd7
docs(helpers/formDataToJSON) 2022-06-02 20:49:51 +02:00
Jay
a0808db951
docs(helpers/fromDataURI) 2022-06-02 20:49:21 +02:00