@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
package/dist/internal.d.ts
CHANGED
|
@@ -4719,7 +4719,7 @@ declare class RemoteEvent {
|
|
|
4719
4719
|
* used to create a synthesized RemoteEvent that can be used to apply a
|
|
4720
4720
|
* CURRENT status change to a View, for queries executed in a different tab.
|
|
4721
4721
|
*/
|
|
4722
|
-
static createSynthesizedRemoteEventForCurrentChange(targetId: TargetId, current: boolean): RemoteEvent;
|
|
4722
|
+
static createSynthesizedRemoteEventForCurrentChange(targetId: TargetId, current: boolean, resumeToken: _ByteString): RemoteEvent;
|
|
4723
4723
|
}
|
|
4724
4724
|
|
|
4725
4725
|
/**
|
|
@@ -5512,7 +5512,7 @@ declare class TargetChange {
|
|
|
5512
5512
|
* apply a CURRENT status change to a View (for queries executed in a different
|
|
5513
5513
|
* tab) or for new queries (to raise snapshots with correct CURRENT status).
|
|
5514
5514
|
*/
|
|
5515
|
-
static createSynthesizedTargetChangeForCurrentChange(targetId: TargetId, current: boolean): TargetChange;
|
|
5515
|
+
static createSynthesizedTargetChangeForCurrentChange(targetId: TargetId, current: boolean, resumeToken: _ByteString): TargetChange;
|
|
5516
5516
|
}
|
|
5517
5517
|
|
|
5518
5518
|
declare type TargetChangeTargetChangeType = 'NO_CHANGE' | 'ADD' | 'REMOVE' | 'CURRENT' | 'RESET';
|
|
@@ -6134,9 +6134,10 @@ declare class ViewSnapshot {
|
|
|
6134
6134
|
readonly fromCache: boolean;
|
|
6135
6135
|
readonly syncStateChanged: boolean;
|
|
6136
6136
|
readonly excludesMetadataChanges: boolean;
|
|
6137
|
-
|
|
6137
|
+
readonly hasCachedResults: boolean;
|
|
6138
|
+
constructor(query: Query_2, docs: DocumentSet, oldDocs: DocumentSet, docChanges: DocumentViewChange[], mutatedKeys: DocumentKeySet, fromCache: boolean, syncStateChanged: boolean, excludesMetadataChanges: boolean, hasCachedResults: boolean);
|
|
6138
6139
|
/** Returns a view snapshot as if all documents in the snapshot were added. */
|
|
6139
|
-
static fromInitialDocuments(query: Query_2, documents: DocumentSet, mutatedKeys: DocumentKeySet, fromCache: boolean): ViewSnapshot;
|
|
6140
|
+
static fromInitialDocuments(query: Query_2, documents: DocumentSet, mutatedKeys: DocumentKeySet, fromCache: boolean, hasCachedResults: boolean): ViewSnapshot;
|
|
6140
6141
|
get hasPendingWrites(): boolean;
|
|
6141
6142
|
isEqual(other: ViewSnapshot): boolean;
|
|
6142
6143
|
}
|
|
@@ -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;
|
|
@@ -63,7 +63,7 @@ d.MOCK_USER = new d("mock-user");
|
|
|
63
63
|
* See the License for the specific language governing permissions and
|
|
64
64
|
* limitations under the License.
|
|
65
65
|
*/
|
|
66
|
-
let w = "9.
|
|
66
|
+
let w = "9.12.0-20221010190246";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
@@ -6645,7 +6645,7 @@ class Zr {
|
|
|
6645
6645
|
return n && s._setSettings(n), s;
|
|
6646
6646
|
}), "PUBLIC").setMultipleInstances(!0)),
|
|
6647
6647
|
// RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
|
|
6648
|
-
registerVersion("firestore-lite", "3.
|
|
6648
|
+
registerVersion("firestore-lite", "3.7.0-20221010190246", ""), registerVersion("firestore-lite", "3.7.0-20221010190246", "esm2017");
|
|
6649
6649
|
|
|
6650
6650
|
export { yn as AggregateField, _n as AggregateQuerySnapshot, Vn as Bytes, En as CollectionReference, vn as DocumentReference, ir as DocumentSnapshot, Nn as FieldPath, $n as FieldValue, fn as Firestore, U as FirestoreError, xn as GeoPoint, bn as Query, hr as QueryConstraint, or as QueryDocumentSnapshot, ur as QuerySnapshot, bt as Timestamp, Zr as Transaction, Qr as WriteBatch, Or as addDoc, Cr as aggregateQuerySnapshotEqual, jr as arrayRemove, Ur as arrayUnion, In as collection, Tn as collectionGroup, mn as connectFirestoreEmulator, qr as deleteDoc, Lr as deleteField, An as doc, Dn as documentId, Tr as endAt, Ir as endBefore, kr as getCount, $r as getDoc, xr as getDocs, wn as getFirestore, Br as increment, dn as initializeFirestore, yr as limit, _r as limitToLast, mr as orderBy, lr as query, Pn as queryEqual, Rn as refEqual, ts as runTransaction, Mr as serverTimestamp, Fr as setDoc, p as setLogLevel, cr as snapshotEqual, br as startAfter, vr as startAt, pn as terminate, Sr as updateDoc, dr as where, Gr as writeBatch };
|
|
6651
6651
|
//# sourceMappingURL=index.browser.esm2017.js.map
|