Releases: vuejs/apollo
Releases Β· vuejs/apollo
v3.0.0-beta.10
New
<ApolloMutation/>
component added (docs)- Events added for
<ApolloQuery/>
component (docs) times
scoped slot prop added for<ApolloQuery/>
result
hook onsubscribeToMore
in smart queries
Improved
- You no longer need to declare and initialize the data props in
data()
Fixed
- The data props are now displayed correctly in the vue devtools
v3.0.0-beta.2
v3.0.0-beta.1
Breaking change
- For Vue 2.x,
ApolloProvider
now uses theinject
/provide
feature of Vue to inject itself into any child component in the app. Migration path: replaceapolloProvider,
withprovide: apolloProvider.provide(),
on you main Vue instance (doc).
New
- Query components (doc).
- Loading state (doc).
- Install vue-apollo in 2 minutes with the vue-cli 3.x plugin: repo
Improved
willPrefetch
now accepts a 2nd argument, which is a callback getting the context as argument and that should return a boolean indicating if the component will be prefetched or not (doc).willPrefetch
is now exposed onwindow
orglobal
asvueApolloWillPrefetch
. This can be useful when authoring 3rd-party libraries using vue-apollo.
v3.0.0-alpha.3
v3.0.0-alpha.2next
Fixed
- Component data was not updating is the variables changed and the data was in the cache (when apollo wasn't making a request).
v3.0.0-alpha.1
New
- Supports Apollo Client 2.x
v2.1.0-rc.5
v2.1.0-rc.4
Fixed
- (SSR) Issue with
apolloProvider.exportStates
default options
v2.1.0-rc.3
Fixed
- SSR crash (
Error: You must wrap the query string in a "gql" tag.
) - Reverted to old behavior for
this.$apollo
so it can be used in components that don't have anapollo
option.
v2.1.0-rc.2
New
- Apollo definition (see doc):
$loadingKey
: default value for the component$error
: extra error handler for the component$watchLoading
: extra loading watcher
- Apollo Provider Constructor options (see doc):
defaultOptions
: default object for all theapollo
definitionswatchLoading
: global loading watchererrorHandler
: global error handler
Improved
- Internals cleaned up
- API Reference (WIP)
Fixed
- #101 SSR
variables
is nowundefined
ifprefetch
istrue
and novariables
option is present on the smart query