Skip to content

Releases: vuejs/apollo

v4.0.0-alpha.2

04 Dec 15:13
Compare
Choose a tag to compare
v4.0.0-alpha.2 Pre-release
Pre-release

New

@vue/apollo-composable

  • New overrideOptions parameter on mutate returned by useMutation

Fixed

@vue/apollo-composable

  • Fixed useXXXLoading functions not working correctly

v4.0.0-alpha.1

04 Dec 15:08
Compare
Choose a tag to compare
v4.0.0-alpha.1 Pre-release
Pre-release

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

29 Nov 10:19
Compare
Choose a tag to compare

Fixed

  • fix(ts): types file name gql.ts to gql.d.ts (#864)
  • wrong license in package.json

v3.0.1

26 Nov 15:10
Compare
Choose a tag to compare

Fixed

  • destroy apollo after render, closes #852
  • check errors.length is not 0 before throwing error

v3.0.0

21 Oct 11:26
Compare
Choose a tag to compare

New

  • Send the query key as argument to the skip fn (#810)
  • error handlers: added vm, key, type, options arguments

Fixed

v3.0.0-rc.7

30 Sep 13:07
Compare
Choose a tag to compare
v3.0.0-rc.7 Pre-release
Pre-release

Fixed

  • SSR: don't apply debounce/throttle on server, closes #599
  • $query wasn't merged, closes #638
  • simple queries should inherit global options, closes #637
  • don't add default client if not defined, closes #548
  • should properly stop and restart subcribe to more subs after query is restarted, closes #677

v3.0.0-rc.6

19 Sep 23:17
Compare
Choose a tag to compare
v3.0.0-rc.6 Pre-release
Pre-release

Fixed

  • types: allow typing this in the apollo 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 infer this correctly because of an issue in TypeScript. Workaround: use a function to return the whole query definition and use arrow functions (example).

v3.0.0-rc.5

16 Sep 09:57
Compare
Choose a tag to compare
v3.0.0-rc.5 Pre-release
Pre-release

Fixed

  • types: apollo methods generics, fixes #773

v3.0.0-rc.4

12 Sep 23:30
Compare
Choose a tag to compare
v3.0.0-rc.4 Pre-release
Pre-release

Fixed

  • Types: missing client option on $subscribe

v3.0.0-rc.3

12 Sep 22:02
Compare
Choose a tag to compare
v3.0.0-rc.3 Pre-release
Pre-release

Potential breaking changes

  • TypeScript users please read : Types have been almost entirely rewritten, which fixes a lot of issues with typing. But it may also throw errors that weren't catched before, especially if you don't annotate return types in reactive functions, see example. I'm very sorry for the potential breaking changes in a Release Candidate, but it's a necessary evil for the upcoming stable release.

New

  • Reactive pollInterval (#613) closes #453
  • Add global prefetch ApolloProvider option (#710)

Fixed

  • Externalize apollo and graphql libraries (#722)