@cubejs-client/react 0.34.37 → 0.34.60

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/index.d.ts CHANGED
@@ -37,9 +37,13 @@ declare module '@cubejs-client/react' {
37
37
  type CubeProviderOptions = {
38
38
  castNumerics?: boolean;
39
39
  }
40
-
40
+
41
41
  type CubeProviderProps = {
42
- cubejsApi: CubejsApi | null;
42
+ cubeApi?: CubejsApi | null;
43
+ /**
44
+ * @deprecated Use `cubeApi` instead
45
+ */
46
+ cubejsApi?: CubejsApi | null;
43
47
  options?: CubeProviderOptions;
44
48
  children: React.ReactNode;
45
49
  };
@@ -450,6 +454,7 @@ declare module '@cubejs-client/react' {
450
454
  query: TQuery,
451
455
  options?: UseCubeQueryOptions,
452
456
  ): UseCubeQueryResult<
457
+ TQuery,
453
458
  unknown extends TData
454
459
  ? QueryRecordType<TQuery>
455
460
  : TData
@@ -461,7 +466,7 @@ declare module '@cubejs-client/react' {
461
466
  * A `CubejsApi` instance to use. Taken from the context if the param is not passed
462
467
  */
463
468
  cubejsApi?: CubejsApi;
464
-
469
+
465
470
  /**
466
471
  * A `CubejsApi` instance to use. Taken from the context if the param is not passed
467
472
  */
@@ -484,11 +489,12 @@ declare module '@cubejs-client/react' {
484
489
  castNumerics?: boolean;
485
490
  };
486
491
 
487
- type UseCubeQueryResult<TData> = {
492
+ type UseCubeQueryResult<TQuery, TData> = {
488
493
  error: Error | null;
489
494
  isLoading: boolean;
490
495
  resultSet: ResultSet<TData> | null;
491
496
  progress: ProgressResponse;
497
+ previousQuery: TQuery;
492
498
  refetch: () => Promise<void>;
493
499
  };
494
500
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-client/react",
3
- "version": "0.34.37",
3
+ "version": "0.34.60",
4
4
  "author": "Cube Dev, Inc.",
5
5
  "license": "MIT",
6
6
  "engines": {},
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.1.2",
27
- "@cubejs-client/core": "^0.34.37",
27
+ "@cubejs-client/core": "^0.34.60",
28
28
  "core-js": "^3.6.5",
29
29
  "ramda": "^0.27.2"
30
30
  },
@@ -42,5 +42,5 @@
42
42
  "peerDependencies": {
43
43
  "react": ">=16.10.2"
44
44
  },
45
- "gitHead": "595c23dc095825180036b2c3950671d6a75065eb"
45
+ "gitHead": "7434929be3e99eb1d1fbb8a6b6c7f2427c6fcae6"
46
46
  }