Vue Apollo Versions Save

🚀 Apollo/GraphQL integration for VueJS

v3.1.0

2 years ago

Fixed

  • Fixed subscription error handling to work around some Apollo Client inconsistencies, errors should now be correctly handled by vue-apollo
  • Subscriptions now automatically restart on error just like queries, closes #877
  • $skipAllQueries and $skipAllSubscriptions now work on initial component mount

v3.0.8

2 years ago

Fixed

  • fix(smart apollo): ensure SmartQuery variables still function when watched expression evaluated (#1161)
  • fix(types): add throttle and debounce options #1257

v3.0.7

3 years ago

Fixed

  • fix(smart query): initial data not retrieved from cache if query was fetched already once (only on Apollo Client 3)

v3.0.6

3 years ago

Fixed

  • ApolloQuery: null error in isDataFilled, closes #933
  • removed unnecessary loading check (#1111)

New

  • types: allow pass generic type to ObservableQuery (#1103)

v3.0.5

3 years ago

Fixed

  • smartquery: pass through error to rejection (#874)
  • ApolloMutation: missing context prop
  • ApolloMutation: return promise from mutate
  • typings improvements

v3.0.4

3 years ago

Fixed

  • Security: Upgrade serialize-javascript to 4.0.0 to resolve https://nvd.nist.gov/vuln/detail/CVE-2020-7660 Fixes #993 (#1008)
  • Apollo Client 3 support: use getCurrentResult (#981)
  • Cannot Re-assign $apollo, closes #924 (#930)
  • check errors.length on array (#984)
  • SSR: ignore pollInterval on server (#908)
  • SSR: reject serverPrefetch with error (#901)
  • Remove .gql/.graphql types (#881)

For Typescript users, if you get errors with your .gql files, you can add a gql.d.ts file in your sources folder with the following content:

declare module '*.gql' {
  import { DocumentNode } from 'graphql'

  const content: DocumentNode
  export default content

}

declare module '*.graphql' {
  import { DocumentNode } from 'graphql'

  const content: DocumentNode
  export default content
}

v3.0.3

4 years ago

Fixed

  • ssr: components with inline templates crashing, closes #879

v4.0.0-alpha.5

4 years ago

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

4 years ago

Fixed

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

v4.0.0-alpha.3

4 years ago

Fixed

@vue/apollo-composable

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