1 | # Changelog
|
2 |
|
3 | ## [1.2.0] - 2022-11-10
|
4 |
|
5 | ### Changed
|
6 |
|
7 | - changed: refactored module exports [#5162](https://github.com/axios/axios/pull/5162)
|
8 | - change: re-added support for loading Axios with require('axios').default [#5225](https://github.com/axios/axios/pull/5225)
|
9 |
|
10 | ### Fixed
|
11 |
|
12 | - fix: improve AxiosHeaders class [#5224](https://github.com/axios/axios/pull/5224)
|
13 | - fix: TypeScript type definitions for commonjs [#5196](https://github.com/axios/axios/pull/5196)
|
14 | - fix: type definition of use method on AxiosInterceptorManager to match the the README [#5071](https://github.com/axios/axios/pull/5071)
|
15 | - fix: __dirname is not defined in the sandbox [#5269](https://github.com/axios/axios/pull/5269)
|
16 | - fix: AxiosError.toJSON method to avoid circular references [#5247](https://github.com/axios/axios/pull/5247)
|
17 | - fix: Z_BUF_ERROR when content-encoding is set but the response body is empty [#5250](https://github.com/axios/axios/pull/5250)
|
18 |
|
19 | ### Refactors
|
20 | - refactor: allowing adapters to be loaded by name [#5277](https://github.com/axios/axios/pull/5277)
|
21 |
|
22 | ### Chores
|
23 |
|
24 | - chore: force CI restart [#5243](https://github.com/axios/axios/pull/5243)
|
25 | - chore: update ECOSYSTEM.md [#5077](https://github.com/axios/axios/pull/5077)
|
26 | - chore: update get/index.html [#5116](https://github.com/axios/axios/pull/5116)
|
27 | - chore: update Sandbox UI/UX [#5205](https://github.com/axios/axios/pull/5205)
|
28 | - chore:(actions): remove git credentials after checkout [#5235](https://github.com/axios/axios/pull/5235)
|
29 | - chore(actions): bump actions/dependency-review-action from 2 to 3 [#5266](https://github.com/axios/axios/pull/5266)
|
30 | - chore(packages): bump loader-utils from 1.4.1 to 1.4.2 [#5295](https://github.com/axios/axios/pull/5295)
|
31 | - chore(packages): bump engine.io from 6.2.0 to 6.2.1 [#5294](https://github.com/axios/axios/pull/5294)
|
32 | - chore(packages): bump socket.io-parser from 4.0.4 to 4.0.5 [#5241](https://github.com/axios/axios/pull/5241)
|
33 | - chore(packages): bump loader-utils from 1.4.0 to 1.4.1 [#5245](https://github.com/axios/axios/pull/5245)
|
34 | - chore(docs): update Resources links in README [#5119](https://github.com/axios/axios/pull/5119)
|
35 | - chore(docs): update the link for JSON url [#5265](https://github.com/axios/axios/pull/5265)
|
36 | - chore(docs): fix broken links [#5218](https://github.com/axios/axios/pull/5218)
|
37 | - chore(docs): update and rename UPGRADE_GUIDE.md to MIGRATION_GUIDE.md [#5170](https://github.com/axios/axios/pull/5170)
|
38 | - chore(docs): typo fix line #856 and #920 [#5194](https://github.com/axios/axios/pull/5194)
|
39 | - chore(docs): typo fix #800 [#5193](https://github.com/axios/axios/pull/5193)
|
40 | - chore(docs): fix typos [#5184](https://github.com/axios/axios/pull/5184)
|
41 | - chore(docs): fix punctuation in README.md [#5197](https://github.com/axios/axios/pull/5197)
|
42 | - chore(docs): update readme in the Handling Errors section - issue reference #5260 [#5261](https://github.com/axios/axios/pull/5261)
|
43 | - chore: remove \b from filename [#5207](https://github.com/axios/axios/pull/5207)
|
44 | - chore(docs): update CHANGELOG.md [#5137](https://github.com/axios/axios/pull/5137)
|
45 | - chore: add sideEffects false to package.json [#5025](https://github.com/axios/axios/pull/5025)
|
46 |
|
47 | ### Contributors to this release
|
48 |
|
49 | - [Maddy Miller](https://github.com/me4502)
|
50 | - [Amit Saini](https://github.com/amitsainii)
|
51 | - [ecyrbe](https://github.com/ecyrbe)
|
52 | - [Ikko Ashimine](https://github.com/eltociear)
|
53 | - [Geeth Gunnampalli](https://github.com/thetechie7)
|
54 | - [Shreem Asati](https://github.com/shreem-123)
|
55 | - [Frieder Bluemle](https://github.com/friederbluemle)
|
56 | - [윤세영](https://github.com/yunseyeong)
|
57 | - [Claudio Busatto](https://github.com/cjcbusatto)
|
58 | - [Remco Haszing](https://github.com/remcohaszing)
|
59 | - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
60 | - [Csaba Maulis](https://github.com/om4csaba)
|
61 | - [MoPaMo](https://github.com/MoPaMo)
|
62 | - [Daniel Fjeldstad](https://github.com/w3bdesign)
|
63 | - [Adrien Brunet](https://github.com/adrien-may)
|
64 | - [Frazer Smith](https://github.com/Fdawgs)
|
65 | - [HaiTao](https://github.com/836334258)
|
66 | - [AZM](https://github.com/aziyatali)
|
67 | - [relbns](https://github.com/relbns)
|
68 |
|
69 | ## [1.1.3] - 2022-10-15
|
70 |
|
71 | ### Added
|
72 |
|
73 | - Added custom params serializer support [#5113](https://github.com/axios/axios/pull/5113)
|
74 |
|
75 | ### Fixed
|
76 |
|
77 | - Fixed top-level export to keep them in-line with static properties [#5109](https://github.com/axios/axios/pull/5109)
|
78 | - Stopped including null values to query string. [#5108](https://github.com/axios/axios/pull/5108)
|
79 | - Restored proxy config backwards compatibility with 0.x [#5097](https://github.com/axios/axios/pull/5097)
|
80 | - Added back AxiosHeaders in AxiosHeaderValue [#5103](https://github.com/axios/axios/pull/5103)
|
81 | - Pin CDN install instructions to a specific version [#5060](https://github.com/axios/axios/pull/5060)
|
82 | - Handling of array values fixed for AxiosHeaders [#5085](https://github.com/axios/axios/pull/5085)
|
83 |
|
84 | ### Chores
|
85 |
|
86 | - docs: match badge style, add link to them [#5046](https://github.com/axios/axios/pull/5046)
|
87 | - chore: fixing comments typo [#5054](https://github.com/axios/axios/pull/5054)
|
88 | - chore: update issue template [#5061](https://github.com/axios/axios/pull/5061)
|
89 | - chore: added progress capturing section to the docs; [#5084](https://github.com/axios/axios/pull/5084)
|
90 |
|
91 | ### Contributors to this release
|
92 |
|
93 | - [Jason Saayman](https://github.com/jasonsaayman)
|
94 | - [scarf](https://github.com/scarf005)
|
95 | - [Lenz Weber-Tronic](https://github.com/phryneas)
|
96 | - [Arvindh](https://github.com/itsarvindh)
|
97 | - [Félix Legrelle](https://github.com/FelixLgr)
|
98 | - [Patrick Petrovic](https://github.com/ppati000)
|
99 | - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
100 | - [littledian](https://github.com/littledian)
|
101 | - [ChronosMasterOfAllTime](https://github.com/ChronosMasterOfAllTime)
|
102 |
|
103 | ## [1.1.2] - 2022-10-07
|
104 |
|
105 | ### Fixed
|
106 |
|
107 | - Fixed broken exports for UMD builds.
|
108 |
|
109 | ### Contributors to this release
|
110 |
|
111 | - [Jason Saayman](https://github.com/jasonsaayman)
|
112 |
|
113 | ## [1.1.1] - 2022-10-07
|
114 |
|
115 | ### Fixed
|
116 |
|
117 | - Fixed broken exports for common js. This fix breaks a prior fix, I will fix both issues ASAP but the commonJS use is more impactful.
|
118 |
|
119 | ### Contributors to this release
|
120 |
|
121 | - [Jason Saayman](https://github.com/jasonsaayman)
|
122 |
|
123 | ## [1.1.0] - 2022-10-06
|
124 |
|
125 | ### Fixed
|
126 |
|
127 | - Fixed missing exports in type definition index.d.ts [#5003](https://github.com/axios/axios/pull/5003)
|
128 | - Fixed query params composing [#5018](https://github.com/axios/axios/pull/5018)
|
129 | - Fixed GenericAbortSignal interface by making it more generic [#5021](https://github.com/axios/axios/pull/5021)
|
130 | - Fixed adding "clear" to AxiosInterceptorManager [#5010](https://github.com/axios/axios/pull/5010)
|
131 | - Fixed commonjs & umd exports [#5030](https://github.com/axios/axios/pull/5030)
|
132 | - Fixed inability to access response headers when using axios 1.x with Jest [#5036](https://github.com/axios/axios/pull/5036)
|
133 |
|
134 | ### Contributors to this release
|
135 |
|
136 | - [Trim21](https://github.com/trim21)
|
137 | - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
138 | - [shingo.sasaki](https://github.com/s-sasaki-0529)
|
139 | - [Ivan Pepelko](https://github.com/ivanpepelko)
|
140 | - [Richard Kořínek](https://github.com/risa)
|
141 |
|
142 | ## [1.0.0] - 2022-10-04
|
143 |
|
144 | ### Added
|
145 |
|
146 | - Added stack trace to AxiosError [#4624](https://github.com/axios/axios/pull/4624)
|
147 | - Add AxiosError to AxiosStatic [#4654](https://github.com/axios/axios/pull/4654)
|
148 | - Replaced Rollup as our build runner [#4596](https://github.com/axios/axios/pull/4596)
|
149 | - Added generic TS types for the exposed toFormData helper [#4668](https://github.com/axios/axios/pull/4668)
|
150 | - Added listen callback function [#4096](https://github.com/axios/axios/pull/4096)
|
151 | - Added instructions for installing using PNPM [#4207](https://github.com/axios/axios/pull/4207)
|
152 | - Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill [#4229](https://github.com/axios/axios/pull/4229)
|
153 | - Added axios-url-template in ECOSYSTEM.md [#4238](https://github.com/axios/axios/pull/4238)
|
154 | - 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)
|
155 | - Added react hook plugin [#4319](https://github.com/axios/axios/pull/4319)
|
156 | - Adding HTTP status code for transformResponse [#4580](https://github.com/axios/axios/pull/4580)
|
157 | - Added blob to the list of protocols supported by the browser [#4678](https://github.com/axios/axios/pull/4678)
|
158 | - Resolving proxy from env on redirect [#4436](https://github.com/axios/axios/pull/4436)
|
159 | - Added enhanced toFormData implementation with additional options [4704](https://github.com/axios/axios/pull/4704)
|
160 | - Adding Canceler parameters config and request [#4711](https://github.com/axios/axios/pull/4711)
|
161 | - Added automatic payload serialization to application/x-www-form-urlencoded [#4714](https://github.com/axios/axios/pull/4714)
|
162 | - Added the ability for webpack users to overwrite built-ins [#4715](https://github.com/axios/axios/pull/4715)
|
163 | - Added string[] to AxiosRequestHeaders type [#4322](https://github.com/axios/axios/pull/4322)
|
164 | - Added the ability for the url-encoded-form serializer to respect the formSerializer config [#4721](https://github.com/axios/axios/pull/4721)
|
165 | - Added isCancel type assert [#4293](https://github.com/axios/axios/pull/4293)
|
166 | - Added data URL support for node.js [#4725](https://github.com/axios/axios/pull/4725)
|
167 | - Adding types for progress event callbacks [#4675](https://github.com/axios/axios/pull/4675)
|
168 | - URL params serializer [#4734](https://github.com/axios/axios/pull/4734)
|
169 | - Added axios.formToJSON method [#4735](https://github.com/axios/axios/pull/4735)
|
170 | - Bower platform add data protocol [#4804](https://github.com/axios/axios/pull/4804)
|
171 | - Use WHATWG URL API instead of url.parse() [#4852](https://github.com/axios/axios/pull/4852)
|
172 | - Add ENUM containing Http Status Codes to typings [#4903](https://github.com/axios/axios/pull/4903)
|
173 | - Improve typing of timeout in index.d.ts [#4934](https://github.com/axios/axios/pull/4934)
|
174 |
|
175 | ### Changed
|
176 |
|
177 | - Updated AxiosError.config to be optional in the type definition [#4665](https://github.com/axios/axios/pull/4665)
|
178 | - Updated README emphasizing the URLSearchParam built-in interface over other solutions [#4590](https://github.com/axios/axios/pull/4590)
|
179 | - Include request and config when creating a CanceledError instance [#4659](https://github.com/axios/axios/pull/4659)
|
180 | - Changed func-names eslint rule to as-needed [#4492](https://github.com/axios/axios/pull/4492)
|
181 | - Replacing deprecated substr() with slice() as substr() is deprecated [#4468](https://github.com/axios/axios/pull/4468)
|
182 | - Updating HTTP links in README.md to use HTTPS [#4387](https://github.com/axios/axios/pull/4387)
|
183 | - Updated to a better trim() polyfill [#4072](https://github.com/axios/axios/pull/4072)
|
184 | - Updated types to allow specifying partial default headers on instance create [#4185](https://github.com/axios/axios/pull/4185)
|
185 | - Expanded isAxiosError types [#4344](https://github.com/axios/axios/pull/4344)
|
186 | - Updated type definition for axios instance methods [#4224](https://github.com/axios/axios/pull/4224)
|
187 | - Updated eslint config [#4722](https://github.com/axios/axios/pull/4722)
|
188 | - Updated Docs [#4742](https://github.com/axios/axios/pull/4742)
|
189 | - Refactored Axios to use ES2017 [#4787](https://github.com/axios/axios/pull/4787)
|
190 |
|
191 |
|
192 | ### Deprecated
|
193 | - There are multiple deprecations, refactors and fixes provided in this release. Please read through the full release notes to see how this may impact your project and use case.
|
194 |
|
195 | ### Removed
|
196 |
|
197 | - Removed incorrect argument for NetworkError constructor [#4656](https://github.com/axios/axios/pull/4656)
|
198 | - Removed Webpack [#4596](https://github.com/axios/axios/pull/4596)
|
199 | - Removed function that transform arguments to array [#4544](https://github.com/axios/axios/pull/4544)
|
200 |
|
201 | ### Fixed
|
202 |
|
203 | - Fixed grammar in README [#4649](https://github.com/axios/axios/pull/4649)
|
204 | - Fixed code error in README [#4599](https://github.com/axios/axios/pull/4599)
|
205 | - Optimized the code that checks cancellation [#4587](https://github.com/axios/axios/pull/4587)
|
206 | - Fix url pointing to defaults.js in README [#4532](https://github.com/axios/axios/pull/4532)
|
207 | - Use type alias instead of interface for AxiosPromise [#4505](https://github.com/axios/axios/pull/4505)
|
208 | - Fix some word spelling and lint style in code comments [#4500](https://github.com/axios/axios/pull/4500)
|
209 | - Edited readme with 3 updated browser icons of Chrome, FireFox and Safari [#4414](https://github.com/axios/axios/pull/4414)
|
210 | - Bump follow-redirects from 1.14.9 to 1.15.0 [#4673](https://github.com/axios/axios/pull/4673)
|
211 | - Fixing http tests to avoid hanging when assertions fail [#4435](https://github.com/axios/axios/pull/4435)
|
212 | - Fix TS definition for AxiosRequestTransformer [#4201](https://github.com/axios/axios/pull/4201)
|
213 | - Fix grammatical issues in README [#4232](https://github.com/axios/axios/pull/4232)
|
214 | - Fixing instance.defaults.headers type [#4557](https://github.com/axios/axios/pull/4557)
|
215 | - Fixed race condition on immediate requests cancellation [#4261](https://github.com/axios/axios/pull/4261)
|
216 | - Fixing Z_BUF_ERROR when no content [#4701](https://github.com/axios/axios/pull/4701)
|
217 | - Fixing proxy beforeRedirect regression [#4708](https://github.com/axios/axios/pull/4708)
|
218 | - Fixed AxiosError status code type [#4717](https://github.com/axios/axios/pull/4717)
|
219 | - Fixed AxiosError stack capturing [#4718](https://github.com/axios/axios/pull/4718)
|
220 | - Fixing AxiosRequestHeaders typings [#4334](https://github.com/axios/axios/pull/4334)
|
221 | - Fixed max body length defaults [#4731](https://github.com/axios/axios/pull/4731)
|
222 | - Fixed toFormData Blob issue on node>v17 [#4728](https://github.com/axios/axios/pull/4728)
|
223 | - Bump grunt from 1.5.2 to 1.5.3 [#4743](https://github.com/axios/axios/pull/4743)
|
224 | - Fixing content-type header repeated [#4745](https://github.com/axios/axios/pull/4745)
|
225 | - Fixed timeout error message for http [4738](https://github.com/axios/axios/pull/4738)
|
226 | - Request ignores false, 0 and empty string as body values [#4785](https://github.com/axios/axios/pull/4785)
|
227 | - Added back missing minified builds [#4805](https://github.com/axios/axios/pull/4805)
|
228 | - Fixed a type error [#4815](https://github.com/axios/axios/pull/4815)
|
229 | - Fixed a regression bug with unsubscribing from cancel token; [#4819](https://github.com/axios/axios/pull/4819)
|
230 | - Remove repeated compression algorithm [#4820](https://github.com/axios/axios/pull/4820)
|
231 | - The error of calling extend to pass parameters [#4857](https://github.com/axios/axios/pull/4857)
|
232 | - SerializerOptions.indexes allows boolean | null | undefined [#4862](https://github.com/axios/axios/pull/4862)
|
233 | - Require interceptors to return values [#4874](https://github.com/axios/axios/pull/4874)
|
234 | - Removed unused imports [#4949](https://github.com/axios/axios/pull/4949)
|
235 | - Allow null indexes on formSerializer and paramsSerializer [#4960](https://github.com/axios/axios/pull/4960)
|
236 |
|
237 | ### Chores
|
238 | - Set permissions for GitHub actions [#4765](https://github.com/axios/axios/pull/4765)
|
239 | - Included githubactions in the dependabot config [#4770](https://github.com/axios/axios/pull/4770)
|
240 | - Included dependency review [#4771](https://github.com/axios/axios/pull/4771)
|
241 | - Update security.md [#4784](https://github.com/axios/axios/pull/4784)
|
242 | - Remove unnecessary spaces [#4854](https://github.com/axios/axios/pull/4854)
|
243 | - Simplify the import path of AxiosError [#4875](https://github.com/axios/axios/pull/4875)
|
244 | - Fix Gitpod dead link [#4941](https://github.com/axios/axios/pull/4941)
|
245 | - Enable syntax highlighting for a code block [#4970](https://github.com/axios/axios/pull/4970)
|
246 | - Using Logo Axios in Readme.md [#4993](https://github.com/axios/axios/pull/4993)
|
247 | - Fix markup for note in README [#4825](https://github.com/axios/axios/pull/4825)
|
248 | - Fix typo and formatting, add colons [#4853](https://github.com/axios/axios/pull/4853)
|
249 | - Fix typo in readme [#4942](https://github.com/axios/axios/pull/4942)
|
250 |
|
251 | ### Security
|
252 |
|
253 | - Update SECURITY.md [#4687](https://github.com/axios/axios/pull/4687)
|
254 |
|
255 | ### Contributors to this release
|
256 |
|
257 | - [Bertrand Marron](https://github.com/tusbar)
|
258 | - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
|
259 | - [Dan Mooney](https://github.com/danmooney)
|
260 | - [Michael Li](https://github.com/xiaoyu-tamu)
|
261 | - [aong](https://github.com/yxwzaxns)
|
262 | - [Des Preston](https://github.com/despreston)
|
263 | - [Ted Robertson](https://github.com/tredondo)
|
264 | - [zhoulixiang](https://github.com/zh-lx)
|
265 | - [Arthur Fiorette](https://github.com/arthurfiorette)
|
266 | - [Kumar Shanu](https://github.com/Kr-Shanu)
|
267 | - [JALAL](https://github.com/JLL32)
|
268 | - [Jingyi Lin](https://github.com/MageeLin)
|
269 | - [Philipp Loose](https://github.com/phloose)
|
270 | - [Alexander Shchukin](https://github.com/sashsvamir)
|
271 | - [Dave Cardwell](https://github.com/davecardwell)
|
272 | - [Cat Scarlet](https://github.com/catscarlet)
|
273 | - [Luca Pizzini](https://github.com/lpizzinidev)
|
274 | - [Kai](https://github.com/Schweinepriester)
|
275 | - [Maxime Bargiel](https://github.com/mbargiel)
|
276 | - [Brian Helba](https://github.com/brianhelba)
|
277 | - [reslear](https://github.com/reslear)
|
278 | - [Jamie Slome](https://github.com/JamieSlome)
|
279 | - [Landro3](https://github.com/Landro3)
|
280 | - [rafw87](https://github.com/rafw87)
|
281 | - [Afzal Sayed](https://github.com/afzalsayed96)
|
282 | - [Koki Oyatsu](https://github.com/kaishuu0123)
|
283 | - [Dave](https://github.com/wangcch)
|
284 | - [暴走老七](https://github.com/baozouai)
|
285 | - [Spencer](https://github.com/spalger)
|
286 | - [Adrian Wieprzkowicz](https://github.com/Argeento)
|
287 | - [Jamie Telin](https://github.com/lejahmie)
|
288 | - [毛呆](https://github.com/aweikalee)
|
289 | - [Kirill Shakirov](https://github.com/turisap)
|
290 | - [Rraji Abdelbari](https://github.com/estarossa0)
|
291 | - [Jelle Schutter](https://github.com/jelleschutter)
|
292 | - [Tom Ceuppens](https://github.com/KyorCode)
|
293 | - [Johann Cooper](https://github.com/JohannCooper)
|
294 | - [Dimitris Halatsis](https://github.com/mitsos1os)
|
295 | - [chenjigeng](https://github.com/chenjigeng)
|
296 | - [João Gabriel Quaresma](https://github.com/joaoGabriel55)
|
297 | - [Victor Augusto](https://github.com/VictorAugDB)
|
298 | - [neilnaveen](https://github.com/neilnaveen)
|
299 | - [Pavlos](https://github.com/psmoros)
|
300 | - [Kiryl Valkovich](https://github.com/visortelle)
|
301 | - [Naveen](https://github.com/naveensrinivasan)
|
302 | - [wenzheng](https://github.com/0x30)
|
303 | - [hcwhan](https://github.com/hcwhan)
|
304 | - [Bassel Rachid](https://github.com/basselworkforce)
|
305 | - [Grégoire Pineau](https://github.com/lyrixx)
|
306 | - [felipedamin](https://github.com/felipedamin)
|
307 | - [Karl Horky](https://github.com/karlhorky)
|
308 | - [Yue JIN](https://github.com/kingyue737)
|
309 | - [Usman Ali Siddiqui](https://github.com/usman250994)
|
310 | - [WD](https://github.com/techbirds)
|
311 | - [Günther Foidl](https://github.com/gfoidl)
|
312 | - [Stephen Jennings](https://github.com/jennings)
|
313 | - [C.T.Lin](https://github.com/chentsulin)
|
314 | - [mia-z](https://github.com/mia-z)
|
315 | - [Parth Banathia](https://github.com/Parth0105)
|
316 | - [parth0105pluang](https://github.com/parth0105pluang)
|
317 | - [Marco Weber](https://github.com/mrcwbr)
|
318 | - [Luca Pizzini](https://github.com/lpizzinidev)
|
319 | - [Willian Agostini](https://github.com/WillianAgostini)
|
320 | - [Huyen Nguyen](https://github.com/huyenltnguyen)
|