@firebase/data-connect 0.1.3 → 0.2.0-20250114135622

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.
@@ -21,22 +21,17 @@ import { AuthTokenProvider } from '../../core/FirebaseAuthProvider';
21
21
  * @internal
22
22
  */
23
23
  export interface DataConnectTransport {
24
- invokeQuery<T, U>(queryName: string, body?: U): PromiseLike<{
24
+ invokeQuery<T, U>(queryName: string, body?: U): Promise<{
25
25
  data: T;
26
26
  errors: Error[];
27
27
  }>;
28
- invokeMutation<T, U>(queryName: string, body?: U): PromiseLike<{
28
+ invokeMutation<T, U>(queryName: string, body?: U): Promise<{
29
29
  data: T;
30
30
  errors: Error[];
31
31
  }>;
32
32
  useEmulator(host: string, port?: number, sslEnabled?: boolean): void;
33
33
  onTokenChanged: (token: string | null) => void;
34
34
  }
35
- export interface CancellableOperation<T> extends PromiseLike<{
36
- data: T;
37
- }> {
38
- cancel: () => void;
39
- }
40
35
  /**
41
36
  * @internal
42
37
  */
@@ -47,11 +47,11 @@ export declare class RESTTransport implements DataConnectTransport {
47
47
  data: T;
48
48
  errors: Error[];
49
49
  }>;
50
- invokeQuery: <T, U>(queryName: string, body?: U) => PromiseLike<{
50
+ invokeQuery: <T, U>(queryName: string, body?: U) => Promise<{
51
51
  data: T;
52
52
  errors: Error[];
53
53
  }>;
54
- invokeMutation: <T, U>(queryName: string, body?: U) => PromiseLike<{
54
+ invokeMutation: <T, U>(queryName: string, body?: U) => Promise<{
55
55
  data: T;
56
56
  errors: Error[];
57
57
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/data-connect",
3
- "version": "0.1.3",
3
+ "version": "0.2.0-20250114135622",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",
@@ -45,17 +45,17 @@
45
45
  },
46
46
  "license": "Apache-2.0",
47
47
  "peerDependencies": {
48
- "@firebase/app": "0.x"
48
+ "@firebase/app": "0.10.18-20250114135622"
49
49
  },
50
50
  "dependencies": {
51
51
  "@firebase/auth-interop-types": "0.2.4",
52
- "@firebase/component": "0.6.11",
52
+ "@firebase/component": "0.6.12-20250114135622",
53
53
  "@firebase/logger": "0.4.4",
54
- "@firebase/util": "1.10.2",
54
+ "@firebase/util": "1.10.3-20250114135622",
55
55
  "tslib": "^2.1.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@firebase/app": "0.10.17",
58
+ "@firebase/app": "0.10.18-20250114135622",
59
59
  "rollup": "2.79.1",
60
60
  "rollup-plugin-typescript2": "0.31.2",
61
61
  "typescript": "5.5.4"