Breaking Changes π
- deprecate the
context
andfetch
options in favor of custom plugins API - deprecate the exported
batch
fetcher in favor of@villus/batch
plugin - changed the signature of provider and useClient (b4fa6d9) due to conflicts with TypeScript typings
Bug Fixes π
New Features
Plugins API π
A large chunk of villus code has been re-written from scratch to use pipeline-like operation transformers (plugins) similar to what apollo client and urql are doing with much less jargon and complexity, they are just a simple middleware performing operations on GraphQL queries as they go out or after execution.
multipart
plugin β¬οΈ
The multipart
plugin will enable support for graphql file upload, check the documentation and examples here