You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
processRequest now throws an appropriate error when a multipart field value exceeds the configured size limit, fixing #159.
When the file size limit is exceeded, mention how many bytes the limit is in the stream error message.
Added a new processRequest option to the graphqlUploadExpress and graphqlUploadKoa middleware, for improved testing without mocks or spies which are difficult to achieve with ESM.
Patch
Updated dependencies.
Due to updated dependencies: Lint fixes, removed redundant eslint-disable-next-line comments, and regenerated the readme.
Removed package-lock.json from .gitignore and .prettierignore, as it’s disabled in .npmrc anyway.
New file structure.
Explicitly defined main exports (instead of using export * from) to prevent accidental public exposure of internal APIs.
Moved JSDoc typedefs into the index main entry file, alphabetically sorted.
Nicer Browserslist query syntax.
Replaced the isObject helper with a smarter and tested isEnumerableObject.
Removed the isString helper.
Enforced 100% code coverage for tests, and improved processRequest internals and tests (including a new test using vanilla Node.js HTTP), fixing #130 via #162.
Removed a workaround from the startServer test helper.
Added a new ProcessRequestFunction JSDoc type, and applied it to processRequest.
Renamed the UploadOptions JSDoc type to ProcessRequestOptions.