@firebase/firestore 3.8.3-canary.b5f86b1a3 → 3.8.3-canary.f741ac162

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.
@@ -40,6 +40,10 @@ export interface ActiveTargetSpec {
40
40
  export interface ActiveTargetMap {
41
41
  [targetId: string]: ActiveTargetSpec;
42
42
  }
43
+ export interface ResumeSpec {
44
+ resumeToken?: string;
45
+ readTime?: TestSnapshotVersion;
46
+ }
43
47
  /**
44
48
  * Tracks the expected memory state of a client (e.g. the expected active watch
45
49
  * targets based on userListens(), userUnlistens(), and watchRemoves()
@@ -99,10 +103,7 @@ export declare class SpecBuilder {
99
103
  runAsTest(name: string, tags: string[], usePersistence: boolean): Promise<void>;
100
104
  withGCEnabled(gcEnabled: boolean): this;
101
105
  withMaxConcurrentLimboResolutions(value?: number): this;
102
- userListens(query: Query, resume?: {
103
- resumeToken?: string;
104
- readTime?: TestSnapshotVersion;
105
- }): this;
106
+ userListens(query: Query, resume?: ResumeSpec): this;
106
107
  /**
107
108
  * Registers a previously active target with the test expectations after a
108
109
  * stream disconnect.
@@ -189,7 +190,7 @@ export declare class SpecBuilder {
189
190
  removed?: Query[];
190
191
  }, ...docs: Document[]): this;
191
192
  watchRemovesDoc(key: DocumentKey, ...targets: Query[]): this;
192
- watchFilters(queries: Query[], ...docs: DocumentKey[]): this;
193
+ watchFilters(queries: Query[], docs?: DocumentKey[]): this;
193
194
  watchResets(...queries: Query[]): this;
194
195
  watchSnapshots(version: TestSnapshotVersion, targets?: Query[], resumeToken?: string): this;
195
196
  watchAcksFull(query: Query, version: TestSnapshotVersion, ...docs: Document[]): this;
@@ -211,10 +212,7 @@ export declare class SpecBuilder {
211
212
  errorCode?: Code;
212
213
  }): this;
213
214
  /** Registers a query that is active in another tab. */
214
- expectListen(query: Query, resume?: {
215
- resumeToken?: string;
216
- readTime?: TestSnapshotVersion;
217
- }): this;
215
+ expectListen(query: Query, resume?: ResumeSpec): this;
218
216
  /** Removes a query that is no longer active in any tab. */
219
217
  expectUnlisten(query: Query): this;
220
218
  /**
@@ -223,13 +223,11 @@ export interface SpecClientState {
223
223
  primary?: true;
224
224
  }
225
225
  /**
226
- * [[<target-id>, ...], <key>, ...]
227
- * Note that the last parameter is really of type ...string (spread operator)
228
226
  * The filter is based of a list of keys to match in the existence filter
229
227
  */
230
- export interface SpecWatchFilter extends Array<TargetId[] | string | undefined> {
231
- '0': TargetId[];
232
- '1': string | undefined;
228
+ export interface SpecWatchFilter {
229
+ targetIds: TargetId[];
230
+ keys: string[];
233
231
  }
234
232
  export declare type SpecLimitType = 'LimitToFirst' | 'LimitToLast';
235
233
  /**
package/dist/index.cjs.js CHANGED
@@ -70,7 +70,7 @@ v.MOCK_USER = new v("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let P = "9.17.1-canary.b5f86b1a3";
73
+ let P = "9.17.1-canary.f741ac162";
74
74
 
75
75
  /**
76
76
  * @license
@@ -20722,9 +20722,9 @@ function yf(t, e) {
20722
20722
  return s = Object.assign({
20723
20723
  useFetchStreams: e
20724
20724
  }, s), r._setSettings(s), r;
20725
- }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(b, "3.8.3-canary.b5f86b1a3", t),
20725
+ }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(b, "3.8.3-canary.f741ac162", t),
20726
20726
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
20727
- app.registerVersion(b, "3.8.3-canary.b5f86b1a3", "cjs2017");
20727
+ app.registerVersion(b, "3.8.3-canary.f741ac162", "cjs2017");
20728
20728
  }();
20729
20729
 
20730
20730
  exports.AbstractUserDataWriter = Vl;