Skip to content

Releases: logaretm/villus

v1.0.0-rc.13

27 Feb 22:53
Compare
Choose a tag to compare

πŸ› Bug Fixes

  • Fixed the default fetch plugin not considering partial data/error responses (6c0a6fa)
  • Fixed the batch plugin not considering partial data/error respones and properly handle non-200 responses #104 (5cb088d)

v1.0.0-rc.12

17 Feb 08:00
Compare
Choose a tag to compare

πŸ¦– TypeScript

  • Exposed the OperationResult interface #97 (7ba3972)

πŸ†• New Features

  • Added context option to useQuery and useMutation to support modifying headers on per query basis #96 (8248b06)
useQuery({
  query: SomeQuery,
  context: {
    headers: {
      // some headers
    }
  }
});

// can be reactive as well
useQuery({
  query: SomeQuery,
  context: computed(() => { .... })
});

useMutation(SomeMutation, {
  context: {
    headers: {
      // some headers
    }
  }
});

// can be reactive as well
useMutation(SomeMutation, {
  context: computed(() => { .... })
});

[email protected]

20 Jan 22:58
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ¦– TypeScript

  • Fixed typing issue with Subscription forwarder type not accepting standard GraphQL ExecutionResult objects #93 (9ced480)

πŸ› Bugs Fixed

  • Fixed an issue where subscriptions did not report query errors correctly #93 (9ced480)

πŸ’– Enhancements

  • Tweaked the pause behavior with subscriptions to not unsubscribe from the observable when paused, instead it will ignore the result and freeze the state until resume is called again #94

[email protected]

15 Jan 10:12
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ¦– Types

  • Enhanced the return type from the useQuery suspense API.
  • Enhanced the data and error return type to be nullable to reflect real world GQL.

πŸ†• New Features

  • added variables option to override query variables on demand (only for a single execution)
const { execute } = useQuery();

execute({
  variables: {
     // ...
   }
})

@villus/[email protected]

16 Dec 00:18
Compare
Choose a tag to compare
Pre-release

πŸ› Bug Fixes

  • fixed an issue where batch requests did not handle network errors correctly #86

[email protected]

26 Nov 23:55
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ†• New Features

  • added install method to the villus client instance to make it installable as a Vue plugin #81 (#83) thanks to @sibbng

[email protected]

25 Nov 20:44
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ†• New Features

  • Exposed getQueryKey helper function to allow including other values into the generated query ids (used for caching and dedup). 26548d5 5d18e8a

  • useSubscription now accepts refs for both query and variables, and will re-execute the subscription if either change. 0ec4680

[email protected]

25 Nov 20:41
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ†• New Features

  • Exposed definePlugin type helper to make creating plugins easier 6f79a97

[email protected]

25 Nov 20:39
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

New Features πŸ†•

  • added initialIsFetching for useQuery composable function ea043da

[email protected]

25 Nov 20:38
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

πŸ› Bug Fixes

  • fixed an issue where provides property is not available on a Vue instance 73efd25