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 8.0.0

Published by jaydenseric over 6 years ago

apollo-upload-client - Version 7.1.0

Published by jaydenseric over 6 years ago

  • Updated dependencies.
  • Stop using named imports from CJS dependencies in ESM, fixing #72.
  • Match an error handling tweak in the official HTTP links.

Includes all the changes from:

apollo-upload-client - Version 7.1.0-alpha.2

Published by jaydenseric over 6 years ago

  • Updated dependencies.
  • Using new apollo-link-http-common API.
  • Corrected aborting fetch, fixing #70.
apollo-upload-client - Version 7.1.0-alpha.1

Published by jaydenseric over 6 years ago

  • Updated dependencies.
  • Using apollo-link-http-common for commonality with the official HTTP links:
    • Removed graphql peer dependency.
    • Aborting fetch supported.
    • Fixes #47 and #61.
  • More robust npm scripts.
  • HTTPS package.json author URL.
apollo-upload-client - Version 7.0.0-alpha.4

Published by jaydenseric over 6 years ago

apollo-upload-client - Version 7.0.0-alpha.3

Published by jaydenseric almost 7 years ago

apollo-upload-client - Version 7.0.0-alpha.2

Published by jaydenseric almost 7 years ago

  • Updated dependencies.
  • Updated peer dependencies to support [email protected].
  • Added a clean step to builds.
  • Smarter Babel config with .babelrc.js.
  • Modular project structure that works better for native ESM.
  • Target Node.js v6.10+ for transpilation and polyfills via package.json engines, matching the version supported by apollo-upload-server.
  • Support browsers with >1% global usage (was >2%).
  • Updated the readme support section.
apollo-upload-client - Version 7.0.0-alpha.1

Published by jaydenseric almost 7 years ago

apollo-upload-client - Version 6.0.3

Published by jaydenseric almost 7 years ago

  • Response is set on the context, via #40.
  • Configured lint-staged for .mjs.
apollo-upload-client - Version 6.0.2

Published by jaydenseric almost 7 years ago

apollo-upload-client - Version 6.0.1

Published by jaydenseric almost 7 years ago

  • Updated dependencies. Fixes broken core-js imports due to @babel/[email protected].
  • Configured prettier to no longer hard wrap markdown prose.
  • Fixed an Apollo link in the readme.
  • Misc. readme and changelog typo fixes.
  • Externally host the readme logo again to fix display in npm. See npm/www#272.
apollo-upload-client - Version 6.0.0

Published by jaydenseric almost 7 years ago

  • Updated prettier.
  • No longer publish the src directory.
  • Readme API documentation fixes:
    • Corrected React Native example code import via #39.
    • Updated createUploadLink options.
  • Includes the pre-release changes:
apollo-upload-client - Version 6.0.0-beta.3

Published by jaydenseric almost 7 years ago

  • Corrected network error handling, fixing #38.
apollo-upload-client - Version 6.0.0-beta.2

Published by jaydenseric almost 7 years ago

  • Match the apollo-link-http API and support setting credentials and headers directly on the link and via context, fixing #36.
  • Fixed a bug that can cause the wrong content-type: application/json header to be used when uploading.
  • Updated change log Apollo documentation links.
  • Change log is now prettier.
apollo-upload-client - Version 6.0.0-beta.1

Published by jaydenseric almost 7 years ago

  • Updated dependencies.
  • Apollo Client v2 compatibility:
    • Export a terminating Apollo Link instead of custom network interfaces.
    • New apollo-link and graphql peer dependencies.
  • Rejigged package scripts.
  • Updated Prettier and ESLint config.
  • Lint errors when attempting to commit partially staged files no longer commits the whole file.
  • Using Babel v7 directly instead of Rollup.
  • Using babel-preset-env to handle polyfills so only required ones are included for our level of browser support.
  • Using prettier to format distribution code as well as source code.
  • No more source maps, as Prettier does not support them.
  • Renamed dist directory to lib.
  • Module files now have .mjs extension.
  • Removed babel-eslint as the vanilla parser works fine.
  • Readme improvements:
    • Relative logo path.
    • Added links to badges.
    • Simplified code examples.
    • Mark relevant example code blocks as JSX instead of JS.
    • Removed the inspiration links; they are less relevant to the evolved codebase.
apollo-upload-client - Version 5.1.1

Published by jaydenseric about 7 years ago

  • Updated dependencies.
  • Readme fixes:
    • Fixed usage example code for ReactNativeFile.list.
    • Fixed capitalization of ‘npm’.
apollo-upload-client - Version 5.1.0

Published by jaydenseric over 7 years ago

  • Updated dependencies.
  • Readme tweaks including a new licence badge.
  • Fixed Rollup build warnings.
  • Fixed an npm v5 warning by using prepublishOnly instead of prepublish.
  • Refactored network interfaces; moved file extraction logic and ReactNativeFile to a seperate extract-files package.
apollo-upload-client - Version 5.0.0.

Published by jaydenseric over 7 years ago

  • Removed package-lock.json. Lockfiles are not recommended for packages.
  • Readme tweaks and fixes:
    • Renamed the File input type Upload for clarity.
    • Wording and formatting improvements.
apollo-upload-client - Version 5.0.0-alpha.1

Published by jaydenseric over 7 years ago

  • Updated dependencies.
  • Simplified React Native setup by moving Babel config out of package.json, fixing #19 via #23.
  • Export a new ReactNativeFile class to more reliably identify files for upload in React Native, via #17.
  • Renamed several exports for consistency with apollo-client, via #18.
    • HTTPUploadNetworkInterface renamed UploadHTTPFetchNetworkInterface.
    • HTTPUploadBatchNetworkInterface renamed UploadHTTPBatchedNetworkInterface.
    • createBatchNetworkInterface renamed createBatchingNetworkInterface.
apollo-upload-client - Version 4.1.1

Published by jaydenseric over 7 years ago

  • Updated dependencies.
  • Compatibility changes for [email protected]:
    • Prevent a query batching error caused by an API change, fixing #20.
    • Support the new batchMax option in createBatchNetworkInterface.
Package Rankings
Top 0.87% on Npmjs.org
Top 6.67% on Proxy.golang.org
Related Projects