Releases: logaretm/villus
[email protected]
New Features π
- added
initialIsFetching
foruseQuery
composable function ea043da
[email protected]
π Bug Fixes
- fixed an issue where
provides
property is not available on a Vue instance 73efd25
[email protected]
π 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]
π₯ 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 byuseQuery
. Now, useQuery accepts a single argument containing all the options.
[email protected]
[email protected]
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 onuseQuery
andQuery
has been renamed tofetchOnMount
to better communicate the purpose- Changed the
pausing
terminology foruseQuery
andQuery
to better reflect their use,resume
is nowwatchVariables
andpause
is nowunwatchVariables
,isPaused
is nowisWatchingVariables
. A little verbose but clear cut - renamed
pause
prop name to bepaused
on bothQuery
andSubscription
components - renamed
suspend
prop onQuery
component tosuspended
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]
π TypeScript
Export the Client
Type so it can be used around (#54) thanks to @ppseafield
[email protected]
[email protected]
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
v1.0.0-beta.0
Nothing Changed in this release