@firebase/firestore 3.8.0 → 3.8.1

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/firestore/src/api/reference_impl.d.ts +2 -1
  3. package/dist/firestore/src/lite-api/query.d.ts +14 -12
  4. package/dist/firestore/src/local/overlayed_document.d.ts +8 -4
  5. package/dist/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
  6. package/dist/index.d.ts +2 -1
  7. package/dist/index.esm2017.js +36 -20
  8. package/dist/index.esm2017.js.map +1 -1
  9. package/dist/index.esm5.js +38 -20
  10. package/dist/index.esm5.js.map +1 -1
  11. package/dist/index.node.cjs.js +36 -17
  12. package/dist/index.node.cjs.js.map +1 -1
  13. package/dist/index.node.mjs +36 -17
  14. package/dist/index.node.mjs.map +1 -1
  15. package/dist/index.rn.js +36 -20
  16. package/dist/index.rn.js.map +1 -1
  17. package/dist/internal.d.ts +25 -18
  18. package/dist/lite/firestore/src/api/reference_impl.d.ts +2 -1
  19. package/dist/lite/firestore/src/lite-api/query.d.ts +14 -12
  20. package/dist/lite/firestore/src/local/overlayed_document.d.ts +8 -4
  21. package/dist/lite/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
  22. package/dist/lite/index.browser.esm2017.js +16 -14
  23. package/dist/lite/index.browser.esm2017.js.map +1 -1
  24. package/dist/lite/index.browser.esm5.js +17 -15
  25. package/dist/lite/index.browser.esm5.js.map +1 -1
  26. package/dist/lite/index.node.cjs.js +16 -14
  27. package/dist/lite/index.node.cjs.js.map +1 -1
  28. package/dist/lite/index.node.mjs +16 -14
  29. package/dist/lite/index.node.mjs.map +1 -1
  30. package/dist/lite/index.rn.esm2017.js +16 -14
  31. package/dist/lite/index.rn.esm2017.js.map +1 -1
  32. package/dist/lite/internal.d.ts +15 -13
  33. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +15 -13
  34. package/dist/lite/packages/firestore/src/api/reference_impl.d.ts +2 -1
  35. package/dist/lite/packages/firestore/src/lite-api/query.d.ts +14 -12
  36. package/dist/lite/packages/firestore/src/local/overlayed_document.d.ts +8 -4
  37. package/dist/lite/packages/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
  38. package/dist/packages/firestore/dist/index.esm2017.d.ts +17 -14
  39. package/dist/packages/firestore/src/api/reference_impl.d.ts +2 -1
  40. package/dist/packages/firestore/src/lite-api/query.d.ts +14 -12
  41. package/dist/packages/firestore/src/local/overlayed_document.d.ts +8 -4
  42. package/dist/packages/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
  43. package/dist/private.d.ts +10 -5
  44. package/package.json +6 -6
@@ -130,13 +130,14 @@ export declare type AggregateSpecData<T extends AggregateSpec> = {
130
130
  };
131
131
 
132
132
  /**
133
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical AND
134
- * of all the provided {@link QueryFilterConstraint}s.
135
- *
136
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
137
- * for AND operation. These must be created with calls to {@link where},
138
- * {@link or}, or {@link and}.
139
- * @returns The created {@link QueryCompositeFilterConstraint}.
133
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
134
+ * the given filter constraints. A conjunction filter includes a document if it
135
+ * satisfies all of the given filters.
136
+ *
137
+ * @param queryConstraints - Optional. The list of
138
+ * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
139
+ * created with calls to {@link where}, {@link or}, or {@link and}.
140
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
140
141
  * @internal TODO remove this internal tag with OR Query support in the server
141
142
  */
