urllib 2.41.0 → 2.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,14 +2,12 @@
2
2
 
3
3
  [![NPM version][npm-image]][npm-url]
4
4
  [![Node.js CI](https://github.com/node-modules/urllib/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/urllib/actions/workflows/nodejs.yml)
5
- [![Test coverage][codecov-image]][codecov-url]
5
+ [![codecov](https://codecov.io/gh/node-modules/urllib/branch/2.x/graph/badge.svg?token=xXIihkywZr)](https://codecov.io/gh/node-modules/urllib)
6
6
  [![Known Vulnerabilities][snyk-image]][snyk-url]
7
7
  [![npm download][download-image]][download-url]
8
8
 
9
9
  [npm-image]: https://img.shields.io/npm/v/urllib.svg?style=flat-square
10
10
  [npm-url]: https://npmjs.org/package/urllib
11
- [codecov-image]: https://codecov.io/gh/node-modules/urllib/branch/master/graph/badge.svg
12
- [codecov-url]: https://codecov.io/gh/node-modules/urllib
13
11
  [snyk-image]: https://snyk.io/test/npm/urllib/badge.svg?style=flat-square
14
12
  [snyk-url]: https://snyk.io/test/npm/urllib
15
13
  [download-image]: https://img.shields.io/npm/dm/urllib.svg?style=flat-square
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var debug = require('debug')('urllib:detect_proxy_agent');
3
+ var debug = require('util').debuglog('urllib:detect_proxy_agent');
4
4
  var getProxyFromURI = require('./get_proxy_from_uri');
5
5
 
6
6
  var proxyAgents = {};
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var util = require('util');
4
- var debug = require('debug')('urllib');
4
+ var debug = require('util').debuglog('urllib');
5
5
  var ms = require('humanize-ms');
6
6
  var HttpClient = require('./httpclient');
7
7
 
package/lib/urllib.js CHANGED
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var debug = require('debug')('urllib');
3
+ var debug = require('util').debuglog('urllib');
4
4
  var path = require('path');
5
5
  var dns = require('dns');
6
+ var net = require('net');
6
7
  var http = require('http');
7
8
  var https = require('https');
8
9
  var urlutil = require('url');
9
10
  var URL = urlutil.URL;
10
11
  var util = require('util');
11
12
  var qs = require('qs');
12
- var ip = require('ip');
13
13
  var querystring = require('querystring');
14
14
  var zlib = require('zlib');
15
15
  var ua = require('default-user-agent');
@@ -1009,11 +1009,11 @@ function requestWithCallback(url, args, callback) {
1009
1009
 
1010
1010
  if (args.checkAddress) {
1011
1011
  var hostname = parsedUrl.hostname;
1012
- // if request hostname is ip, custom lookup wont excute
1012
+ // if request hostname is ip, custom lookup wont execute
1013
1013
  var family = null;
1014
- if (ip.isV4Format(hostname)) {
1014
+ if (net.isIPv4(hostname)) {
1015
1015
  family = 4;
1016
- } else if (ip.isV6Format(hostname)) {
1016
+ } else if (net.isIPv6(hostname)) {
1017
1017
  family = 6;
1018
1018
  }
1019
1019
  if (family) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "urllib",
3
- "version": "2.41.0",
3
+ "version": "2.42.0",
4
4
  "publishConfig": {
5
5
  "tag": "latest-2"
6
6
  },
@@ -37,14 +37,12 @@
37
37
  "dependencies": {
38
38
  "any-promise": "^1.3.0",
39
39
  "content-type": "^1.0.2",
40
- "debug": "^2.6.9",
41
40
  "default-user-agent": "^1.0.0",
42
41
  "digest-header": "^1.0.0",
43
42
  "ee-first": "~1.1.1",
44
43
  "formstream": "^1.1.0",
45
44
  "humanize-ms": "^1.2.0",
46
45
  "iconv-lite": "^0.4.15",
47
- "ip": "^1.1.5",
48
46
  "pump": "^3.0.0",
49
47
  "qs": "^6.4.0",
50
48
  "statuses": "^1.3.1",
@@ -67,8 +65,7 @@
67
65
  "busboy": "^0.2.14",
68
66
  "co": "*",
69
67
  "coffee": "1",
70
- "egg-ci": "^1.15.0",
71
- "git-contributor": "^1.0.10",
68
+ "git-contributor": "2",
72
69
  "http-proxy": "^1.16.2",
73
70
  "istanbul": "*",
74
71
  "jshint": "*",
@@ -87,12 +84,5 @@
87
84
  "engines": {
88
85
  "node": ">= 0.10.0"
89
86
  },
90
- "ci": {
91
- "type": "github",
92
- "os": {
93
- "github": "linux, windows, macos"
94
- },
95
- "version": "8, 10, 12, 14, 16"
96
- },
97
87
  "license": "MIT"
98
88
  }
package/History.md DELETED
@@ -1,831 +0,0 @@
1
-
2
- 2.41.0 / 2023-07-28
3
- ==================
4
-
5
- **features**
6
- * [[`9dbcc78`](http://github.com/node-modules/urllib/commit/9dbcc78671bb0bad890bfcb1f2ecf82725b27b67)] - feat: avoid deps vm2 (#457) (fengmk2 <<fengmk2@gmail.com>>)
7
-
8
- 2.40.0 / 2022-10-22
9
- ==================
10
-
11
- **features**
12
- * [[`59b8cad`](http://github.com/node-modules/urllib/commit/59b8cad667ff856552647cb20edec6ad60fa4d50)] - 👌 IMPROVE: Upgrade digest-header to v1 (#415) (fengmk2 <<fengmk2@gmail.com>>)
13
-
14
- 2.39.1 / 2022-10-09
15
- ==================
16
-
17
- **fixes**
18
- * [[`01b54a9`](http://github.com/node-modules/urllib/commit/01b54a9fa48bdd745798fd06ad32ed41f22815d3)] - 🐛 FIX: support old ts version (fengmk2 <<fengmk2@gmail.com>>)
19
-
20
- 2.39.0 / 2022-10-09
21
- ==================
22
-
23
- **features**
24
- * [[`2896cf0`](http://github.com/node-modules/urllib/commit/2896cf01234184bdefc23506ec6c5aaba81d30c2)] - 👌 IMPROVE: support lower case method on d.ts (#410) (fengmk2 <<fengmk2@gmail.com>>)
25
-
26
- **others**
27
- * [[`0a200be`](http://github.com/node-modules/urllib/commit/0a200bec22a4fd6895e864366e66c99a8559e5f8)] - chore: change npm tag to latest-2 (fengmk2 <<fengmk2@gmail.com>>)
28
-
29
- 2.38.1 / 2022-07-05
30
- ==================
31
-
32
- **fixes**
33
- * [[`f343daa`](http://github.com/node-modules/urllib/commit/f343daa6d1ffb91ebed00e0f858fcb4378921349)] - fix: ignore request error if request is done (#384) (killa <<killa123@126.com>>)
34
-
35
- **others**
36
- * [[`518d22c`](http://github.com/node-modules/urllib/commit/518d22c30e3888e6cffec0572f05af0fc30f824f)] - Create codeql-analysis.yml (fengmk2 <<fengmk2@gmail.com>>)
37
- * [[`7daf2fa`](http://github.com/node-modules/urllib/commit/7daf2fa599ac294ffc8a3adfe7015b667f13e59a)] - chore: update contributors (fengmk2 <<fengmk2@gmail.com>>)
38
- * [[`20451f2`](http://github.com/node-modules/urllib/commit/20451f2898fba90a72c9b953e518e2f67a3bddd7)] - test: add tsd for timing interface (#377) (fengmk2 <<fengmk2@gmail.com>>)
39
- * [[`f662c2b`](http://github.com/node-modules/urllib/commit/f662c2b066d3d4363491ee552a0976fe29a528cf)] - chore: update contributors (fengmk2 <<fengmk2@gmail.com>>)
40
-
41
- 2.38.0 / 2021-11-24
42
- ==================
43
-
44
- **others**
45
- * [[`6d19f99`](http://github.com/node-modules/urllib/commit/6d19f99f6490df67832d1d2a9c39743c0de1cbd5)] - tsd: add timing interface (#375) (弘树@阿里 <<dickeylth@users.noreply.github.com>>)
46
- * [[`9c9c65b`](http://github.com/node-modules/urllib/commit/9c9c65b0e8344c1a30c157628a675440b8a616c1)] - test: check TypeScript type definitions (#373) (fengmk2 <<fengmk2@gmail.com>>)
47
-
48
- 2.37.4 / 2021-09-07
49
- ==================
50
-
51
- **fixes**
52
- * [[`1e6622a`](http://github.com/node-modules/urllib/commit/1e6622a571b3e6f72c5f187a224bddedcbc382cf)] - fix: upgrade proxy-agent to fix the security vulnerability. (#368) (hyj1991 <<yeekwanvong@gmail.com>>)
53
-
54
- **others**
55
- * [[`ae27498`](http://github.com/node-modules/urllib/commit/ae2749811e40262da8bf2641599b066344fa6b05)] - docs: notes contentType's value (#349) (changzhi <<changzhiwin@gmail.com>>)
56
-
57
- 2.37.3 / 2021-07-05
58
- ==================
59
-
60
- **fixes**
61
- * [[`b730a6c`](http://github.com/node-modules/urllib/commit/b730a6cdc0465bea1c08d50bfa3b5e95bd17b31f)] - fix: 🐛 redirect status code (#363) (Hongcai Deng <<admin@dhchouse.com>>)
62
-
63
- 2.37.2 / 2021-06-07
64
- ==================
65
-
66
- **fixes**
67
- * [[`04734a1`](http://github.com/node-modules/urllib/commit/04734a13e146da501f4e38333d5de9f9bbb259d1)] - fix: 🐛 should trigger response event when follow redirect (#361) (Hongcai Deng <<admin@dhchouse.com>>)
68
-
69
- 2.37.1 / 2021-04-15
70
- ==================
71
-
72
- **others**
73
- * [[`d50afda`](http://github.com/node-modules/urllib/commit/d50afda91befff75f044a1ad83689f7a459c5d32)] - Update proxy-agent to v4 to resolve vulnerability (#355) (Chad McElligott <<chad.mcelligott@gmail.com>>)
74
-
75
- 2.37.0 / 2021-04-02
76
- ==================
77
-
78
- **features**
79
- * [[`2acf75b`](http://github.com/node-modules/urllib/commit/2acf75b75050667f7341e6990078e0330e704af1)] - feat: add unix domain socket file support (#352) (Khaidi Chu <<i@2333.moe>>)
80
-
81
- **others**
82
- * [[`f2a42d1`](http://github.com/node-modules/urllib/commit/f2a42d19d2236979c16eea13c229839e5a78b381)] - chore: LICENSE link typo (fengmk2 <<fengmk2@gmail.com>>)
83
- * [[`28a0152`](http://github.com/node-modules/urllib/commit/28a0152c0ae5d4470d88b8122724b6228b48b319)] - chore: update contributors (fengmk2 <<fengmk2@gmail.com>>)
84
- * [[`5674670`](http://github.com/node-modules/urllib/commit/56746704d61116d99846d94480d223a9e3c42913)] - test: add socket checker test case (#341) (fengmk2 <<fengmk2@gmail.com>>)
85
- * [[`d953ec0`](http://github.com/node-modules/urllib/commit/d953ec0e55ec28d553a24c5cf0fcb64715e7c8f9)] - test: add testcase for using retry and writeStream in HttpClient2 (#350) (Haoliang Gao <<sakura9515@gmail.com>>)
86
-
87
- 2.36.1 / 2020-06-09
88
- ==================
89
-
90
- **others**
91
- * [[`35eecc0`](http://github.com/node-modules/urllib/commit/35eecc021f55e324b2520f91a032a33517d94f29)] - chore: add type declaration for RequestOptions#keepHeaderCase (#345) (William <<willizm.cn@gmail.com>>)
92
-
93
- 2.36.0 / 2020-06-08
94
- ==================
95
-
96
- **fixes**
97
- * [[`15c4170`](http://github.com/node-modules/urllib/commit/15c4170beab4404b0576caa01e199f445c476b7d)] - fix: allow to keep origin header key case (#344) (TZ | 天猪 <<atian25@qq.com>>)
98
-
99
- **others**
100
- * [[`31c03b8`](http://github.com/node-modules/urllib/commit/31c03b853ae5db00c7223c0a1a545dfcf0b07aa5)] - chore: Update and rename LICENSE.txt to LICENSE (#343) (Yuxiang LIU <<david-khala@hotmail.com>>)
101
-
102
- 2.35.0 / 2020-05-15
103
- ==================
104
-
105
- **features**
106
- * [[`47c21bd`](http://github.com/node-modules/urllib/commit/47c21bd93648080589bdc6528d9e9cf3e0489951)] - feat: change header to lowercase (#337) (TZ | 天猪 <<atian25@qq.com>>)
107
-
108
- **fixes**
109
- * [[`8f2ca64`](http://github.com/node-modules/urllib/commit/8f2ca648608995d140d0ca3873ef728bdbd4ee41)] - fix: need to handle response data on close event (#340) (fengmk2 <<fengmk2@gmail.com>>)
110
- * [[`175ad2b`](http://github.com/node-modules/urllib/commit/175ad2b3e17196626c701ef72396dd6932d14c7a)] - fix: res.socket is null in node-v14.x (#339) (hyj1991 <<yeekwanvong@gmail.com>>)
111
-
112
- 2.34.2 / 2019-12-09
113
- ==================
114
-
115
- **fixes**
116
- * [[`67d5b1c`](http://github.com/node-modules/urllib/commit/67d5b1c35dc302778aa4b992ea4998fe427e3cc8)] - fix: index.d.ts (#334) (Daniels.Sun <<better.sunjian@gmail.com>>)
117
-
118
- 2.34.1 / 2019-09-02
119
- ==================
120
-
121
- **fixes**
122
- * [[`3da9339`](http://github.com/node-modules/urllib/commit/3da9339aacf4aa59c17b40ff1793d320bc9d9f61)] - fix: rejectUnauthorized under Node.js 12 (#328) (Khaidi Chu <<i@2333.moe>>)
123
-
124
- **others**
125
- * [[`061f600`](http://github.com/node-modules/urllib/commit/061f60075249c136b1ca7e1e2519dae25cb9e55d)] - test: add a test case for posting xml data to reflect #69 (#324) (Jeff <<jeff.tian@outlook.com>>)
126
-
127
- 2.34.0 / 2019-05-07
128
- ==================
129
-
130
- **features**
131
- * [[`11f5d34`](http://github.com/node-modules/urllib/commit/11f5d34ea3d8aafbda4f3f5345d6dcfe7e20daa2)] - feat: support multipart/form-data by default (#322) (fengmk2 <<fengmk2@gmail.com>>)
132
-
133
- **others**
134
- * [[`3c24781`](http://github.com/node-modules/urllib/commit/3c2478100f8490a0fd6f4c49772c682d38fcf43e)] - chore: update contributors (fengmk2 <<fengmk2@gmail.com>>)
135
-
136
- 2.33.4 / 2019-05-06
137
- ==================
138
-
139
- **fixes**
140
- * [[`1f9566c`](http://github.com/node-modules/urllib/commit/1f9566c3dbb0be02e895647ced2d8eba06ce28aa)] - fix: don't parse URL on node 4 (#321) (fengmk2 <<fengmk2@gmail.com>>)
141
- * [[`3384e53`](http://github.com/node-modules/urllib/commit/3384e53e8447a5cb06402a43d07d7eb19a24bb62)] - fix: normalize url with WHATWG URL to solve #319 (#320) (Chen Yangjian <<252317+cyjake@users.noreply.github.com>>)
142
-
143
- 2.33.3 / 2019-04-11
144
- ==================
145
-
146
- **others**
147
- * [[`e08f71a`](http://github.com/node-modules/urllib/commit/e08f71af8c261318289d056260a156eca9d6a274)] - upgrade: proxy-agent@3.1.0 (#315) (薛定谔的猫 <<weiran.zsd@outlook.com>>)
148
-
149
- 2.33.2 / 2019-03-26
150
- ==================
151
-
152
- **fixes**
153
- * [[`a2a8a1d`](http://github.com/node-modules/urllib/commit/a2a8a1de8088f1a1b6f96de9e9c2cee408bc165b)] - fix: only copy enumerable and ownProperty value of args.headers (#313) (fengmk2 <<fengmk2@gmail.com>>)
154
-
155
- 2.33.1 / 2019-03-21
156
- ==================
157
-
158
- **fixes**
159
- * [[`f8091ce`](http://github.com/node-modules/urllib/commit/f8091ce41885178f4a1b50d6daf79a77bdead9f0)] - fix: cancel connect timer when done is called (Daniel Wang <<danielwpz@gmail.com>>)
160
-
161
- 2.33.0 / 2019-01-09
162
- ==================
163
-
164
- **features**
165
- * [[`a5df9d5`](http://github.com/node-modules/urllib/commit/a5df9d5257a8d18dd0d71f7c76aff7f6464e9484)] - feat: add typescript definition (#308) (Haoliang Gao <<sakura9515@gmail.com>>)
166
-
167
- **others**
168
- * [[`47ad864`](http://github.com/node-modules/urllib/commit/47ad864eba92a1e0f5a730adad6e8582af3fdbd8)] - test: add test case for streaming timeout (#307) (Yiyu He <<dead_horse@qq.com>>)
169
-
170
- 2.32.0 / 2019-01-07
171
- ==================
172
-
173
- **features**
174
- * [[`a42445e`](http://github.com/node-modules/urllib/commit/a42445edfcaa17b9840afa8b4e06d1928d58ab53)] - feat: Expose status message from original Response (#306) (GP ✅ <<exchequer598@gmail.com>>)
175
-
176
- 2.31.3 / 2018-11-30
177
- ==================
178
-
179
- **fixes**
180
- * [[`98a1622`](http://github.com/node-modules/urllib/commit/98a16225aa21b37c2bfbfe318fe1803eedbd2d0c)] - fix: ensure timeout error is handled when request with stream (#305) (Yiyu He <<dead_horse@qq.com>>)
181
-
182
- **others**
183
- * [[`2bb86c0`](http://github.com/node-modules/urllib/commit/2bb86c0fe1f34cf8d12e397158e714a86f697093)] - test: only use junit report on azure-pipelines (#304) (fengmk2 <<fengmk2@gmail.com>>)
184
- * [[`bd869c7`](http://github.com/node-modules/urllib/commit/bd869c704387d3159ca50bf1976c6c70358b3ee4)] - test: Publish test results to Azure Pipelines (#303) (Rishav Sharan <<rishav.sharan@microsoft.com>>)
185
-
186
- 2.31.2 / 2018-11-13
187
- ==================
188
-
189
- **fixes**
190
- * [[`227618a`](http://github.com/node-modules/urllib/commit/227618ad0ceef68b409ba7ec9328bdcaba513b3e)] - fix: allow agent set to null (#301) (fengmk2 <<fengmk2@gmail.com>>)
191
-
192
- 2.31.1 / 2018-11-01
193
- ==================
194
-
195
- **fixes**
196
- * [[`83fc316`](http://github.com/node-modules/urllib/commit/83fc3165aa477bd7b034c075ae133a52627fc12b)] - fix: Omit the 'Accept-Encoding' header if it is explicitly set to 'null' (#298) (GP ✅ <<exchequer598@gmail.com>>)
197
- * [[`36c24c3`](http://github.com/node-modules/urllib/commit/36c24c3f54b6115c178540803a9ffae733bba063)] - fix: should autofix socket timeout by request.timeout (#300) (fengmk2 <<fengmk2@gmail.com>>)
198
-
199
- 2.31.0 / 2018-10-24
200
- ==================
201
-
202
- **features**
203
- * [[`28c38d2`](http://github.com/node-modules/urllib/commit/28c38d2451d85669decfdaf16ea07eaf958d41eb)] - feat: support agentkeepalive@4 (#297) (fengmk2 <<fengmk2@gmail.com>>)
204
- * [[`c79eefc`](http://github.com/node-modules/urllib/commit/c79eefc9843fb6a2aeb9e728ed4f8f912e8866ad)] - feat: Do not set User-Agent if the header is explicitly set to null (GP <<exchequer598@gmail.com>>)
205
-
206
- 2.30.0 / 2018-09-26
207
- ==================
208
-
209
- **features**
210
- * [[`b760530`](http://github.com/node-modules/urllib/commit/b76053020923f4d99a1c93cf2e16e0c5ba10bacf)] - feat: implement trace option like mysql client (#290) (killa <<killa123@126.com>>)
211
-
212
- **others**
213
- * [[`5e80ee8`](http://github.com/node-modules/urllib/commit/5e80ee8f3e8992da98b0a270de5a9298627841c7)] - test: run ci on azure-pipelines (#292) (azure-pipelines[bot] <<azure-pipelines[bot]@users.noreply.github.com>>)
214
-
215
- 2.29.1 / 2018-07-26
216
- ==================
217
-
218
- **fixes**
219
- * [[`ab39245`](http://github.com/node-modules/urllib/commit/ab39245ecb8d75f56b559c193b26c4a19e7bbbfe)] - fix: keep exists accept header on dataType = json (#289) (fengmk2 <<fengmk2@gmail.com>>)
220
-
221
- 2.29.0 / 2018-07-03
222
- ==================
223
-
224
- **features**
225
- * [[`4ca0c48`](http://github.com/node-modules/urllib/commit/4ca0c486699ff9e7e8b59f381a963a1133b59a96)] - feat: add socket handled request and response count (#288) (fengmk2 <<fengmk2@gmail.com>>)
226
-
227
- 2.28.1 / 2018-06-01
228
- ==================
229
-
230
- **fixes**
231
- * [[`6bc31b9`](http://github.com/node-modules/urllib/commit/6bc31b9af77bbf5c4acab7e430116b071160b6d5)] - fix: use pump to close request stream (#287) (fengmk2 <<fengmk2@gmail.com>>)
232
-
233
- **others**
234
- * [[`8087683`](http://github.com/node-modules/urllib/commit/8087683710118088891a580666b149181e1cab86)] - test: add node 10 support (#285) (fengmk2 <<fengmk2@gmail.com>>)
235
-
236
- 2.28.0 / 2018-05-25
237
- ==================
238
-
239
- **features**
240
- * [[`c0221ff`](http://github.com/node-modules/urllib/commit/c0221ff08934519bacbcf96660f126d5d6279c02)] - feat: support deflate compress for response (#283) (iSayme <<isaymeorg@gmail.com>>)
241
-
242
- **others**
243
- * [[`60ea1f6`](http://github.com/node-modules/urllib/commit/60ea1f653a29e0c8949fb3be5d82fe1fddf2a0f3)] - test: update url, the /:package/* not avalable anymore (#284) (iSayme <<isaymeorg@gmail.com>>)
244
-
245
- 2.27.0 / 2018-03-26
246
- ==================
247
-
248
- **features**
249
- * [[`a6c93fd`](http://github.com/node-modules/urllib/commit/a6c93fd07e75e45c6eda09c732d0b72ff5dc9199)] - feat: support args.checkAddress (#279) (Yiyu He <<dead_horse@qq.com>>)
250
-
251
- 2.26.0 / 2018-02-28
252
- ==================
253
-
254
- **features**
255
- * [[`d6e7c58`](http://github.com/node-modules/urllib/commit/d6e7c58b3688d415091ddc0c845b7cb8d57e20cc)] - feat: support Keep-Alive Header (#275) (fengmk2 <<fengmk2@gmail.com>>)
256
-
257
- 2.25.4 / 2018-01-18
258
- ==================
259
-
260
- **fixes**
261
- * [[`9c496a0`](http://github.com/node-modules/urllib/commit/9c496a0510ee17f72129e1298cf310a8b1aee327)] - fix: Changed to "new (require('proxy-agent'))(proxy)" (#273) (Nick Ng <<nick-ng@users.noreply.github.com>>)
262
-
263
- 2.25.3 / 2017-12-29
264
- ==================
265
-
266
- **fixes**
267
- * [[`e3df75e`](http://github.com/node-modules/urllib/commit/e3df75e249f67c943ac42d61abd1649291ba5f74)] - fix: res.requestUrls should be string array (#271) (hui <<kangpangpang@gmail.com>>)
268
-
269
- 2.25.2 / 2017-12-28
270
- ==================
271
-
272
- **fixes**
273
- * [[`2df6906`](http://github.com/node-modules/urllib/commit/2df6906d188bc53aa2d24efa0d318e52cccf9d78)] - fix: make sure request event url should be a string (#270) (hui <<kangpangpang@gmail.com>>)
274
-
275
- 2.25.1 / 2017-10-20
276
- ==================
277
-
278
- **fixes**
279
- * [[`ac9bc64`](http://github.com/node-modules/urllib/commit/ac9bc645149ffa5d9a1e8450ba00721a92d18f13)] - fix: don't change args.headers (#267) (fengmk2 <<fengmk2@gmail.com>>)
280
-
281
- **others**
282
- * [[`b798546`](http://github.com/node-modules/urllib/commit/b798546ef240de7a4dbe8ba5feb05536a4912b1b)] - docs: fixed spelling mistake (#266) (Axes <<whxaxes@qq.com>>)
283
-
284
- 2.25.0 / 2017-09-08
285
- ==================
286
-
287
- **features**
288
- * [[`95cabd6`](http://github.com/node-modules/urllib/commit/95cabd650ffb4996819570dea2518dea875d8452)] - feat: support custom fixJSONCtlChars function (#264) (fengmk2 <<fengmk2@gmail.com>>)
289
-
290
- 2.24.0 / 2017-07-31
291
- ==================
292
-
293
- * feat: support http(s) proxy (#226)
294
-
295
- 2.23.0 / 2017-07-18
296
- ==================
297
-
298
- * test: skip test.webdav.org test cases
299
- * feat: add defaultArgs on HttpClient
300
-
301
- 2.22.0 / 2017-04-10
302
- ==================
303
-
304
- * feat: add options.nestedQuerystring (#254)
305
-
306
- 2.21.2 / 2017-03-19
307
- ==================
308
-
309
- * fix: don't listen response aborted on node > 0.12 (#252)
310
-
311
- 2.21.1 / 2017-03-16
312
- ==================
313
-
314
- * fix: throw when write to stream timeout (#251)
315
-
316
- 2.21.0 / 2017-02-27
317
- ==================
318
-
319
- * fix: should pass options to httpclient2 (#249)
320
- * test: fix Promise not defined on 0.10
321
- * test: use assert instead of should
322
- * feat: add retry delay on httpclient2
323
-
324
- 2.20.0 / 2017-02-06
325
- ==================
326
-
327
- * deps: bump deps versions
328
- * fix: keep the same req object across request and response event
329
-
330
- 2.19.0 / 2016-12-14
331
- ==================
332
-
333
- * feat: add `dataAsQueryString` params for convert data to query string (#240)
334
-
335
- 2.18.0 / 2016-12-07
336
- ==================
337
-
338
- * fix: use nextTick to prevent promise handling error.
339
- * refactor: move to separated files
340
- * feat: add retry option
341
-
342
- 2.17.1 / 2016-11-25
343
- ==================
344
-
345
- * add environment detection for connect timer, because no socket event in browser env (#236)
346
-
347
- 2.17.0 / 2016-10-13
348
- ==================
349
-
350
- * feat: add -2 status for connect timeout (#224)
351
-
352
- 2.16.1 / 2016-10-10
353
- ==================
354
-
355
- * fix: parse content-type (#221)
356
-
357
- 2.16.0 / 2016-09-27
358
- ==================
359
-
360
- * feat: add custom dns lookup function (#220)
361
-
362
- 2.15.1 / 2016-09-26
363
- ==================
364
-
365
- * fix: httpclient support set agent to false (#219)
366
-
367
- 2.15.0 / 2016-09-21
368
- ==================
369
-
370
- * feat: export remoteAddress and remotePort (#216)
371
-
372
- 2.14.0 / 2016-09-19
373
- ==================
374
-
375
- * feat: allow user to rewrite redirect url (#214)
376
-
377
- 2.13.2 / 2016-09-18
378
- ==================
379
-
380
- * fix: response size should use last one (#213)
381
-
382
- 2.13.1 / 2016-09-10
383
- ==================
384
-
385
- * fix: add missing ctx on request event (#210)
386
-
387
- 2.13.0 / 2016-08-09
388
- ==================
389
-
390
- * feat: timing (#204)
391
- * docs: fix res.aborted description
392
-
393
- 2.12.0 / 2016-08-08
394
- ==================
395
-
396
- * feat: support connect and response timeouts (#201)
397
-
398
- 2.11.1 / 2016-08-04
399
- ==================
400
-
401
- * fix: catch http.request sync error (#199)
402
-
403
- 2.11.0 / 2016-06-26
404
- ==================
405
-
406
- * deps: upgrade deps from ~ to ^ (#189)
407
-
408
- 2.10.0 / 2016-06-21
409
- ==================
410
-
411
- * feat: add an options consumeWriteStream (#187)
412
- * chore(package): update statuses to version 1.3.0 (#174)
413
-
414
- 2.9.1 / 2016-05-09
415
- ==================
416
-
417
- * fix: check url before request (#172)
418
- * chore(package): update any-promise to version 1.2.0 (#171)
419
-
420
- 2.9.0 / 2016-04-21
421
- ==================
422
-
423
- * feat: log all requested urls (#169)
424
- * deps: agentkeepalive@2.1.1
425
-
426
- 2.8.0 / 2016-02-27
427
- ==================
428
-
429
- * test: improve coverage
430
- * feat: http default protocol for URL argument
431
-
432
- 2.7.3 / 2016-02-27
433
- ==================
434
-
435
- * deps: upgrade out of date deps
436
-
437
- 2.7.2 / 2016-02-25
438
- ==================
439
-
440
- * test: support windows
441
- * fix: keep headers.Host on `location: /foo` redirect
442
- * test: use npmjs.com on travis ci
443
- * fix: jshint style
444
- * deps: any-promise instead of native-or-blubird
445
-
446
- 2.7.1 / 2016-02-02
447
- ==================
448
-
449
- * fix: clean up headers.Host before redirect request start
450
- * chore: update authors
451
-
452
- 2.7.0 / 2016-01-14
453
- ==================
454
-
455
- * feat: response event include data property
456
- * chore: Add host info into debug
457
-
458
- 2.6.0 / 2015-12-09
459
- ==================
460
-
461
- * test: fix unstable test cases
462
- * feat: enhance global events
463
- * chore(package): update semver to version 5.1.0
464
- * chore(package): update should to version 7.1.1
465
-
466
- 2.5.0 / 2015-09-30
467
- ==================
468
-
469
- * test: fix test url
470
- * feat: remove request# in error message
471
- * test: add streaming upload test
472
- * test: use codecov.io
473
-
474
- 2.4.0 / 2015-08-20
475
- ==================
476
-
477
- * feat: add options.fixJSONCtlChars to fix JSON control characters
478
- * Fix a typo in comment
479
-
480
- 2.3.11 / 2015-08-12
481
- ==================
482
-
483
- * fix: httpclient support curl too
484
-
485
- 2.3.10 / 2015-08-12
486
- ==================
487
-
488
- * fix: add alias urllib.curl()
489
- * chore: add decodeBodyByCharset error debug log
490
-
491
- 2.3.9 / 2015-07-23
492
- ==================
493
-
494
- * feat: show json format data when json parse error
495
-
496
- 2.3.8 / 2015-06-06
497
- ==================
498
-
499
- * fix: need to clear timer after follow redirect
500
-
501
- 2.3.7 / 2015-06-04
502
- ==================
503
-
504
- * test: use cnpmjs.org instead of taobao.com
505
- * fix: need to resume res before next redirect request start
506
-
507
- 2.3.6 / 2015-06-03
508
- ==================
509
-
510
- * fix: support 303, 305, 307 redirect status code
511
-
512
- 2.3.5 / 2015-05-11
513
- ==================
514
-
515
- * fix: followRedirect support customResponse.
516
-
517
- 2.3.4 / 2015-04-19
518
- ==================
519
-
520
- * feat: show agent status message when request error
521
-
522
- 2.3.3 / 2015-03-30
523
- ==================
524
-
525
- * fix: add ciphers and secureProtocol params support for https request
526
-
527
- 2.3.2 / 2015-03-29
528
- ==================
529
-
530
- * refactor: httpclient custom agent property
531
-
532
- 2.3.1 / 2015-03-08
533
- ==================
534
-
535
- * fix: auto decode gzip content
536
-
537
- 2.3.0 / 2015-02-16
538
- ==================
539
-
540
- * feat: mark off connection state and response state
541
-
542
- 2.2.2 / 2015-01-21
543
- ==================
544
-
545
- * remove unuse event handlers
546
-
547
- 2.2.1 / 2014-12-10
548
- ==================
549
-
550
- * refactor and add more comments
551
- * add path to error (@coderhaoxin)
552
- * fix promise example in readme
553
-
554
- 2.2.0 / 2014-11-28
555
- ==================
556
-
557
- * add customResponse option (@fishbar)
558
-
559
- 2.1.0 / 2014-11-15
560
- ==================
561
-
562
- * humanize timeout
563
-
564
- 2.0.2 / 2014-11-01
565
- ==================
566
-
567
- * chore: bump deps version and make test more stable
568
- * refactor: dont add new property on res object
569
-
570
- 2.0.1 / 2014-10-15
571
- ==================
572
-
573
- * add args.contentType option (@coderhaoxin)
574
- * Simply the HTTPClient implementation (@JacksonTian)
575
- * refine urllib code (@JacksonTian)
576
-
577
- 2.0.0 / 2014-10-13
578
- ==================
579
-
580
- * support auto decode charset when dataType set
581
-
582
- 1.5.2 / 2014-09-15
583
- ==================
584
-
585
- * do not check ssl, fix hang up in some node version
586
-
587
- 1.5.1 / 2014-09-10
588
- ==================
589
-
590
- * httpclient add requestThunk()
591
-
592
- 1.5.0 / 2014-09-10
593
- ==================
594
-
595
- * add requestThunk to support co
596
-
597
- 1.4.1 / 2014-08-28
598
- ==================
599
-
600
- * HttpClient support agent and httpsAgent
601
-
602
- 1.4.0 / 2014-08-27
603
- ==================
604
-
605
- * add SocketAssignTimeoutError. #37
606
-
607
- 1.3.1 / 2014-08-27
608
- ==================
609
-
610
- * convert data to string when dataType is text
611
-
612
- 1.3.0 / 2014-08-26
613
- ==================
614
-
615
- * add urllib instance
616
-
617
- 1.2.1 / 2014-08-26
618
- ==================
619
-
620
- * add args.ctx for response event easy logging
621
-
622
- 1.2.0 / 2014-08-26
623
- ==================
624
-
625
- * format Response object fields
626
-
627
- 1.1.0 / 2014-08-25
628
- ==================
629
-
630
- * global `response` event. fixed #35
631
-
632
- 1.0.0 / 2014-08-25
633
- ==================
634
-
635
- * return Promise when callback missing. fixed #33
636
- * rm Makefile
637
- * use flat image
638
-
639
- 0.5.17 / 2014-08-08
640
- ==================
641
-
642
- * Remove aborted. joyent/node#7457
643
- * missing I in urllib logo
644
-
645
- 0.5.16 / 2014-05-15
646
- ==================
647
-
648
- * fix test cases
649
- * change .once to .on (@alsotang)
650
-
651
- 0.5.15 / 2014-05-04
652
- ==================
653
-
654
- * make callback is optional. close #29
655
- * rm 0.8 from travis
656
-
657
- 0.5.14 / 2014-04-21
658
- ==================
659
-
660
- * fix #28 user-agent logic bug
661
-
662
- 0.5.13 / 2014-03-31
663
- ==================
664
-
665
- * use digest-header module
666
-
667
- 0.5.12 / 2014-03-29
668
- ==================
669
-
670
- * support Digest access authentication. fix #27
671
- * add co-urllib desc
672
-
673
- 0.5.11 / 2014-03-13
674
- ==================
675
-
676
- * improve user-agent, add node version and plaform detail
677
-
678
- 0.5.10 / 2014-03-11
679
- ==================
680
-
681
- * if body not decode, dont touch it
682
-
683
- 0.5.9 / 2014-03-10
684
- ==================
685
-
686
- * Support `options.gzip = true` to handle gzip response. fixed #26
687
-
688
- 0.5.8 / 2014-03-07
689
- ==================
690
-
691
- * remove buffer-concat
692
-
693
- 0.5.7 / 2014-03-07
694
- ==================
695
-
696
- * no more deps on buffer-concat
697
- * add default User-Agent: node-urllib/x.x.x
698
- * add jshint
699
-
700
- 0.5.6 / 2014-03-05
701
- ==================
702
-
703
- * add data/res to error
704
- * fix typo (@coderhaoxin)
705
- * access npmjs.org https
706
- * fix test cases and use autod
707
- * install from cnpm
708
- * no more support on node 0.6.x
709
-
710
- 0.5.5 / 2013-12-10
711
- ==================
712
-
713
- * should pass done instead of callback and end the writeStream
714
- * support args.writeStream with follow redirect (@dead-horse)
715
-
716
- 0.5.4 / 2013-11-09
717
- ==================
718
-
719
- * fix timeout not effect bug
720
-
721
- 0.5.3 / 2013-10-18
722
- ==================
723
-
724
- * add args.beforeRequest(options) hook to change options before http send
725
-
726
- 0.5.2 / 2013-09-23
727
- ==================
728
-
729
- * add JSONResponseFormatError; append request url infomation to err.message
730
-
731
- 0.5.1 / 2013-08-23
732
- ==================
733
-
734
- * detect connect timeout or response timeout fixed #18
735
- * update doc
736
-
737
- 0.5.0 / 2013-08-11
738
- ==================
739
-
740
- * Support max redirects to protect loop redirect
741
- * Auto redirect handle (@ibigbug)
742
-
743
- 0.4.4 / 2013-08-10
744
- ==================
745
-
746
- * handle json response to null when data size is zero
747
-
748
- 0.4.3 / 2013-08-10
749
- ==================
750
-
751
- * Auto convert data to json string when content-type is 'json' fixed #15
752
- * add drone.io status build image
753
-
754
- 0.4.2 / 2013-08-10
755
- ==================
756
-
757
- * fix SELF_SIGNED_CERT_IN_CHAIN test case on node 0.8 and 0.6
758
- * [√] https & self-signed certificate
759
-
760
- 0.4.1 / 2013-08-05
761
- ==================
762
-
763
- * return RemoteSocketClosedError when Remote socket was terminated before `response.end()` was called
764
-
765
- 0.4.0 / 2013-08-05
766
- ==================
767
-
768
- * If the underlaying connection was terminated before `response.end()` was called, `res.aborted` should be `true`. fixed #14
769
- * fixed test case for 0.6
770
- * add res.socket.end() test cases
771
- * remove 0.11 from travis
772
-
773
- 0.3.8 / 2013-08-02
774
- ==================
775
-
776
- * add debug log
777
-
778
- 0.3.7 / 2013-07-11
779
- ==================
780
-
781
- * PATCH method is also "application/x-www-form-urlencoded" by default
782
- * replace logo
783
-
784
- 0.3.6 / 2013-07-11
785
- ==================
786
-
787
- * fixed bug in processing query string #13 (@xingrz)
788
- * updated readme example (@xingrz)
789
- * update authors
790
- * API docs (@xingrz)
791
-
792
- 0.3.5 / 2013-07-10
793
- ==================
794
-
795
- * fixed writeSteam receive incomplete bug
796
- * update makefile
797
- * add coveralls
798
- * remove 0.11 from travis
799
- * add patch for node 0.6
800
- * fixed https request timeout tests
801
- * use blanket instead of jscover
802
-
803
- 0.3.4 / 2013-03-06
804
- ==================
805
-
806
- * fixed #8 auto add application/x-www-form-urlencoded
807
- * fixed existsSync for node < 0.8
808
-
809
- 0.3.3 / 2012-12-14
810
- ==================
811
-
812
- * support writeStream
813
-
814
- 0.3.2 / 2012-11-08
815
- ==================
816
-
817
- * fixed #4 support urllib.request(options, args, callback)
818
- * fixed usage demo bug
819
- * fixed readme
820
-
821
- 0.3.1 / 2012-11-05
822
- ==================
823
-
824
- * fixed #2 support stream and return the req object.
825
- * use jscover instead of jscoverage
826
-
827
- 0.3.0 / 2012-10-10
828
- ==================
829
-
830
- * add coverage results
831
- * Bash auth support: `http://user:password@http://demo.com` .