Skip to content

Commit 7aa655c

Browse files
committed
Rewrite node-fetch to follow the fetch spec and use ReadableStreams from whatwg-streams instead of node.js streams.
This also removes some features designed for older node.js environments, such as custom promise polyfillis. Additionally it introduces a dependency on whatwg-streams (which is actually good, even though node.js may one day implement them, as whatwg-streams is a polyfill)
1 parent 09ef40e commit 7aa655c

File tree

8 files changed

+2946
-2577
lines changed

8 files changed

+2946
-2577
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"[javascript]": {
3+
"editor.formatOnSave": false
4+
},
5+
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,7 @@
6060
"url-search-params": "^1.0.2",
6161
"whatwg-url": "^5.0.0"
6262
},
63-
"dependencies": {}
63+
"dependencies": {
64+
"web-streams-polyfill": "^1.3.2"
65+
}
6466
}

0 commit comments

Comments
 (0)