Apollo Upload Client Versions Save

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

v6.0.1

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

v6.0.0

6 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:

v6.0.0-beta.3

6 years ago
  • Corrected network error handling, fixing #38.

v6.0.0-beta.2

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

v6.0.0-beta.1

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

v5.1.1

6 years ago
  • Updated dependencies.
  • Readme fixes:
    • Fixed usage example code for ReactNativeFile.list.
    • Fixed capitalization of ‘npm’.

v5.1.0

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

v5.0.0

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

v5.0.0-alpha.1

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

v4.1.1

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