Skip to content

Commit 9070416

Browse files
committed
Remove the fetch-blob and formdata-node dev dependencies.
Instead, `File` and `FormData` are imported from `node-fetch`.
1 parent 5ef8f8f commit 9070416

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Patch
66

77
- Updated dev dependencies.
8+
- Removed the [`fetch-blob`](https://npm.im/fetch-blob) and [`formdata-node`](https://npm.im/formdata-node) dev dependencies. Instead, `File` and `FormData` are imported from [`node-fetch`](https://npm.im/node-fetch).
89
- Updated `jsconfig.json` `compilerOptions.module` to `nodenext`.
910
- Fixed the `fetchGraphQL` test with the global `fetch` API unavailable for new versions of Node.js that have the `fetch` global.
1011

fetchOptionsGraphQL.test.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// @ts-check
22

33
import { deepStrictEqual, strictEqual } from "assert";
4-
import { File } from "fetch-blob/file.js";
5-
import { FormData } from "formdata-polyfill/esm.min.js";
4+
import { File, FormData } from "node-fetch";
65
import revertableGlobals from "revertable-globals";
76

87
import fetchOptionsGraphQL from "./fetchOptionsGraphQL.mjs";

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@
118118
"eslint-plugin-react-hooks": "^4.5.0",
119119
"eslint-plugin-simple-import-sort": "^7.0.0",
120120
"event-target-shim": "^6.0.2",
121-
"fetch-blob": "^3.1.5",
122121
"filter-console": "^1.0.0",
123-
"formdata-polyfill": "^4.0.10",
124122
"gzip-size": "^7.0.0",
125123
"node-fetch": "^3.2.4",
126124
"prettier": "^2.6.2",

0 commit comments

Comments
 (0)