Skip to content

Commit 2c00587

Browse files
authored
Release 3.0.0-beta.7 (node-fetch#869)
1 parent a38b533 commit 2c00587

File tree

2 files changed

+158
-140
lines changed

2 files changed

+158
-140
lines changed

docs/CHANGELOG.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,30 @@ Changelog
33

44
# 3.x release
55

6+
## v3.0.0-beta.7
7+
8+
- **Breaking:** minimum supported Node.js version is now 10.17.
9+
- Enhance: update `fetch-blob`.
10+
- Enhance: add insecureHTTPParser Parameter (#856).
11+
- Enhance: drop custom Promises and refactor to `async` functions (#845).
12+
- Enhance: polyfill `http.validateHeaderName` and `http.validateHeaderValue` (#843).
13+
- Enhance: should check body _source_ on redirect (#866).
14+
- Enhance: remove code duplication in custom errors (#842).
15+
- Enhance: implement form-data encoding (#603).
16+
- Fix: improve TypeScript types (#841).
17+
- Fix: data URI handling and drop all URL analysis RegExps (#853).
18+
- Fix: headers import statement (#859).
19+
- Fix: correct Node versions were not installed on test matrix (#846).
20+
- Other: test CommonJS build artifact (#838).
21+
- Other: create Code of Conduct (#849).
22+
- Other: readme update.
23+
624
## v3.0.0-beta.6-exportfix
725

826
- Fix: `fetch` function export & declaration, which broke the previous release.
927

1028
## v3.0.0-beta.6
1129

12-
**Work in progress!**
13-
1430
- **Breaking:** minimum supported Node.js version is now 10.16.
1531
- **Breaking:** removed `timeout` option.
1632
- **Breaking:** revamp TypeScript declarations.

package.json

Lines changed: 140 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,141 @@
11
{
2-
"name": "node-fetch",
3-
"version": "3.0.0-beta.6-exportfix",
4-
"description": "A light-weight module that brings window.fetch to node.js",
5-
"main": "./dist/index.cjs",
6-
"module": "./src/index.js",
7-
"sideEffects": false,
8-
"type": "module",
9-
"exports": {
10-
"import": "./src/index.js",
11-
"require": "./dist/index.cjs"
12-
},
13-
"files": [
14-
"src",
15-
"dist",
16-
"@types/index.d.ts"
17-
],
18-
"types": "./@types/index.d.ts",
19-
"engines": {
20-
"node": ">=10.17"
21-
},
22-
"scripts": {
23-
"build": "rollup -c",
24-
"test": "node --experimental-modules node_modules/c8/bin/c8 --reporter=html --reporter=lcov --reporter=text --check-coverage node --experimental-modules node_modules/mocha/bin/mocha",
25-
"coverage": "c8 report --reporter=text-lcov | coveralls",
26-
"test-types": "tsd",
27-
"lint": "xo",
28-
"prepublishOnly": "node ./test/commonjs/test-artifact.js"
29-
},
30-
"repository": {
31-
"type": "git",
32-
"url": "https://github.com/node-fetch/node-fetch.git"
33-
},
34-
"keywords": [
35-
"fetch",
36-
"http",
37-
"promise"
38-
],
39-
"author": "David Frank",
40-
"license": "MIT",
41-
"bugs": {
42-
"url": "https://github.com/node-fetch/node-fetch/issues"
43-
},
44-
"homepage": "https://github.com/node-fetch/node-fetch",
45-
"funding": {
46-
"type": "opencollective",
47-
"url": "https://opencollective.com/node-fetch"
48-
},
49-
"devDependencies": {
50-
"abort-controller": "^3.0.0",
51-
"abortcontroller-polyfill": "^1.4.0",
52-
"busboy": "^0.3.1",
53-
"c8": "^7.1.2",
54-
"chai": "^4.2.0",
55-
"chai-as-promised": "^7.1.1",
56-
"chai-iterator": "^3.0.2",
57-
"chai-string": "^1.5.0",
58-
"coveralls": "^3.1.0",
59-
"delay": "^4.3.0",
60-
"form-data": "^3.0.0",
61-
"formdata-node": "^2.0.0",
62-
"mocha": "^7.2.0",
63-
"p-timeout": "^3.2.0",
64-
"parted": "^0.1.1",
65-
"rollup": "^2.15.0",
66-
"string-to-arraybuffer": "^1.0.2",
67-
"tsd": "^0.11.0",
68-
"xo": "^0.30.0"
69-
},
70-
"dependencies": {
71-
"data-uri-to-buffer": "^3.0.1",
72-
"fetch-blob": "^2.0.0"
73-
},
74-
"esm": {
75-
"sourceMap": true,
76-
"cjs": false
77-
},
78-
"tsd": {
79-
"cwd": "@types",
80-
"compilerOptions": {
81-
"target": "esnext",
82-
"lib": [
83-
"es2018"
84-
],
85-
"allowSyntheticDefaultImports": false,
86-
"esModuleInterop": false
87-
}
88-
},
89-
"xo": {
90-
"envs": [
91-
"node",
92-
"browser"
93-
],
94-
"rules": {
95-
"complexity": 0,
96-
"import/extensions": 0,
97-
"import/no-useless-path-segments": 0,
98-
"unicorn/import-index": 0,
99-
"capitalized-comments": 0,
100-
"node/no-unsupported-features/node-builtins": [
101-
"error",
102-
{
103-
"ignores": [
104-
"stream.Readable.from"
105-
]
106-
}
107-
]
108-
},
109-
"ignores": [
110-
"dist",
111-
"@types"
112-
],
113-
"overrides": [
114-
{
115-
"files": "test/**/*.js",
116-
"envs": [
117-
"node",
118-
"mocha"
119-
],
120-
"rules": {
121-
"max-nested-callbacks": 0,
122-
"no-unused-expressions": 0,
123-
"new-cap": 0,
124-
"guard-for-in": 0,
125-
"unicorn/prevent-abbreviations": 0,
126-
"promise/prefer-await-to-then": 0,
127-
"ava/no-import-test-files": 0
128-
}
129-
},
130-
{
131-
"files": "example.js",
132-
"rules": {
133-
"import/no-extraneous-dependencies": 0
134-
}
135-
}
136-
]
137-
},
138-
"runkitExampleFilename": "example.js"
139-
}
2+
"name": "node-fetch",
3+
"version": "3.0.0-beta.7",
4+
"description": "A light-weight module that brings window.fetch to node.js",
5+
"main": "./dist/index.cjs",
6+
"module": "./src/index.js",
7+
"sideEffects": false,
8+
"type": "module",
9+
"exports": {
10+
"import": "./src/index.js",
11+
"require": "./dist/index.cjs"
12+
},
13+
"files": [
14+
"src",
15+
"dist",
16+
"@types/index.d.ts"
17+
],
18+
"types": "./@types/index.d.ts",
19+
"engines": {
20+
"node": ">=10.17"
21+
},
22+
"scripts": {
23+
"build": "rollup -c",
24+
"test": "node --experimental-modules node_modules/c8/bin/c8 --reporter=html --reporter=lcov --reporter=text --check-coverage node --experimental-modules node_modules/mocha/bin/mocha",
25+
"coverage": "c8 report --reporter=text-lcov | coveralls",
26+
"test-types": "tsd",
27+
"lint": "xo",
28+
"prepublishOnly": "node ./test/commonjs/test-artifact.js"
29+
},
30+
"repository": {
31+
"type": "git",
32+
"url": "https://github.com/node-fetch/node-fetch.git"
33+
},
34+
"keywords": [
35+
"fetch",
36+
"http",
37+
"promise"
38+
],
39+
"author": "David Frank",
40+
"license": "MIT",
41+
"bugs": {
42+
"url": "https://github.com/node-fetch/node-fetch/issues"
43+
},
44+
"homepage": "https://github.com/node-fetch/node-fetch",
45+
"funding": {
46+
"type": "opencollective",
47+
"url": "https://opencollective.com/node-fetch"
48+
},
49+
"devDependencies": {
50+
"abort-controller": "^3.0.0",
51+
"abortcontroller-polyfill": "^1.4.0",
52+
"busboy": "^0.3.1",
53+
"c8": "^7.1.2",
54+
"chai": "^4.2.0",
55+
"chai-as-promised": "^7.1.1",
56+
"chai-iterator": "^3.0.2",
57+
"chai-string": "^1.5.0",
58+
"coveralls": "^3.1.0",
59+
"delay": "^4.3.0",
60+
"form-data": "^3.0.0",
61+
"formdata-node": "^2.2.0",
62+
"mocha": "^8.0.0",
63+
"p-timeout": "^3.2.0",
64+
"parted": "^0.1.1",
65+
"rollup": "^2.15.0",
66+
"string-to-arraybuffer": "^1.0.2",
67+
"tsd": "^0.11.0",
68+
"xo": "^0.32.0"
69+
},
70+
"dependencies": {
71+
"data-uri-to-buffer": "^3.0.1",
72+
"fetch-blob": "^2.0.0"
73+
},
74+
"esm": {
75+
"sourceMap": true,
76+
"cjs": false
77+
},
78+
"tsd": {
79+
"cwd": "@types",
80+
"compilerOptions": {
81+
"target": "esnext",
82+
"lib": [
83+
"es2018"
84+
],
85+
"allowSyntheticDefaultImports": false,
86+
"esModuleInterop": false
87+
}
88+
},
89+
"xo": {
90+
"envs": [
91+
"node",
92+
"browser"
93+
],
94+
"rules": {
95+
"complexity": 0,
96+
"import/extensions": 0,
97+
"import/no-useless-path-segments": 0,
98+
"import/no-anonymous-default-export": 0,
99+
"unicorn/import-index": 0,
100+
"unicorn/no-reduce": 0,
101+
"capitalized-comments": 0,
102+
"node/no-unsupported-features/node-builtins": [
103+
"error",
104+
{
105+
"ignores": [
106+
"stream.Readable.from"
107+
]
108+
}
109+
]
110+
},
111+
"ignores": [
112+
"dist",
113+
"@types"
114+
],
115+
"overrides": [
116+
{
117+
"files": "test/**/*.js",
118+
"envs": [
119+
"node",
120+
"mocha"
121+
],
122+
"rules": {
123+
"max-nested-callbacks": 0,
124+
"no-unused-expressions": 0,
125+
"new-cap": 0,
126+
"guard-for-in": 0,
127+
"unicorn/prevent-abbreviations": 0,
128+
"promise/prefer-await-to-then": 0,
129+
"ava/no-import-test-files": 0
130+
}
131+
},
132+
{
133+
"files": "example.js",
134+
"rules": {
135+
"import/no-extraneous-dependencies": 0
136+
}
137+
}
138+
]
139+
},
140+
"runkitExampleFilename": "example.js"
141+
}

0 commit comments

Comments
 (0)