axios 0.16.2 → 0.18.1

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,211 +1,240 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.18.1 (May 31, 2019)
4
+
5
+ Security Fix:
6
+
7
+ - Destroy stream on exceeding maxContentLength (fixes [#1098](https://github.com/axios/axios/issues/1098)) ([#1485](https://github.com/axios/axios/pull/1485)) - Gadzhi Gadzhiev
8
+
9
+ ### 0.18.0 (Feb 19, 2018)
10
+
11
+ - Adding support for UNIX Sockets when running with Node.js ([#1070](https://github.com/axios/axios/pull/1070))
12
+ - Fixing typings ([#1177](https://github.com/axios/axios/pull/1177)):
13
+ - AxiosRequestConfig.proxy: allows type false
14
+ - AxiosProxyConfig: added auth field
15
+ - Adding function signature in AxiosInstance interface so AxiosInstance can be invoked ([#1192](https://github.com/axios/axios/pull/1192), [#1254](https://github.com/axios/axios/pull/1254))
16
+ - Allowing maxContentLength to pass through to redirected calls as maxBodyLength in follow-redirects config ([#1287](https://github.com/axios/axios/pull/1287))
17
+ - Fixing configuration when using an instance - method can now be set ([#1342](https://github.com/axios/axios/pull/1342))
18
+
19
+ ### 0.17.1 (Nov 11, 2017)
20
+
21
+ - Fixing issue with web workers ([#1160](https://github.com/axios/axios/pull/1160))
22
+ - Allowing overriding transport ([#1080](https://github.com/axios/axios/pull/1080))
23
+ - 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))
24
+
25
+ ### 0.17.0 (Oct 21, 2017)
26
+
27
+ - **BREAKING** Fixing issue with `baseURL` and interceptors ([#950](https://github.com/axios/axios/pull/950))
28
+ - **BREAKING** Improving handing of duplicate headers ([#874](https://github.com/axios/axios/pull/874))
29
+ - Adding support for disabling proxies ([#691](https://github.com/axios/axios/pull/691))
30
+ - Updating TypeScript typings with generic type parameters ([#1061](https://github.com/axios/axios/pull/1061))
31
+
3
32
  ### 0.16.2 (Jun 3, 2017)
4
33
 
5
- - Fixing issue with including `buffer` in bundle ([#887](https://github.com/mzabriskie/axios/pull/887))
6
- - Including underlying request in errors ([#830](https://github.com/mzabriskie/axios/pull/830))
7
- - Convert `method` to lowercase ([#930](https://github.com/mzabriskie/axios/pull/930))
34
+ - Fixing issue with including `buffer` in bundle ([#887](https://github.com/axios/axios/pull/887))
35
+ - Including underlying request in errors ([#830](https://github.com/axios/axios/pull/830))
36
+ - Convert `method` to lowercase ([#930](https://github.com/axios/axios/pull/930))
8
37
 
9
38
  ### 0.16.1 (Apr 8, 2017)
10
39
 
11
- - Improving HTTP adapter to return last request in case of redirects ([#828](https://github.com/mzabriskie/axios/pull/828))
12
- - Updating `follow-redirects` dependency ([#829](https://github.com/mzabriskie/axios/pull/829))
13
- - Adding support for passing `Buffer` in node ([#773](https://github.com/mzabriskie/axios/pull/773))
40
+ - Improving HTTP adapter to return last request in case of redirects ([#828](https://github.com/axios/axios/pull/828))
41
+ - Updating `follow-redirects` dependency ([#829](https://github.com/axios/axios/pull/829))
42
+ - Adding support for passing `Buffer` in node ([#773](https://github.com/axios/axios/pull/773))
14
43
 
15
44
  ### 0.16.0 (Mar 31, 2017)
16
45
 
17
- - **BREAKING** Removing `Promise` from axios typings in favor of built-in type declarations ([#480](https://github.com/mzabriskie/axios/issues/480))
18
- - Adding `options` shortcut method ([#461](https://github.com/mzabriskie/axios/pull/461))
19
- - Fixing issue with using `responseType: 'json'` in browsers incompatible with XHR Level 2 ([#654](https://github.com/mzabriskie/axios/pull/654))
20
- - Improving React Native detection ([#731](https://github.com/mzabriskie/axios/pull/731))
21
- - Fixing `combineURLs` to support empty `relativeURL` ([#581](https://github.com/mzabriskie/axios/pull/581))
22
- - Removing `PROTECTION_PREFIX` support ([#561](https://github.com/mzabriskie/axios/pull/561))
46
+ - **BREAKING** Removing `Promise` from axios typings in favor of built-in type declarations ([#480](https://github.com/axios/axios/issues/480))
47
+ - Adding `options` shortcut method ([#461](https://github.com/axios/axios/pull/461))
48
+ - Fixing issue with using `responseType: 'json'` in browsers incompatible with XHR Level 2 ([#654](https://github.com/axios/axios/pull/654))
49
+ - Improving React Native detection ([#731](https://github.com/axios/axios/pull/731))
50
+ - Fixing `combineURLs` to support empty `relativeURL` ([#581](https://github.com/axios/axios/pull/581))
51
+ - Removing `PROTECTION_PREFIX` support ([#561](https://github.com/axios/axios/pull/561))
23
52
 
24
53
  ### 0.15.3 (Nov 27, 2016)
25
54
 
26
- - Fixing issue with custom instances and global defaults ([#443](https://github.com/mzabriskie/axios/issues/443))
27
- - Renaming `axios.d.ts` to `index.d.ts` ([#519](https://github.com/mzabriskie/axios/issues/519))
28
- - Adding `get`, `head`, and `delete` to `defaults.headers` ([#509](https://github.com/mzabriskie/axios/issues/509))
29
- - Fixing issue with `btoa` and IE ([#507](https://github.com/mzabriskie/axios/issues/507))
30
- - Adding support for proxy authentication ([#483](https://github.com/mzabriskie/axios/pull/483))
31
- - Improving HTTP adapter to use `http` protocol by default ([#493](https://github.com/mzabriskie/axios/pull/493))
32
- - Fixing proxy issues ([#491](https://github.com/mzabriskie/axios/pull/491))
55
+ - Fixing issue with custom instances and global defaults ([#443](https://github.com/axios/axios/issues/443))
56
+ - Renaming `axios.d.ts` to `index.d.ts` ([#519](https://github.com/axios/axios/issues/519))
57
+ - Adding `get`, `head`, and `delete` to `defaults.headers` ([#509](https://github.com/axios/axios/issues/509))
58
+ - Fixing issue with `btoa` and IE ([#507](https://github.com/axios/axios/issues/507))
59
+ - Adding support for proxy authentication ([#483](https://github.com/axios/axios/pull/483))
60
+ - Improving HTTP adapter to use `http` protocol by default ([#493](https://github.com/axios/axios/pull/493))
61
+ - Fixing proxy issues ([#491](https://github.com/axios/axios/pull/491))
33
62
 
34
63
  ### 0.15.2 (Oct 17, 2016)
35
64
 
36
- - Fixing issue with calling `cancel` after response has been received ([#482](https://github.com/mzabriskie/axios/issues/482))
65
+ - Fixing issue with calling `cancel` after response has been received ([#482](https://github.com/axios/axios/issues/482))
37
66
 
38
67
  ### 0.15.1 (Oct 14, 2016)
39
68
 
40
- - Fixing issue with UMD ([#485](https://github.com/mzabriskie/axios/issues/485))
69
+ - Fixing issue with UMD ([#485](https://github.com/axios/axios/issues/485))
41
70
 
42
71
  ### 0.15.0 (Oct 10, 2016)
43
72
 
44
- - Adding cancellation support ([#452](https://github.com/mzabriskie/axios/pull/452))
45
- - Moving default adapter to global defaults ([#437](https://github.com/mzabriskie/axios/pull/437))
46
- - Fixing issue with `file` URI scheme ([#440](https://github.com/mzabriskie/axios/pull/440))
47
- - Fixing issue with `params` objects that have no prototype ([#445](https://github.com/mzabriskie/axios/pull/445))
73
+ - Adding cancellation support ([#452](https://github.com/axios/axios/pull/452))
74
+ - Moving default adapter to global defaults ([#437](https://github.com/axios/axios/pull/437))
75
+ - Fixing issue with `file` URI scheme ([#440](https://github.com/axios/axios/pull/440))
76
+ - Fixing issue with `params` objects that have no prototype ([#445](https://github.com/axios/axios/pull/445))
48
77
 
49
78
  ### 0.14.0 (Aug 27, 2016)
50
79
 
51
- - **BREAKING** Updating TypeScript definitions ([#419](https://github.com/mzabriskie/axios/pull/419))
52
- - **BREAKING** Replacing `agent` option with `httpAgent` and `httpsAgent` ([#387](https://github.com/mzabriskie/axios/pull/387))
53
- - **BREAKING** Splitting `progress` event handlers into `onUploadProgress` and `onDownloadProgress` ([#423](https://github.com/mzabriskie/axios/pull/423))
54
- - Adding support for `http_proxy` and `https_proxy` environment variables ([#366](https://github.com/mzabriskie/axios/pull/366))
55
- - Fixing issue with `auth` config option and `Authorization` header ([#397](https://github.com/mzabriskie/axios/pull/397))
56
- - Don't set XSRF header if `xsrfCookieName` is `null` ([#406](https://github.com/mzabriskie/axios/pull/406))
80
+ - **BREAKING** Updating TypeScript definitions ([#419](https://github.com/axios/axios/pull/419))
81
+ - **BREAKING** Replacing `agent` option with `httpAgent` and `httpsAgent` ([#387](https://github.com/axios/axios/pull/387))
82
+ - **BREAKING** Splitting `progress` event handlers into `onUploadProgress` and `onDownloadProgress` ([#423](https://github.com/axios/axios/pull/423))
83
+ - Adding support for `http_proxy` and `https_proxy` environment variables ([#366](https://github.com/axios/axios/pull/366))
84
+ - Fixing issue with `auth` config option and `Authorization` header ([#397](https://github.com/axios/axios/pull/397))
85
+ - Don't set XSRF header if `xsrfCookieName` is `null` ([#406](https://github.com/axios/axios/pull/406))
57
86
 
58
87
  ### 0.13.1 (Jul 16, 2016)
59
88
 
60
- - Fixing issue with response data not being transformed on error ([#378](https://github.com/mzabriskie/axios/issues/378))
89
+ - Fixing issue with response data not being transformed on error ([#378](https://github.com/axios/axios/issues/378))
61
90
 
62
91
  ### 0.13.0 (Jul 13, 2016)
63
92
 
64
- - **BREAKING** Improved error handling ([#345](https://github.com/mzabriskie/axios/pull/345))
65
- - **BREAKING** Response transformer now invoked in dispatcher not adapter ([10eb238](https://github.com/mzabriskie/axios/commit/10eb23865101f9347570552c04e9d6211376e25e))
66
- - **BREAKING** Request adapters now return a `Promise` ([157efd5](https://github.com/mzabriskie/axios/commit/157efd5615890301824e3121cc6c9d2f9b21f94a))
67
- - Fixing issue with `withCredentials` not being overwritten ([#343](https://github.com/mzabriskie/axios/issues/343))
68
- - Fixing regression with request transformer being called before request interceptor ([#352](https://github.com/mzabriskie/axios/issues/352))
69
- - Fixing custom instance defaults ([#341](https://github.com/mzabriskie/axios/issues/341))
70
- - Fixing instances created from `axios.create` to have same API as default axios ([#217](https://github.com/mzabriskie/axios/issues/217))
93
+ - **BREAKING** Improved error handling ([#345](https://github.com/axios/axios/pull/345))
94
+ - **BREAKING** Response transformer now invoked in dispatcher not adapter ([10eb238](https://github.com/axios/axios/commit/10eb23865101f9347570552c04e9d6211376e25e))
95
+ - **BREAKING** Request adapters now return a `Promise` ([157efd5](https://github.com/axios/axios/commit/157efd5615890301824e3121cc6c9d2f9b21f94a))
96
+ - Fixing issue with `withCredentials` not being overwritten ([#343](https://github.com/axios/axios/issues/343))
97
+ - Fixing regression with request transformer being called before request interceptor ([#352](https://github.com/axios/axios/issues/352))
98
+ - Fixing custom instance defaults ([#341](https://github.com/axios/axios/issues/341))
99
+ - Fixing instances created from `axios.create` to have same API as default axios ([#217](https://github.com/axios/axios/issues/217))
71
100
 
72
101
  ### 0.12.0 (May 31, 2016)
73
102
 
74
- - Adding support for `URLSearchParams` ([#317](https://github.com/mzabriskie/axios/pull/317))
75
- - Adding `maxRedirects` option ([#307](https://github.com/mzabriskie/axios/pull/307))
103
+ - Adding support for `URLSearchParams` ([#317](https://github.com/axios/axios/pull/317))
104
+ - Adding `maxRedirects` option ([#307](https://github.com/axios/axios/pull/307))
76
105
 
77
106
  ### 0.11.1 (May 17, 2016)
78
107
 
79
- - Fixing IE CORS support ([#313](https://github.com/mzabriskie/axios/pull/313))
80
- - Fixing detection of `FormData` ([#325](https://github.com/mzabriskie/axios/pull/325))
81
- - Adding `Axios` class to exports ([#321](https://github.com/mzabriskie/axios/pull/321))
108
+ - Fixing IE CORS support ([#313](https://github.com/axios/axios/pull/313))
109
+ - Fixing detection of `FormData` ([#325](https://github.com/axios/axios/pull/325))
110
+ - Adding `Axios` class to exports ([#321](https://github.com/axios/axios/pull/321))
82
111
 
83
112
  ### 0.11.0 (Apr 26, 2016)
84
113
 
85
- - Adding support for Stream with HTTP adapter ([#296](https://github.com/mzabriskie/axios/pull/296))
86
- - Adding support for custom HTTP status code error ranges ([#308](https://github.com/mzabriskie/axios/pull/308))
87
- - Fixing issue with ArrayBuffer ([#299](https://github.com/mzabriskie/axios/pull/299))
114
+ - Adding support for Stream with HTTP adapter ([#296](https://github.com/axios/axios/pull/296))
115
+ - Adding support for custom HTTP status code error ranges ([#308](https://github.com/axios/axios/pull/308))
116
+ - Fixing issue with ArrayBuffer ([#299](https://github.com/axios/axios/pull/299))
88
117
 
89
118
  ### 0.10.0 (Apr 20, 2016)
90
119
 
91
- - Fixing issue with some requests sending `undefined` instead of `null` ([#250](https://github.com/mzabriskie/axios/pull/250))
92
- - Fixing basic auth for HTTP adapter ([#252](https://github.com/mzabriskie/axios/pull/252))
93
- - Fixing request timeout for XHR adapter ([#227](https://github.com/mzabriskie/axios/pull/227))
94
- - Fixing IE8 support by using `onreadystatechange` instead of `onload` ([#249](https://github.com/mzabriskie/axios/pull/249))
95
- - Fixing IE9 cross domain requests ([#251](https://github.com/mzabriskie/axios/pull/251))
96
- - Adding `maxContentLength` option ([#275](https://github.com/mzabriskie/axios/pull/275))
97
- - Fixing XHR support for WebWorker environment ([#279](https://github.com/mzabriskie/axios/pull/279))
98
- - Adding request instance to response ([#200](https://github.com/mzabriskie/axios/pull/200))
120
+ - Fixing issue with some requests sending `undefined` instead of `null` ([#250](https://github.com/axios/axios/pull/250))
121
+ - Fixing basic auth for HTTP adapter ([#252](https://github.com/axios/axios/pull/252))
122
+ - Fixing request timeout for XHR adapter ([#227](https://github.com/axios/axios/pull/227))
123
+ - Fixing IE8 support by using `onreadystatechange` instead of `onload` ([#249](https://github.com/axios/axios/pull/249))
124
+ - Fixing IE9 cross domain requests ([#251](https://github.com/axios/axios/pull/251))
125
+ - Adding `maxContentLength` option ([#275](https://github.com/axios/axios/pull/275))
126
+ - Fixing XHR support for WebWorker environment ([#279](https://github.com/axios/axios/pull/279))
127
+ - Adding request instance to response ([#200](https://github.com/axios/axios/pull/200))
99
128
 
100
129
  ### 0.9.1 (Jan 24, 2016)
101
130
 
102
- - Improving handling of request timeout in node ([#124](https://github.com/mzabriskie/axios/issues/124))
103
- - Fixing network errors not rejecting ([#205](https://github.com/mzabriskie/axios/pull/205))
104
- - Fixing issue with IE rejecting on HTTP 204 ([#201](https://github.com/mzabriskie/axios/issues/201))
105
- - Fixing host/port when following redirects ([#198](https://github.com/mzabriskie/axios/pull/198))
131
+ - Improving handling of request timeout in node ([#124](https://github.com/axios/axios/issues/124))
132
+ - Fixing network errors not rejecting ([#205](https://github.com/axios/axios/pull/205))
133
+ - Fixing issue with IE rejecting on HTTP 204 ([#201](https://github.com/axios/axios/issues/201))
134
+ - Fixing host/port when following redirects ([#198](https://github.com/axios/axios/pull/198))
106
135
 
107
136
  ### 0.9.0 (Jan 18, 2016)
108
137
 
109
138
  - Adding support for custom adapters
110
- - Fixing Content-Type header being removed when data is false ([#195](https://github.com/mzabriskie/axios/pull/195))
111
- - Improving XDomainRequest implementation ([#185](https://github.com/mzabriskie/axios/pull/185))
112
- - Improving config merging and order of precedence ([#183](https://github.com/mzabriskie/axios/pull/183))
113
- - Fixing XDomainRequest support for only <= IE9 ([#182](https://github.com/mzabriskie/axios/pull/182))
139
+ - Fixing Content-Type header being removed when data is false ([#195](https://github.com/axios/axios/pull/195))
140
+ - Improving XDomainRequest implementation ([#185](https://github.com/axios/axios/pull/185))
141
+ - Improving config merging and order of precedence ([#183](https://github.com/axios/axios/pull/183))
142
+ - Fixing XDomainRequest support for only <= IE9 ([#182](https://github.com/axios/axios/pull/182))
114
143
 
115
144
  ### 0.8.1 (Dec 14, 2015)
116
145
 
117
- - Adding support for passing XSRF token for cross domain requests when using `withCredentials` ([#168](https://github.com/mzabriskie/axios/pull/168))
118
- - Fixing error with format of basic auth header ([#178](https://github.com/mzabriskie/axios/pull/173))
119
- - Fixing error with JSON payloads throwing `InvalidStateError` in some cases ([#174](https://github.com/mzabriskie/axios/pull/174))
146
+ - Adding support for passing XSRF token for cross domain requests when using `withCredentials` ([#168](https://github.com/axios/axios/pull/168))
147
+ - Fixing error with format of basic auth header ([#178](https://github.com/axios/axios/pull/173))
148
+ - Fixing error with JSON payloads throwing `InvalidStateError` in some cases ([#174](https://github.com/axios/axios/pull/174))
120
149
 
121
150
  ### 0.8.0 (Dec 11, 2015)
122
151
 
123
- - Adding support for creating instances of axios ([#123](https://github.com/mzabriskie/axios/pull/123))
124
- - Fixing http adapter to use `Buffer` instead of `String` in case of `responseType === 'arraybuffer'` ([#128](https://github.com/mzabriskie/axios/pull/128))
125
- - Adding support for using custom parameter serializer with `paramsSerializer` option ([#121](https://github.com/mzabriskie/axios/pull/121))
126
- - Fixing issue in IE8 caused by `forEach` on `arguments` ([#127](https://github.com/mzabriskie/axios/pull/127))
127
- - Adding support for following redirects in node ([#146](https://github.com/mzabriskie/axios/pull/146))
128
- - Adding support for transparent decompression if `content-encoding` is set ([#149](https://github.com/mzabriskie/axios/pull/149))
129
- - Adding support for transparent XDomainRequest to handle cross domain requests in IE9 ([#140](https://github.com/mzabriskie/axios/pull/140))
130
- - Adding support for HTTP basic auth via Authorization header ([#167](https://github.com/mzabriskie/axios/pull/167))
131
- - Adding support for baseURL option ([#160](https://github.com/mzabriskie/axios/pull/160))
152
+ - Adding support for creating instances of axios ([#123](https://github.com/axios/axios/pull/123))
153
+ - Fixing http adapter to use `Buffer` instead of `String` in case of `responseType === 'arraybuffer'` ([#128](https://github.com/axios/axios/pull/128))
154
+ - Adding support for using custom parameter serializer with `paramsSerializer` option ([#121](https://github.com/axios/axios/pull/121))
155
+ - Fixing issue in IE8 caused by `forEach` on `arguments` ([#127](https://github.com/axios/axios/pull/127))
156
+ - Adding support for following redirects in node ([#146](https://github.com/axios/axios/pull/146))
157
+ - Adding support for transparent decompression if `content-encoding` is set ([#149](https://github.com/axios/axios/pull/149))
158
+ - Adding support for transparent XDomainRequest to handle cross domain requests in IE9 ([#140](https://github.com/axios/axios/pull/140))
159
+ - Adding support for HTTP basic auth via Authorization header ([#167](https://github.com/axios/axios/pull/167))
160
+ - Adding support for baseURL option ([#160](https://github.com/axios/axios/pull/160))
132
161
 
133
162
  ### 0.7.0 (Sep 29, 2015)
134
163
 
135
- - Fixing issue with minified bundle in IE8 ([#87](https://github.com/mzabriskie/axios/pull/87))
136
- - Adding support for passing agent in node ([#102](https://github.com/mzabriskie/axios/pull/102))
137
- - Adding support for returning result from `axios.spread` for chaining ([#106](https://github.com/mzabriskie/axios/pull/106))
138
- - Fixing typescript definition ([#105](https://github.com/mzabriskie/axios/pull/105))
139
- - Fixing default timeout config for node ([#112](https://github.com/mzabriskie/axios/pull/112))
140
- - Adding support for use in web workers, and react-native ([#70](https://github.com/mzabriskie/axios/issue/70)), ([#98](https://github.com/mzabriskie/axios/pull/98))
141
- - Adding support for fetch like API `axios(url[, config])` ([#116](https://github.com/mzabriskie/axios/issues/116))
164
+ - Fixing issue with minified bundle in IE8 ([#87](https://github.com/axios/axios/pull/87))
165
+ - Adding support for passing agent in node ([#102](https://github.com/axios/axios/pull/102))
166
+ - Adding support for returning result from `axios.spread` for chaining ([#106](https://github.com/axios/axios/pull/106))
167
+ - Fixing typescript definition ([#105](https://github.com/axios/axios/pull/105))
168
+ - Fixing default timeout config for node ([#112](https://github.com/axios/axios/pull/112))
169
+ - 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))
170
+ - Adding support for fetch like API `axios(url[, config])` ([#116](https://github.com/axios/axios/issues/116))
142
171
 
143
172
  ### 0.6.0 (Sep 21, 2015)
144
173
 
145
174
  - Removing deprecated success/error aliases
146
- - Fixing issue with array params not being properly encoded ([#49](https://github.com/mzabriskie/axios/pull/49))
147
- - Fixing issue with User-Agent getting overridden ([#69](https://github.com/mzabriskie/axios/issues/69))
148
- - Adding support for timeout config ([#56](https://github.com/mzabriskie/axios/issues/56))
175
+ - Fixing issue with array params not being properly encoded ([#49](https://github.com/axios/axios/pull/49))
176
+ - Fixing issue with User-Agent getting overridden ([#69](https://github.com/axios/axios/issues/69))
177
+ - Adding support for timeout config ([#56](https://github.com/axios/axios/issues/56))
149
178
  - Removing es6-promise dependency
150
- - Fixing issue preventing `length` to be used as a parameter ([#91](https://github.com/mzabriskie/axios/pull/91))
151
- - Fixing issue with IE8 ([#85](https://github.com/mzabriskie/axios/pull/85))
179
+ - Fixing issue preventing `length` to be used as a parameter ([#91](https://github.com/axios/axios/pull/91))
180
+ - Fixing issue with IE8 ([#85](https://github.com/axios/axios/pull/85))
152
181
  - Converting build to UMD
153
182
 
154
183
  ### 0.5.4 (Apr 08, 2015)
155
184
 
156
- - Fixing issue with FormData not being sent ([#53](https://github.com/mzabriskie/axios/issues/53))
185
+ - Fixing issue with FormData not being sent ([#53](https://github.com/axios/axios/issues/53))
157
186
 
158
187
  ### 0.5.3 (Apr 07, 2015)
159
188
 
160
- - Using JSON.parse unconditionally when transforming response string ([#55](https://github.com/mzabriskie/axios/issues/55))
189
+ - Using JSON.parse unconditionally when transforming response string ([#55](https://github.com/axios/axios/issues/55))
161
190
 
162
191
  ### 0.5.2 (Mar 13, 2015)
163
192
 
164
- - Adding support for `statusText` in response ([#46](https://github.com/mzabriskie/axios/issues/46))
193
+ - Adding support for `statusText` in response ([#46](https://github.com/axios/axios/issues/46))
165
194
 
166
195
  ### 0.5.1 (Mar 10, 2015)
167
196
 
168
- - Fixing issue using strict mode ([#45](https://github.com/mzabriskie/axios/issues/45))
169
- - Fixing issue with standalone build ([#47](https://github.com/mzabriskie/axios/issues/47))
197
+ - Fixing issue using strict mode ([#45](https://github.com/axios/axios/issues/45))
198
+ - Fixing issue with standalone build ([#47](https://github.com/axios/axios/issues/47))
170
199
 
171
200
  ### 0.5.0 (Jan 23, 2015)
172
201
 
173
- - Adding support for intercepetors ([#14](https://github.com/mzabriskie/axios/issues/14))
202
+ - Adding support for intercepetors ([#14](https://github.com/axios/axios/issues/14))
174
203
  - Updating es6-promise dependency
175
204
 
176
205
  ### 0.4.2 (Dec 10, 2014)
177
206
 
178
- - Fixing issue with `Content-Type` when using `FormData` ([#22](https://github.com/mzabriskie/axios/issues/22))
179
- - Adding support for TypeScript ([#25](https://github.com/mzabriskie/axios/issues/25))
180
- - Fixing issue with standalone build ([#29](https://github.com/mzabriskie/axios/issues/29))
181
- - Fixing issue with verbs needing to be capitalized in some browsers ([#30](https://github.com/mzabriskie/axios/issues/30))
207
+ - Fixing issue with `Content-Type` when using `FormData` ([#22](https://github.com/axios/axios/issues/22))
208
+ - Adding support for TypeScript ([#25](https://github.com/axios/axios/issues/25))
209
+ - Fixing issue with standalone build ([#29](https://github.com/axios/axios/issues/29))
210
+ - Fixing issue with verbs needing to be capitalized in some browsers ([#30](https://github.com/axios/axios/issues/30))
182
211
 
183
212
  ### 0.4.1 (Oct 15, 2014)
184
213
 
185
- - Adding error handling to request for node.js ([#18](https://github.com/mzabriskie/axios/issues/18))
214
+ - Adding error handling to request for node.js ([#18](https://github.com/axios/axios/issues/18))
186
215
 
187
216
  ### 0.4.0 (Oct 03, 2014)
188
217
 
189
- - Adding support for `ArrayBuffer` and `ArrayBufferView` ([#10](https://github.com/mzabriskie/axios/issues/10))
190
- - Adding support for utf-8 for node.js ([#13](https://github.com/mzabriskie/axios/issues/13))
191
- - Adding support for SSL for node.js ([#12](https://github.com/mzabriskie/axios/issues/12))
192
- - Fixing incorrect `Content-Type` header ([#9](https://github.com/mzabriskie/axios/issues/9))
193
- - Adding standalone build without bundled es6-promise ([#11](https://github.com/mzabriskie/axios/issues/11))
218
+ - Adding support for `ArrayBuffer` and `ArrayBufferView` ([#10](https://github.com/axios/axios/issues/10))
219
+ - Adding support for utf-8 for node.js ([#13](https://github.com/axios/axios/issues/13))
220
+ - Adding support for SSL for node.js ([#12](https://github.com/axios/axios/issues/12))
221
+ - Fixing incorrect `Content-Type` header ([#9](https://github.com/axios/axios/issues/9))
222
+ - Adding standalone build without bundled es6-promise ([#11](https://github.com/axios/axios/issues/11))
194
223
  - Deprecating `success`/`error` in favor of `then`/`catch`
195
224
 
196
225
  ### 0.3.1 (Sep 16, 2014)
197
226
 
198
- - Fixing missing post body when using node.js ([#3](https://github.com/mzabriskie/axios/issues/3))
227
+ - Fixing missing post body when using node.js ([#3](https://github.com/axios/axios/issues/3))
199
228
 
200
229
  ### 0.3.0 (Sep 16, 2014)
201
230
 
202
- - Fixing `success` and `error` to properly receive response data as individual arguments ([#8](https://github.com/mzabriskie/axios/issues/8))
203
- - Updating `then` and `catch` to receive response data as a single object ([#6](https://github.com/mzabriskie/axios/issues/6))
204
- - Fixing issue with `all` not working ([#7](https://github.com/mzabriskie/axios/issues/7))
231
+ - Fixing `success` and `error` to properly receive response data as individual arguments ([#8](https://github.com/axios/axios/issues/8))
232
+ - Updating `then` and `catch` to receive response data as a single object ([#6](https://github.com/axios/axios/issues/6))
233
+ - Fixing issue with `all` not working ([#7](https://github.com/axios/axios/issues/7))
205
234
 
206
235
  ### 0.2.2 (Sep 14, 2014)
207
236
 
208
- - Fixing bundling with browserify ([#4](https://github.com/mzabriskie/axios/issues/4))
237
+ - Fixing bundling with browserify ([#4](https://github.com/axios/axios/issues/4))
209
238
 
210
239
  ### 0.2.1 (Sep 12, 2014)
211
240
 
@@ -214,7 +243,7 @@
214
243
  ### 0.2.0 (Sep 12, 2014)
215
244
 
216
245
  - Adding support for `all` and `spread`
217
- - Adding support for node.js ([#1](https://github.com/mzabriskie/axios/issues/1))
246
+ - Adding support for node.js ([#1](https://github.com/axios/axios/issues/1))
218
247
 
219
248
  ### 0.1.0 (Aug 29, 2014)
220
249
 
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Matt Zabriskie
1
+ Copyright (c) 2014-present Matt Zabriskie
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # axios
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios)
4
- [![build status](https://img.shields.io/travis/mzabriskie/axios.svg?style=flat-square)](https://travis-ci.org/mzabriskie/axios)
4
+ [![build status](https://img.shields.io/travis/axios/axios.svg?style=flat-square)](https://travis-ci.org/axios/axios)
5
5
  [![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/axios.svg?style=flat-square)](http://npm-stat.com/charts.html?package=axios)
7
7
  [![gitter chat](https://img.shields.io/gitter/room/mzabriskie/axios.svg?style=flat-square)](https://gitter.im/mzabriskie/axios)
8
+ [![code helpers](https://www.codetriage.com/axios/axios/badges/users.svg)](https://www.codetriage.com/axios/axios)
8
9
 
9
10
  Promise based HTTP client for the browser and node.js
10
11
 
@@ -23,7 +24,7 @@ Promise based HTTP client for the browser and node.js
23
24
 
24
25
  ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |
25
26
  --- | --- | --- | --- | --- | --- |
26
- Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8+ ✔ |
27
+ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
27
28
 
28
29
  [![Browser Matrix](https://saucelabs.com/open_sauce/build_matrix/axios.svg)](https://saucelabs.com/u/axios)
29
30
 
@@ -215,7 +216,8 @@ These are the available config options for making requests. Only the `url` is re
215
216
  // This is only applicable for request methods 'PUT', 'POST', and 'PATCH'
216
217
  // The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
217
218
  // FormData or Stream
218
- transformRequest: [function (data) {
219
+ // You may modify the headers object.
220
+ transformRequest: [function (data, headers) {
219
221
  // Do whatever you want to transform the data
220
222
 
221
223
  return data;
@@ -311,6 +313,12 @@ These are the available config options for making requests. Only the `url` is re
311
313
  // If set to 0, no redirects will be followed.
312
314
  maxRedirects: 5, // default
313
315
 
316
+ // `socketPath` defines a UNIX Socket to be used in node.js.
317
+ // e.g. '/var/run/docker.sock' to send requests to the docker daemon.
318
+ // Only either `socketPath` or `proxy` can be specified.
319
+ // If both are specified, `socketPath` is used.
320
+ socketPath: null, // default
321
+
314
322
  // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
315
323
  // and https requests, respectively, in node.js. This allows options to be added like
316
324
  // `keepAlive` that are not enabled by default.
@@ -318,6 +326,7 @@ These are the available config options for making requests. Only the `url` is re
318
326
  httpsAgent: new https.Agent({ keepAlive: true }),
319
327
 
320
328
  // 'proxy' defines the hostname and port of the proxy server
329
+ // Use `false` to disable proxies, ignoring environment variables.
321
330
  // `auth` indicates that HTTP Basic auth should be used to connect to the proxy, and
322
331
  // supplies credentials.
323
332
  // This will set an `Proxy-Authorization` header, overwriting any existing
@@ -408,7 +417,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
408
417
 
409
418
  ### Config order of precedence
410
419
 
411
- Config will be merged with an order of precedence. The order is library defaults found in `lib/defaults.js`, then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example.
420
+ Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults.js](https://github.com/axios/axios/blob/master/lib/defaults.js#L28), then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example.
412
421
 
413
422
  ```js
414
423
  // Create an instance using the config defaults provided by the library
@@ -519,6 +528,12 @@ axios.get('/user/12345', {
519
528
  }
520
529
  });
521
530
 
531
+ axios.post('/user/12345', {
532
+ name: 'new name'
533
+ }, {
534
+ cancelToken: source.token
535
+ })
536
+
522
537
  // cancel the request (the message parameter is optional)
523
538
  source.cancel('Operation canceled by the user.');
524
539
  ```
@@ -557,7 +572,7 @@ params.append('param2', 'value2');
557
572
  axios.post('/foo', params);
558
573
  ```
559
574
 
560
- > Note that `URLSearchParams` is not supported by all browsers, but there is a [polyfill](https://github.com/WebReflection/url-search-params) available (make sure to polyfill the global environment).
575
+ > Note that `URLSearchParams` is not supported by all browsers (see [caniuse.com](http://www.caniuse.com/#feat=urlsearchparams)), but there is a [polyfill](https://github.com/WebReflection/url-search-params) available (make sure to polyfill the global environment).
561
576
 
562
577
  Alternatively, you can encode data using the [`qs`](https://github.com/ljharb/qs) library:
563
578
 
@@ -575,7 +590,7 @@ var querystring = require('querystring');
575
590
  axios.post('http://something.com/', querystring.stringify({ foo: 'bar' }));
576
591
  ```
577
592
 
578
- You can also use the `qs` library.
593
+ You can also use the [`qs`](https://github.com/ljharb/qs) library.
579
594
 
580
595
  ## Semver
581
596
 
@@ -595,11 +610,11 @@ axios.get('/user?ID=12345');
595
610
 
596
611
  ## Resources
597
612
 
598
- * [Changelog](https://github.com/mzabriskie/axios/blob/master/CHANGELOG.md)
599
- * [Upgrade Guide](https://github.com/mzabriskie/axios/blob/master/UPGRADE_GUIDE.md)
600
- * [Ecosystem](https://github.com/mzabriskie/axios/blob/master/ECOSYSTEM.md)
601
- * [Contributing Guide](https://github.com/mzabriskie/axios/blob/master/CONTRIBUTING.md)
602
- * [Code of Conduct](https://github.com/mzabriskie/axios/blob/master/CODE_OF_CONDUCT.md)
613
+ * [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
614
+ * [Upgrade Guide](https://github.com/axios/axios/blob/master/UPGRADE_GUIDE.md)
615
+ * [Ecosystem](https://github.com/axios/axios/blob/master/ECOSYSTEM.md)
616
+ * [Contributing Guide](https://github.com/axios/axios/blob/master/CONTRIBUTING.md)
617
+ * [Code of Conduct](https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md)
603
618
 
604
619
  ## Credits
605
620
 
package/UPGRADE_GUIDE.md CHANGED
@@ -115,8 +115,8 @@ function myAdapter(config) {
115
115
  ```
116
116
 
117
117
  See the related commits for more details:
118
- - [Response transformers](https://github.com/mzabriskie/axios/commit/10eb23865101f9347570552c04e9d6211376e25e)
119
- - [Request adapter Promise](https://github.com/mzabriskie/axios/commit/157efd5615890301824e3121cc6c9d2f9b21f94a)
118
+ - [Response transformers](https://github.com/axios/axios/commit/10eb23865101f9347570552c04e9d6211376e25e)
119
+ - [Request adapter Promise](https://github.com/axios/axios/commit/157efd5615890301824e3121cc6c9d2f9b21f94a)
120
120
 
121
121
  ### 0.5.x -> 0.6.0
122
122
 
@@ -135,7 +135,7 @@ This will polyfill the global environment, and only needs to be done once.
135
135
 
136
136
  #### `axios.success`/`axios.error`
137
137
 
138
- The `success`, and `error` aliases were deprectated in [0.4.0](https://github.com/mzabriskie/axios/blob/master/CHANGELOG.md#040-oct-03-2014). As of this release they have been removed entirely. Instead please use `axios.then`, and `axios.catch` respectively.
138
+ The `success`, and `error` aliases were deprectated in [0.4.0](https://github.com/axios/axios/blob/master/CHANGELOG.md#040-oct-03-2014). As of this release they have been removed entirely. Instead please use `axios.then`, and `axios.catch` respectively.
139
139
 
140
140
  ```js
141
141
  axios.get('some/url')