apollo-upload-client

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).

Downloads
2.7M
Stars
1.5K
Committers
22

Bot releases are hidden (Show)

apollo-upload-client - Version 4.1.0

Published by jaydenseric over 7 years ago

  • Documented React Native.
apollo-upload-client - Version 4.1.0-alpha.2

Published by jaydenseric over 7 years ago

  • Fixed error when File and FileList are undefined globals in React Native, see comment.
apollo-upload-client - Version 4.1.0-alpha.1

Published by jaydenseric over 7 years ago

  • Support React Native, fixing #10.
apollo-upload-client - Version 4.0.7

Published by jaydenseric over 7 years ago

  • Prevent error caused by null values in query/mutation variables, fixing #15.
apollo-upload-client - Version 4.0.6

Published by jaydenseric over 7 years ago

  • Corrected package-lock.json.
  • Source comment typo fix.
apollo-upload-client - Version 4.0.5

Published by jaydenseric over 7 years ago

  • Removed 2 dependencies by refactoring extractRequestFiles with bespoke recursion logic, shaving several KB off the bundle size and fixing #13.
apollo-upload-client - v4.0.4

Published by jaydenseric over 7 years ago

  • Updated dependencies.
  • Added a change log.
  • Dropped Yarn in favor of npm@5. Removed yarn.lock and updated install instructions.
  • 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. Use npm run build -- --watch directly.
apollo-upload-client - Version 4.0.3

Published by jaydenseric over 7 years ago

  • Updated dependencies.
  • Fixed fetch options not applying correctly, see #9.
apollo-upload-client - Version 4.0.2

Published by jaydenseric over 7 years ago

  • Updated readme examples:
    • Removed PropTypes. React no longer exports them and they are a distraction anyway.
    • Importing gql from react-apollo.
    • No longer using decorator syntax.
    • Using functional components in place of classes.
apollo-upload-client - Version 4.0.1

Published by jaydenseric over 7 years ago

  • Updated dependencies.
  • No longer errors when network interface opts are not configured, fixing #8.
  • Fixed the batch network interface always thinking there are files to upload, preventing the use of the fallback vanilla Apollo transport method when there are none.
  • Simplified Babel config.
apollo-upload-client - Version 4.0.0

Published by jaydenseric over 7 years ago

  • Corrected the API for configuring fetch options, fixing #6 (#7).
apollo-upload-client - Version 3.0.3

Published by jaydenseric over 7 years ago

  • The extractRequestFiles helper no longer converts the query AST to string as a side-effect, fixing #5.
apollo-upload-client - Version 3.0.2

Published by jaydenseric over 7 years ago

  • Updated dependencies.
  • Fall back to regular network interface fetch methods if SSR or no files to upload, fixing #3.
apollo-upload-client - Version 3.0.1

Published by jaydenseric over 7 years ago

  • Better transpilation with babel-runtime. This should improve IE 11 support.
apollo-upload-client - Version 3.0.0

Published by jaydenseric over 7 years ago

  • Support apollo-upload-server v2 and query batching.
  • Removed the seemingly redundant Accept header from requests.
  • Clearer package description.
apollo-upload-client - Version 2.0.2

Published by jaydenseric over 7 years ago

  • Updated dependencies.
  • Internal refactor for a cleaner ES6 class extension and method override.
apollo-upload-client - Version 2.0.1

Published by jaydenseric over 7 years ago

  • Removed two unversioned files prematurely published to npm.
apollo-upload-client - Version 2.0.0

Published by jaydenseric over 7 years ago

  • Updated dependencies.
  • New API:
    • Now exporting the custom network interface, which has been renamed HTTPUploadNetworkInterface. This enables it to be extended externally.
    • In preparation for adding another batched network interface, createNetworkInterface is now a named and not default export.
  • Fixed the uri argument for createNetworkInterface ending up in the request options.
  • Internally simplified apollo-client imports.
  • Simpler linting setup.
apollo-upload-client - Version 1.0.2

Published by jaydenseric over 7 years ago

  • Fixed broken Github deep links in the readme.
  • Readme rewording.
  • Simplified package.json description.
apollo-upload-client - Version 1.0.1

Published by jaydenseric over 7 years ago

  • Added missing metadata to package.json.