142
143
  export declare function and(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
@@ -2059,13 +2060,14 @@ declare const enum Operator {
2059
2060
  }
2060
2061
 
2061
2062
  /**
2062
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical OR
2063
- * of all the provided {@link QueryFilterConstraint}s.
2063
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
2064
+ * the given filter constraints. A disjunction filter includes a document if it
2065
+ * satisfies any of the given filters.
2064
2066
  *
2065
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
2066
- * for OR operation. These must be created with calls to {@link where},
2067
- * {@link or}, or {@link and}.
2068
- * @returns The created {@link QueryCompositeFilterConstraint}.
2067
+ * @param queryConstraints - Optional. The list of
2068
+ * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
2069
+ * created with calls to {@link where}, {@link or}, or {@link and}.
2070
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
2069
2071
  * @internal TODO remove this internal tag with OR Query support in the server
2070
2072
  */
2071
2073
  export declare function or(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
@@ -779,13 +779,14 @@ declare class fs {
779
779
  * otherwise.
780
780
  */ declare function Jr(t: any, e: any): boolean;
781
781
  /**
782
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical AND
783
- * of all the provided {@link QueryFilterConstraint}s.
784
- *
785
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
786
- * for AND operation. These must be created with calls to {@link where},
787
- * {@link or}, or {@link and}.
788
- * @returns The created {@link QueryCompositeFilterConstraint}.
782
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
783
+ * the given filter constraints. A conjunction filter includes a document if it
784
+ * satisfies all of the given filters.
785
+ *
786
+ * @param queryConstraints - Optional. The list of
787
+ * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
788
+ * created with calls to {@link where}, {@link or}, or {@link and}.
789
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
789
790
  * @internal TODO remove this internal tag with OR Query support in the server
790
791
  */ declare function Tr(...t: any[]): Er;
791
792
  /**
@@ -969,13 +970,14 @@ declare function vn(t: any, e: any, n: any): import("../../lite").Firestore;
969
970
  * @returns The created {@link QueryLimitConstraint}.
970
971
  */ declare function $r(t: any): Pr;
971
972
  /**
972
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical OR
973
- * of all the provided {@link QueryFilterConstraint}s.
973
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
974
+ * the given filter constraints. A disjunction filter includes a document if it
975
+ * satisfies any of the given filters.
974
976
  *
975
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
976
- * for OR operation. These must be created with calls to {@link where},
977
- * {@link or}, or {@link and}.
978
- * @returns The created {@link QueryCompositeFilterConstraint}.
977
+ * @param queryConstraints - Optional. The list of
978
+ * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
979
+ * created with calls to {@link where}, {@link or}, or {@link and}.
980
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
979
981
  * @internal TODO remove this internal tag with OR Query support in the server
980
982
  */ declare function Ir(...t: any[]): Er;
981
983
  /**
@@ -83,7 +83,8 @@ export declare function getDocFromServer<T>(reference: DocumentReference<T>): Pr
83
83
  export declare function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>>;
84
84
  /**
85
85
  * Executes the query and returns the results as a `QuerySnapshot` from cache.
86
- * Returns an error if the document is not currently cached.
86
+ * Returns an empty result set if no documents matching the query are currently
87
+ * cached.
87
88
  *
88
89
  * @returns A `Promise` that will be resolved with the results of the query.
89
90
  */
@@ -167,24 +167,26 @@ export declare type QueryNonFilterConstraint = QueryOrderByConstraint | QueryLim
167
167
  */
168
168
  export declare type QueryFilterConstraint = QueryFieldFilterConstraint | QueryCompositeFilterConstraint;
169
169
  /**
170
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical OR
171
- * of all the provided {@link QueryFilterConstraint}s.
170
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
171
+ * the given filter constraints. A disjunction filter includes a document if it
172
+ * satisfies any of the given filters.
172
173
  *
173
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
174
- * for OR operation. These must be created with calls to {@link where},
175
- * {@link or}, or {@link and}.
176
- * @returns The created {@link QueryCompositeFilterConstraint}.
174
+ * @param queryConstraints - Optional. The list of
175
+ * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
176
+ * created with calls to {@link where}, {@link or}, or {@link and}.
177
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
177
178
  * @internal TODO remove this internal tag with OR Query support in the server
178
179
  */
179
180
  export declare function or(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
180
181
  /**
181
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical AND
182
- * of all the provided {@link QueryFilterConstraint}s.
182
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
183
+ * the given filter constraints. A conjunction filter includes a document if it
184
+ * satisfies all of the given filters.
183
185
  *
184
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
185
- * for AND operation. These must be created with calls to {@link where},
186
- * {@link or}, or {@link and}.
187
- * @returns The created {@link QueryCompositeFilterConstraint}.
186
+ * @param queryConstraints - Optional. The list of
187
+ * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
188
+ * created with calls to {@link where}, {@link or}, or {@link and}.
189
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
188
190
  * @internal TODO remove this internal tag with OR Query support in the server
189
191
  */
190
192
  export declare function and(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
@@ -23,14 +23,18 @@ import { FieldMask } from '../model/field_mask';
23
23
  export declare class OverlayedDocument {
24
24
  readonly overlayedDocument: Document;
25
25
  /**
26
- * The fields that are locally mutated by patch mutations. If the overlayed
27
- * document is from set or delete mutations, this returns null.
26
+ * The fields that are locally mutated by patch mutations.
27
+ *
28
+ * If the overlayed document is from set or delete mutations, this is `null`.
29
+ * If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
28
30
  */
29
31
  readonly mutatedFields: FieldMask | null;
30
32
  constructor(overlayedDocument: Document,
31
33
  /**
32
- * The fields that are locally mutated by patch mutations. If the overlayed
33
- * document is from set or delete mutations, this returns null.
34
+ * The fields that are locally mutated by patch mutations.
35
+ *
36
+ * If the overlayed document is from set or delete mutations, this is `null`.
37
+ * If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
34
38
  */
35
39
  mutatedFields: FieldMask | null);
36
40
  }
@@ -22,27 +22,29 @@ import { PersistencePromise } from '../../../src/local/persistence_promise';
22
22
  import { PersistenceTransaction } from '../../../src/local/persistence_transaction';
23
23
  import { QueryEngine } from '../../../src/local/query_engine';
24
24
  import { DocumentKeySet, DocumentMap } from '../../../src/model/collections';
25
+ import { MutationType } from '../../../src/model/mutation';
25
26
  /**
26
27
  * A test-only query engine that forwards all API calls and exposes the number
27
28
  * of documents and mutations read.
28
29
  */
29
30
  export declare class CountingQueryEngine extends QueryEngine {
30
31
  /**
31
- * The number of mutations returned by the MutationQueue's
32
- * `getAllMutationBatchesAffectingQuery()` API (since the last call to
32
+ * The number of overlays returned by the DocumentOverlayCache's
33
+ * `getOverlaysByCollection(Group)` API (since the last call to
33
34
  * `resetCounts()`)
34
35
  */
35
- mutationsReadByCollection: number;
36
+ overlaysReadByCollection: number;
36
37
  /**
37
- * The number of mutations returned by the MutationQueue's
38
- * `getAllMutationBatchesAffectingDocumentKey()` and
39
- * `getAllMutationBatchesAffectingDocumentKeys()` APIs (since the last call
40
- * to `resetCounts()`)
38
+ * The number of overlays returned by the DocumentOverlayCache's
39
+ * `getOverlay(s)` APIs (since the last call to `resetCounts()`)
41
40
  */
42
- mutationsReadByKey: number;
41
+ overlaysReadByKey: number;
42
+ overlayTypes: {
43
+ [k: string]: MutationType;
44
+ };
43
45
  /**
44
46
  * The number of documents returned by the RemoteDocumentCache's
45
- * `getAll()` API (since the last call to `resetCounts()`)
47
+ * `getAll()` API (since the last call to `resetCounts()`).
46
48
  */
47
49
  documentsReadByCollection: number;
48
50
  /**
@@ -50,20 +52,9 @@ export declare class CountingQueryEngine extends QueryEngine {
50
52
  * and `getEntries()` APIs (since the last call to `resetCounts()`)
51
53
  */
52
54
  documentsReadByKey: number;
53
- /**
54
- * The number of documents returned by the OverlayCache's `getOverlays()`
55
- * API (since the last call to `resetCounts()`)
56
- */
57
- overlaysReadByCollection: number;
58
- /**
59
- * The number of documents returned by the OverlayCache's `getOverlay()`
60
- * APIs (since the last call to `resetCounts()`)
61
- */
62
- overlaysReadByKey: number;
63
55
  resetCounts(): void;
64
56
  getDocumentsMatchingQuery(transaction: PersistenceTransaction, query: Query, lastLimboFreeSnapshotVersion: SnapshotVersion, remoteKeys: DocumentKeySet): PersistencePromise<DocumentMap>;
65
57
  initialize(localDocuments: LocalDocumentsView, indexManager: IndexManager): void;
66
58
  private wrapRemoteDocumentCache;
67
- private wrapMutationQueue;
68
- private wrapDocumentOverlayCache;
59
+ private wrapOverlayCache;
69
60
  }
@@ -1033,13 +1033,14 @@ declare function Gt(): boolean;
1033
1033
  * otherwise.
1034
1034
  */ declare function Jl(t: any, e: any): boolean;
1035
1035
  /**
1036
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical AND
1037
- * of all the provided {@link QueryFilterConstraint}s.
1038
- *
1039
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
1040
- * for AND operation. These must be created with calls to {@link where},
1041
- * {@link or}, or {@link and}.
1042
- * @returns The created {@link QueryCompositeFilterConstraint}.
1036
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
1037
+ * the given filter constraints. A conjunction filter includes a document if it
1038
+ * satisfies all of the given filters.
1039
+ *
1040
+ * @param queryConstraints - Optional. The list of
1041
+ * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
1042
+ * created with calls to {@link where}, {@link or}, or {@link and}.
1043
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
1043
1044
  * @internal TODO remove this internal tag with OR Query support in the server
1044
1045
  */ declare function cl(...t: any[]): ol;
1045
1046
  /**
@@ -1282,7 +1283,8 @@ declare function yl(...t: any[]): gl;
1282
1283
  */ declare function Bl(t: any): Promise<xl>;
1283
1284
  /**
1284
1285
  * Executes the query and returns the results as a `QuerySnapshot` from cache.
1285
- * Returns an error if the document is not currently cached.
1286
+ * Returns an empty result set if no documents matching the query are currently
1287
+ * cached.
1286
1288
  *
1287
1289
  * @returns A `Promise` that will be resolved with the results of the query.
1288
1290
  */ declare function Ll(t: any): Promise<xl>;
@@ -1367,13 +1369,14 @@ declare function oh(e: any, n: any): import("../src").Firestore;
1367
1369
  declare function jl(t: any, ...e: any[]): () => void;
1368
1370
  declare function Wl(t: any, e: any): () => void;
1369
1371
  /**
1370
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical OR
1371
- * of all the provided {@link QueryFilterConstraint}s.
1372
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
1373
+ * the given filter constraints. A disjunction filter includes a document if it
1374
+ * satisfies any of the given filters.
1372
1375
  *
1373
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
1374
- * for OR operation. These must be created with calls to {@link where},
1375
- * {@link or}, or {@link and}.
1376
- * @returns The created {@link QueryCompositeFilterConstraint}.
1376
+ * @param queryConstraints - Optional. The list of
1377
+ * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
1378
+ * created with calls to {@link where}, {@link or}, or {@link and}.
1379
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
1377
1380
  * @internal TODO remove this internal tag with OR Query support in the server
1378
1381
  */ declare function ul(...t: any[]): ol;
1379
1382
  /**
@@ -83,7 +83,8 @@ export declare function getDocFromServer<T>(reference: DocumentReference<T>): Pr
83
83
  export declare function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>>;
84
84
  /**
85
85
  * Executes the query and returns the results as a `QuerySnapshot` from cache.
86
- * Returns an error if the document is not currently cached.
86
+ * Returns an empty result set if no documents matching the query are currently
87
+ * cached.
87
88
  *
88
89
  * @returns A `Promise` that will be resolved with the results of the query.
89
90
  */
@@ -167,24 +167,26 @@ export declare type QueryNonFilterConstraint = QueryOrderByConstraint | QueryLim
167
167
  */
168
168
  export declare type QueryFilterConstraint = QueryFieldFilterConstraint | QueryCompositeFilterConstraint;
169
169
  /**
170
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical OR
171
- * of all the provided {@link QueryFilterConstraint}s.
170
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
171
+ * the given filter constraints. A disjunction filter includes a document if it
172
+ * satisfies any of the given filters.
172
173
  *
173
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
174
- * for OR operation. These must be created with calls to {@link where},
175
- * {@link or}, or {@link and}.
176
- * @returns The created {@link QueryCompositeFilterConstraint}.
174
+ * @param queryConstraints - Optional. The list of
175
+ * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
176
+ * created with calls to {@link where}, {@link or}, or {@link and}.
177
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
177
178
  * @internal TODO remove this internal tag with OR Query support in the server
178
179
  */
179
180
  export declare function or(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
180
181
  /**
181
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical AND
182
- * of all the provided {@link QueryFilterConstraint}s.
182
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
183
+ * the given filter constraints. A conjunction filter includes a document if it
184
+ * satisfies all of the given filters.
183
185
  *
184
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
185
- * for AND operation. These must be created with calls to {@link where},
186
- * {@link or}, or {@link and}.
187
- * @returns The created {@link QueryCompositeFilterConstraint}.
186
+ * @param queryConstraints - Optional. The list of
187
+ * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
188
+ * created with calls to {@link where}, {@link or}, or {@link and}.
189
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
188
190
  * @internal TODO remove this internal tag with OR Query support in the server
189
191
  */
190
192
  export declare function and(...queryConstraints: QueryFilterConstraint[]): QueryCompositeFilterConstraint;
@@ -23,14 +23,18 @@ import { FieldMask } from '../model/field_mask';
23
23
  export declare class OverlayedDocument {
24
24
  readonly overlayedDocument: Document;
25
25
  /**
26
- * The fields that are locally mutated by patch mutations. If the overlayed
27
- * document is from set or delete mutations, this returns null.
26
+ * The fields that are locally mutated by patch mutations.
27
+ *
28
+ * If the overlayed document is from set or delete mutations, this is `null`.
29
+ * If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
28
30
  */
29
31
  readonly mutatedFields: FieldMask | null;
30
32
  constructor(overlayedDocument: Document,
31
33
  /**
32
- * The fields that are locally mutated by patch mutations. If the overlayed
33
- * document is from set or delete mutations, this returns null.
34
+ * The fields that are locally mutated by patch mutations.
35
+ *
36
+ * If the overlayed document is from set or delete mutations, this is `null`.
37
+ * If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
34
38
  */
35
39
  mutatedFields: FieldMask | null);
36
40
  }
@@ -22,27 +22,29 @@ import { PersistencePromise } from '../../../src/local/persistence_promise';
22
22
  import { PersistenceTransaction } from '../../../src/local/persistence_transaction';
23
23
  import { QueryEngine } from '../../../src/local/query_engine';
24
24
  import { DocumentKeySet, DocumentMap } from '../../../src/model/collections';
25
+ import { MutationType } from '../../../src/model/mutation';
25
26
  /**
26
27
  * A test-only query engine that forwards all API calls and exposes the number
27
28
  * of documents and mutations read.
28
29
  */
29
30
  export declare class CountingQueryEngine extends QueryEngine {
30
31
  /**
31
- * The number of mutations returned by the MutationQueue's
32
- * `getAllMutationBatchesAffectingQuery()` API (since the last call to
32
+ * The number of overlays returned by the DocumentOverlayCache's
33
+ * `getOverlaysByCollection(Group)` API (since the last call to
33
34
  * `resetCounts()`)
34
35
  */
35
- mutationsReadByCollection: number;
36
+ overlaysReadByCollection: number;
36
37
  /**
37
- * The number of mutations returned by the MutationQueue's
38
- * `getAllMutationBatchesAffectingDocumentKey()` and
39
- * `getAllMutationBatchesAffectingDocumentKeys()` APIs (since the last call
40
- * to `resetCounts()`)
38
+ * The number of overlays returned by the DocumentOverlayCache's
39
+ * `getOverlay(s)` APIs (since the last call to `resetCounts()`)
41
40
  */
42
- mutationsReadByKey: number;
41
+ overlaysReadByKey: number;
42
+ overlayTypes: {
43
+ [k: string]: MutationType;
44
+ };
43
45
  /**
44
46
  * The number of documents returned by the RemoteDocumentCache's
45
- * `getAll()` API (since the last call to `resetCounts()`)
47
+ * `getAll()` API (since the last call to `resetCounts()`).
46
48
  */
47
49
  documentsReadByCollection: number;
48
50
  /**
@@ -50,20 +52,9 @@ export declare class CountingQueryEngine extends QueryEngine {
50
52
  * and `getEntries()` APIs (since the last call to `resetCounts()`)
51
53
  */
52
54
  documentsReadByKey: number;
53
- /**
54
- * The number of documents returned by the OverlayCache's `getOverlays()`
55
- * API (since the last call to `resetCounts()`)
56
- */
57
- overlaysReadByCollection: number;
58
- /**
59
- * The number of documents returned by the OverlayCache's `getOverlay()`
60
- * APIs (since the last call to `resetCounts()`)
61
- */
62
- overlaysReadByKey: number;
63
55
  resetCounts(): void;
64
56
  getDocumentsMatchingQuery(transaction: PersistenceTransaction, query: Query, lastLimboFreeSnapshotVersion: SnapshotVersion, remoteKeys: DocumentKeySet): PersistencePromise<DocumentMap>;
65
57
  initialize(localDocuments: LocalDocumentsView, indexManager: IndexManager): void;
66
58
  private wrapRemoteDocumentCache;
67
- private wrapMutationQueue;
68
- private wrapDocumentOverlayCache;
59
+ private wrapOverlayCache;
69
60
  }
package/dist/private.d.ts CHANGED
@@ -2362,7 +2362,8 @@ export declare function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>>;
2362
2362
 
2363
2363
  /**
2364
2364
  * Executes the query and returns the results as a `QuerySnapshot` from cache.
2365
- * Returns an error if the document is not currently cached.
2365
+ * Returns an empty result set if no documents matching the query are currently
2366
+ * cached.
2366
2367
  *
2367
2368
  * @returns A `Promise` that will be resolved with the results of the query.
2368
2369
  */
@@ -3831,14 +3832,18 @@ declare class Overlay {
3831
3832
  declare class OverlayedDocument {
3832
3833
  readonly overlayedDocument: Document_2;
3833
3834
  /**
3834
- * The fields that are locally mutated by patch mutations. If the overlayed
3835
- * document is from set or delete mutations, this returns null.
3835
+ * The fields that are locally mutated by patch mutations.
3836
+ *
3837
+ * If the overlayed document is from set or delete mutations, this is `null`.
3838
+ * If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
3836
3839
  */
3837
3840
  readonly mutatedFields: FieldMask | null;
3838
3841
  constructor(overlayedDocument: Document_2,
3839
3842
  /**
3840
- * The fields that are locally mutated by patch mutations. If the overlayed
3841
- * document is from set or delete mutations, this returns null.
3843
+ * The fields that are locally mutated by patch mutations.
3844
+ *
3845
+ * If the overlayed document is from set or delete mutations, this is `null`.
3846
+ * If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
3842
3847
  */
3843
3848
  mutatedFields: FieldMask | null);
3844
3849
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/firestore",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "engines": {
5
5
  "node": ">=10.10.0"
6
6
  },
@@ -82,9 +82,9 @@
82
82
  "lite/package.json"
83
83
  ],
84
84
  "dependencies": {
85
- "@firebase/component": "0.6.0",
85
+ "@firebase/component": "0.6.1",
86
86
  "@firebase/logger": "0.4.0",
87
- "@firebase/util": "1.8.0",
87
+ "@firebase/util": "1.9.0",
88
88
  "@firebase/webchannel-wrapper": "0.9.0",
89
89
  "@grpc/grpc-js": "~1.7.0",
90
90
  "@grpc/proto-loader": "^0.6.13",
@@ -95,9 +95,9 @@
95
95
  "@firebase/app": "0.x"
96
96
  },
97
97
  "devDependencies": {
98
- "@firebase/app": "0.9.0",
99
- "@firebase/app-compat": "0.2.0",
100
- "@firebase/auth": "0.21.0",
98
+ "@firebase/app": "0.9.1",
99
+ "@firebase/app-compat": "0.2.1",
100
+ "@firebase/auth": "0.21.1",
101
101
  "@rollup/plugin-alias": "3.1.9",
102
102
  "@rollup/plugin-json": "4.1.0",
103
103
  "@types/eslint": "7.29.0",