2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00
Commit Graph

267 Commits

Author SHA1 Message Date
github-actions[bot] ee208cfcae chore(sponsor): update sponsor block (#6576)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-08-26 15:50:00 +02:00
github-actions[bot] 67aa1effe4 chore(sponsor): update sponsor block (#6559)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-08-19 16:18:10 +03:00
github-actions[bot] 4f99675fe7 chore(sponsor): update sponsor block (#6558)
Co-authored-by: DigitalBrainJS <12586868+DigitalBrainJS@users.noreply.github.com>
2024-08-17 23:02:15 +03:00
Dmitriy Mozgovoy 58eb3b8ae6 chore(actions): Add action to update sponsor list in Readme.md; (#6552) 2024-08-17 20:13:56 +03:00
Dmitriy Mozgovoy 18b13cbaef chore(docs): add fetch adapter docs; (#6407) 2024-05-19 23:07:18 +03:00
Jay 751133eb9e docs: adds latest gold sponsor 2024-03-30 19:11:01 +02:00
Lucas Keller caa0625201 docs: update README responseEncoding types (#6194)
README.md didn't elaborate upon responseEncoding options- now it does.
2024-02-16 12:18:16 +02:00
Emmanuel 41c4584a41 docs: Update README.md to point to current axios version in CDN links (#6196)
* Update README.md

* Update README.md
2024-02-16 12:17:26 +02:00
Jay 1f73dcbbe0 docs: update sponsor links 2024-01-04 21:05:37 +02:00
Jay 90864b3a3f docs: update logos 2024-01-02 15:42:28 +02:00
Jay 1542719bc7 docs: updated headline sponsors 2023-12-27 19:04:51 +02:00
Jay 8befb86efb docs: update alloy link (#6145) 2023-12-20 08:44:08 +02:00
Jay d18f40d89a docs: add headline sponsors 2023-12-20 08:41:32 +02:00
Muhammad Noman a2b0fb314f chore(docs): update README.md (#6048) 2023-11-14 21:53:41 +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
Dmitriy Mozgovoy a48a63ad82 chore(docs): added AxiosHeaders docs; (#5932) 2023-09-30 20:49:59 +03:00
Rinku Chaudhari 2ac731d605 chore(docs): update readme.md (#5889) 2023-09-28 18:22:47 +03:00
David Dallas ae003913a3 docs(paramsSerializer config within request config): update documentation for paramsSerializer
Co-authored-by: David Dallas <Davidcobb606@gmail.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2023-09-07 16:59:17 +02:00
Michael Di Prisco b5b7760373 docs: fix CommonJS usage note
Co-authored-by: Jay <jasonsaayman@gmail.com>
2023-08-30 20:41:34 +02:00
Michael Di Prisco dff74ae374 docs: linting documentation notes (#5791) 2023-08-26 20:50:03 +03:00
Jonathan Budiman 3f53eb6960 docs: Add axios error type definitions in README.MD (#5788) 2023-08-03 08:21:30 +02:00
Michael Di Prisco 2b1fc73600 chore(docs): added missing config.transport doc (#5444) 2023-02-22 22:22:09 +02:00
Elliot Ford 18c1710f24 docs: fix GitHub workflow badges (#5462) 2023-01-26 16:26:32 +02:00
Zachary Lysobey 6d367b9e2c docs: remove README link to non-existent upgrade guide (#5307)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-12-01 20:52:42 +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
relbns a372b4ce4b update readme (#5261) 2022-11-22 20:39:49 +02:00
AZM e05fe7c42b Update the link (#5265)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-11-22 20:36:58 +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
MoPaMo 7c4e4fd9c2 fix punctation in README.md (#5197)
(In order to do x, do y)

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-11-02 20:16:16 +02:00
Claudio Busatto 02af86becd docs: fix broken links (#5218) 2022-11-02 20:15:52 +02:00
Daniel Fjeldstad 2750eb0771 docs: Update Resources links in README (#5119)
* docs: Fix broken changelog link

* docs: Fix rest of links in Resources

* docs: Undo change

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-30 19:43:54 +02:00
Shreem Asati 34811cbb4f typo fix #800 (#5193)
spelling correction

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-30 19:29:36 +02:00
Shreem Asati c16fe222c4 typo fix line #856 and #920 (#5194)
punctuation missing

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-30 19:26:03 +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
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 83454a55f6 chore: added progress capturing section to the docs; (#5084)
Added rate limiting section to the docs;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-13 21:47:23 +02:00
Arvindh eedd9aafa5 chore: fixing comments typo (#5054)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-13 21:20:41 +02:00
Lenz Weber-Tronic 85740c3e7a pin CDN install instructions to a specific version (#5060) 2022-10-13 21:05:15 +02:00
scarf b733f36c2a docs: match badge style, add link to them (#5046)
codetriage and snyk could not be styled because the former does not have api; snyk api is charged.

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-08 20:25:37 +02:00
Raihan Nismara aa001e2946 Using Logo Axios in Readme.md (#4993)
Using logo Axios in readme file made looks nicer
2022-10-04 19:48:11 +02:00
Huyen Nguyen 60e85533b3 docs: enable syntax highlighting for a code block (#4970)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-29 08:27:32 +02:00
Usman Ali Siddiqui 892c241773 Fix: typo in readme (#4942)
Co-authored-by: Usman Ali Siddiqui <usmanali.siddiqui@wsa.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-15 07:36:31 +02:00
Yue JIN 5138c302bb docs: fix Gitpod dead link (#4941)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-15 07:32:36 +02:00
Karl Horky d57fdb6510 Fix typo and formatting, add colons (#4853)
* Fix typo, add colons

* Fix code formatting

* Fix code formatting

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-15 07:21:40 +02:00
Grégoire Pineau dd5ba02254 Fix markup for note in README (#4825)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-09-14 21:32:23 +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
Dmitriy Mozgovoy a02fe284df Updated README.md; (#4742)
Updated index.d.ts;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-05-26 08:13:27 +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