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
Major
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
@ import
to import types in modules.Removed JSDoc tag
@ typedef
that were unintentionally re-exporting types; to migrate import TypeScript types from the correct module:Refactored tests to use the standard
AbortController
,fetch
,File
, andFormData
APIs available in modern Node.js and removed the dev dependenciesnode-abort-controller
andnode-fetch
.Replaced the test utility function
streamToString
with the functiontext
fromnode:stream/consumers
that’s available in modern Node.js.Use the Node.js test runner API and remove the dev dependency
test-director
.Minor
@ types/express
to4.0.29 - 5
and the dev dependencyexpress
to v5, via #389.Patch
package.json
fieldrepository
to conform to new npm requirements.npm run
withnode --run
.npm run
withnode --run
.actions/checkout
to v4.actions/setup-node
to v4.eslint-plugin-jsdoc
and revised types.--unhandled-rejections=throw
in the package scripttests
as it’s now the default for all supported Node.js versions.FileUploadCreateReadStreamOptions
propertyhighWaterMark
description and use the functiongetDefaultHighWaterMark
fromnode:stream
in tests.Deferred
with polyfilledPromise.withResolvers
.await
in tests.processRequest
.FileUploadCreateReadStreamOptions
in the moduleprocessRequest.mjs
.return
in the middleware.async-listen
to replace the test utility functionlisten
.noUnusedLocals
andnoUnusedParameters
and used the prefix_
for purposefully unused function parameters in tests.Patch
node:
URL scheme for Node.js builtin module imports.GraphQLUpload.mjs
.Patch
latin1
characters in file names by setting thebusboy
optiondefParamCharset
toutf8
, fixing #328.@ ts-ignore
comment.Major
Updated the
fs-capacitor
dependency to v8, fixing #318.The type
FileUploadCreateReadStreamOptions
from theprocessRequest.mjs
module now uses types fromfs-capacitor
that are slightly more specific.The API is now ESM in
.mjs
files instead of CJS in.js
files, accessible viaimport
but notrequire
. To migrate imports:Patch
Patch
ctx
parameter for the Koa middleware created by the functiongraphqlUploadKoa
, fromimport("koa").Context
toimport("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: