keystone-nextjs-auth
keystone-nextjs-auth copied to clipboard
Update dependency graphql-upload to v16
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
graphql-upload | ^12.0.0 -> ^16.0.2 |
Release Notes
jaydenseric/graphql-upload (graphql-upload)
v16.0.2
Patch
- Updated dev dependencies.
- Use the
node:
URL scheme for Node.js builtin module imports. - Improved JSDoc in the module
GraphQLUpload.mjs
. - Revamped the readme:
- Removed the badges.
- More detailed installation instructions.
- Added information about TypeScript config and optimal JavaScript module design.
v16.0.1
Patch
- Support non
latin1
characters in file names by setting thebusboy
optiondefParamCharset
toutf8
, fixing #328. - Removed a redundant
@ts-ignore
comment.
v16.0.0
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:- import GraphQLUpload from "graphql-upload/GraphQLUpload.js"; + import GraphQLUpload from "graphql-upload/GraphQLUpload.mjs";
- import graphqlUploadExpress from "graphql-upload/graphqlUploadExpress.js"; + import graphqlUploadExpress from "graphql-upload/graphqlUploadExpress.mjs";
- import graphqlUploadKoa from "graphql-upload/graphqlUploadKoa.js"; + import graphqlUploadKoa from "graphql-upload/graphqlUploadKoa.mjs";
- import processRequest from "graphql-upload/processRequest.js"; + import processRequest from "graphql-upload/processRequest.mjs";
- import Upload from "graphql-upload/Upload.js"; + import Upload from "graphql-upload/Upload.mjs";
Patch
- Updated dev dependencies.
- Updated examples in JSDoc comments.
- Updated the changelog entry for v14.0.0 to show how to migrate imports.
v15.0.2
Patch
- Updated dev dependencies.
- Corrected the TypeScript type for the Koa context
ctx
parameter for the Koa middleware created by the functiongraphqlUploadKoa
, fromimport("koa").Context
toimport("koa").ParameterizedContext
.
v15.0.1
Patch
- Don’t import and link types from the middlware modules
graphqlUploadExpress.js
andgraphqlUploadKoa.js
within the moduleprocessRequest.js
, fixing #314.
v15.0.0
Major
- Updated the
busboy
dependency to v1, fixing #311.- This important update addresses the vulnerability CVE-2022-24434 (GHSA-wm7h-9275-46v2).
- Some error messages have changed.
- Temporarily until mscdex/busboy#297 is fixed upstream, for the function
processRequest
and the middlewaregraphqlUploadExpress
andgraphqlUploadKoa
the optionmaxFileSize
is actually 1 byte less than the amount specified.
Patch
- Updated the
typescript
dev dependency. - In the function
processRequest
use theon
method instead ofonce
to listen forerror
events on thebusboy
parser, as in edge cases the same parser could have multipleerror
events and all must be handled to prevent the Node.js process exiting with an error. - Simplified error handling within the function
processRequest
. - Added a test for the function
processRequest
with a maliciously malformed multipart request.
v14.0.0
Major
-
Updated Node.js support to
^14.17.0 || ^16.0.0 || >= 18.0.0
. -
Updated the
graphql
peer dependency to^16.3.0
. -
Updated the
http-errors
dependency to v2. -
Public modules are now individually listed in the package
files
andexports
fields. -
Removed the package main index module; deep imports must be used. To migrate imports:
- import { GraphQLUpload } from "graphql-upload"; + import GraphQLUpload from "graphql-upload/GraphQLUpload.js";
- import { graphqlUploadExpress } from "graphql-upload"; + import graphqlUploadExpress from "graphql-upload/graphqlUploadExpress.js";
- import { graphqlUploadKoa } from "graphql-upload"; + import graphqlUploadKoa from "graphql-upload/graphqlUploadKoa.js";
- import { processRequest } from "graphql-upload"; + import processRequest from "graphql-upload/processRequest.js";
- import { Upload } from "graphql-upload"; + import Upload from "graphql-upload/Upload.js";
-
Shortened public module deep import paths, removing the
/public/
. To migrate imports:- import GraphQLUpload from "graphql-upload/public/GraphQLUpload.js"; + import GraphQLUpload from "graphql-upload/GraphQLUpload.js";
- import graphqlUploadExpress from "graphql-upload/public/graphqlUploadExpress.js"; + import graphqlUploadExpress from "graphql-upload/graphqlUploadExpress.js";
- import graphqlUploadKoa from "graphql-upload/public/graphqlUploadKoa.js"; + import graphqlUploadKoa from "graphql-upload/graphqlUploadKoa.js";
- import processRequest from "graphql-upload/public/processRequest.js"; + import processRequest from "graphql-upload/processRequest.js";
- import Upload from "graphql-upload/public/Upload.js"; + import Upload from "graphql-upload/Upload.js";
-
Implemented TypeScript types via JSDoc comments, closing #282.
-
The
GraphQLUpload
scalar no longer uses deprecatedGraphQLError
constructor parameters.
Patch
- Updated dev dependencies.
- Simplified dev dependencies and config for ESLint.
- Check TypeScript types via a new package
types
script. - Removed the
jsdoc-md
dev dependency and the related package scripts, replacing the readme “API” section with a manually written “Exports” section. - Removed the
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
dev dependency. Instead,File
andFormData
are imported fromnode-fetch
. - Updated GitHub Actions CI config:
- Run tests with Node.js v14, v16, v18.
- Updated
actions/checkout
to v3. - Updated
actions/setup-node
to v3.
- Reorganized the test file structure.
- Use the
.js
file extension inrequire
paths. - Use the Node.js
Readable
propertyreadableEncoding
instead of_readableState.encoding
in tests. - Use
substring
instead of the deprecated string methodsubstr
in tests. - Fixed a typo in a code comment.
- Updated documentation.
- Added a
license.md
MIT License file, closing #86.
v13.0.0
Major
- Updated Node.js support to
^12.22.0 || ^14.17.0 || >= 16.0.0
. - Updated dev dependencies, some of which require newer Node.js versions than previously supported.
- Removed
./package
from the packageexports
field; the fullpackage.json
filename must be used in arequire
path.
Patch
- Updated the
graphql
peer dependency to0.13.1 - 16
. - Updated dependencies.
- Also run GitHub Actions CI with Node.js v17.
- Simplified package scripts.
- Renamed imports in the test index module.
- Test the
processRequest
function with a GraphQL multipart request that has no files. - Test the
processRequest
function with an unparsable multipart request. - Replaced the
form-data
dev dependency withformdata-node
,formdata-node
, andnode-abort-controller
and refactored tests to align with web standards. - Refactored the
processRequest
function to remove theisobject
dependency. - Improved the
processRequest
function, via #273:- Fixed ending requests from being handled incorrectly as aborting in edge cases, closing #272.
- Fixed read streams created via the resolved
Upload
scalar valuecreateReadStream
method:- Not emitting the
error
event when the multipart request is aborted certain ways while the file is uploading. - Emitting incorrect
error
event details for multipart request file field parse errors.
- Not emitting the
- Configured Prettier option
singleQuote
to the default,false
. - Documentation tweaks.
Configuration
📅 Schedule: Branch creation - "before 7am on Tuesday,before 7am on Wednesday" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
⚠️ No Changeset found
Latest commit: 95fad1e597295fc14e3c8e318f8180d26bb82211
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR