Releases: vuejs/apollo
Releases Β· vuejs/apollo
v4.0.0-alpha.4
Fixed
- useResult type inferring 'any' (#872)
- useMutation cleanup on unmount
- loading tracking not cleanup correctly on component unmount
v4.0.0-alpha.5
v4.0.0-alpha.3
Fixed
@vue/apollo-composable
- useQuery: Fixed
throttle
anddebounce
not being initially applied - useQuery & useSubscription:
enabled
not working in some cases
v4.0.0-alpha.2
New
@vue/apollo-composable
- New
overrideOptions
parameter onmutate
returned byuseMutation
Fixed
@vue/apollo-composable
- Fixed
useXXXLoading
functions not working correctly
v4.0.0-alpha.1
V4 Alpha is now live! It is full packed with changes, most notably an entirely new API based on the new Vue Composition API. This releases prepares the future full v4 release which will be streamlined and lighter.
Although the alpha is already quite extensively tested, it is not recommended to use it in production just yet. We will do our best to have the least number of breaking changes during the development cycle, but it can still happen until the beta when the API will be stable.
Documentation preview lives here: https://v4.apollo.vuejs.org/
BREAKING CHANGES
- Packages are now split:
@vue/apollo-option
: Classic Option API@vue/apollo-components
: Apollo Components such as<ApolloQuery>
@vue/apollo-composable
(NEW): Composition API@vue/apollo-ssr
: SSR utils@vue/apollo-util
(NEW): Apollo-related utils (such as error formatter)
- This also means setup have changed, you need to update your imports
- If you want to register the Apollo Components globally, you can enable the components plugin alongside the Classic one:
import VueApolloOption from '@vue/apollo-option'
import VueApolloComponents from '@vue/apollo-components'
Vue.use(VueApolloOption)
Vue.use(VueApolloComponents)
- The SSR utility functions now accept an object of ApolloClient instead of an ApolloProvider (which is deprecated).
Before:
ApolloSSR.getStates(apolloProvider)
After:
ApolloSSR.getStates({
defaultClient: apolloClient
})
Or:
ApolloSSR.getStates(apolloProvider.clients)
New
- New API based on Vue Composition API (docs).
v3.0.2
v3.0.1
v3.0.0
New
- Send the query key as argument to the skip fn (#810)
error
handlers: addedvm
,key
,type
,options
arguments
Fixed
- compile for...of to plain for loops (#813)
- ts: import gql files, closes Akryum/vue-cli-plugin-apollo#180
- ts: DataDef not defined error
- smart query: now supports
errorPolicy
, closes #526 - SSR: memory leak, closes nuxt-modules/apollo#231
v3.0.0-rc.7
Fixed
v3.0.0-rc.6
Fixed
- types: allow typing
this
in theapollo
option in decorator, closes #780 - types: allow typing the variables for
VueApolloQueryDefinition
, closes #787
Known issues
- types: Using the array notation for
subscribeToMore
may not inferthis
correctly because of an issue in TypeScript. Workaround: use a function to return the whole query definition and use arrow functions (example).