- Updated dependencies.
- Added support for
Blob
types, via #58. - Readme updates:
- Added a GraphQL multipart request spec server implementation list link to the intro.
- Misc. tweaks.
- Updated dependencies.
extract-files
v3 replaces files extracted from properties withnull
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 forapollo-upload-server
, but it might be for other implementations.
- 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 byapollo-upload-server
. - Support browsers with >1% global usage (was >2%).
- Updated the readme support section.
- Conform to the GraphQL multipart request spec v2.0.0-alpha.2.
- Don’t set empty request
operationName
orvariables
.
- Response is set on the context, via #40.
- Configured
lint-staged
for.mjs
.
- Fix broken exports. See babel/babel#6805.
- 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.
- Updated
prettier
. - No longer publish the
src
directory. - Readme API documentation fixes:
- Corrected React Native example code import, via #39.
- Updated
createUploadLink
options.
- Corrected network error handling, fixing #38.
- Match the
apollo-link-http
API and support settingcredentials
andheaders
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 changelog Apollo documentation links.
- changelog is now prettier.
- Updated dependencies.
- Apollo Client v2 compatibility:
- Export a terminating Apollo Link instead of custom network interfaces.
- New
apollo-link
andgraphql
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 tolib
. - 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.
- Updated dependencies.
- Readme fixes:
- Fixed usage example code for
ReactNativeFile.list
. - Fixed capitalization of ‘npm’.
- Fixed usage example code for
- Updated dependencies.
- Readme tweaks including a new licence badge.
- Fixed Rollup build warnings.
- Fixed an npm v5 warning by using
prepublishOnly
instead ofprepublish
. - Refactored network interfaces; moved file extraction logic and
ReactNativeFile
to a separateextract-files
package.
- Removed
package-lock.json
. Lockfiles are not recommended for packages. - Readme tweaks and fixes:
- Renamed the
File
input typeUpload
for clarity. - Wording and formatting improvements.
- Renamed the
- 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
renamedUploadHTTPFetchNetworkInterface
.HTTPUploadBatchNetworkInterface
renamedUploadHTTPBatchedNetworkInterface
.createBatchNetworkInterface
renamedcreateBatchingNetworkInterface
.
- Updated dependencies.
- Compatibility changes for
[email protected]
:
- Documented React Native.
- Fixed error when
File
andFileList
are undefined globals in React Native, see comment.
- Support React Native, fixing #10.
- Prevent error caused by
null
values in query/mutation variables, fixing #15.
- Corrected
package-lock.json
. - Source comment typo fix.
- Removed 2 dependencies by refactoring
extractRequestFiles
with bespoke recursion logic, shaving several KB off the bundle size and fixing #13.
- Updated dependencies.
- Added a changelog.
- 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. Usenpm run build -- --watch
directly.
- Updated dependencies.
- Fixed fetch options not applying correctly, see #9.
- Updated readme examples:
- Removed
PropTypes
. React no longer exports them and they are a distraction anyway. - Importing
gql
fromreact-apollo
. - No longer using decorator syntax.
- Using functional components in place of classes.
- Removed
- 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.
- The
extractRequestFiles
helper no longer converts the query AST to string as a side-effect, fixing #5.
- Updated dependencies.
- Fall back to regular network interface fetch methods if SSR or no files to upload, fixing #3.
- Better transpilation with
babel-runtime
. This should improve IE 11 support.
- Support
apollo-upload-server
v2 and query batching. - Removed the seemingly redundant
Accept
header from requests. - Clearer package description.
- Updated dependencies.
- Internal refactor for a cleaner ES6 class extension and method override.
- Removed two unversioned files prematurely published to npm.
- 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.
- Now exporting the custom network interface, which has been renamed
- Fixed the
uri
argument forcreateNetworkInterface
ending up in the request options. - Internally simplified
apollo-client
imports. - Simpler linting setup.
- Fixed broken Github deep links in the readme.
- Readme rewording.
- Simplified package.json description.
- Added missing metadata to
package.json
.
- Initial release.