Skip to content

Releases: vuejs/apollo

v4.0.0-alpha.4

17 Dec 11:14
Compare
Choose a tag to compare
v4.0.0-alpha.4 Pre-release
Pre-release

Fixed

  • useResult type inferring 'any' (#872)
  • useMutation cleanup on unmount
  • loading tracking not cleanup correctly on component unmount

v4.0.0-alpha.5

10 Jan 23:22
Compare
Choose a tag to compare
v4.0.0-alpha.5 Pre-release
Pre-release

Fixed

  • useSbuscription: currentOptions undefined error, closes #903
  • useMutation: useMutation not taking a Ref (#892)
  • useMutation: "mutate" optional arguments (#893)
  • ts: Add full test coverage for TypeScript hook types & fix missing overloads (#895)

v4.0.0-alpha.3

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

Fixed

@vue/apollo-composable

  • useQuery: Fixed throttle and debounce not being initially applied
  • useQuery & useSubscription: enabled not working in some cases

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).