@firebase/firestore 4.7.4-canary.b80711925 → 4.7.4-canary.caf309007
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/dist/firestore/src/remote/watch_change.d.ts +2 -0
- package/dist/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/firestore/test/util/helpers.d.ts +1 -1
- package/dist/index.cjs.js +1502 -1494
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +1502 -1494
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +21 -6
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +21 -6
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +1528 -1520
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/firestore/src/remote/watch_change.d.ts +2 -0
- package/dist/lite/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/lite/firestore/test/util/helpers.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +2 -2
- package/dist/lite/index.cjs.js +2 -2
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.rn.esm2017.js +2 -2
- package/dist/packages/firestore/src/remote/watch_change.d.ts +2 -0
- package/dist/packages/firestore/test/unit/specs/spec_builder.d.ts +3 -0
- package/dist/packages/firestore/test/util/helpers.d.ts +1 -1
- package/package.json +10 -10
|
@@ -131,6 +131,7 @@ export declare class WatchChangeAggregator {
|
|
|
131
131
|
private targetStates;
|
|
132
132
|
/** Keeps track of the documents to update since the last raised snapshot. */
|
|
133
133
|
private pendingDocumentUpdates;
|
|
134
|
+
private pendingDocumentUpdatesByTarget;
|
|
134
135
|
/** A mapping of document keys to their set of target IDs. */
|
|
135
136
|
private pendingDocumentTargetMapping;
|
|
136
137
|
/**
|
|
@@ -204,6 +205,7 @@ export declare class WatchChangeAggregator {
|
|
|
204
205
|
recordPendingTargetRequest(targetId: TargetId): void;
|
|
205
206
|
private ensureTargetState;
|
|
206
207
|
private ensureDocumentTargetMapping;
|
|
208
|
+
private ensureDocumentUpdateByTarget;
|
|
207
209
|
/**
|
|
208
210
|
* Verifies that the user is still interested in this target (by calling
|
|
209
211
|
* `getTargetDataForTarget()`) and that we are not waiting for pending ADDs
|
|
@@ -110,6 +110,8 @@ export declare class SpecBuilder {
|
|
|
110
110
|
withMaxConcurrentLimboResolutions(value?: number): this;
|
|
111
111
|
private addUserListenStep;
|
|
112
112
|
userListens(query: Query, resume?: ResumeSpec): this;
|
|
113
|
+
/** Listen to query using the same options as executing a getDoc or getDocs */
|
|
114
|
+
userListensForGet(query: Query, resume?: ResumeSpec): this;
|
|
113
115
|
userListensToCache(query: Query, resume?: ResumeSpec): this;
|
|
114
116
|
/**
|
|
115
117
|
* Registers a previously active target with the test expectations after a
|
|
@@ -200,6 +202,7 @@ export declare class SpecBuilder {
|
|
|
200
202
|
removed?: Query[];
|
|
201
203
|
}, ...docs: Document[]): this;
|
|
202
204
|
watchRemovesDoc(key: DocumentKey, ...targets: Query[]): this;
|
|
205
|
+
watchDeletesDoc(key: DocumentKey, version: TestSnapshotVersion, ...targets: Query[]): this;
|
|
203
206
|
watchFilters(queries: Query[], docs?: DocumentKey[], bloomFilter?: ProtoBloomFilter): this;
|
|
204
207
|
watchResets(...queries: Query[]): this;
|
|
205
208
|
watchSnapshots(version: TestSnapshotVersion, targets?: Query[], resumeToken?: string): this;
|
|
@@ -50,7 +50,7 @@ export declare function testUserDataReader(useProto3Json?: boolean): UserDataRea
|
|
|
50
50
|
export declare function version(v: TestSnapshotVersion): SnapshotVersion;
|
|
51
51
|
export declare function ref(key: string, offset?: number): DocumentReference;
|
|
52
52
|
export declare function doc(keyStr: string, ver: TestSnapshotVersion, jsonOrObjectValue: JsonObject<unknown> | ObjectValue, createTime?: TestSnapshotVersion): MutableDocument;
|
|
53
|
-
export declare function deletedDoc(
|
|
53
|
+
export declare function deletedDoc(keyStrOrDocumentKey: string | DocumentKey, ver: TestSnapshotVersion): MutableDocument;
|
|
54
54
|
export declare function unknownDoc(keyStr: string, ver: TestSnapshotVersion): MutableDocument;
|
|
55
55
|
export declare function removedDoc(keyStr: string): MutableDocument;
|
|
56
56
|
export declare function invalidDoc(keyStr: string): MutableDocument;
|