Version 4.0.0-alpha.1
Pre-release
Pre-release
jaydenseric
released this
19 Nov 13:12
·
670 commits
to master
since this release
Major
- New API to support the GraphQL multipart request spec v2.0.0-alpha.2. Files no longer upload to the filesystem; readable streams are used in resolvers instead. Fixes #13 via #22.
- Export a new
Upload
scalar type to use in place of the oldUpload
input type. It represents a file upload promise that resolves an object containingstream
,filename
,mimetype
andencoding
. - Deprecated the
uploadDir
middleware option. graphql
is now a peer dependency.
Minor
- Added new
maxFieldSize
,maxFileSize
andmaxFiles
middleware options.
Patch
- Middleware are now arrow functions.