Skip to content

Commit 64f4db9

Browse files
author
Guillaume Chau
committed
Version bump
1 parent aee18b7 commit 64f4db9

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

dist/vue-apollo.esm.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3026,6 +3026,10 @@ var SmartSubscription = function (_SmartApollo) {
30263026

30273027
var apolloOptions = this.generateApolloOptions(variables);
30283028

3029+
if (typeof apolloOptions.updateQuery === 'function') {
3030+
apolloOptions.updateQuery = apolloOptions.updateQuery.bind(this.vm);
3031+
}
3032+
30293033
if (this.options.linkedQuery) {
30303034
this.sub = this.options.linkedQuery.subscribeToMore(apolloOptions);
30313035
} else {
@@ -3431,6 +3435,9 @@ var ApolloProvider = function () {
34313435
}
34323436

34333437
// Query
3438+
if (typeof queryOptions.query === 'function') {
3439+
queryOptions.query = queryOptions.query(context);
3440+
}
34343441
return new Promise(function (resolve, reject) {
34353442
var options = lodash_omit(queryOptions, [].concat(toConsumableArray(VUE_APOLLO_QUERY_KEYWORDS), ['fetchPolicy']));
34363443
options.variables = variables;
@@ -3719,8 +3726,6 @@ var CApolloSubscribeToMore = {
37193726
updateQuery: this.updateQuery,
37203727
linkedQuery: this.getApolloQuery()
37213728
});
3722-
3723-
console.log(this.$_key, this.$_sub);
37243729
}
37253730
},
37263731

@@ -3870,7 +3875,7 @@ function install(Vue, options) {
38703875
ApolloProvider.install = install;
38713876

38723877
// eslint-disable-next-line no-undef
3873-
ApolloProvider.version = "3.0.0-beta.1";
3878+
ApolloProvider.version = "3.0.0-beta.2";
38743879

38753880
// Apollo provider
38763881
var ApolloProvider$1 = ApolloProvider;

dist/vue-apollo.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-apollo.umd.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,6 +3032,10 @@ var SmartSubscription = function (_SmartApollo) {
30323032

30333033
var apolloOptions = this.generateApolloOptions(variables);
30343034

3035+
if (typeof apolloOptions.updateQuery === 'function') {
3036+
apolloOptions.updateQuery = apolloOptions.updateQuery.bind(this.vm);
3037+
}
3038+
30353039
if (this.options.linkedQuery) {
30363040
this.sub = this.options.linkedQuery.subscribeToMore(apolloOptions);
30373041
} else {
@@ -3437,6 +3441,9 @@ var ApolloProvider = function () {
34373441
}
34383442

34393443
// Query
3444+
if (typeof queryOptions.query === 'function') {
3445+
queryOptions.query = queryOptions.query(context);
3446+
}
34403447
return new Promise(function (resolve, reject) {
34413448
var options = lodash_omit(queryOptions, [].concat(toConsumableArray(VUE_APOLLO_QUERY_KEYWORDS), ['fetchPolicy']));
34423449
options.variables = variables;
@@ -3725,8 +3732,6 @@ var CApolloSubscribeToMore = {
37253732
updateQuery: this.updateQuery,
37263733
linkedQuery: this.getApolloQuery()
37273734
});
3728-
3729-
console.log(this.$_key, this.$_sub);
37303735
}
37313736
},
37323737

@@ -3876,7 +3881,7 @@ function install(Vue, options) {
38763881
ApolloProvider.install = install;
38773882

38783883
// eslint-disable-next-line no-undef
3879-
ApolloProvider.version = "3.0.0-beta.1";
3884+
ApolloProvider.version = "3.0.0-beta.2";
38803885

38813886
// Apollo provider
38823887
var ApolloProvider$1 = ApolloProvider;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-apollo",
3-
"version": "3.0.0-beta.1",
3+
"version": "3.0.0-beta.2",
44
"description": "Vue apollo integration",
55
"main": "dist/vue-apollo.umd.js",
66
"module": "dist/vue-apollo.esm.js",

0 commit comments

Comments
 (0)