graphql-upload
Advanced tools
Changelog
11.0.0
^10.13.0 || ^12.0.0 || >= 13.7.0
.exports
field with conditional exports to support native ESM in Node.js and keep internal code private, whilst avoiding the dual package hazard. Published files have been reorganized, so previously undocumented deep imports will need to be rewritten according to the newly documented paths.graphql
peer dependency to 0.13.1 - 15
, fixing #200 via #201.semi
to the default, true
.ignoreStream
function tests for Node.js v14 with a new CountReadableStream
test helper, fixing #209.Promise.allSettled
in the readme “Tips” section.Changelog
10.0.0
fs-capacitor
dependency to v6, which now requires Node.js v10+, via #179.tap
dev dependency with test-director
, coverage-node
, and hard-rejection
to improve the dev experience and reduce the dev install size by ~75.7 MB. These new dev dependencies require Node.js v10+.processRequest
function.processRequest
function now places references to instances of the now exported and documented Upload
class in the GraphQL operation for the GraphQLUpload
scalar to derive its value, and the GraphQLUpload
scalar now throws a GraphQLError
when it parses an invalid value, fixing #175 via #181.GraphQLUpload
scalar parseLiteral
and serialize
methods now throw GraphQLError
(instead of Error
) instances, with tweaked messages.createReadStream
function in resolved file uploads now accepts options to configure the encoding and high water mark, fixing #177 via #179.eslint-plugin-import-order-alphabetical
and express-async-handler
dev dependencies.husky
and lint-staged
.isobject
for checking if values are enumerable, non-array objects.GraphQLUpload
scalar.ignoreStream
function.Upload
class to its own file.Upload
class instance property file
.Upload
class.FileUpload
typedef description.eslint-disable-next-line
comments.Changelog
9.0.0
eslint
dev dependency now supports. This is unlikely to be a breaking change for the published package.Upload
scalar promise resolved stream
property that has been deprecated since v7, along with associated tests.fs-capacitor
dependency to v4 to support Node.js v13, making required changes to the source and tests, via #166..github/funding.yml
to display a sponsor button in GitHub.package.json
funding
field to enable npm CLI funding features..nycrc.json
file:
tap
now ignores test files by default.lib/test-helpers
directory is now ignored using tap
CLI arguments due to tapjs/node-tap#612.esm
and mjs
package tags; they will be added back once native ESM is properly supported.fs-capacitor
implementation details such as temp file creation and cleanup.istanbul ignore next
comments.Changelog
8.1.0
processRequest
now throws an appropriate error when a multipart field value exceeds the configured size limit, fixing #159.processRequest
option to the graphqlUploadExpress
and graphqlUploadKoa
middleware, for improved testing without mocks or spies which are difficult to achieve with ESM.eslint-disable-next-line
comments, and regenerated the readme.koa-graphql
as known to be compatible, via #156.package-lock.json
from .gitignore
and .prettierignore
, as it’s disabled in .npmrc
anyway.export * from
) to prevent accidental public exposure of internal APIs.isObject
helper with a smarter and tested isEnumerableObject
.isString
helper.processRequest
internals and tests (including a new test using vanilla Node.js HTTP), fixing #130 via #162.startServer
test helper.ProcessRequestFunction
JSDoc type, and applied it to processRequest
.UploadOptions
JSDoc type to ProcessRequestOptions
.Changelog
8.0.7
map
multipart field entries, fixing #154.WriteStream
from fs-capacitor
as a named rather than default import.Changelog
8.0.6
JSON.stringify
.express-async-handler
for Express tests.maxFiles
config in certain tests.Changelog
8.0.5
operations
type.map
type.map
entry type.map
entry array item type.package.json
by moving dev tool config to files. This also prevents editor extensions such as Prettier and ESLint from detecting config and attempting to operate when opening package files installed in node_modules
.watch
dev dependency and watch
script.prepublishOnly
script.classic
TAP reporter for tests.apollo-server-koa
and apollo-server-express
back to the compatible environments list in the readme, now that they use the current version of this package.Changelog
8.0.3
busboy
update contains a bug fix for .pipe()
on file streams.