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