axios 1.4.0 → 1.6.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.

Potentially problematic release.


This version of axios might be problematic. Click here for more details.

package/CHANGELOG.md CHANGED
@@ -1,5 +1,83 @@
1
1
  # Changelog
2
2
 
3
+ # [1.6.0](https://github.com/axios/axios/compare/v1.5.1...v1.6.0) (2023-10-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **CSRF:** fixed CSRF vulnerability CVE-2023-45857 ([#6028](https://github.com/axios/axios/issues/6028)) ([96ee232](https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0))
9
+ * **dns:** fixed lookup function decorator to work properly in node v20; ([#6011](https://github.com/axios/axios/issues/6011)) ([5aaff53](https://github.com/axios/axios/commit/5aaff532a6b820bb9ab6a8cd0f77131b47e2adb8))
10
+ * **types:** fix AxiosHeaders types; ([#5931](https://github.com/axios/axios/issues/5931)) ([a1c8ad0](https://github.com/axios/axios/commit/a1c8ad008b3c13d53e135bbd0862587fb9d3fc09))
11
+
12
+ ### PRs
13
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
14
+ ```
15
+
16
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
17
+ ```
18
+
19
+ ### Contributors to this release
20
+
21
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+449/-114 (#6032 #6021 #6011 #5932 #5931 )")
22
+ - <img src="https://avatars.githubusercontent.com/u/63700910?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Valentin Panov](https://github.com/valentin-panov "+4/-4 (#6028 )")
23
+ - <img src="https://avatars.githubusercontent.com/u/76877078?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Rinku Chaudhari](https://github.com/therealrinku "+1/-1 (#5889 )")
24
+
25
+ ## [1.5.1](https://github.com/axios/axios/compare/v1.5.0...v1.5.1) (2023-09-26)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **adapters:** improved adapters loading logic to have clear error messages; ([#5919](https://github.com/axios/axios/issues/5919)) ([e410779](https://github.com/axios/axios/commit/e4107797a7a1376f6209fbecfbbce73d3faa7859))
31
+ * **formdata:** fixed automatic addition of the `Content-Type` header for FormData in non-browser environments; ([#5917](https://github.com/axios/axios/issues/5917)) ([bc9af51](https://github.com/axios/axios/commit/bc9af51b1886d1b3529617702f2a21a6c0ed5d92))
32
+ * **headers:** allow `content-encoding` header to handle case-insensitive values ([#5890](https://github.com/axios/axios/issues/5890)) ([#5892](https://github.com/axios/axios/issues/5892)) ([4c89f25](https://github.com/axios/axios/commit/4c89f25196525e90a6e75eda9cb31ae0a2e18acd))
33
+ * **types:** removed duplicated code ([9e62056](https://github.com/axios/axios/commit/9e6205630e1c9cf863adf141c0edb9e6d8d4b149))
34
+
35
+ ### Contributors to this release
36
+
37
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+89/-18 (#5919 #5917 )")
38
+ - <img src="https://avatars.githubusercontent.com/u/110460234?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [David Dallas](https://github.com/DavidJDallas "+11/-5 ()")
39
+ - <img src="https://avatars.githubusercontent.com/u/71556073?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Sean Sattler](https://github.com/fb-sean "+2/-8 ()")
40
+ - <img src="https://avatars.githubusercontent.com/u/4294069?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Mustafa Ateş Uzun](https://github.com/0o001 "+4/-4 ()")
41
+ - <img src="https://avatars.githubusercontent.com/u/132928043?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Przemyslaw Motacki](https://github.com/sfc-gh-pmotacki "+2/-1 (#5892 )")
42
+ - <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+1/-1 ()")
43
+
44
+ ### PRs
45
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
46
+ ```
47
+
48
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
49
+ ```
50
+
51
+ # [1.5.0](https://github.com/axios/axios/compare/v1.4.0...v1.5.0) (2023-08-26)
52
+
53
+
54
+ ### Bug Fixes
55
+
56
+ * **adapter:** make adapter loading error more clear by using platform-specific adapters explicitly ([#5837](https://github.com/axios/axios/issues/5837)) ([9a414bb](https://github.com/axios/axios/commit/9a414bb6c81796a95c6c7fe668637825458e8b6d))
57
+ * **dns:** fixed `cacheable-lookup` integration; ([#5836](https://github.com/axios/axios/issues/5836)) ([b3e327d](https://github.com/axios/axios/commit/b3e327dcc9277bdce34c7ef57beedf644b00d628))
58
+ * **headers:** added support for setting header names that overlap with class methods; ([#5831](https://github.com/axios/axios/issues/5831)) ([d8b4ca0](https://github.com/axios/axios/commit/d8b4ca0ea5f2f05efa4edfe1e7684593f9f68273))
59
+ * **headers:** fixed common Content-Type header merging; ([#5832](https://github.com/axios/axios/issues/5832)) ([8fda276](https://github.com/axios/axios/commit/8fda2766b1e6bcb72c3fabc146223083ef13ce17))
60
+
61
+
62
+ ### Features
63
+
64
+ * export getAdapter function ([#5324](https://github.com/axios/axios/issues/5324)) ([ca73eb8](https://github.com/axios/axios/commit/ca73eb878df0ae2dace81fe3a7f1fb5986231bf1))
65
+ * **export:** export adapters without `unsafe` prefix ([#5839](https://github.com/axios/axios/issues/5839)) ([1601f4a](https://github.com/axios/axios/commit/1601f4a27a81ab47fea228f1e244b2c4e3ce28bf))
66
+
67
+ ### Contributors to this release
68
+
69
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+66/-29 (#5839 #5837 #5836 #5832 #5831 )")
70
+ - <img src="https://avatars.githubusercontent.com/u/102841186?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [夜葬](https://github.com/geekact "+42/-0 (#5324 )")
71
+ - <img src="https://avatars.githubusercontent.com/u/65978976?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Jonathan Budiman](https://github.com/JBudiman00 "+30/-0 (#5788 )")
72
+ - <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+3/-5 (#5791 )")
73
+
74
+ ### PRs
75
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
76
+ ```
77
+
78
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
79
+ ```
80
+
3
81
  # [1.4.0](https://github.com/axios/axios/compare/v1.3.6...v1.4.0) (2023-04-27)
4
82
 
5
83
 
@@ -25,6 +103,13 @@
25
103
  - <img src="https://avatars.githubusercontent.com/u/47537704?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Arthur Fiorette](https://github.com/arthurfiorette "+19/-19 (#5525 )")
26
104
  - <img src="https://avatars.githubusercontent.com/u/43876655?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [PIYUSH NEGI](https://github.com/npiyush97 "+2/-18 (#5670 )")
27
105
 
106
+ ### PRs
107
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
108
+ ```
109
+
110
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
111
+ ```
112
+
28
113
  ## [1.3.6](https://github.com/axios/axios/compare/v1.3.5...v1.3.6) (2023-04-19)
29
114
 
30
115
 
@@ -38,6 +123,13 @@
38
123
  - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+48/-10 (#5665 #5661 #5663 )")
39
124
  - <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+2/-0 (#5445 )")
40
125
 
126
+ ### PRs
127
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
128
+ ```
129
+
130
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
131
+ ```
132
+
41
133
  ## [1.3.5](https://github.com/axios/axios/compare/v1.3.4...v1.3.5) (2023-04-05)
42
134
 
43
135
 
@@ -50,6 +142,13 @@
50
142
 
51
143
  - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+28/-10 (#5633 #5584 )")
52
144
 
145
+ ### PRs
146
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
147
+ ```
148
+
149
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
150
+ ```
151
+
53
152
  ## [1.3.4](https://github.com/axios/axios/compare/v1.3.3...v1.3.4) (2023-02-22)
54
153
 
55
154
 
@@ -64,6 +163,13 @@
64
163
  - <img src="https://avatars.githubusercontent.com/u/19550000?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [lcysgsg](https://github.com/lcysgsg "+4/-0 (#5548 )")
65
164
  - <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+3/-0 (#5444 )")
66
165
 
166
+ ### PRs
167
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
168
+ ```
169
+
170
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
171
+ ```
172
+
67
173
  ## [1.3.3](https://github.com/axios/axios/compare/v1.3.2...v1.3.3) (2023-02-13)
68
174
 
69
175
 
@@ -78,6 +184,13 @@
78
184
  - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+11/-7 (#5545 #5535 #5542 )")
79
185
  - <img src="https://avatars.githubusercontent.com/u/19842213?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [陈若枫](https://github.com/ruofee "+2/-2 (#5467 )")
80
186
 
187
+ ### PRs
188
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
189
+ ```
190
+
191
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
192
+ ```
193
+
81
194
  ## [1.3.2](https://github.com/axios/axios/compare/v1.3.1...v1.3.2) (2023-02-03)
82
195
 
83
196
 
@@ -90,6 +203,13 @@
90
203
 
91
204
  - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+2/-1 (#5530 #5528 )")
92
205
 
206
+ ### PRs
207
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
208
+ ```
209
+
210
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
211
+ ```
212
+
93
213
  ## [1.3.1](https://github.com/axios/axios/compare/v1.3.0...v1.3.1) (2023-02-01)
94
214
 
95
215
 
@@ -102,6 +222,13 @@
102
222
 
103
223
  - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+27/-8 (#5521 #5518 )")
104
224
 
225
+ ### PRs
226
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
227
+ ```
228
+
229
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
230
+ ```
231
+
105
232
  # [1.3.0](https://github.com/axios/axios/compare/v1.2.6...v1.3.0) (2023-01-31)
106
233
 
107
234
 
@@ -120,6 +247,13 @@
120
247
  - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+352/-67 (#5514 #5512 #5510 #5509 #5508 #5316 #5507 )")
121
248
  - <img src="https://avatars.githubusercontent.com/u/35015993?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [ItsNotGoodName](https://github.com/ItsNotGoodName "+43/-2 (#5497 )")
122
249
 
250
+ ### PRs
251
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
252
+ ```
253
+
254
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
255
+ ```
256
+
123
257
  ## [1.2.6](https://github.com/axios/axios/compare/v1.2.5...v1.2.6) (2023-01-28)
124
258
 
125
259
 
@@ -132,6 +266,13 @@
132
266
 
133
267
  - ![avatar](https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+24/-9 (#5503 #5502 )")
134
268
 
269
+ ### PRs
270
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
271
+ ```
272
+
273
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
274
+ ```
275
+
135
276
  ## [1.2.5](https://github.com/axios/axios/compare/v1.2.4...v1.2.5) (2023-01-26)
136
277
 
137
278
 
@@ -144,6 +285,13 @@
144
285
  - ![avatar](https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+82/-54 (#5499 )")
145
286
  - ![avatar](https://avatars.githubusercontent.com/u/20516159?v&#x3D;4&amp;s&#x3D;16) [Elliot Ford](https://github.com/EFord36 "+1/-1 (#5462 )")
146
287
 
288
+ ### PRs
289
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
290
+ ```
291
+
292
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
293
+ ```
294
+
147
295
  ## [1.2.4](https://github.com/axios/axios/compare/v1.2.3...v1.2.4) (2023-01-22)
148
296
 
149
297
 
@@ -157,6 +305,13 @@
157
305
  - ![avatar](https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+242/-108 (#5486 #5482 )")
158
306
  - ![avatar](https://avatars.githubusercontent.com/u/9430821?v&#x3D;4&amp;s&#x3D;16) [Daniel Hillmann](https://github.com/hilleer "+1/-1 (#5478 )")
159
307
 
308
+ ### PRs
309
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
310
+ ```
311
+
312
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
313
+ ```
314
+
160
315
  ## [1.2.3](https://github.com/axios/axios/compare/1.2.2...1.2.3) (2023-01-10)
161
316
 
162
317
 
@@ -168,6 +323,13 @@
168
323
 
169
324
  - ![avatar](https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;16) [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+938/-442 (#5456 #5455 #5453 #5451 #5449 #5447 #5446 #5443 #5442 #5439 #5420 )")
170
325
 
326
+ ### PRs
327
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
328
+ ```
329
+
330
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
331
+ ```
332
+
171
333
  ## [1.2.2] - 2022-12-29
172
334
 
173
335
  ### Fixed
@@ -222,6 +384,13 @@
222
384
  - [Ivan Barsukov](https://github.com/ovarn)
223
385
  - [Arthur Fiorette](https://github.com/arthurfiorette)
224
386
 
387
+ ### PRs
388
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
389
+ ```
390
+
391
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
392
+ ```
393
+
225
394
  ## [1.2.0] - 2022-11-10
226
395
 
227
396
  ### Changed
@@ -288,6 +457,13 @@
288
457
  - [AZM](https://github.com/aziyatali)
289
458
  - [relbns](https://github.com/relbns)
290
459
 
460
+ ### PRs
461
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
462
+ ```
463
+
464
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
465
+ ```
466
+
291
467
  ## [1.1.3] - 2022-10-15
292
468
 
293
469
  ### Added
@@ -322,6 +498,13 @@
322
498
  - [littledian](https://github.com/littledian)
323
499
  - [ChronosMasterOfAllTime](https://github.com/ChronosMasterOfAllTime)
324
500
 
501
+ ### PRs
502
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
503
+ ```
504
+
505
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
506
+ ```
507
+
325
508
  ## [1.1.2] - 2022-10-07
326
509
 
327
510
  ### Fixed
@@ -332,6 +515,13 @@
332
515
 
333
516
  - [Jason Saayman](https://github.com/jasonsaayman)
334
517
 
518
+ ### PRs
519
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
520
+ ```
521
+
522
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
523
+ ```
524
+
335
525
  ## [1.1.1] - 2022-10-07
336
526
 
337
527
  ### Fixed
@@ -342,6 +532,13 @@
342
532
 
343
533
  - [Jason Saayman](https://github.com/jasonsaayman)
344
534
 
535
+ ### PRs
536
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
537
+ ```
538
+
539
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
540
+ ```
541
+
345
542
  ## [1.1.0] - 2022-10-06
346
543
 
347
544
  ### Fixed
@@ -361,6 +558,13 @@
361
558
  - [Ivan Pepelko](https://github.com/ivanpepelko)
362
559
  - [Richard Kořínek](https://github.com/risa)
363
560
 
561
+ ### PRs
562
+ - CVE 2023 45857 ( [#6028](https://api.github.com/repos/axios/axios/pulls/6028) )
563
+ ```
564
+
565
+ ⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459
566
+ ```
567
+
364
568
  ## [1.0.0] - 2022-10-04
365
569
 
366
570
  ### Added