apollo

🚀 Apollo/GraphQL integration for VueJS

MIT License

Stars
6K
Committers
139

Bot releases are hidden (Show)

apollo -

Published by Akryum almost 7 years ago

New

  • #54 TypeScript typings via #160 - thanks @joe-re 👍
apollo -

Published by Akryum almost 7 years ago

Fixed

  • Component data was not updating is the variables changed and the data was in the cache (when apollo wasn't making a request).
apollo -

Published by Akryum almost 7 years ago

New

  • Supports Apollo Client 2.x
apollo -

Published by Akryum about 7 years ago

New

  • Manual mode (doc).

Improved

  • Subscriptions don't rerun if variables didn't change #116 (thanks @Frizi)
apollo -

Published by Akryum about 7 years ago

Fixed

  • (SSR) Issue with apolloProvider.exportStates default options
apollo -

Published by Akryum about 7 years ago

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 an apollo option.
apollo -

Published by Akryum about 7 years ago

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 the apollo definitions
    • watchLoading: global loading watcher
    • errorHandler: global error handler

Improved

Fixed

  • #101 SSR variables is now undefined if prefetch is true and no variables option is present on the smart query
apollo -

Published by Akryum about 7 years ago

Fixed

  • #97 The loading counter is correctly reset if fetchMore doesn't return any new result.
apollo -

Published by Akryum about 7 years ago

Improved

  • subscribeToMore on smart query declaration can accept an array of subscriptions.
apollo -

Published by Akryum about 7 years ago

apollo -

Published by Akryum about 7 years ago

Fixed

  • #95 - Component instances sharing state
apollo -

Published by Akryum about 7 years ago

New

  • ApolloProvider new getStates method (doc).
apollo -

Published by Akryum over 7 years ago

New

  • You can now use vue-apollo in the browser together with apollo-client-browser. No build steps required!
apollo -

Published by Akryum over 7 years ago

New

  • You can now define subscribeToMore directly inside query definition (doc).
apollo -

Published by Akryum over 7 years ago

New

apollo -

Published by Akryum over 7 years ago

New

Improved

  • Smart query refetch, fetchMore, setVariables and setOptions now trigger loading state changes.
apollo -

Published by Akryum over 7 years ago

Breaking changes

New

  • SSR: apolloProvider.collect new waitForLoaded option (doc). This allow waiting for all queries to be loaded, even when they return partial results (for example, from cache).

Improved

  • Better query loading state handling

Other

apollo -

Published by Akryum over 7 years ago

Breaking changes

  • Starting with this release, you need to create an apollo provider and inject it into your root components (like vue-router or vuex), instead of passing the apollo client into the plugin directly. More info in the docs. This breaking change was necessary for the two main new features below.

New features

Misc

  • Tested with [email protected]
  • Better error messages
  • Bumped graphql-tag to 2.0.0
  • Code cleaning
apollo -

Published by Akryum over 7 years ago

  • [BREAKING] subscribe option is deprecated. Use the $subscribe option instead.
  • [BREAKING] watchLoading was incorrectly named loadingChangeCb in the code. It is now watchLoading as it was stated in the doc.
  • [BREAKING] Removed addGraphQLSubscriptions from the package, since it is now exposed in subscriptions-transport-ws.
  • Compatibility with [email protected].
  • New subscribeToMore feature on queries.
  • Data properties implicitly created in the apollo options are now shown in the vue devtools.
apollo -

Published by Akryum over 7 years ago

Package Rankings
Top 3.79% on Proxy.golang.org
Badges
Extracted from project README
Related Projects