A terminating Apollo Link for Apollo Client that fetches a GraphQL multipart request if the GraphQL variables contain files (by default FileList, File, or Blob instances), or else fetches a regular GraphQL POST or GET request (depending on the config and GraphQL operation).
core-js
imports due to @babel/[email protected]
.prettier
.src
directory.createUploadLink
options.apollo-link-http
API and support setting credentials
and headers
directly on the link and via context, fixing #36.content-type: application/json
header to be used when uploading.apollo-link
and graphql
peer dependencies.babel-preset-env
to handle polyfills so only required ones are included for our level of browser support.prettier
to format distribution code as well as source code.dist
directory to lib
..mjs
extension.babel-eslint
as the vanilla parser works fine.ReactNativeFile.list
.prepublishOnly
instead of prepublish
.ReactNativeFile
to a seperate extract-files
package.package-lock.json
. Lockfiles are not recommended for packages.File
input type Upload
for clarity.package.json
, fixing #19 via #23.ReactNativeFile
class to more reliably identify files for upload in React Native, via #17.apollo-client
, via #18.
HTTPUploadNetworkInterface
renamed UploadHTTPFetchNetworkInterface
.HTTPUploadBatchNetworkInterface
renamed UploadHTTPBatchedNetworkInterface
.createBatchNetworkInterface
renamed createBatchingNetworkInterface
.[email protected]
: