@cubejs-client/vue3 0.34.37 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-client/vue3",
3
- "version": "0.34.37",
3
+ "version": "0.35.0",
4
4
  "engines": {},
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "src"
29
29
  ],
30
30
  "dependencies": {
31
- "@cubejs-client/core": "^0.34.37",
31
+ "@cubejs-client/core": "^0.35.0",
32
32
  "@vue/compiler-sfc": "^3.0.11",
33
33
  "core-js": "^3.6.5",
34
34
  "flush-promises": "^1.0.2",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "595c23dc095825180036b2c3950671d6a75065eb"
85
+ "gitHead": "75bc6c3d96392b7823e714d17ac85ab435e55b05"
86
86
  }
@@ -77,7 +77,7 @@ export default {
77
77
  type: Object,
78
78
  default: () => ({}),
79
79
  },
80
- cubejsApi: {
80
+ cubeApi: {
81
81
  type: Object,
82
82
  required: true,
83
83
  },
@@ -131,7 +131,7 @@ export default {
131
131
  render() {
132
132
  const {
133
133
  chartType,
134
- cubejsApi,
134
+ cubeApi,
135
135
  dimensions,
136
136
  filters,
137
137
  measures,
@@ -247,7 +247,7 @@ export default {
247
247
  QueryRenderer,
248
248
  {
249
249
  query: this.validatedQuery,
250
- cubejsApi,
250
+ cubeApi,
251
251
  builderProps,
252
252
  slots: this.$slots,
253
253
  on: {
@@ -399,12 +399,12 @@ export default {
399
399
  },
400
400
 
401
401
  async mounted() {
402
- this.meta = await this.cubejsApi.meta();
402
+ this.meta = await this.cubeApi.meta();
403
403
 
404
404
  this.copyQueryFromProps();
405
405
 
406
406
  if (isQueryPresent(this.initialQuery)) {
407
- const dryRunResponse = await this.cubejsApi.dryRun(this.initialQuery);
407
+ const dryRunResponse = await this.cubeApi.dryRun(this.initialQuery);
408
408
  this.pivotConfig = ResultSet.getNormalizedPivotConfig(
409
409
  dryRunResponse?.pivotQuery || {},
410
410
  this.pivotConfig
@@ -644,7 +644,7 @@ export default {
644
644
  }
645
645
 
646
646
  if (isQueryPresent(query) && hasQueryChanged) {
647
- this.cubejsApi
647
+ this.cubeApi
648
648
  .dryRun(query, {
649
649
  mutexObj: this.mutex,
650
650
  })
@@ -15,7 +15,7 @@ export default {
15
15
  loadSql: {
16
16
  required: false,
17
17
  },
18
- cubejsApi: {
18
+ cubeApi: {
19
19
  type: Object,
20
20
  required: true,
21
21
  },
@@ -95,21 +95,21 @@ export default {
95
95
  this.resultSet = null;
96
96
 
97
97
  if (this.loadSql === 'only') {
98
- this.sqlQuery = await this.cubejsApi.sql(query, {
98
+ this.sqlQuery = await this.cubeApi.sql(query, {
99
99
  mutexObj: this.mutexObj,
100
100
  mutexKey: 'sql',
101
101
  });
102
102
  } else if (this.loadSql) {
103
- this.sqlQuery = await this.cubejsApi.sql(query, {
103
+ this.sqlQuery = await this.cubeApi.sql(query, {
104
104
  mutexObj: this.mutexObj,
105
105
  mutexKey: 'sql',
106
106
  });
107
- this.resultSet = await this.cubejsApi.load(query, {
107
+ this.resultSet = await this.cubeApi.load(query, {
108
108
  mutexObj: this.mutexObj,
109
109
  mutexKey: 'query',
110
110
  });
111
111
  } else {
112
- this.resultSet = await this.cubejsApi.load(query, {
112
+ this.resultSet = await this.cubeApi.load(query, {
113
113
  mutexObj: this.mutexObj,
114
114
  mutexKey: 'query',
115
115
  });
@@ -130,7 +130,7 @@ export default {
130
130
 
131
131
  const resultPromises = Promise.all(
132
132
  toPairs(queries).map(([name, query]) =>
133
- this.cubejsApi
133
+ this.cubeApi
134
134
  .load(query, {
135
135
  mutexObj: this.mutexObj,
136
136
  mutexKey: name,
@@ -159,7 +159,7 @@ export default {
159
159
  this.$emit('queryStatus', { isLoading: true });
160
160
  }
161
161
  },
162
- cubejsApi() {
162
+ cubeApi() {
163
163
  this.load();
164
164
  },
165
165
  chartType() {