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).
Bot releases are visible (Hide)
Published by jaydenseric over 6 years ago
.mjs
until Apollo provides native ESM, fixing #72.Published by jaydenseric over 6 years ago
Includes all the changes from:
Published by jaydenseric over 6 years ago
apollo-link-http-common
API.Published by jaydenseric over 6 years ago
apollo-link-http-common
for commonality with the official HTTP links:
package.json
author URL.Published by jaydenseric over 6 years ago
Blob
types, via #58.Published by jaydenseric almost 7 years ago
extract-files
v3 replaces files extracted from properties with null
instead of deleting the property; see jaydenseric/extract-files#4. This improves compliance with the GraphQL multipart request spec. It’s not a breaking change for apollo-upload-server
, but it might be for other implementations.Published by jaydenseric almost 7 years ago
[email protected]
..babelrc.js
.package.json
engines
, matching the version supported by apollo-upload-server
.Published by jaydenseric almost 7 years ago
operationName
or variables
.Published by jaydenseric almost 7 years ago
lint-staged
for .mjs
.Published by jaydenseric almost 7 years ago
Published by jaydenseric almost 7 years ago
core-js
imports due to @babel/[email protected]
.Published by jaydenseric almost 7 years ago
prettier
.src
directory.createUploadLink
options.Published by jaydenseric almost 7 years ago
Published by jaydenseric almost 7 years ago
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.Published by jaydenseric almost 7 years ago
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.Published by jaydenseric about 7 years ago
ReactNativeFile.list
.Published by jaydenseric over 7 years ago
prepublishOnly
instead of prepublish
.ReactNativeFile
to a seperate extract-files
package.Published by jaydenseric over 7 years ago
package-lock.json
. Lockfiles are not recommended for packages.File
input type Upload
for clarity.Published by jaydenseric over 7 years ago
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
.Published by jaydenseric over 7 years ago
[email protected]
: