JALAL
eef2f97281
replace deprecated substr() with slice() ( #4468 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 21:39:40 +02:00
Dmitriy Mozgovoy
ad27f803d7
Changed func-names eslint rule to as-needed; ( #4492 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 21:17:06 +02:00
Jingyi Lin
ba85e0e385
style: fix word spelling ang lint style in comment ( #4500 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 21:12:16 +02:00
Philipp Loose
3479ca7c76
Updating typing for AxiosPromise ( #4505 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 21:07:09 +02:00
Alexander Shchukin
484443f251
fix url to defaults.js ( #4532 )
...
fix url to defaults.js
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 20:35:59 +02:00
Arthur Fiorette
ff1e5cd6c2
Include request and config when creating a CanceledError. ( #4659 )
...
* changes
* also include request
* revert comment
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 20:33:38 +02:00
Dmitriy Mozgovoy
c07998a621
Added generic TS types for the exposed toFormData helper; ( #4668 )
2022-05-03 20:29:50 +02:00
zhoulixiang
e52af17ee8
opt: opt judgment code of cancel ( #4587 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 19:04:58 +02:00
Ted Robertson
e9efc69f68
Emphasize the URLSearchParam built-in interface ( #4590 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 19:00:38 +02:00
Jay
a9aea9b97d
Added lock file with rollup added
2022-05-03 18:55:43 +02:00
Dmitriy Mozgovoy
fe2563060d
Replaced webpack with rollup; ( #4596 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 18:53:02 +02:00
aong
a41f129acf
Update README.md ( #4599 )
...
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 18:50:13 +02:00
Des Preston
7920d11144
Updating AxiosError to include stack trace ( #4624 )
...
Related to discussions here https://github.com/axios/axios/issues/2387
Attempt to capture the stack trace at the time the error is created in
order to maintain context about where the error originates from.
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 18:46:10 +02:00
Michael Li
8213da4f16
fix(type): add AxiosError to AxiosStatic ( #4654 )
...
https://github.com/axios/axios/blob/master/lib/axios.js#L47
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 18:43:37 +02:00
Dan Mooney
8fb0f2689d
Update README.md ( #4649 )
...
Fix grammar
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 18:40:15 +02:00
Bertrand Marron
205bd0f01d
Make AxiosError.config optional in the type definition ( #4665 )
...
It is optional in the constructor, and not always defined.
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-05-03 18:37:51 +02:00
Dmitriy Mozgovoy
12faca87e0
Removed wrong argument for NetworkError constructor; ( #4656 )
2022-05-03 18:30:17 +02:00
Jay
bc733fec78
Releasing v0.27.2
2022-04-27 11:58:12 +02:00
Dmitriy Mozgovoy
b9e9fb4fa0
Enhanced protocol parsing implementation to fix #4633 ; ( #4639 )
...
Added unit tests;
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-04-27 11:30:50 +02:00
Dmitriy Mozgovoy
76432c18be
Fixed FormData posting in browser environment by reverting #3785 ; ( #4640 )
...
* Fixed posting FormData in browser environment by reverting #3785 ;
* Added ability to keep `Content-Type` header in non-standard browser environments;
* Added browser test of FormData posting using external HTTP service (https://httpbin.org/post );
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-04-27 11:26:52 +02:00
Jay
82fd15f3d4
Combined build process and cleaned it up a bit
2022-04-26 14:24:18 +02:00
Jay
1d82af1a50
Fixing issues with bundle sizes
2022-04-26 14:23:05 +02:00
Jay
bcb166e6e8
Fixed incorrect date in changelog
2022-04-26 09:37:43 +02:00
Jay
838f53b4bb
Merge branch 'master' of github.com:axios/axios
2022-04-26 09:31:45 +02:00
Jay
cb9c534963
Releasing v0.27.1
2022-04-26 09:31:19 +02:00
Jay
91d21fc5fb
Releasing v0.72.1
2022-04-26 09:30:48 +02:00
Jay
167cb8b8e7
Remove eslint-g package as this seems have been added in error
2022-04-26 09:14:04 +02:00
Dmitriy Mozgovoy
4f7e3e3a7a
Removed import of url module in browser build due to significant size overhead; ( #4594 )
...
Removed pointless `Malformed URL` checking in client build;
2022-04-26 09:08:49 +02:00
Jay
cdd7add9b0
Fixed date on chnagelog
2022-04-25 18:43:43 +02:00
dependabot[bot]
f94dda9c76
Bump async from 2.6.3 to 2.6.4 ( #4615 )
...
Bumps [async](https://github.com/caolan/async ) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases )
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md )
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4 )
---
updated-dependencies:
- dependency-name: async
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 08:04:07 +02:00
Jay
008dd9d466
Releaseing version 0.27.0
2022-04-21 12:55:24 +02:00
Jay
ee151a7356
Revert some changes that are only required when we actually release
2022-04-05 15:47:01 +02:00
Enrique Mingorance Cano
499d3bee54
follow-redirects to ^1.14.9 ( #4562 )
...
* follow-redirects to ^1.14.9
* CHANGELOG.md
* revert dist changes
2022-04-05 15:42:41 +02:00
Jay
d24ce8e0d3
Updated a number of out of date dev packages
2022-04-01 21:18:41 +02:00
dependabot[bot]
5b0d492c1c
Bump minimist from 1.2.5 to 1.2.6 ( #4574 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-01 20:59:10 +02:00
Jay
cdda1ad019
Merge branch 'carpben-env-form-data'
2022-04-01 20:41:59 +02:00
Jay
3e0954db22
Fixed merge conflicts
2022-04-01 20:41:47 +02:00
Jay
a3dd6031bb
Merge branch 'Tivix-fix#1603'
2022-04-01 19:58:30 +02:00
Jay
9b8e0047e9
Merge branch 'fix#1603' of https://github.com/Tivix/axios into Tivix-fix#1603
2022-04-01 19:57:44 +02:00
Jay
1f13dd7e26
Fixed some imports that were not correct
2022-04-01 18:48:36 +02:00
Jay
8699891b8e
Fixed merge conflicts
2022-04-01 18:40:12 +02:00
dependabot[bot]
c855c9d385
Bump minimist from 1.2.5 to 1.2.6 ( #4566 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-31 22:21:20 +02:00
Jay
1a74e1d80a
Merge branch 'master' of github.com:axios/axios
2022-03-31 22:04:49 +02:00
mkusaka
b883716dcb
Fixing wrong link in changelog ( #4551 )
2022-03-31 21:53:21 +02:00
Jay
ac659112db
Fixed issues created when merging 0.26.1
2022-03-19 14:36:42 +02:00
Ben Carp
1a2ff9c3d1
multipart/form-data playground ( #4465 )
...
* adding toFormData test
* adding toFormData
* initial multipart-FormData playground
* formdata playground title
* Fix examples/postMultipartFormData/server.js to the examples/**/server.js format, and so event end runs.
Co-authored-by: Jay <jasonsaayman@gmail.com >
2022-03-15 07:53:11 +02:00
Dmitriy Mozgovoy
6b9b05b907
Improved FormData support; ( #4448 )
...
* Fixed isFormData predicate;
Added support for automatic object serialization to FormData if `Content-Type` is `multipart/form-data`;
Added support for FormData to be overloaded using `config.env.FormData` option;
Added support for FormData in node.js environment through `form-data` package;
* Added the `form-data` package as a dependency for the server build;
Added tests for FormData payload;
* Added FormData automatic serialization section;
Refactored cancellation section;
* Reworked toFormData helper;
Expose toFormData helper as a static method;
Refactored transform request;
Added kindOf, kindOfTest, endsWith, isTypedArray util;
Refactored utils.js to use kindOf for tests;
* Fixed isFormData predicate; (#4413 )
Added support for automatic object serialization to FormData if `Content-Type` is `multipart/form-data`;
Added support for FormData to be overloaded using `config.env.FormData` option;
Added support for FormData in node.js environment using `form-data` package;
(cherry picked from commit 73e3bdb883 )
* Added shortcut methods `postForm`, `putForm`, `patchForm` to submit a Form;
Added ability to submit FileList object as a FormData;
Updated README.md;
* Updated README.md;
2022-03-14 20:22:10 +02:00
Jay
b736acfa19
Update FUNDING.yml
2022-03-11 19:23:12 +02:00
Jay
e52e4dbb57
Fixed errors when running tests
2022-03-10 21:25:55 +02:00
Jay
80387424e4
Removed all old error classes
2022-03-10 08:30:59 +02:00