refactor: Upgrade graphql-upload from 15.0.2 to 17.0.0 #9426
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade graphql-upload from 15.0.2 to 17.0.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 4 versions ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: graphql-upload
-
17.0.0 - 2024-10-08
-
-
-
-
-
-
-
- Support Express v5 by updating the optional peer dependency
- Tweaked the package description.
- Updated the
- Updated the package scripts:
- Reordered the scripts.
- Replaced
- Updated GitHub Actions CI config:
- No longer run the workflow on pull request.
- Enable manual workflow dispatching.
- Run checks in seperate jobs.
- Removed custom step names.
- Replaced
- Updated the tested Node.js versions to v18, v20, v22.
- Updated
- Updated
- Migrated to the ESLint v9 CLI and “flat” config.
- Integrated a new dev dependency
- Removed the Node.js CLI option
- Avoid hardcoding a default value in the type
- Replaced the test helper class
- Removed an unnecessary
- Omit unused catch bindings in the function
- Corrected the JSDoc type
- Avoid using
- Added a new dev dependency
- Enabled the TypeScript compiler options
- Updated the GitHub Markdown syntax for alerts in the readme.
- Tweaked wording in the readme and JSDoc descriptions.
-
16.0.2 - 2022-09-01
- Updated dev dependencies.
- Use the
- Improved JSDoc in the module
- Revamped the readme:
- Removed the badges.
- More detailed installation instructions.
- Added information about TypeScript config and optimal JavaScript module design.
-
16.0.1 - 2022-08-01
- Support non
- Removed a redundant
-
16.0.0 - 2022-07-23
-
-
-
- Updated dev dependencies.
- Updated examples in JSDoc comments.
- Updated the changelog entry for v14.0.0 to show how to migrate imports.
-
15.0.2 - 2022-06-28
- Updated dev dependencies.
- Corrected the TypeScript type for the Koa context
from graphql-upload GitHub release notesMajor
Updated Node.js support to
^18.18.0 || ^20.9.0 || >=22.0.0.Updated dev dependencies, some of which require newer Node.js versions than previously supported.
Use the TypeScript v5.5+ JSDoc tag
@ importto import types in modules.Removed JSDoc tag
@ typedefthat were unintentionally re-exporting types; to migrate import TypeScript types from the correct module:Refactored tests to use the standard
AbortController,fetch,File, andFormDataAPIs available in modern Node.js and removed the dev dependenciesnode-abort-controllerandnode-fetch.Replaced the test utility function
streamToStringwith the functiontextfromnode:stream/consumersthat’s available in modern Node.js.Use the Node.js test runner API and remove the dev dependency
test-director.Minor
@ types/expressto4.0.29 - 5and the dev dependencyexpressto v5, via #389.Patch
package.jsonfieldrepositoryto conform to new npm requirements.npm runwithnode --run.npm runwithnode --run.actions/checkoutto v4.actions/setup-nodeto v4.eslint-plugin-jsdocand revised types.--unhandled-rejections=throwin the package scripttestsas it’s now the default for all supported Node.js versions.FileUploadCreateReadStreamOptionspropertyhighWaterMarkdescription and use the functiongetDefaultHighWaterMarkfromnode:streamin tests.Deferredwith polyfilledPromise.withResolvers.awaitin tests.processRequest.FileUploadCreateReadStreamOptionsin the moduleprocessRequest.mjs.returnin the middleware.async-listento replace the test utility functionlisten.noUnusedLocalsandnoUnusedParametersand used the prefix_for purposefully unused function parameters in tests.Patch
node:URL scheme for Node.js builtin module imports.GraphQLUpload.mjs.Patch
latin1characters in file names by setting thebusboyoptiondefParamCharsettoutf8, fixing #328.@ ts-ignorecomment.Major
Updated the
fs-capacitordependency to v8, fixing #318.The type
FileUploadCreateReadStreamOptionsfrom theprocessRequest.mjsmodule now uses types fromfs-capacitorthat are slightly more specific.The API is now ESM in
.mjsfiles instead of CJS in.jsfiles, accessible viaimportbut notrequire. To migrate imports:Patch
Patch
ctxparameter for the Koa middleware created by the functiongraphqlUploadKoa, fromimport("koa").Contexttoimport("koa").ParameterizedContext.Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: