From 7d25d46a20f2bc2c529ae3e81c325e50c0554bb6 Mon Sep 17 00:00:00 2001 From: Jayden Seric Date: Sun, 29 May 2022 22:37:38 +1000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20import=20and=20link=20types=20f?= =?UTF-8?q?rom=20the=20middlware=20modules=20within=20the=20module=20`proc?= =?UTF-8?q?essRequest.js`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://github.com/jaydenseric/graphql-upload/issues/314 . --- changelog.md | 6 ++++++ processRequest.js | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 8ce44de..137d8c4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # graphql-upload changelog +## Next + +### Patch + +- 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). + ## 15.0.0 ### Major diff --git a/processRequest.js b/processRequest.js index 3d1b679..a3f785c 100644 --- a/processRequest.js +++ b/processRequest.js @@ -11,8 +11,6 @@ const ignoreStream = require("./ignoreStream.js"); const Upload = require("./Upload.js"); /** @typedef {import("./GraphQLUpload.js")} GraphQLUpload */ -/** @typedef {import("./graphqlUploadExpress.js")} graphqlUploadExpress */ -/** @typedef {import("./graphqlUploadKoa.js")} graphqlUploadKoa */ /** * Processes an incoming @@ -22,8 +20,7 @@ const Upload = require("./Upload.js"); * is expected in the GraphQL operation for the {@linkcode GraphQLUpload} scalar * to derive it’s value. Errors are created with * [`http-errors`](https://npm.im/http-errors) to assist in sending responses - * with appropriate HTTP status codes. Used to create custom middleware and is - * used by {@linkcode graphqlUploadExpress} and {@linkcode graphqlUploadKoa}. + * with appropriate HTTP status codes. Used to create custom middleware. * @type {ProcessRequestFunction} */ function processRequest(