@cubejs-client/react 0.29.53 → 0.29.54
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/CHANGELOG.md +11 -0
- package/index.d.ts +11 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.29.54](https://github.com/cube-js/cube.js/compare/v0.29.53...v0.29.54) (2022-05-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Detailed client TS types ([#4446](https://github.com/cube-js/cube.js/issues/4446)) Thanks [@reify-thomas-smith](https://github.com/reify-thomas-smith) ! ([977cce0](https://github.com/cube-js/cube.js/commit/977cce0c440bc73c0e6b5ad0c10af926b7386873)), closes [#4202](https://github.com/cube-js/cube.js/issues/4202)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.29.53](https://github.com/cube-js/cube.js/compare/v0.29.52...v0.29.53) (2022-04-29)
|
|
7
18
|
|
|
8
19
|
|
package/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare module '@cubejs-client/react' {
|
|
|
31
31
|
UnaryOperator,
|
|
32
32
|
BinaryOperator,
|
|
33
33
|
DeeplyReadonly,
|
|
34
|
+
QueryRecordType,
|
|
34
35
|
} from '@cubejs-client/core';
|
|
35
36
|
|
|
36
37
|
type CubeProviderProps = {
|
|
@@ -428,7 +429,16 @@ declare module '@cubejs-client/react' {
|
|
|
428
429
|
* @order 1
|
|
429
430
|
* @stickyTypes
|
|
430
431
|
*/
|
|
431
|
-
export function useCubeQuery<
|
|
432
|
+
export function useCubeQuery<
|
|
433
|
+
TData,
|
|
434
|
+
TQuery extends DeeplyReadonly<Query | Query[]> = DeeplyReadonly<Query | Query[]>>(
|
|
435
|
+
query: TQuery,
|
|
436
|
+
options?: UseCubeQueryOptions,
|
|
437
|
+
): UseCubeQueryResult<
|
|
438
|
+
unknown extends TData
|
|
439
|
+
? QueryRecordType<TQuery>
|
|
440
|
+
: TData
|
|
441
|
+
>;
|
|
432
442
|
|
|
433
443
|
type UseCubeQueryOptions = {
|
|
434
444
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-client/react",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.54",
|
|
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.29.
|
|
27
|
+
"@cubejs-client/core": "^0.29.54",
|
|
28
28
|
"anser": "^2.0.1",
|
|
29
29
|
"core-js": "^3.6.5",
|
|
30
30
|
"html-entities": "^2.3.2",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.10.2"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "c5383fcfaaa088e6ca09cee3384da163d3ad6af5"
|
|
48
48
|
}
|