Releases: jaydenseric/graphql-upload
Releases · jaydenseric/graphql-upload
Version 4.0.0-alpha.1
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.
Version 3.0.0
Major
- Updated Node.js support from v6.4+ to v7.6+.
- Express middleware now passes on errors instead of blocking, via #20.
Patch
- Using Babel directly, dropping Rollup.
- New directory structure for compiled files.
- Module files now have
.mjs
extension. - No longer publish the
src
directory. - No more sourcemaps.
- Use an arrow function for the Koa middleware, to match the Express middleware.
- Compiled code is now prettier.
- Prettier markdown files.
- Updated package keywords.
- Updated an Apollo documentation link in the changelog.
- Readme improvements:
- Added links to badges.
- Removed the inspiration links; they are less relevant to the evolved codebase.
- Fixed an Apollo link.
- Replaced example resolver code with a link to the Apollo upload examples.
Version 2.0.4
Patch
- Updated dependencies.
- Readme tweaks including a new license badge.
Version 2.0.3
Patch
- Updated dependencies.
- Removed
package-lock.json
. Lockfiles are not recommended for packages. - Moved Babel config out of
package.json
to prevent issues when consumers run Babel overnode_modules
. - Readme tweaks and fixes:
- Renamed the
File
input typeUpload
for clarity. - Wording and formatting improvements.
- Covered React Native.
- Documented custom middleware.
- Renamed the
Version 2.0.2
Patch
- Updated dependencies.
- Added a changelog.
- Dropped Yarn in favor of npm@5. Removed
yarn.lock
and updated install instructions. - Set targeted Node version as a string for
babel-preset-env
. - New ESLint config. Dropped Standard Style and began using Prettier.
- Using lint-staged to ensure contributors don't commit lint errors.
- Removed
build:watch
script. Usenpm run build -- --watch
directly.
Version 2.0.1
Patch
- Updated dependencies.
- Support regular requests from clients other than apollo-upload-client again, fixing #4.
- Removed incorrect commas from example GraphQL input type.
Version 2.0.0
Major
- Support
apollo-upload-client
v3 and query batching.
Patch
- Clearer package description.
- Use Standard Style instead of ESLint directly.
Version 1.1.1
- Updated dependencies.
- Simplified linting setup.
Version 1.1.0
Minor
- Exporting a new helper function for processing requests. It can be used to create custom middleware, or middleware for unsupported routers.
- Exporting new Koa middleware.
- Upload directory is ensured on every request now. While slightly less efficient, it prevents major errors when if it is deleted while the server is running.
Patch
- Updated dependencies.
- Documented npm install as well as Yarn.
- Typo fix in the readme.
Version 1.0.2
Patch
- Fixed broken Github deep links in the readme.
- Readme rewording.
- Simplified
package.json
description.