Skip to content

villus@1.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@logaretm logaretm released this 30 Sep 22:23

Breaking Changes πŸ’€

  • deprecate the context and fetch 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 πŸ›

  • handle non-200 error responses closes #49 (0950fa8)

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.

Check the documentation here

multipart plugin ⬆️

The multipart plugin will enable support for graphql file upload, check the documentation and examples here