Commit Graph

735 Commits

Author SHA1 Message Date
Guillaume Chau 65d1984ecd fix(useApolloClient): clientId arg not working, closes #1023 2020-10-15 17:36:15 +02:00
Fran Dios c9ee0ec645 fix(useQuery): use nextTick to support Vue 3 (#1041)
* Fix useQuery to support Vue 3

onServerPrefetch is not exported in Vue 3 at the moment

* Remove reference to Vue

Co-authored-by: Guillaume Chau <guillaume.b.chau@gmail.com>
2020-10-15 17:35:02 +02:00
Fran Dios b834f2742e refactor(useSubscription): use nextTick to support Vue 3 (#1045)
Remove direct reference to Vue
2020-10-15 17:26:38 +02:00
Guillaume Chau f290b4c5fc chore: update ci image 2020-10-15 14:10:19 +02:00
Fran Dios 957aae3390 fix: support Vue 3 vm.root (#1040)
* Fix getAppTracking for Vue 3 support

v2 instances have a `vm.$root` property while v3 ones have `vm.root`

* Add type to variable
2020-10-15 14:03:24 +02:00
Loren ☺️ 83578f6c4b docs: Rename Components -> Component API in header (#1044) 2020-10-15 14:00:15 +02:00
javiertury 8a714431b2 fix: unresolved promises in ssr (#940) (#1069) 2020-10-15 13:44:32 +02:00
Guillaume Chau 1e7a5c6a3b v4.0.0-alpha.10 2020-07-27 17:55:05 +02:00
Guillaume Chau fbab1c8e92 chore: update sponsors 2020-07-27 17:35:36 +02:00
Guillaume Chau 4db5303e23 refactor: use vue-demi to support vue 3 2020-07-27 17:32:54 +02:00
Guillaume Chau f4b5eef99c v4.0.0-alpha.9 2020-07-27 17:25:01 +02:00
Hajime Mugishima e8e8f542d2 fix: Update @vue/composition-api to v0.6.1 (#1000)
* chore: update deps

* fix(useMutation,useSubscription): use "immediate" option

* fix(type): paramToRef and paramToReactive

* fix: remove unused import

Co-authored-by: Guillaume Chau <guillaume.b.chau@gmail.com>
2020-07-27 17:12:27 +02:00
kahirokunn f1268ba359 refactor: split reolve apollo client (#906) 2020-07-27 17:12:12 +02:00
ryo 1867e73d54 fix: Be able to overrid variables in mutate (#946) 2020-07-27 17:07:48 +02:00
Brian Bugh 7495987fdb fix(ts): allow undefined for optional variables (#962) 2020-07-27 17:07:02 +02:00
Cerino O. Ligutom III 4a5b84306f docs: Updated variable refs section (#974)
Added a note that it refetches the query when modified.
2020-07-27 17:05:35 +02:00
Guillaume Chau 35ea099209 v4.0.0-alpha.8 2020-04-02 20:48:42 +02:00
Guillaume Chau 5aaa47b672 fix(ts): mutate() types 2020-04-02 20:48:20 +02:00
Guillaume Chau a9d950156d fix(ts): useMutation types 2020-04-02 20:45:03 +02:00
Piet de Vries 576b49543a fix(ts): Add typings for late variables in useMutation (#925) 2020-04-02 20:28:03 +02:00
Guillaume Chau 0b99b3cfed docs: fix subscribetoMore example 2020-03-06 16:01:42 +01:00
Guillaume Chau f9ceaf8286 v4.0.0-alpha.7 2020-02-16 20:32:59 +01:00
Guillaume Chau d64b0c4281 fix: use getCurrentResult() 2020-02-16 19:02:03 +01:00
Guillaume Chau 4624c3e71c v4.0.0-alpha.6 2020-01-22 13:36:23 +01:00
Guillaume Chau 9ff78706ec v4.0.0-4.0.0-alpha.6.0 2020-01-22 13:30:36 +01:00
Guillaume Chau 7f7ba4779e chore: forgot to commit version? 2020-01-22 13:30:04 +01:00
Guillaume Chau 3a473e2643 fix: compare serialized variables to prevent unnecessary fetch 2020-01-22 13:28:41 +01:00
Brian Bugh 32d1f7568e fix(ts): Add full test coverage for TypeScript hook types & fix missing overloads (#895)
* fix: add apollo-composable type overloads + tests

There were a lot of TypeScript edge cases, where calling functions with
certain argument options would result in `any` being expressed as a
type, or where the variables/options were not strictly requiring the
desired inputs.

This adds TypeScript function overloads for all hook edge cases so that
all types are correct. This does not change any behavior.

This also adds almost complete coverage for types, excepting the cases
where `strict` is required, or where a failure is expected, which
TypeScript does not currently support. See:
https://github.com/microsoft/TypeScript/issues/29394

* chore: run type tests on prepublish

* chore: code style
2020-01-11 00:16:51 +01:00
Brian Bugh 9d64fca7bc fix(useMutation): "mutate" optional arguments 2020-01-11 00:04:26 +01:00
Brian Bugh 0ad08c792e fix(useMutation): useMutation not taking a Ref 2020-01-11 00:03:14 +01:00
Guillaume Chau fb1565d207 fix(useSbuscription): currentOptions undefined error, closes #903 2020-01-10 23:55:31 +01:00
Natalia Tepluhina 23c7f66bfc docs: added example of overriding mutation options (#898) 2019-12-24 16:41:33 +01:00
Guillaume Chau d22de85892 v4.0.0-alpha.4 2019-12-17 12:13:01 +01:00
Guillaume Chau a04f2c1d98 Merge branch 'v4' of github.com:Akryum/vue-apollo into v4 2019-12-17 12:12:17 +01:00
Guillaume Chau dbb1c094bd fix: loading tracking not cleanup correctly on component unmount 2019-12-17 12:12:14 +01:00
Guillaume Chau 9c4b6b09b7 fix: use onBeforeUnmount 2019-12-17 11:07:50 +01:00
kahirokunn d86e6b72fe chore: remove blank (#882) 2019-12-10 09:56:43 +01:00
Brian Bugh 9edcf2feb8 fix(type): useResult type inferring 'any' (#872) 2019-12-05 15:15:53 +01:00
Brian Bugh 5ff22e61e9 chore: Fix build glob portability (#873) 2019-12-05 14:57:00 +01:00
Guillaume Chau 2a9ca9f7fa v4.0.0-alpha.3 2019-12-04 16:36:08 +01:00
Guillaume Chau 280301f4ac fix(useQuery): throttle & debounce not being applied initially 2019-12-04 16:35:48 +01:00
Guillaume Chau 947ceb1743 fix: enabled option for useQuery & useSubscription 2019-12-04 16:31:31 +01:00
Guillaume Chau ff4c1630a6 v4.0.0-alpha.2 2019-12-04 15:54:40 +01:00
Guillaume Chau ebea61eca6 fix: useXXXLoading() oldValue being undefined and triggering watcher 2019-12-04 15:54:04 +01:00
Guillaume Chau 39215877e9 feat(useMutation): overrideOptions 2019-12-04 15:49:44 +01:00
Guillaume Chau 8f3502f578 docs: fix missing language 2019-12-02 14:55:26 +01:00
Guillaume Chau b0eb4ad3f9 docs: fix typos 2019-12-02 14:53:25 +01:00
Guillaume Chau 0d1e9c3d46 docs: fix userQuery => useQuery 2019-12-02 14:51:24 +01:00
Guillaume Chau b5ffc720e7 chore: update lerna version 2019-12-02 04:22:28 +01:00
Guillaume Chau 169d6b39bb docs: fix broken links 2019-12-02 04:15:48 +01:00