axios 0.21.4 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +318 -54
- package/README.md +378 -64
- package/SECURITY.md +3 -3
- package/UPGRADE_GUIDE.md +41 -13
- package/bin/check-build-version.js +19 -0
- package/bin/ssl_hotfix.js +22 -0
- package/dist/axios.js +2072 -1878
- package/dist/axios.js.map +1 -0
- package/dist/axios.min.js +2 -3
- package/dist/axios.min.js.map +1 -0
- package/dist/esm/axios.js +2379 -0
- package/dist/esm/axios.js.map +1 -0
- package/dist/esm/axios.min.js +2 -0
- package/dist/esm/axios.min.js.map +1 -0
- package/index.d.ts +219 -46
- package/lib/adapters/http.js +262 -130
- package/lib/adapters/xhr.js +59 -22
- package/lib/axios.js +19 -7
- package/lib/cancel/CancelToken.js +65 -4
- package/lib/cancel/CanceledError.js +24 -0
- package/lib/core/Axios.js +45 -17
- package/lib/core/AxiosError.js +97 -0
- package/lib/core/InterceptorManager.js +9 -0
- package/lib/core/buildFullPath.js +5 -2
- package/lib/core/dispatchRequest.js +13 -1
- package/lib/core/mergeConfig.js +54 -38
- package/lib/core/settle.js +3 -3
- package/lib/core/transformData.js +4 -3
- package/lib/{defaults.js → defaults/index.js} +64 -23
- package/lib/defaults/transitional.js +7 -0
- package/lib/env/README.md +3 -0
- package/lib/env/classes/FormData.js +2 -0
- package/lib/env/data.js +3 -0
- package/lib/helpers/AxiosURLSearchParams.js +42 -0
- package/lib/helpers/bind.js +1 -5
- package/lib/helpers/buildURL.js +18 -33
- package/lib/helpers/combineURLs.js +1 -1
- package/lib/helpers/formDataToJSON.js +74 -0
- package/lib/helpers/fromDataURI.js +51 -0
- package/lib/helpers/isAbsoluteURL.js +1 -1
- package/lib/helpers/isAxiosError.js +3 -1
- package/lib/helpers/isURLSameOrigin.js +12 -12
- package/lib/helpers/null.js +2 -0
- package/lib/helpers/parseHeaders.js +2 -2
- package/lib/helpers/parseProtocol.js +6 -0
- package/lib/helpers/toFormData.js +179 -0
- package/lib/helpers/toURLEncodedForm.js +18 -0
- package/lib/helpers/validator.js +14 -33
- package/lib/platform/browser/classes/FormData.js +3 -0
- package/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/lib/platform/browser/index.js +11 -0
- package/lib/platform/index.js +3 -0
- package/lib/platform/node/classes/FormData.js +3 -0
- package/lib/platform/node/classes/URLSearchParams.js +5 -0
- package/lib/platform/node/index.js +11 -0
- package/lib/utils.js +210 -37
- package/package.json +42 -26
- package/rollup.config.js +60 -0
- package/tsconfig.json +14 -0
- package/tslint.json +6 -0
- package/dist/axios.map +0 -1
- package/dist/axios.min.map +0 -1
- package/lib/cancel/Cancel.js +0 -19
- package/lib/core/createError.js +0 -18
- package/lib/core/enhanceError.js +0 -42
package/CHANGELOG.md
CHANGED
@@ -1,8 +1,271 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
|
3
|
+
## [0.30.0](https://github.com/axios/axios/compare/v0.29.0...v0.30.0) (2025-03-26)
|
4
|
+
|
5
|
+
## Release notes:
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
- fix: modify log while request is aborted ([#4917](https://github.com/axios/axios/pull/4917))
|
10
|
+
- fix: update CHANGELOG.md for v0.x ([#6271](https://github.com/axios/axios/pull/6271))
|
11
|
+
- fix: modify upgrade guide for 0.28.1's breaking change ([#6787](https://github.com/axios/axios/pull/6787))
|
12
|
+
- fix: backport allowAbsoluteUrls vulnerability fix to v0.x ([#6829](https://github.com/axios/axios/pull/6829))
|
13
|
+
- fix: add allowAbsoluteUrls type ([#6849](https://github.com/axios/axios/pull/6849))
|
14
|
+
|
15
|
+
## [0.29.0](https://github.com/axios/axios/compare/v0.28.1...v0.29.0) (2024-11-21)
|
16
|
+
|
17
|
+
## Release notes:
|
18
|
+
|
19
|
+
### Bug Fixes
|
20
|
+
|
21
|
+
- fix(backport): backport security fixes in commits #6167 and #6163 (#6402)
|
22
|
+
- fix: omit nulls in params (#6394)
|
23
|
+
- fix(backport): fix paramsSerializer function validation (#6361)
|
24
|
+
- fix: regular expression denial of service (ReDoS) (#6708)
|
25
|
+
|
26
|
+
## [0.28.1](https://github.com/axios/axios/compare/v0.28.0...v0.28.1) (2024-03-24)
|
27
|
+
|
28
|
+
## Release notes:
|
29
|
+
|
30
|
+
### Bug Fixes
|
31
|
+
|
32
|
+
- fix(backport): custom params serializer support (#6263)
|
33
|
+
- fix(backport): uncaught ReferenceError `req` is not defined (#6307)
|
34
|
+
|
35
|
+
## [0.28.0](https://github.com/axios/axios/compare/v0.27.2...v0.28.0) (2024-02-12)
|
36
|
+
|
37
|
+
## Release notes:
|
38
|
+
|
39
|
+
### Bug Fixes
|
40
|
+
|
41
|
+
- fix(security): fixed CVE-2023-45857 by backporting `withXSRFToken` option to v0.x ([#6091](https://github.com/axios/axios/pull/6091))
|
42
|
+
|
43
|
+
### Backports from v1.x:
|
44
|
+
|
45
|
+
- Allow null indexes on formSerializer and paramsSerializer v0.x ([#4961](https://github.com/axios/axios/pull/4961))
|
46
|
+
- Fixing content-type header repeated ([#4745](https://github.com/axios/axios/pull/4745))
|
47
|
+
- Fixed timeout error message for HTTP ([#4738](https://github.com/axios/axios/pull/4738))
|
48
|
+
- Added `axios.formToJSON` method ([#4735](https://github.com/axios/axios/pull/4735))
|
49
|
+
- URL params serializer ([#4734](https://github.com/axios/axios/pull/4734))
|
50
|
+
- Fixed toFormData Blob issue on node>v17 ([#4728](https://github.com/axios/axios/pull/4728))
|
51
|
+
- Adding types for progress event callbacks ([#4675](https://github.com/axios/axios/pull/4675))
|
52
|
+
- Fixed max body length defaults ([#4731](https://github.com/axios/axios/pull/4731))
|
53
|
+
- Added data URL support for node.js ([#4725](https://github.com/axios/axios/pull/4725))
|
54
|
+
- Added isCancel type assert ([#4293](https://github.com/axios/axios/pull/4293))
|
55
|
+
- Added the ability for the `url-encoded-form` serializer to respect the `formSerializer` config ([#4721](https://github.com/axios/axios/pull/4721))
|
56
|
+
- Add `string[]` to `AxiosRequestHeaders` type ([#4322](https://github.com/axios/axios/pull/4224))
|
57
|
+
- Allow type definition for axios instance methods ([#4224](https://github.com/axios/axios/pull/4224))
|
58
|
+
- Fixed `AxiosError` stack capturing; ([#4718](https://github.com/axios/axios/pull/4718))
|
59
|
+
- Fixed `AxiosError` status code type; ([#4717](https://github.com/axios/axios/pull/4717))
|
60
|
+
- Adding Canceler parameters config and request ([#4711](https://github.com/axios/axios/pull/4711))
|
61
|
+
- fix(types): allow to specify partial default headers for instance creation ([#4185](https://github.com/axios/axios/pull/4185))
|
62
|
+
- Added `blob` to the list of protocols supported by the browser ([#4678](https://github.com/axios/axios/pull/4678))
|
63
|
+
- Fixing Z_BUF_ERROR when no content ([#4701](https://github.com/axios/axios/pull/4701))
|
64
|
+
- Fixed race condition on immediate requests cancellation ([#4261](https://github.com/axios/axios/pull/4261))
|
65
|
+
- Added a clear() function to the request and response interceptors object so a user can ensure that all interceptors have been removed from an Axios instance ([#4248](https://github.com/axios/axios/pull/4248))
|
66
|
+
- Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill ([#4229](https://github.com/axios/axios/pull/4229))
|
67
|
+
- Fix TS definition for AxiosRequestTransformer ([#4201](https://github.com/axios/axios/pull/4201))
|
68
|
+
- Use type alias instead of interface for AxiosPromise ([#4505](https://github.com/axios/axios/pull/4505))
|
69
|
+
- Include request and config when creating a CanceledError instance ([#4659](https://github.com/axios/axios/pull/4659))
|
70
|
+
- Added generic TS types for the exposed toFormData helper ([#4668](https://github.com/axios/axios/pull/4668))
|
71
|
+
- Optimized the code that checks cancellation ([#4587](https://github.com/axios/axios/pull/4587))
|
72
|
+
- Replaced webpack with rollup ([#4596](https://github.com/axios/axios/pull/4596))
|
73
|
+
- Added stack trace to AxiosError ([#4624](https://github.com/axios/axios/pull/4624))
|
74
|
+
- Updated AxiosError.config to be optional in the type definition ([#4665](https://github.com/axios/axios/pull/4665))
|
75
|
+
- Removed incorrect argument for NetworkError constructor ([#4656](https://github.com/axios/axios/pull/4656))
|
76
|
+
|
77
|
+
## 0.27.2 (April 27, 2022)
|
78
|
+
|
79
|
+
Fixes and Functionality:
|
80
|
+
|
81
|
+
- Fixed FormData posting in browser environment by reverting #3785 ([#4640](https://github.com/axios/axios/pull/4640))
|
82
|
+
- Enhanced protocol parsing implementation ([#4639](https://github.com/axios/axios/pull/4639))
|
83
|
+
- Fixed bundle size
|
84
|
+
|
85
|
+
## 0.27.1 (April 26, 2022)
|
86
|
+
|
87
|
+
Fixes and Functionality:
|
88
|
+
|
89
|
+
- Removed import of url module in browser build due to huge size overhead and builds being broken ([#4594](https://github.com/axios/axios/pull/4594))
|
90
|
+
- Bumped follow-redirects to ^1.14.9 ([#4615](https://github.com/axios/axios/pull/4615))
|
91
|
+
|
92
|
+
## 0.27.0 (April 25, 2022)
|
93
|
+
|
94
|
+
Breaking changes:
|
95
|
+
|
96
|
+
- New toFormData helper function that allows the implementor to pass an object and allow axios to convert it to FormData ([#3757](https://github.com/axios/axios/pull/3757))
|
97
|
+
- Removed functionality that removed the the `Content-Type` request header when passing FormData ([#3785](https://github.com/axios/axios/pull/3785))
|
98
|
+
- **(\*)** Refactored error handling implementing AxiosError as a constructor, this is a large change to error handling on the whole ([#3645](https://github.com/axios/axios/pull/3645))
|
99
|
+
- Separated responsibility for FormData instantiation between `transformRequest` and `toFormData` ([#4470](https://github.com/axios/axios/pull/4470))
|
100
|
+
- **(\*)** Improved and fixed multiple issues with FormData support ([#4448](https://github.com/axios/axios/pull/4448))
|
101
|
+
|
102
|
+
QOL and DevX improvements:
|
103
|
+
|
104
|
+
- Added a multipart/form-data testing playground allowing contributors to debug changes easily ([#4465](https://github.com/axios/axios/pull/4465))
|
105
|
+
|
106
|
+
Fixes and Functionality:
|
107
|
+
|
108
|
+
- Refactored project file structure to avoid circular imports ([#4515](https://github.com/axios/axios/pull/4516)) & ([#4516](https://github.com/axios/axios/pull/4516))
|
109
|
+
- Bumped follow-redirects to ^1.14.9 ([#4562](https://github.com/axios/axios/pull/4562))
|
110
|
+
|
111
|
+
Internal and Tests:
|
112
|
+
|
113
|
+
- Updated dev dependencies to latest version
|
114
|
+
|
115
|
+
Documentation:
|
116
|
+
|
117
|
+
- Fixing incorrect link in changelog ([#4551](https://github.com/axios/axios/pull/4551))
|
118
|
+
|
119
|
+
Notes:
|
120
|
+
|
121
|
+
- **(\*)** Please read these pull requests before updating, these changes are very impactful and far reaching.
|
122
|
+
|
123
|
+
## 0.26.1 (March 9, 2022)
|
124
|
+
|
125
|
+
Fixes and Functionality:
|
126
|
+
|
127
|
+
- Refactored project file structure to avoid circular imports ([#4220](https://github.com/axios/axios/pull/4220))
|
128
|
+
|
129
|
+
## 0.26.0 (February 13, 2022)
|
130
|
+
|
131
|
+
Fixes and Functionality:
|
132
|
+
|
133
|
+
- Fixed The timeoutErrorMessage property in config not work with Node.js ([#3581](https://github.com/axios/axios/pull/3581))
|
134
|
+
- Added errors to be displayed when the query parsing process itself fails ([#3961](https://github.com/axios/axios/pull/3961))
|
135
|
+
- Fix/remove url required ([#4426](https://github.com/axios/axios/pull/4426))
|
136
|
+
- Update follow-redirects dependency due to Vulnerability ([#4462](https://github.com/axios/axios/pull/4462))
|
137
|
+
- Bump karma from 6.3.11 to 6.3.14 ([#4461](https://github.com/axios/axios/pull/4461))
|
138
|
+
- Bump follow-redirects from 1.14.7 to 1.14.8 ([#4473](https://github.com/axios/axios/pull/4473))
|
139
|
+
|
140
|
+
## 0.25.0 (January 18, 2022)
|
141
|
+
|
142
|
+
Breaking changes:
|
143
|
+
|
144
|
+
- Fixing maxBodyLength enforcement ([#3786](https://github.com/axios/axios/pull/3786))
|
145
|
+
- Don't rely on strict mode behavior for arguments ([#3470](https://github.com/axios/axios/pull/3470))
|
146
|
+
- Adding error handling when missing url ([#3791](https://github.com/axios/axios/pull/3791))
|
147
|
+
- Update isAbsoluteURL.js removing escaping of non-special characters ([#3809](https://github.com/axios/axios/pull/3809))
|
148
|
+
- Use native Array.isArray() in utils.js ([#3836](https://github.com/axios/axios/pull/3836))
|
149
|
+
- Adding error handling inside stream end callback ([#3967](https://github.com/axios/axios/pull/3967))
|
150
|
+
|
151
|
+
Fixes and Functionality:
|
152
|
+
|
153
|
+
- Added aborted even handler ([#3916](https://github.com/axios/axios/pull/3916))
|
154
|
+
- Header types expanded allowing `boolean` and `number` types ([#4144](https://github.com/axios/axios/pull/4144))
|
155
|
+
- Fix cancel signature allowing cancel message to be `undefined` ([#3153](https://github.com/axios/axios/pull/3153))
|
156
|
+
- Updated type checks to be formulated better ([#3342](https://github.com/axios/axios/pull/3342))
|
157
|
+
- Avoid unnecessary buffer allocations ([#3321](https://github.com/axios/axios/pull/3321))
|
158
|
+
- Adding a socket handler to keep TCP connection live when processing long living requests ([#3422](https://github.com/axios/axios/pull/3422))
|
159
|
+
- Added toFormData helper function ([#3757](https://github.com/axios/axios/pull/3757))
|
160
|
+
- Adding responseEncoding prop type in AxiosRequestConfig ([#3918](https://github.com/axios/axios/pull/3918))
|
161
|
+
|
162
|
+
Internal and Tests:
|
163
|
+
|
164
|
+
- Adding axios-test-instance to ecosystem ([#3496](https://github.com/axios/axios/pull/3496))
|
165
|
+
- Optimize the logic of isAxiosError ([#3546](https://github.com/axios/axios/pull/3546))
|
166
|
+
- Add tests and documentation to display how multiple inceptors work ([#3564](https://github.com/axios/axios/pull/3564))
|
167
|
+
- Updating follow-redirects to version 1.14.7 ([#4379](https://github.com/axios/axios/pull/4379))
|
168
|
+
|
169
|
+
Documentation:
|
170
|
+
|
171
|
+
- Fixing changelog to show correct pull request ([#4219](https://github.com/axios/axios/pull/4219))
|
172
|
+
- Update upgrade guide for https proxy setting ([#3604](https://github.com/axios/axios/pull/3604))
|
173
|
+
|
174
|
+
Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
|
175
|
+
|
176
|
+
- [Jay](mailto:jasonsaayman@gmail.com)
|
177
|
+
- [Rijk van Zanten](https://github.com/rijkvanzanten)
|
178
|
+
- [Kohta Ito](https://github.com/koh110)
|
179
|
+
- [Brandon Faulkner](https://github.com/bfaulk96)
|
180
|
+
- [Stefano Magni](https://github.com/NoriSte)
|
181
|
+
- [enofan](https://github.com/fanguangyi)
|
182
|
+
- [Andrey Pechkurov](https://github.com/puzpuzpuz)
|
183
|
+
- [Doowonee](https://github.com/doowonee)
|
184
|
+
- [Emil Broman](https://github.com/emilbroman-eqt)
|
185
|
+
- [Remco Haszing](https://github.com/remcohaszing)
|
186
|
+
- [Black-Hole](https://github.com/BlackHole1)
|
187
|
+
- [Wolfram Kriesing](https://github.com/wolframkriesing)
|
188
|
+
- [Andrew Ovens](https://github.com/repl-andrew-ovens)
|
189
|
+
- [Paulo Renato](https://github.com/PauloRSF)
|
190
|
+
- [Ben Carp](https://github.com/carpben)
|
191
|
+
- [Hirotaka Tagawa](https://github.com/wafuwafu13)
|
192
|
+
- [狼族小狈](https://github.com/lzxb)
|
193
|
+
- [C. Lewis](https://github.com/ctjlewis)
|
194
|
+
- [Felipe Carvalho](https://github.com/FCarvalhoVII)
|
195
|
+
- [Daniel](https://github.com/djs113)
|
196
|
+
- [Gustavo Sales](https://github.com/gussalesdev)
|
197
|
+
|
198
|
+
## 0.24.0 (October 25, 2021)
|
199
|
+
|
200
|
+
Breaking changes:
|
201
|
+
|
202
|
+
- Revert: change type of AxiosResponse to any, please read lengthy discussion here: ([#4141](https://github.com/axios/axios/issues/4141)) pull request: ([#4186](https://github.com/axios/axios/pull/4186))
|
203
|
+
|
204
|
+
Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
|
205
|
+
|
206
|
+
- [Jay](mailto:jasonsaayman@gmail.com)
|
207
|
+
- [Rodry](https://github.com/ImRodry)
|
208
|
+
- [Remco Haszing](https://github.com/remcohaszing)
|
209
|
+
- [Isaiah Thomason](https://github.com/ITenthusiasm)
|
210
|
+
|
211
|
+
## 0.23.0 (October 12, 2021)
|
212
|
+
|
213
|
+
Breaking changes:
|
214
|
+
|
215
|
+
- Distinguish request and response data types ([#4116](https://github.com/axios/axios/pull/4116))
|
216
|
+
- Change never type to unknown ([#4142](https://github.com/axios/axios/pull/4142))
|
217
|
+
- Fixed TransitionalOptions typings ([#4147](https://github.com/axios/axios/pull/4147))
|
218
|
+
|
219
|
+
Fixes and Functionality:
|
220
|
+
|
221
|
+
- Adding globalObject: 'this' to webpack config ([#3176](https://github.com/axios/axios/pull/3176))
|
222
|
+
- Adding insecureHTTPParser type to AxiosRequestConfig ([#4066](https://github.com/axios/axios/pull/4066))
|
223
|
+
- Fix missing semicolon in typings ([#4115](https://github.com/axios/axios/pull/4115))
|
224
|
+
- Fix response headers types ([#4136](https://github.com/axios/axios/pull/4136))
|
225
|
+
|
226
|
+
Internal and Tests:
|
227
|
+
|
228
|
+
- Improve timeout error when timeout is browser default ([#3209](https://github.com/axios/axios/pull/3209))
|
229
|
+
- Fix node version on CI ([#4069](https://github.com/axios/axios/pull/4069))
|
230
|
+
- Added testing to TypeScript portion of project ([#4140](https://github.com/axios/axios/pull/4140))
|
231
|
+
|
232
|
+
Documentation:
|
233
|
+
|
234
|
+
- Rename Angular to AngularJS ([#4114](https://github.com/axios/axios/pull/4114))
|
235
|
+
|
236
|
+
Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
|
237
|
+
|
238
|
+
- [Jay](mailto:jasonsaayman@gmail.com)
|
239
|
+
- [Evan-Finkelstein](https://github.com/Evan-Finkelstein)
|
240
|
+
- [Paweł Szymański](https://github.com/Jezorko)
|
241
|
+
- [Dobes Vandermeer](https://github.com/dobesv)
|
242
|
+
- [Claas Augner](https://github.com/caugner)
|
243
|
+
- [Remco Haszing](https://github.com/remcohaszing)
|
244
|
+
- [Evgeniy](https://github.com/egmen)
|
245
|
+
- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
246
|
+
|
247
|
+
## 0.22.0 (October 01, 2021)
|
4
248
|
|
5
249
|
Fixes and Functionality:
|
250
|
+
|
251
|
+
- Caseless header comparing in HTTP adapter ([#2880](https://github.com/axios/axios/pull/2880))
|
252
|
+
- Avoid package.json import fixing issues and warnings related to this ([#4041](https://github.com/axios/axios/pull/4041)), ([#4065](https://github.com/axios/axios/pull/4065))
|
253
|
+
- Fixed cancelToken leakage and added AbortController support ([#3305](https://github.com/axios/axios/pull/3305))
|
254
|
+
- Updating CI to run on release branches
|
255
|
+
- Bump follow redirects version
|
256
|
+
- Fixed default transitional config for custom Axios instance; ([#4052](https://github.com/axios/axios/pull/4052))
|
257
|
+
|
258
|
+
Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
|
259
|
+
|
260
|
+
- [Jay](mailto:jasonsaayman@gmail.com)
|
261
|
+
- [Matt R. Wilson](https://github.com/mastermatt)
|
262
|
+
- [Xianming Zhong](https://github.com/chinesedfan)
|
263
|
+
- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
264
|
+
|
265
|
+
## 0.21.4 (September 6, 2021)
|
266
|
+
|
267
|
+
Fixes and Functionality:
|
268
|
+
|
6
269
|
- Fixing JSON transform when data is stringified. Providing backward compatibility and complying to the JSON RFC standard ([#4020](https://github.com/axios/axios/pull/4020))
|
7
270
|
|
8
271
|
Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
|
@@ -12,9 +275,10 @@ Huge thanks to everyone who contributed to this release via code (authors listed
|
|
12
275
|
- [Yusuke Kawasaki](https://github.com/kawanet)
|
13
276
|
- [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
14
277
|
|
15
|
-
|
278
|
+
## 0.21.3 (September 4, 2021)
|
16
279
|
|
17
280
|
Fixes and Functionality:
|
281
|
+
|
18
282
|
- Fixing response interceptor not being called when request interceptor is attached ([#4013](https://github.com/axios/axios/pull/4013))
|
19
283
|
|
20
284
|
Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
|
@@ -22,7 +286,7 @@ Huge thanks to everyone who contributed to this release via code (authors listed
|
|
22
286
|
- [Jay](mailto:jasonsaayman@gmail.com)
|
23
287
|
- [Julian Hollmann](https://github.com/nerdbeere)
|
24
288
|
|
25
|
-
|
289
|
+
## 0.21.2 (September 4, 2021)
|
26
290
|
|
27
291
|
Fixes and Functionality:
|
28
292
|
|
@@ -38,9 +302,9 @@ Fixes and Functionality:
|
|
38
302
|
|
39
303
|
Internal and Tests:
|
40
304
|
|
41
|
-
- Updating build dev
|
305
|
+
- Updating build dev dependencies ([#3401](https://github.com/axios/axios/pull/3401))
|
42
306
|
- Fixing builds running on Travis CI ([#3538](https://github.com/axios/axios/pull/3538))
|
43
|
-
- Updating follow
|
307
|
+
- Updating follow redirect version ([#3694](https://github.com/axios/axios/pull/3694), [#3771](https://github.com/axios/axios/pull/3771))
|
44
308
|
- Updating karma sauce launcher to fix failing sauce tests ([#3712](https://github.com/axios/axios/pull/3712), [#3717](https://github.com/axios/axios/pull/3717))
|
45
309
|
- Updating content-type header for application/json to not contain charset field, according do RFC 8259 ([#2154](https://github.com/axios/axios/pull/2154))
|
46
310
|
- Fixing tests by bumping karma-sauce-launcher version ([#3813](https://github.com/axios/axios/pull/3813))
|
@@ -50,9 +314,9 @@ Documentation:
|
|
50
314
|
|
51
315
|
- Updating documentation around the use of `AUTH_TOKEN` with multiple domain endpoints ([#3539](https://github.com/axios/axios/pull/3539))
|
52
316
|
- Remove duplication of item in changelog ([#3523](https://github.com/axios/axios/pull/3523))
|
53
|
-
- Fixing
|
317
|
+
- Fixing grammatical errors ([#2642](https://github.com/axios/axios/pull/2642))
|
54
318
|
- Fixing spelling error ([#3567](https://github.com/axios/axios/pull/3567))
|
55
|
-
- Moving gitpod
|
319
|
+
- Moving gitpod mention ([#2637](https://github.com/axios/axios/pull/2637))
|
56
320
|
- Adding new axios documentation website link ([#3681](https://github.com/axios/axios/pull/3681), [#3707](https://github.com/axios/axios/pull/3707))
|
57
321
|
- Updating documentation around dispatching requests ([#3772](https://github.com/axios/axios/pull/3772))
|
58
322
|
- Adding documentation for the type guard isAxiosError ([#3767](https://github.com/axios/axios/pull/3767))
|
@@ -91,7 +355,7 @@ Huge thanks to everyone who contributed to this release via code (authors listed
|
|
91
355
|
- [Matt Czapliński](https://github.com/MattCCC)
|
92
356
|
- [Ziding Zhang](https://github.com/zidingz)
|
93
357
|
|
94
|
-
|
358
|
+
## 0.21.1 (December 21, 2020)
|
95
359
|
|
96
360
|
Fixes and Functionality:
|
97
361
|
|
@@ -114,7 +378,7 @@ Huge thanks to everyone who contributed to this release via code (authors listed
|
|
114
378
|
- Remco Haszing <remcohaszing@gmail.com>
|
115
379
|
- Xianming Zhong <chinesedfan@qq.com>
|
116
380
|
|
117
|
-
|
381
|
+
## 0.21.0 (October 23, 2020)
|
118
382
|
|
119
383
|
Fixes and Functionality:
|
120
384
|
|
@@ -130,7 +394,7 @@ Internal and Tests:
|
|
130
394
|
|
131
395
|
Documentation:
|
132
396
|
|
133
|
-
- Fixing simple typo,
|
397
|
+
- Fixing simple typo, existent -> existent ([#3252](https://github.com/axios/axios/pull/3252))
|
134
398
|
- Fixing typos ([#3309](https://github.com/axios/axios/pull/3309))
|
135
399
|
|
136
400
|
Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
|
@@ -144,11 +408,11 @@ Huge thanks to everyone who contributed to this release via code (authors listed
|
|
144
408
|
- Tim Gates <tim.gates@iress.com>
|
145
409
|
- Xianming Zhong <chinesedfan@qq.com>
|
146
410
|
|
147
|
-
|
411
|
+
## 0.20.0 (August 20, 2020)
|
148
412
|
|
149
413
|
Release of 0.20.0-pre as a full release with no other changes.
|
150
414
|
|
151
|
-
|
415
|
+
## 0.20.0-pre (July 15, 2020)
|
152
416
|
|
153
417
|
Fixes and Functionality:
|
154
418
|
|
@@ -363,11 +627,11 @@ below) or via reviews and triaging on GitHub:
|
|
363
627
|
- Yasu Flores <carlosyasu91@gmail.com>
|
364
628
|
- Zac Delventhal <delventhalz@gmail.com>
|
365
629
|
|
366
|
-
|
630
|
+
## 0.19.2 (Jan 20, 2020)
|
367
631
|
|
368
632
|
- Remove unnecessary XSS check ([#2679](https://github.com/axios/axios/pull/2679)) (see ([#2646](https://github.com/axios/axios/issues/2646)) for discussion)
|
369
633
|
|
370
|
-
|
634
|
+
## 0.19.1 (Jan 7, 2020)
|
371
635
|
|
372
636
|
Fixes and Functionality:
|
373
637
|
|
@@ -423,7 +687,7 @@ Documentation:
|
|
423
687
|
- Fix grammar in README.md ([#2271](https://github.com/axios/axios/pull/2271))
|
424
688
|
- Doc fixes, minor examples cleanup ([#2198](https://github.com/axios/axios/pull/2198))
|
425
689
|
|
426
|
-
|
690
|
+
## 0.19.0 (May 30, 2019)
|
427
691
|
|
428
692
|
Fixes and Functionality:
|
429
693
|
|
@@ -462,11 +726,11 @@ Documentation:
|
|
462
726
|
- Add react-hooks-axios to Libraries section of ECOSYSTEM.md ([#1925](https://github.com/axios/axios/pull/1925)) - Cody Chan
|
463
727
|
- Clarify in README that default timeout is 0 (no timeout) ([#1750](https://github.com/axios/axios/pull/1750)) - Ben Standefer
|
464
728
|
|
465
|
-
|
729
|
+
## 0.19.0-beta.1 (Aug 9, 2018)
|
466
730
|
|
467
731
|
**NOTE:** This is a beta version of this release. There may be functionality that is broken in
|
468
732
|
certain browsers, though we suspect that builds are hanging and not erroring. See
|
469
|
-
https://saucelabs.com/u/axios for the most up-to-date information.
|
733
|
+
<https://saucelabs.com/u/axios> for the most up-to-date information.
|
470
734
|
|
471
735
|
New Functionality:
|
472
736
|
|
@@ -531,7 +795,7 @@ below) or via reviews and triaging on GitHub:
|
|
531
795
|
- Tim Johns <timjohns@yahoo.com>
|
532
796
|
- Yutaro Miyazaki <yutaro@studio-rubbish.com>
|
533
797
|
|
534
|
-
|
798
|
+
## 0.18.0 (Feb 19, 2018)
|
535
799
|
|
536
800
|
- Adding support for UNIX Sockets when running with Node.js ([#1070](https://github.com/axios/axios/pull/1070))
|
537
801
|
- Fixing typings ([#1177](https://github.com/axios/axios/pull/1177)):
|
@@ -541,32 +805,32 @@ below) or via reviews and triaging on GitHub:
|
|
541
805
|
- Allowing maxContentLength to pass through to redirected calls as maxBodyLength in follow-redirects config ([#1287](https://github.com/axios/axios/pull/1287))
|
542
806
|
- Fixing configuration when using an instance - method can now be set ([#1342](https://github.com/axios/axios/pull/1342))
|
543
807
|
|
544
|
-
|
808
|
+
## 0.17.1 (Nov 11, 2017)
|
545
809
|
|
546
810
|
- Fixing issue with web workers ([#1160](https://github.com/axios/axios/pull/1160))
|
547
811
|
- Allowing overriding transport ([#1080](https://github.com/axios/axios/pull/1080))
|
548
812
|
- Updating TypeScript typings ([#1165](https://github.com/axios/axios/pull/1165), [#1125](https://github.com/axios/axios/pull/1125), [#1131](https://github.com/axios/axios/pull/1131))
|
549
813
|
|
550
|
-
|
814
|
+
## 0.17.0 (Oct 21, 2017)
|
551
815
|
|
552
816
|
- **BREAKING** Fixing issue with `baseURL` and interceptors ([#950](https://github.com/axios/axios/pull/950))
|
553
817
|
- **BREAKING** Improving handing of duplicate headers ([#874](https://github.com/axios/axios/pull/874))
|
554
818
|
- Adding support for disabling proxies ([#691](https://github.com/axios/axios/pull/691))
|
555
819
|
- Updating TypeScript typings with generic type parameters ([#1061](https://github.com/axios/axios/pull/1061))
|
556
820
|
|
557
|
-
|
821
|
+
## 0.16.2 (Jun 3, 2017)
|
558
822
|
|
559
823
|
- Fixing issue with including `buffer` in bundle ([#887](https://github.com/axios/axios/pull/887))
|
560
824
|
- Including underlying request in errors ([#830](https://github.com/axios/axios/pull/830))
|
561
825
|
- Convert `method` to lowercase ([#930](https://github.com/axios/axios/pull/930))
|
562
826
|
|
563
|
-
|
827
|
+
## 0.16.1 (Apr 8, 2017)
|
564
828
|
|
565
829
|
- Improving HTTP adapter to return last request in case of redirects ([#828](https://github.com/axios/axios/pull/828))
|
566
830
|
- Updating `follow-redirects` dependency ([#829](https://github.com/axios/axios/pull/829))
|
567
831
|
- Adding support for passing `Buffer` in node ([#773](https://github.com/axios/axios/pull/773))
|
568
832
|
|
569
|
-
|
833
|
+
## 0.16.0 (Mar 31, 2017)
|
570
834
|
|
571
835
|
- **BREAKING** Removing `Promise` from axios typings in favor of built-in type declarations ([#480](https://github.com/axios/axios/issues/480))
|
572
836
|
- Adding `options` shortcut method ([#461](https://github.com/axios/axios/pull/461))
|
@@ -575,7 +839,7 @@ below) or via reviews and triaging on GitHub:
|
|
575
839
|
- Fixing `combineURLs` to support empty `relativeURL` ([#581](https://github.com/axios/axios/pull/581))
|
576
840
|
- Removing `PROTECTION_PREFIX` support ([#561](https://github.com/axios/axios/pull/561))
|
577
841
|
|
578
|
-
|
842
|
+
## 0.15.3 (Nov 27, 2016)
|
579
843
|
|
580
844
|
- Fixing issue with custom instances and global defaults ([#443](https://github.com/axios/axios/issues/443))
|
581
845
|
- Renaming `axios.d.ts` to `index.d.ts` ([#519](https://github.com/axios/axios/issues/519))
|
@@ -585,22 +849,22 @@ below) or via reviews and triaging on GitHub:
|
|
585
849
|
- Improving HTTP adapter to use `http` protocol by default ([#493](https://github.com/axios/axios/pull/493))
|
586
850
|
- Fixing proxy issues ([#491](https://github.com/axios/axios/pull/491))
|
587
851
|
|
588
|
-
|
852
|
+
## 0.15.2 (Oct 17, 2016)
|
589
853
|
|
590
854
|
- Fixing issue with calling `cancel` after response has been received ([#482](https://github.com/axios/axios/issues/482))
|
591
855
|
|
592
|
-
|
856
|
+
## 0.15.1 (Oct 14, 2016)
|
593
857
|
|
594
858
|
- Fixing issue with UMD ([#485](https://github.com/axios/axios/issues/485))
|
595
859
|
|
596
|
-
|
860
|
+
## 0.15.0 (Oct 10, 2016)
|
597
861
|
|
598
862
|
- Adding cancellation support ([#452](https://github.com/axios/axios/pull/452))
|
599
863
|
- Moving default adapter to global defaults ([#437](https://github.com/axios/axios/pull/437))
|
600
864
|
- Fixing issue with `file` URI scheme ([#440](https://github.com/axios/axios/pull/440))
|
601
865
|
- Fixing issue with `params` objects that have no prototype ([#445](https://github.com/axios/axios/pull/445))
|
602
866
|
|
603
|
-
|
867
|
+
## 0.14.0 (Aug 27, 2016)
|
604
868
|
|
605
869
|
- **BREAKING** Updating TypeScript definitions ([#419](https://github.com/axios/axios/pull/419))
|
606
870
|
- **BREAKING** Replacing `agent` option with `httpAgent` and `httpsAgent` ([#387](https://github.com/axios/axios/pull/387))
|
@@ -609,11 +873,11 @@ below) or via reviews and triaging on GitHub:
|
|
609
873
|
- Fixing issue with `auth` config option and `Authorization` header ([#397](https://github.com/axios/axios/pull/397))
|
610
874
|
- Don't set XSRF header if `xsrfCookieName` is `null` ([#406](https://github.com/axios/axios/pull/406))
|
611
875
|
|
612
|
-
|
876
|
+
## 0.13.1 (Jul 16, 2016)
|
613
877
|
|
614
878
|
- Fixing issue with response data not being transformed on error ([#378](https://github.com/axios/axios/issues/378))
|
615
879
|
|
616
|
-
|
880
|
+
## 0.13.0 (Jul 13, 2016)
|
617
881
|
|
618
882
|
- **BREAKING** Improved error handling ([#345](https://github.com/axios/axios/pull/345))
|
619
883
|
- **BREAKING** Response transformer now invoked in dispatcher not adapter ([10eb238](https://github.com/axios/axios/commit/10eb23865101f9347570552c04e9d6211376e25e))
|
@@ -623,24 +887,24 @@ below) or via reviews and triaging on GitHub:
|
|
623
887
|
- Fixing custom instance defaults ([#341](https://github.com/axios/axios/issues/341))
|
624
888
|
- Fixing instances created from `axios.create` to have same API as default axios ([#217](https://github.com/axios/axios/issues/217))
|
625
889
|
|
626
|
-
|
890
|
+
## 0.12.0 (May 31, 2016)
|
627
891
|
|
628
892
|
- Adding support for `URLSearchParams` ([#317](https://github.com/axios/axios/pull/317))
|
629
893
|
- Adding `maxRedirects` option ([#307](https://github.com/axios/axios/pull/307))
|
630
894
|
|
631
|
-
|
895
|
+
## 0.11.1 (May 17, 2016)
|
632
896
|
|
633
897
|
- Fixing IE CORS support ([#313](https://github.com/axios/axios/pull/313))
|
634
898
|
- Fixing detection of `FormData` ([#325](https://github.com/axios/axios/pull/325))
|
635
899
|
- Adding `Axios` class to exports ([#321](https://github.com/axios/axios/pull/321))
|
636
900
|
|
637
|
-
|
901
|
+
## 0.11.0 (Apr 26, 2016)
|
638
902
|
|
639
903
|
- Adding support for Stream with HTTP adapter ([#296](https://github.com/axios/axios/pull/296))
|
640
904
|
- Adding support for custom HTTP status code error ranges ([#308](https://github.com/axios/axios/pull/308))
|
641
905
|
- Fixing issue with ArrayBuffer ([#299](https://github.com/axios/axios/pull/299))
|
642
906
|
|
643
|
-
|
907
|
+
## 0.10.0 (Apr 20, 2016)
|
644
908
|
|
645
909
|
- Fixing issue with some requests sending `undefined` instead of `null` ([#250](https://github.com/axios/axios/pull/250))
|
646
910
|
- Fixing basic auth for HTTP adapter ([#252](https://github.com/axios/axios/pull/252))
|
@@ -651,14 +915,14 @@ below) or via reviews and triaging on GitHub:
|
|
651
915
|
- Fixing XHR support for WebWorker environment ([#279](https://github.com/axios/axios/pull/279))
|
652
916
|
- Adding request instance to response ([#200](https://github.com/axios/axios/pull/200))
|
653
917
|
|
654
|
-
|
918
|
+
## 0.9.1 (Jan 24, 2016)
|
655
919
|
|
656
920
|
- Improving handling of request timeout in node ([#124](https://github.com/axios/axios/issues/124))
|
657
921
|
- Fixing network errors not rejecting ([#205](https://github.com/axios/axios/pull/205))
|
658
922
|
- Fixing issue with IE rejecting on HTTP 204 ([#201](https://github.com/axios/axios/issues/201))
|
659
923
|
- Fixing host/port when following redirects ([#198](https://github.com/axios/axios/pull/198))
|
660
924
|
|
661
|
-
|
925
|
+
## 0.9.0 (Jan 18, 2016)
|
662
926
|
|
663
927
|
- Adding support for custom adapters
|
664
928
|
- Fixing Content-Type header being removed when data is false ([#195](https://github.com/axios/axios/pull/195))
|
@@ -666,13 +930,13 @@ below) or via reviews and triaging on GitHub:
|
|
666
930
|
- Improving config merging and order of precedence ([#183](https://github.com/axios/axios/pull/183))
|
667
931
|
- Fixing XDomainRequest support for only <= IE9 ([#182](https://github.com/axios/axios/pull/182))
|
668
932
|
|
669
|
-
|
933
|
+
## 0.8.1 (Dec 14, 2015)
|
670
934
|
|
671
935
|
- Adding support for passing XSRF token for cross domain requests when using `withCredentials` ([#168](https://github.com/axios/axios/pull/168))
|
672
936
|
- Fixing error with format of basic auth header ([#178](https://github.com/axios/axios/pull/173))
|
673
937
|
- Fixing error with JSON payloads throwing `InvalidStateError` in some cases ([#174](https://github.com/axios/axios/pull/174))
|
674
938
|
|
675
|
-
|
939
|
+
## 0.8.0 (Dec 11, 2015)
|
676
940
|
|
677
941
|
- Adding support for creating instances of axios ([#123](https://github.com/axios/axios/pull/123))
|
678
942
|
- Fixing http adapter to use `Buffer` instead of `String` in case of `responseType === 'arraybuffer'` ([#128](https://github.com/axios/axios/pull/128))
|
@@ -684,7 +948,7 @@ below) or via reviews and triaging on GitHub:
|
|
684
948
|
- Adding support for HTTP basic auth via Authorization header ([#167](https://github.com/axios/axios/pull/167))
|
685
949
|
- Adding support for baseURL option ([#160](https://github.com/axios/axios/pull/160))
|
686
950
|
|
687
|
-
|
951
|
+
## 0.7.0 (Sep 29, 2015)
|
688
952
|
|
689
953
|
- Fixing issue with minified bundle in IE8 ([#87](https://github.com/axios/axios/pull/87))
|
690
954
|
- Adding support for passing agent in node ([#102](https://github.com/axios/axios/pull/102))
|
@@ -694,7 +958,7 @@ below) or via reviews and triaging on GitHub:
|
|
694
958
|
- Adding support for use in web workers, and react-native ([#70](https://github.com/axios/axios/issue/70)), ([#98](https://github.com/axios/axios/pull/98))
|
695
959
|
- Adding support for fetch like API `axios(url[, config])` ([#116](https://github.com/axios/axios/issues/116))
|
696
960
|
|
697
|
-
|
961
|
+
## 0.6.0 (Sep 21, 2015)
|
698
962
|
|
699
963
|
- Removing deprecated success/error aliases
|
700
964
|
- Fixing issue with array params not being properly encoded ([#49](https://github.com/axios/axios/pull/49))
|
@@ -705,40 +969,40 @@ below) or via reviews and triaging on GitHub:
|
|
705
969
|
- Fixing issue with IE8 ([#85](https://github.com/axios/axios/pull/85))
|
706
970
|
- Converting build to UMD
|
707
971
|
|
708
|
-
|
972
|
+
## 0.5.4 (Apr 08, 2015)
|
709
973
|
|
710
974
|
- Fixing issue with FormData not being sent ([#53](https://github.com/axios/axios/issues/53))
|
711
975
|
|
712
|
-
|
976
|
+
## 0.5.3 (Apr 07, 2015)
|
713
977
|
|
714
978
|
- Using JSON.parse unconditionally when transforming response string ([#55](https://github.com/axios/axios/issues/55))
|
715
979
|
|
716
|
-
|
980
|
+
## 0.5.2 (Mar 13, 2015)
|
717
981
|
|
718
982
|
- Adding support for `statusText` in response ([#46](https://github.com/axios/axios/issues/46))
|
719
983
|
|
720
|
-
|
984
|
+
## 0.5.1 (Mar 10, 2015)
|
721
985
|
|
722
986
|
- Fixing issue using strict mode ([#45](https://github.com/axios/axios/issues/45))
|
723
987
|
- Fixing issue with standalone build ([#47](https://github.com/axios/axios/issues/47))
|
724
988
|
|
725
|
-
|
989
|
+
## 0.5.0 (Jan 23, 2015)
|
726
990
|
|
727
991
|
- Adding support for intercepetors ([#14](https://github.com/axios/axios/issues/14))
|
728
992
|
- Updating es6-promise dependency
|
729
993
|
|
730
|
-
|
994
|
+
## 0.4.2 (Dec 10, 2014)
|
731
995
|
|
732
996
|
- Fixing issue with `Content-Type` when using `FormData` ([#22](https://github.com/axios/axios/issues/22))
|
733
997
|
- Adding support for TypeScript ([#25](https://github.com/axios/axios/issues/25))
|
734
998
|
- Fixing issue with standalone build ([#29](https://github.com/axios/axios/issues/29))
|
735
999
|
- Fixing issue with verbs needing to be capitalized in some browsers ([#30](https://github.com/axios/axios/issues/30))
|
736
1000
|
|
737
|
-
|
1001
|
+
## 0.4.1 (Oct 15, 2014)
|
738
1002
|
|
739
1003
|
- Adding error handling to request for node.js ([#18](https://github.com/axios/axios/issues/18))
|
740
1004
|
|
741
|
-
|
1005
|
+
## 0.4.0 (Oct 03, 2014)
|
742
1006
|
|
743
1007
|
- Adding support for `ArrayBuffer` and `ArrayBufferView` ([#10](https://github.com/axios/axios/issues/10))
|
744
1008
|
- Adding support for utf-8 for node.js ([#13](https://github.com/axios/axios/issues/13))
|
@@ -747,29 +1011,29 @@ below) or via reviews and triaging on GitHub:
|
|
747
1011
|
- Adding standalone build without bundled es6-promise ([#11](https://github.com/axios/axios/issues/11))
|
748
1012
|
- Deprecating `success`/`error` in favor of `then`/`catch`
|
749
1013
|
|
750
|
-
|
1014
|
+
## 0.3.1 (Sep 16, 2014)
|
751
1015
|
|
752
1016
|
- Fixing missing post body when using node.js ([#3](https://github.com/axios/axios/issues/3))
|
753
1017
|
|
754
|
-
|
1018
|
+
## 0.3.0 (Sep 16, 2014)
|
755
1019
|
|
756
1020
|
- Fixing `success` and `error` to properly receive response data as individual arguments ([#8](https://github.com/axios/axios/issues/8))
|
757
1021
|
- Updating `then` and `catch` to receive response data as a single object ([#6](https://github.com/axios/axios/issues/6))
|
758
1022
|
- Fixing issue with `all` not working ([#7](https://github.com/axios/axios/issues/7))
|
759
1023
|
|
760
|
-
|
1024
|
+
## 0.2.2 (Sep 14, 2014)
|
761
1025
|
|
762
1026
|
- Fixing bundling with browserify ([#4](https://github.com/axios/axios/issues/4))
|
763
1027
|
|
764
|
-
|
1028
|
+
## 0.2.1 (Sep 12, 2014)
|
765
1029
|
|
766
1030
|
- Fixing build problem causing ridiculous file sizes
|
767
1031
|
|
768
|
-
|
1032
|
+
## 0.2.0 (Sep 12, 2014)
|
769
1033
|
|
770
1034
|
- Adding support for `all` and `spread`
|
771
1035
|
- Adding support for node.js ([#1](https://github.com/axios/axios/issues/1))
|
772
1036
|
|
773
|
-
|
1037
|
+
## 0.1.0 (Aug 29, 2014)
|
774
1038
|
|
775
1039
|
- Initial release
|