Commit Graph

201 Commits

Author SHA1 Message Date
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
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
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
46a650cf33
chore(ci): prepare package-lock.json for commit on build stage; (#5510) 2023-01-31 03:42:29 +02:00
Dmitriy Mozgovoy
6ac574e00a
feat(fomdata): added support for spec-compliant FormData & Blob types; (#5316) 2023-01-31 01:10:39 +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
5a3d0a3234
fix(types): fixed CommonRequestHeadersList & CommonResponseHeadersList types to be private in commonJS; (#5503) 2023-01-28 15:58:56 +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
Dmitriy Mozgovoy
d83316db4a
chore(ci): enabled npm publishing; (#5460) 2023-01-10 21:14:49 +02:00
Dmitriy Mozgovoy
e2a1e280f6
chore(ci): improved contributors & PRs sections generator; (#5453) 2023-01-09 15:24:02 +02:00
Dmitriy Mozgovoy
259f5f5aaa
chore(ci): added step of generating a list of contributors for CHANELOG.md; (#5449) 2023-01-07 20:01:43 +02:00
Dmitriy Mozgovoy
b4b5b360ec
chore(ci): updated release-it config; (#5446) 2023-01-07 18:04:51 +02:00
Dmitriy Mozgovoy
f6b480912e
chore(ci): improved contributors list generator; (#5443) 2023-01-07 02:40:08 +02:00
Dmitriy Mozgovoy
139d51f682
chore(ci): updated release-it config; (#5439) 2023-01-06 02:34:45 +02:00
Dmitriy Mozgovoy
8651bf17d4
chore(ci): add an action to create a release PR; 2023-01-06 01:50:31 +02:00
Jay
45c4948416
chore: build new version 2022-12-29 08:21:12 +02:00
Dmitriy Mozgovoy
6f74cb1880
chore(ci): set conventional-changelog header config; (#5406) 2022-12-25 17:43:44 +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
f12d01eed1
chore(ci): fix version bump script by adding bump argument for target version; 2022-12-19 19:52:59 +02:00
Dmitriy Mozgovoy
45b29dbc32
GitHub Actions Release script; (#5384)
* chore(ci): Add release-it script;

* chore(ci): add github actions release script;
2022-12-17 22:32:07 +02:00
Dmitriy Mozgovoy
493e04cd28
Fix/prerelease scipts (#5377)
* fix(scripts): rename prerelease scripts due to npm namespace conflict;

* chore(git): add `.npmrc` and `.env` to gitignore;
2022-12-15 19:50:44 +02:00
Dmitriy Mozgovoy
38865e3205
Fix/release scripts (#5376)
* fix(scripts): fix version bump script;
2022-12-15 00:56:04 +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
f2547d0e03
CI/release scripts (#5364)
* chore(ci): add release scripts;
2022-12-12 00:50:11 +02:00
Jay
1fd79d3220
chore: release 1.2.1 2022-12-05 21:36:02 +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
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
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
Maddy Miller
ae31394848
chore: add sideEffects false to package.json (#5025)
* chore: add sideEffects false to package.json

This flag within the package.json file allows marking that a package does not make use of side effects, as documented here: https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

* Fixed a typo and removed EOL

There was no EOL in the original, so removing it to minimise diff

* Update package.json

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-30 19:00:29 +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
littledian
ef1c48a476
fix: eep top-level export same with static properties (#5109)
* chore: add necessary devDependencies for rollup build

* fix: keep top-level export same with static properties(#5031)

Co-authored-by: ronggui.shu <ronggui.shu@sci-inv.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-13 22:17:06 +02:00
Jay
1b29f4e98e
chore: release v1.1.2 2022-10-07 12:09:17 +02:00
Jay
6140fcf96f
chore: updated changelog 2022-10-07 11:04:34 +02:00
Jay
9c3dce366b
chore: release v1.1.0 2022-10-06 21:17:46 +02:00
Jay
ff34f6dd51
chore: release v1.0.0 2022-10-04 20:25:21 +02:00
WD
cec2287024
chore: remove unnecessary spaces (#4854)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-15 07:25:21 +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
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
Jay
e90ced4957
docs: upgrade guide and changelog updated 2022-05-29 16:57:07 +02:00
Dmitriy Mozgovoy
467025bdb7
Fixed bug #4727 : toFormData Blob issue on node>v17; (#4728)
* Fixed bug #4727;
Added node 18.x to the CI;
Added hotfix for `ERR_OSSL_EVP_UNSUPPORTED` issue with karma running on node >=17.x;
Added `cross-env` to allow running build and test scripts on Windows platforms;

* Added conditional setting of `--openssl-legacy-provider` option for node versions >=17.x;

* Refactored ssl-hotfix & test script;

* Fixed and refactored default max body length test due to ECONNRESET failure;

* Added test for converting the data uri to a Blob;
Fixed bug with parsing mime type for Blob;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-05-20 16:31:26 +02:00
Dmitriy Mozgovoy
c30252f685
Added data URL support for node.js; (#4725)
* Added data URL support for node.js;
Added missed data URL protocol for the browser environment;
Optimized JSON parsing in the default response transformer;
Refactored project structure;
Added `cause` prop for AxiosError instance that refers to the original error if it was wrapped with `AxiosError.from` method;
Added fromDataURI helper;
Added test for handling data:url as an `arraybuffer|text|stream`;

* Added throwing of 405 HTTP error if the method is not GET;
2022-05-20 08:04:36 +02:00
Dmitriy Mozgovoy
c05ad48952
Fixed toFormData regression bug (unreleased) with Array-like objects serialization; (#4714)
Added `toURLEncodedForm` helper;
Added automatic payload serialization to `application/x-www-form-urlencoded` to have parity with `multipart/form-data`;
Added test of handling `application/x-www-form-urlencoded` body by express.js;
Updated README.md;
Added missed param in JSDoc;
Fixed hrefs in README.md;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-05-16 08:30:17 +02:00
Dmitriy Mozgovoy
807918bda2
Added enhanced toFormData implementation with additional options support; (#4704)
Updated default notation for arrays and objects to bracket style;
Added `multer/express.js` tests;
Updated README.md;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-05-11 19:30:08 +02:00