@firebase/firestore 3.8.0-canary.a7622d49f → 3.8.0-canary.cd92522a4
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/local/overlayed_document.d.ts +8 -4
- package/dist/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
- package/dist/index.esm2017.js +12 -7
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +12 -7
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +11 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +11 -4
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +12 -7
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +8 -4
- package/dist/lite/firestore/src/local/overlayed_document.d.ts +8 -4
- package/dist/lite/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
- 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.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/packages/firestore/src/local/overlayed_document.d.ts +8 -4
- package/dist/lite/packages/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
- package/dist/packages/firestore/src/local/overlayed_document.d.ts +8 -4
- package/dist/packages/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
- package/dist/private.d.ts +8 -4
- package/package.json +9 -9
|
@@ -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.
|
|
27
|
-
*
|
|
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.
|
|
33
|
-
*
|
|
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
|
|
32
|
-
* `
|
|
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
|
-
|
|
36
|
+
overlaysReadByCollection: number;
|
|
36
37
|
/**
|
|
37
|
-
* The number of
|
|
38
|
-
* `
|
|
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
|
-
|
|
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
|
|
68
|
-
private wrapDocumentOverlayCache;
|
|
59
|
+
private wrapOverlayCache;
|
|
69
60
|
}
|
package/dist/index.esm2017.js
CHANGED
|
@@ -66,7 +66,7 @@ P.MOCK_USER = new P("mock-user");
|
|
|
66
66
|
* See the License for the specific language governing permissions and
|
|
67
67
|
* limitations under the License.
|
|
68
68
|
*/
|
|
69
|
-
let v = "9.15.0-canary.
|
|
69
|
+
let v = "9.15.0-canary.cd92522a4";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -9777,8 +9777,10 @@ function mo(t, e) {
|
|
|
9777
9777
|
class yo {
|
|
9778
9778
|
constructor(t,
|
|
9779
9779
|
/**
|
|
9780
|
-
* The fields that are locally mutated by patch mutations.
|
|
9781
|
-
*
|
|
9780
|
+
* The fields that are locally mutated by patch mutations.
|
|
9781
|
+
*
|
|
9782
|
+
* If the overlayed document is from set or delete mutations, this is `null`.
|
|
9783
|
+
* If there is no overlay (mutation) for the document, this is an empty `FieldMask`.
|
|
9782
9784
|
*/
|
|
9783
9785
|
e) {
|
|
9784
9786
|
this.overlayedDocument = t, this.mutatedFields = e;
|
|
@@ -9891,8 +9893,11 @@ class yo {
|
|
|
9891
9893
|
// NOTE: we recalculate when `overlay` is undefined as well, because there
|
|
9892
9894
|
// might be a patch mutation whose precondition does not match before the
|
|
9893
9895
|
// change (hence overlay is undefined), but would now match.
|
|
9894
|
-
s.has(e.key) && (void 0 === o || o.mutation instanceof ts) ? i = i.insert(e.key, e) : void 0 !== o
|
|
9895
|
-
Jn(o.mutation, e, o.mutation.getFieldMask(), nt.now()))
|
|
9896
|
+
s.has(e.key) && (void 0 === o || o.mutation instanceof ts) ? i = i.insert(e.key, e) : void 0 !== o ? (r.set(e.key, o.mutation.getFieldMask()),
|
|
9897
|
+
Jn(o.mutation, e, o.mutation.getFieldMask(), nt.now())) :
|
|
9898
|
+
// no overlay exists
|
|
9899
|
+
// Using EMPTY to indicate there is no overlay for the document.
|
|
9900
|
+
r.set(e.key, Je.empty());
|
|
9896
9901
|
})), this.recalculateAndSaveOverlays(t, i).next((t => (t.forEach(((t, e) => r.set(t, e))),
|
|
9897
9902
|
e.forEach(((t, e) => {
|
|
9898
9903
|
var n;
|
|
@@ -20523,9 +20528,9 @@ function lf(t, e) {
|
|
|
20523
20528
|
return s = Object.assign({
|
|
20524
20529
|
useFetchStreams: e
|
|
20525
20530
|
}, s), r._setSettings(s), r;
|
|
20526
|
-
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.8.0-canary.
|
|
20531
|
+
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.8.0-canary.cd92522a4", t),
|
|
20527
20532
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
20528
|
-
registerVersion(b, "3.8.0-canary.
|
|
20533
|
+
registerVersion(b, "3.8.0-canary.cd92522a4", "esm2017");
|
|
20529
20534
|
}();
|
|
20530
20535
|
|
|
20531
20536
|
export { Pl as AbstractUserDataWriter, Sa as AggregateField, Da as AggregateQuerySnapshot, Ih as Bytes, sh as CACHE_SIZE_UNLIMITED, Ia as CollectionReference, ya as DocumentReference, Dl as DocumentSnapshot, Th as FieldPath, Ah as FieldValue, ih as Firestore, L as FirestoreError, Rh as GeoPoint, nh as LoadBundleTask, pa as Query, ol as QueryCompositeFilterConstraint, nl as QueryConstraint, Cl as QueryDocumentSnapshot, gl as QueryEndAtConstraint, il as QueryFieldFilterConstraint, ll as QueryLimitConstraint, al as QueryOrderByConstraint, xl as QuerySnapshot, _l as QueryStartAtConstraint, Sl as SnapshotMetadata, nt as Timestamp, ef as Transaction, Zl as WriteBatch, Ft as _DatabaseId, ct as _DocumentKey, J as _EmptyAppCheckTokenProvider, K as _EmptyAuthCredentialsProvider, ut as _FieldPath, fa as _cast, F as _debugAssert, Gt as _isBase64Available, N as _logWarn, ca as _validateIsNotUsedTogether, Ql as addDoc, Jl as aggregateQuerySnapshotEqual, cl as and, uf as arrayRemove, of as arrayUnion, fh as clearIndexedDbPersistence, Ta as collection, Ea as collectionGroup, ga as connectFirestoreEmulator, Gl as deleteDoc, sf as deleteField, wh as disableNetwork, Aa as doc, Eh as documentId, ah as enableIndexedDbPersistence, hh as enableMultiTabIndexedDbPersistence, _h as enableNetwork, pl as endAt, yl as endBefore, uh as ensureFirestoreConfigured, zl as executeWrite, Yl as getCountFromServer, Ol as getDoc, Fl as getDocFromCache, $l as getDocFromServer, Bl as getDocs, Ll as getDocsFromCache, ql as getDocsFromServer, oh as getFirestore, cf as increment, rh as initializeFirestore, fl as limit, dl as limitToLast, gh as loadBundle, yh as namedQuery, jl as onSnapshot, Wl as onSnapshotsInSync, ul as or, hl as orderBy, sl as query, ba as queryEqual, Ra as refEqual, nf as runTransaction, rf as serverTimestamp, Ul as setDoc, hf as setIndexConfiguration, D as setLogLevel, kl as snapshotEqual, ml as startAfter, wl as startAt, mh as terminate, Kl as updateDoc, dh as waitForPendingWrites, rl as where, af as writeBatch };
|