747 Commits

Author SHA1 Message Date
Guillaume Chau
0cd4f95f17 feat: allow using useQuery outside of setup, closes #1020 2020-10-17 14:39:17 +02:00
Guillaume Chau
dbcff5eb5f test: sending messages 2020-10-17 13:03:30 +02:00
Guillaume Chau
9825e47ac2 test: fix 2020-10-17 12:20:46 +02:00
Guillaume Chau
754ea30741 test: fix 2020-10-17 02:24:00 +02:00
Guillaume Chau
fae022905c fix: more updates to apollo-client 3 2020-10-17 02:16:17 +02:00
Guillaume Chau
aa5880c536 test: e2e vue3 + @vue/apollo-composable 2020-10-16 22:46:48 +02:00
Guillaume Chau
d8319ebd40 test: tailwindcss 2020-10-16 18:43:15 +02:00
Guillaume Chau
f3db4d9db5 test: init e2e composable vue3 2020-10-16 18:34:57 +02:00
Guillaume Chau
72d7402eb2 fix(useApolloClient): add id arg to resolveClient 2020-10-15 19:03:00 +02:00
Guillaume Chau
22baef509d test: forgot to upgrade composition-api 2020-10-15 18:58:33 +02:00
Guillaume Chau
6bf19d442f chore: update deps 2020-10-15 18:03:51 +02:00
Guillaume Chau
5eb9506359 fix(error log): only import graphq printer, closes #994 2020-10-15 17:51:27 +02:00
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 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 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 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 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 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 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 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