Releases: logaretm/villus
Releases Β· logaretm/villus
v1.0.0-rc.15
v1.0.0-rc.14
π Bug Fixes
- Fixed a race condition causing queries and mutation state integrity issues (43d936b)
v1.0.0-rc.13
v1.0.0-rc.12
π¦ TypeScript
π New Features
- Added
context
option touseQuery
anduseMutation
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]
π¦ TypeScript
- Fixed typing issue with Subscription forwarder type not accepting standard GraphQL
ExecutionResult
objects #93 (9ced480)
π Bugs Fixed
π Enhancements
- Tweaked the
pause
behavior with subscriptions to notunsubscribe
from the observable when paused, instead it will ignore the result and freeze the state untilresume
is called again #94
[email protected]
π¦ Types
- Enhanced the return type from the
useQuery
suspense API. - Enhanced the
data
anderror
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]
π Bug Fixes
- fixed an issue where batch requests did not handle network errors correctly #86
[email protected]
[email protected]
[email protected]
π New Features
- Exposed
definePlugin
type helper to make creating plugins easier 6f79a97