UNPKG

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