Skip to content

Releases: logaretm/villus

[email protected]

26 Oct 02:08
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ†• Enhancements

  • Implement a workaround for self-injections being disabled by vuejs/core#2424 that causes #72

This is not a breaking change as villus is mainly aimed to be used with the composition API, so the implement workaround offers more utility by allowing using useClient and useXXX at the same component level.

[email protected]

22 Oct 11:09
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ’₯ Breaking Changes

  • Due to the typing issues in #68 the signature of useQuery had to be changed to better differentiate between the TypedDocument type and the options accepted by useQuery. Now, useQuery accepts a single argument containing all the options.

[email protected]

09 Oct 00:11
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ‘• Types

  • Fixed fetchOnMount type not named correctly #57 (09c3de4)

[email protected]

07 Oct 04:02
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

This release contains a bunch of minor but breaking changes πŸ’₯

Props Renamed

Some props and functions names got changed to better communicate their purpose and avoid any obscure terminology

  • lazy prop on useQuery and Query has been renamed to fetchOnMount to better communicate the purpose
  • Changed the pausing terminology for useQuery and Query to better reflect their use, resume is now watchVariables and pause is now unwatchVariables, isPaused is now isWatchingVariables. A little verbose but clear cut
  • renamed pause prop name to be paused on both Query and Subscription components
  • renamed suspend prop on Query component to suspended for consistency with other props

Subscription Changes

  • subscriptions have been re-implemented as a simple plugin handleSubscriptions rather than their own weird thing, which allows subscriptions to participate in the plugins pipeline (previously they didn't)

[email protected]

05 Oct 02:47
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ‘• TypeScript

Export the Client Type so it can be used around (#54) thanks to @ppseafield

[email protected]

02 Oct 11:15
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Bug Fixes πŸ›

  • Check for the kind property instead of loc for determining the query type #52 (#53) Thanks to @pipe01

[email protected]

30 Sep 22:23
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

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

v1.0.0-beta.0

23 Sep 02:02
Compare
Choose a tag to compare
v1.0.0-beta.0 Pre-release
Pre-release

Nothing Changed in this release

v1.0.0-alpha.15

23 Sep 01:59
Compare
Choose a tag to compare
v1.0.0-alpha.15 Pre-release
Pre-release

πŸ› Bugs

  • fix: useQuery not using the safe stringify function introduced in last release (64b801c)

v1.0.0-alpha.14

23 Sep 01:59
Compare
Choose a tag to compare
v1.0.0-alpha.14 Pre-release
Pre-release
  • DX: added a fallback to json-fast-stable-stringify dependency in case villus was being used in browser via CDN (328f8b8)