@firebase/firestore 3.6.0 → 3.7.0-20221010190246
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 +16 -0
- package/dist/firestore/src/core/view.d.ts +1 -0
- package/dist/firestore/src/core/view_snapshot.d.ts +3 -2
- package/dist/firestore/src/remote/remote_event.d.ts +2 -2
- package/dist/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/index.esm2017.js +38 -36
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +132 -130
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +29 -21
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +29 -21
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +38 -36
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +5 -4
- package/dist/lite/firestore/src/core/view.d.ts +1 -0
- package/dist/lite/firestore/src/core/view_snapshot.d.ts +3 -2
- package/dist/lite/firestore/src/remote/remote_event.d.ts +2 -2
- package/dist/lite/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +2 -2
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/src/core/view.d.ts +1 -0
- package/dist/lite/packages/firestore/src/core/view_snapshot.d.ts +3 -2
- package/dist/lite/packages/firestore/src/remote/remote_event.d.ts +2 -2
- package/dist/lite/packages/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/packages/firestore/src/core/view.d.ts +1 -0
- package/dist/packages/firestore/src/core/view_snapshot.d.ts +3 -2
- package/dist/packages/firestore/src/remote/remote_event.d.ts +2 -2
- package/dist/packages/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/private.d.ts +5 -4
- package/package.json +8 -8
|
@@ -59,6 +59,7 @@ export declare class View {
|
|
|
59
59
|
/** Documents included in the remote target */
|
|
60
60
|
private _syncedDocuments;
|
|
61
61
|
private syncState;
|
|
62
|
+
private hasCachedResults;
|
|
62
63
|
/**
|
|
63
64
|
* A flag whether the view is current with the backend. A view is considered
|
|
64
65
|
* current after it has seen the current flag from the backend and did not
|
|
@@ -50,9 +50,10 @@ export declare class ViewSnapshot {
|
|
|
50
50
|
readonly fromCache: boolean;
|
|
51
51
|
readonly syncStateChanged: boolean;
|
|
52
52
|
readonly excludesMetadataChanges: boolean;
|
|
53
|
-
|
|
53
|
+
readonly hasCachedResults: boolean;
|
|
54
|
+
constructor(query: Query, docs: DocumentSet, oldDocs: DocumentSet, docChanges: DocumentViewChange[], mutatedKeys: DocumentKeySet, fromCache: boolean, syncStateChanged: boolean, excludesMetadataChanges: boolean, hasCachedResults: boolean);
|
|
54
55
|
/** Returns a view snapshot as if all documents in the snapshot were added. */
|
|
55
|
-
static fromInitialDocuments(query: Query, documents: DocumentSet, mutatedKeys: DocumentKeySet, fromCache: boolean): ViewSnapshot;
|
|
56
|
+
static fromInitialDocuments(query: Query, documents: DocumentSet, mutatedKeys: DocumentKeySet, fromCache: boolean, hasCachedResults: boolean): ViewSnapshot;
|
|
56
57
|
get hasPendingWrites(): boolean;
|
|
57
58
|
isEqual(other: ViewSnapshot): boolean;
|
|
58
59
|
}
|
|
@@ -76,7 +76,7 @@ export declare class RemoteEvent {
|
|
|
76
76
|
* used to create a synthesized RemoteEvent that can be used to apply a
|
|
77
77
|
* CURRENT status change to a View, for queries executed in a different tab.
|
|
78
78
|
*/
|
|
79
|
-
static createSynthesizedRemoteEventForCurrentChange(targetId: TargetId, current: boolean): RemoteEvent;
|
|
79
|
+
static createSynthesizedRemoteEventForCurrentChange(targetId: TargetId, current: boolean, resumeToken: ByteString): RemoteEvent;
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* A TargetChange specifies the set of changes for a specific target as part of
|
|
@@ -149,5 +149,5 @@ export declare class TargetChange {
|
|
|
149
149
|
* apply a CURRENT status change to a View (for queries executed in a different
|
|
150
150
|
* tab) or for new queries (to raise snapshots with correct CURRENT status).
|
|
151
151
|
*/
|
|
152
|
-
static createSynthesizedTargetChangeForCurrentChange(targetId: TargetId, current: boolean): TargetChange;
|
|
152
|
+
static createSynthesizedTargetChangeForCurrentChange(targetId: TargetId, current: boolean, resumeToken: ByteString): TargetChange;
|
|
153
153
|
}
|
|
@@ -46,4 +46,4 @@ export declare function querySnapshot(path: string, oldDocs: {
|
|
|
46
46
|
[key: string]: JsonObject<unknown>;
|
|
47
47
|
}, docsToAdd: {
|
|
48
48
|
[key: string]: JsonObject<unknown>;
|
|
49
|
-
}, mutatedKeys: DocumentKeySet, fromCache: boolean, syncStateChanged: boolean): QuerySnapshot;
|
|
49
|
+
}, mutatedKeys: DocumentKeySet, fromCache: boolean, syncStateChanged: boolean, hasCachedResults?: boolean): QuerySnapshot;
|
|
@@ -59,6 +59,7 @@ export declare class View {
|
|
|
59
59
|
/** Documents included in the remote target */
|
|
60
60
|
private _syncedDocuments;
|
|
61
61
|
private syncState;
|
|
62
|
+
private hasCachedResults;
|
|
62
63
|
/**
|
|
63
64
|
* A flag whether the view is current with the backend. A view is considered
|
|
64
65
|
* current after it has seen the current flag from the backend and did not
|
|
@@ -50,9 +50,10 @@ export declare class ViewSnapshot {
|
|
|
50
50
|
readonly fromCache: boolean;
|
|
51
51
|
readonly syncStateChanged: boolean;
|
|
52
52
|
readonly excludesMetadataChanges: boolean;
|
|
53
|
-
|
|
53
|
+
readonly hasCachedResults: boolean;
|
|
54
|
+
constructor(query: Query, docs: DocumentSet, oldDocs: DocumentSet, docChanges: DocumentViewChange[], mutatedKeys: DocumentKeySet, fromCache: boolean, syncStateChanged: boolean, excludesMetadataChanges: boolean, hasCachedResults: boolean);
|
|
54
55
|
/** Returns a view snapshot as if all documents in the snapshot were added. */
|
|
55
|
-
static fromInitialDocuments(query: Query, documents: DocumentSet, mutatedKeys: DocumentKeySet, fromCache: boolean): ViewSnapshot;
|
|
56
|
+
static fromInitialDocuments(query: Query, documents: DocumentSet, mutatedKeys: DocumentKeySet, fromCache: boolean, hasCachedResults: boolean): ViewSnapshot;
|
|
56
57
|
get hasPendingWrites(): boolean;
|
|
57
58
|
isEqual(other: ViewSnapshot): boolean;
|
|
58
59
|
}
|
|
@@ -76,7 +76,7 @@ export declare class RemoteEvent {
|
|
|
76
76
|
* used to create a synthesized RemoteEvent that can be used to apply a
|
|
77
77
|
* CURRENT status change to a View, for queries executed in a different tab.
|
|
78
78
|
*/
|
|
79
|
-
static createSynthesizedRemoteEventForCurrentChange(targetId: TargetId, current: boolean): RemoteEvent;
|
|
79
|
+
static createSynthesizedRemoteEventForCurrentChange(targetId: TargetId, current: boolean, resumeToken: ByteString): RemoteEvent;
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* A TargetChange specifies the set of changes for a specific target as part of
|
|
@@ -149,5 +149,5 @@ export declare class TargetChange {
|
|
|
149
149
|
* apply a CURRENT status change to a View (for queries executed in a different
|
|
150
150
|
* tab) or for new queries (to raise snapshots with correct CURRENT status).
|
|
151
151
|
*/
|
|
152
|
-
static createSynthesizedTargetChangeForCurrentChange(targetId: TargetId, current: boolean): TargetChange;
|
|
152
|
+
static createSynthesizedTargetChangeForCurrentChange(targetId: TargetId, current: boolean, resumeToken: ByteString): TargetChange;
|
|
153
153
|
}
|
|
@@ -46,4 +46,4 @@ export declare function querySnapshot(path: string, oldDocs: {
|
|
|
46
46
|
[key: string]: JsonObject<unknown>;
|
|
47
47
|
}, docsToAdd: {
|
|
48
48
|
[key: string]: JsonObject<unknown>;
|
|
49
|
-
}, mutatedKeys: DocumentKeySet, fromCache: boolean, syncStateChanged: boolean): QuerySnapshot;
|
|
49
|
+
}, mutatedKeys: DocumentKeySet, fromCache: boolean, syncStateChanged: boolean, hasCachedResults?: boolean): QuerySnapshot;
|
package/dist/private.d.ts
CHANGED
|
@@ -4524,7 +4524,7 @@ declare class RemoteEvent {
|
|
|
4524
4524
|
* used to create a synthesized RemoteEvent that can be used to apply a
|
|
4525
4525
|
* CURRENT status change to a View, for queries executed in a different tab.
|
|
4526
4526
|
*/
|
|
4527
|
-
static createSynthesizedRemoteEventForCurrentChange(targetId: TargetId, current: boolean): RemoteEvent;
|
|
4527
|
+
static createSynthesizedRemoteEventForCurrentChange(targetId: TargetId, current: boolean, resumeToken: _ByteString): RemoteEvent;
|
|
4528
4528
|
}
|
|
4529
4529
|
|
|
4530
4530
|
/**
|
|
@@ -5300,7 +5300,7 @@ declare class TargetChange {
|
|
|
5300
5300
|
* apply a CURRENT status change to a View (for queries executed in a different
|
|
5301
5301
|
* tab) or for new queries (to raise snapshots with correct CURRENT status).
|
|
5302
5302
|
*/
|
|
5303
|
-
static createSynthesizedTargetChangeForCurrentChange(targetId: TargetId, current: boolean): TargetChange;
|
|
5303
|
+
static createSynthesizedTargetChangeForCurrentChange(targetId: TargetId, current: boolean, resumeToken: _ByteString): TargetChange;
|
|
5304
5304
|
}
|
|
5305
5305
|
|
|
5306
5306
|
declare type TargetChangeTargetChangeType = 'NO_CHANGE' | 'ADD' | 'REMOVE' | 'CURRENT' | 'RESET';
|
|
@@ -5918,9 +5918,10 @@ declare class ViewSnapshot {
|
|
|
5918
5918
|
readonly fromCache: boolean;
|
|
5919
5919
|
readonly syncStateChanged: boolean;
|
|
5920
5920
|
readonly excludesMetadataChanges: boolean;
|
|
5921
|
-
|
|
5921
|
+
readonly hasCachedResults: boolean;
|
|
5922
|
+
constructor(query: Query_2, docs: DocumentSet, oldDocs: DocumentSet, docChanges: DocumentViewChange[], mutatedKeys: DocumentKeySet, fromCache: boolean, syncStateChanged: boolean, excludesMetadataChanges: boolean, hasCachedResults: boolean);
|
|
5922
5923
|
/** Returns a view snapshot as if all documents in the snapshot were added. */
|
|
5923
|
-
static fromInitialDocuments(query: Query_2, documents: DocumentSet, mutatedKeys: DocumentKeySet, fromCache: boolean): ViewSnapshot;
|
|
5924
|
+
static fromInitialDocuments(query: Query_2, documents: DocumentSet, mutatedKeys: DocumentKeySet, fromCache: boolean, hasCachedResults: boolean): ViewSnapshot;
|
|
5924
5925
|
get hasPendingWrites(): boolean;
|
|
5925
5926
|
isEqual(other: ViewSnapshot): boolean;
|
|
5926
5927
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/firestore",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0-20221010190246",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=10.10.0"
|
|
6
6
|
},
|
|
@@ -80,22 +80,22 @@
|
|
|
80
80
|
"lite/package.json"
|
|
81
81
|
],
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@firebase/component": "0.5.
|
|
83
|
+
"@firebase/component": "0.5.19-20221010190246",
|
|
84
84
|
"@firebase/logger": "0.3.3",
|
|
85
|
-
"@firebase/util": "1.7.
|
|
86
|
-
"@firebase/webchannel-wrapper": "0.
|
|
85
|
+
"@firebase/util": "1.7.1-20221010190246",
|
|
86
|
+
"@firebase/webchannel-wrapper": "0.8.0-20221010190246",
|
|
87
87
|
"@grpc/grpc-js": "^1.3.2",
|
|
88
88
|
"@grpc/proto-loader": "^0.6.13",
|
|
89
89
|
"node-fetch": "2.6.7",
|
|
90
90
|
"tslib": "^2.1.0"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@firebase/app": "0.
|
|
93
|
+
"@firebase/app": "0.8.1-20221010190246"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@firebase/app": "0.8.
|
|
97
|
-
"@firebase/app-compat": "0.1.
|
|
98
|
-
"@firebase/auth": "0.20.
|
|
96
|
+
"@firebase/app": "0.8.1-20221010190246",
|
|
97
|
+
"@firebase/app-compat": "0.1.36-20221010190246",
|
|
98
|
+
"@firebase/auth": "0.20.9-20221010190246",
|
|
99
99
|
"@rollup/plugin-alias": "3.1.9",
|
|
100
100
|
"@rollup/plugin-json": "4.1.0",
|
|
101
101
|
"@types/eslint": "7.29.0",
|