apollo

🚀 Apollo/GraphQL integration for VueJS

MIT License

Stars
6K
Committers
139

Bot releases are hidden (Show)

apollo -

Published by Akryum over 5 years ago

New

  • ApolloQuery: new options prop

Fixed

  • result not called with notifyOnNetworkStatusChange, closes #263
  • apply throttle on query, document, context
apollo -

Published by Akryum over 5 years ago

Fixed

  • SSR: add serialize-javascript for removing xss from javascript delivered to client when exporting apollo states. (#624)
  • types: add client to mutation options (#644)
  • types: optimisticResponse typing issue (#627)
  • types: use ApolloQueryResult & FetchResult
  • mark apollo-link as peer dependency (some types are used from apollo-link)
apollo -

Published by Akryum over 5 years ago

New

  • ApolloQuery: update prop
  • ApolloQuery & ApolloMutation: loading event

Fixed

  • uncaught in promise on client-side, closes #572
apollo -

Published by Akryum over 5 years ago

New

  • ApolloQuery: prefetch prop, closes #594
  • Apollo components: allow usage of gql in template

Fixed

  • Check for provided truthiness, closes #532 (#533)
  • updateQuery with result hook (#589)
  • ssr: ssr blocking when skip is true (#511)
  • Invoke loadingDone when stopping SmartQuery (#559)
  • ts: skipandprefetch` query options definitions (#556)
  • ts: prefetch type (#517)
  • ts: VueApolloSubscriptionOptions typing (#499)
  • ts: Add missing declarations to $apolloProvider (#493)

Docs

apollo - v3.0.0-beta.28

Published by Akryum over 5 years ago

Breaking change

The SSR system has been completely reworked to use the brand new serverPrefetch system from Vue 2.6. This means a few things:

  • The fake instance tree is no more!
  • No vue-apollo specific caveats for SSR anymore.
  • Full compability with SSR-compatible Vue plugins.
  • Using an official public API from Vue means no breaking in future Vue 2.x versions!

Take a look at the updated SSR guide!

apollo -

Published by Akryum almost 6 years ago

Fixed

  • update typings (#447)
  • don't re-run if variables didn't change (#467)
  • Add query key as additional parameter to result callback, closes #445 (#448)
apollo -

Published by Akryum almost 6 years ago

New

  • ssr: provider default options
  • ssr: config
  • ssr: globalPrefetch
  • ssr: mockInstance

Fixed

  • fetching incorrect result from cache after an Apollo error (#343)

Others

  • lots of docs improvements!
apollo -

Published by Akryum about 6 years ago

Fixed

  • class component: watching and computing of dynamic data props with default value
apollo -

Published by Akryum about 6 years ago

Fixed

  • added setter for intial value, closes #333
apollo -

Published by Akryum about 6 years ago

Fixed

  • ssr: $options was missing
apollo -

Published by Akryum about 6 years ago

New

  • Added $prefetch: true to fake vm instances while prefetching a tree

Fixed

  • error in renderless rendering (#381)
  • ssr: computed/methods and other fixes (#379)
  • ts: typings
apollo -

Published by Akryum about 6 years ago

Fixed

  • ssr: missing ssr helpers, closes #378
apollo -

Published by Akryum about 6 years ago

Breaking changes

  • Provide has been dropped to fix an issue with root instances. This means you have to change provide: apolloProvider.provide() to apolloProvider on your root instance (like some time ago). The injection of $apolloProvider in instances should be unchanged (works like inject/provide).
  • The SSR system and API has been completely refactored (docs).
  • Some TypeScript fixes may cause some previously working typscript code no longer be valid (more info).

New

  • Add clientId in ApolloMutation component (#359)
  • Added support for debounce and throttle in ApolloQuery component (#349)
  • Let the ApolloQuery be a renderless component if tag prop is undefined (#365)

Fixed

  • SmartQuery shouldn't be auto-started on server when prefetch is false (#348)
  • TypeScript: specify this type for watchLoading (#360)

Docs

  • Testing chapter (#368)
  • Add Apollo boost to Installation (#313)
  • Lots of fixes! Thank you contributors!
apollo -

Published by Akryum over 6 years ago

Fixed

  • $query in the defaultOptions option of provider not being applied
apollo -

Published by Akryum over 6 years ago

Fixed

  • hasOwnProperty is not a function (#294)
  • Missing throttle-debounce dep in build
apollo -

Published by Akryum over 6 years ago

New

  • error.gqlError is the first GraphQL error if any, also available in Apollo Components slot-scope as gqlError.

Fixed

  • #272 #283 restart query subscription after an error occurred (should help with apolloClient.resetStore())
  • watch on apollo fields
  • ApolloQuery: remove console.log in error handler

Fixed in previous releases

  • $query option
  • Factory function for throttle/debounce (#288)
  • ReactiveSetter deep flag propagation (#289)
  • #239 skip prop proxy if query is manual
apollo -

Published by Akryum over 6 years ago

Improved

  • Pass back isLoading to scoped-slot (#218)
  • Add default query options (#257)
  • Remove lodash to reduce final size (#251)

Fixed

  • no-cache smart queries are throwing exceptions in optimistic UI updates (#280)
  • relax getter on loading (#237)
  • Update typed apollo provider (#273)
  • Add Typescript type for addSmartQuery() (#230)
  • fix: #265 silent errors if catched
  • refactor: watchers in start() fix #122
  • refactor: callHandlers fix #108
  • fix: #239 skip prop proxy if query is manual
apollo -

Published by Akryum over 6 years ago

New

  • <ApolloMutation/> component added (docs)
  • Events added for <ApolloQuery/> component (docs)
  • times scoped slot prop added for <ApolloQuery/>
  • result hook on subscribeToMore 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
apollo -

Published by Akryum over 6 years ago

Fixed

  • If query is a function, call it in prefetchAll - fix #153
  • SmartSubscription: bind updateQuery to vm - fix #154
  • npm ignore babel/eslint configs - fix #211

Fixed in previous release

  • Don't require the key to match the query name #186 by @nachocab
  • fix TypeScript error when multiple clients are used #193 @azulite
apollo -

Published by Akryum over 6 years ago

Breaking change

  • For Vue 2.x, ApolloProvider now uses the inject/provide feature of Vue to inject itself into any child component in the app. Migration path: replace apolloProvider, with provide: 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 on window or global as vueApolloWillPrefetch. This can be useful when authoring 3rd-party libraries using vue-apollo.
Package Rankings
Top 3.79% on Proxy.golang.org
Badges
Extracted from project README
Related Projects