Skip to content

Commit 7d25d46

Browse files
committed
Don’t import and link types from the middlware modules within the module processRequest.js.
Fixes #314 .
1 parent cd9e4f1 commit 7d25d46

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# graphql-upload changelog
22

3+
## Next
4+
5+
### Patch
6+
7+
- Don’t import and link types from the middlware modules `graphqlUploadExpress.js` and `graphqlUploadKoa.js` within the module `processRequest.js`, fixing [#314](https://github.com/jaydenseric/graphql-upload/issues/314).
8+
39
## 15.0.0
410

511
### Major

processRequest.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ const ignoreStream = require("./ignoreStream.js");
1111
const Upload = require("./Upload.js");
1212

1313
/** @typedef {import("./GraphQLUpload.js")} GraphQLUpload */
14-
/** @typedef {import("./graphqlUploadExpress.js")} graphqlUploadExpress */
15-
/** @typedef {import("./graphqlUploadKoa.js")} graphqlUploadKoa */
1614

1715
/**
1816
* Processes an incoming
@@ -22,8 +20,7 @@ const Upload = require("./Upload.js");
2220
* is expected in the GraphQL operation for the {@linkcode GraphQLUpload} scalar
2321
* to derive it’s value. Errors are created with
2422
* [`http-errors`](https://npm.im/http-errors) to assist in sending responses
25-
* with appropriate HTTP status codes. Used to create custom middleware and is
26-
* used by {@linkcode graphqlUploadExpress} and {@linkcode graphqlUploadKoa}.
23+
* with appropriate HTTP status codes. Used to create custom middleware.
2724
* @type {ProcessRequestFunction}
2825
*/
2926
function processRequest(

0 commit comments

Comments
 (0)