Skip to content

Commit

Permalink
Remove the formdata-node dev dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed May 3, 2022
1 parent 0c74d58 commit aff25c3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Updated dev dependencies.
- Simplified dev dependencies and config for ESLint.
- Removed the [`hard-rejection`](https://npm.im/hard-rejection) dev dependency. Instead, tests are run with the Node.js CLI flag `--unhandled-rejections=throw` to make Node.js v14 behave like newer versions.
- Removed the [`formdata-node`](https://npm.im/formdata-node) dev dependency. Instead, `File` and `FormData` are imported from [`node-fetch`](https://npm.im/formdata-node).
- Updated GitHub Actions CI config:
- Run tests with Node.js v14, v16, v18.
- Updated `actions/checkout` to v3.
Expand Down
3 changes: 1 addition & 2 deletions graphqlUploadExpress.test.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { deepStrictEqual, ok, strictEqual } from "assert";
import express from "express";
import { File, FormData } from "formdata-node";
import createError from "http-errors";
import fetch from "node-fetch";
import fetch, { File, FormData } from "node-fetch";

import graphqlUploadExpress from "./graphqlUploadExpress.js";
import processRequest from "./processRequest.js";
Expand Down
3 changes: 1 addition & 2 deletions graphqlUploadKoa.test.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { deepStrictEqual, ok, strictEqual } from "assert";
import { File, FormData } from "formdata-node";
import Koa from "koa";
import fetch from "node-fetch";
import fetch, { File, FormData } from "node-fetch";

import graphqlUploadKoa from "./graphqlUploadKoa.js";
import processRequest from "./processRequest.js";
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"eslint-plugin-simple-import-sort": "^7.0.0",
"express": "^4.18.0",
"form-data-encoder": "^1.7.2",
"formdata-node": "^4.3.2",
"graphql": "^16.4.0",
"jsdoc-md": "^11.0.2",
"koa": "^2.13.4",
Expand Down
3 changes: 1 addition & 2 deletions processRequest.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import {
strictEqual,
throws,
} from "assert";
import { File, FormData } from "formdata-node";
import { ReadStream } from "fs-capacitor";
import { createServer } from "http";
import fetch from "node-fetch";
import fetch, { File, FormData } from "node-fetch";

import processRequest from "./processRequest.js";
import abortingMultipartRequest from "./test/abortingMultipartRequest.mjs";
Expand Down

0 comments on commit aff25c3

Please sign in to comment.