@firebase/firestore 3.4.1-canary.31db4b706 → 3.4.1-canary.8d415c6b4
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/model/collections.d.ts +1 -1
- package/dist/firestore/src/model/document.d.ts +3 -1
- package/dist/index.esm2017.js +8 -8
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +8 -8
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +7 -7
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +7 -7
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +8 -8
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +3 -1
- package/dist/lite/firestore/src/model/collections.d.ts +1 -1
- package/dist/lite/firestore/src/model/document.d.ts +3 -1
- package/dist/lite/index.browser.esm2017.js +3 -3
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +3 -3
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +3 -3
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +3 -3
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +3 -3
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +67 -0
- package/dist/lite/packages/firestore/src/model/collections.d.ts +1 -1
- package/dist/lite/packages/firestore/src/model/document.d.ts +3 -1
- package/dist/lite/private.d.ts +67 -0
- package/dist/packages/firestore/src/model/collections.d.ts +1 -1
- package/dist/packages/firestore/src/model/document.d.ts +3 -1
- package/dist/private.d.ts +3 -1
- package/package.json +9 -9
|
@@ -22,7 +22,7 @@ import { Document, MutableDocument } from './document';
|
|
|
22
22
|
import { DocumentKey } from './document_key';
|
|
23
23
|
/** Miscellaneous collection types / constants. */
|
|
24
24
|
export interface DocumentSizeEntry {
|
|
25
|
-
document:
|
|
25
|
+
document: Document;
|
|
26
26
|
size: number;
|
|
27
27
|
}
|
|
28
28
|
export declare type MutableDocumentMap = SortedMap<DocumentKey, MutableDocument>;
|
|
@@ -61,6 +61,8 @@ export interface Document {
|
|
|
61
61
|
*/
|
|
62
62
|
isUnknownDocument(): boolean;
|
|
63
63
|
isEqual(other: Document | null | undefined): boolean;
|
|
64
|
+
/** Creates a mutable copy of this document. */
|
|
65
|
+
mutableCopy(): MutableDocument;
|
|
64
66
|
toString(): string;
|
|
65
67
|
}
|
|
66
68
|
/**
|
|
@@ -124,7 +126,7 @@ export declare class MutableDocument implements Document {
|
|
|
124
126
|
isNoDocument(): boolean;
|
|
125
127
|
isUnknownDocument(): boolean;
|
|
126
128
|
isEqual(other: Document | null | undefined): boolean;
|
|
127
|
-
|
|
129
|
+
mutableCopy(): MutableDocument;
|
|
128
130
|
toString(): string;
|
|
129
131
|
}
|
|
130
132
|
/**
|
package/dist/index.esm2017.js
CHANGED
|
@@ -66,7 +66,7 @@ D.MOCK_USER = new D("mock-user");
|
|
|
66
66
|
* See the License for the specific language governing permissions and
|
|
67
67
|
* limitations under the License.
|
|
68
68
|
*/
|
|
69
|
-
let C = "9.6.1-canary.
|
|
69
|
+
let C = "9.6.1-canary.8d415c6b4";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -1997,7 +1997,7 @@ function Lt(t) {
|
|
|
1997
1997
|
isEqual(t) {
|
|
1998
1998
|
return t instanceof Wt && this.key.isEqual(t.key) && this.version.isEqual(t.version) && this.documentType === t.documentType && this.documentState === t.documentState && this.data.isEqual(t.data);
|
|
1999
1999
|
}
|
|
2000
|
-
|
|
2000
|
+
mutableCopy() {
|
|
2001
2001
|
return new Wt(this.key, this.documentType, this.version, this.data.clone(), this.documentState);
|
|
2002
2002
|
}
|
|
2003
2003
|
toString() {
|
|
@@ -9669,7 +9669,7 @@ class Cr {
|
|
|
9669
9669
|
*/ addEntry(t, e, n) {
|
|
9670
9670
|
const s = e.key, i = this.docs.get(s), r = i ? i.size : 0, o = this.Ts(e);
|
|
9671
9671
|
return this.docs = this.docs.insert(s, {
|
|
9672
|
-
document: e.
|
|
9672
|
+
document: e.mutableCopy(),
|
|
9673
9673
|
size: o,
|
|
9674
9674
|
readTime: n
|
|
9675
9675
|
}), this.size += o - r, this.Jt.addToCollectionParentIndex(t, s.path.popLast());
|
|
@@ -9685,13 +9685,13 @@ class Cr {
|
|
|
9685
9685
|
}
|
|
9686
9686
|
getEntry(t, e) {
|
|
9687
9687
|
const n = this.docs.get(e);
|
|
9688
|
-
return Gs.resolve(n ? n.document.
|
|
9688
|
+
return Gs.resolve(n ? n.document.mutableCopy() : Wt.newInvalidDocument(e));
|
|
9689
9689
|
}
|
|
9690
9690
|
getEntries(t, e) {
|
|
9691
9691
|
let n = An();
|
|
9692
9692
|
return e.forEach((t => {
|
|
9693
9693
|
const e = this.docs.get(t);
|
|
9694
|
-
n = n.insert(t, e ? e.document.
|
|
9694
|
+
n = n.insert(t, e ? e.document.mutableCopy() : Wt.newInvalidDocument(t));
|
|
9695
9695
|
})), Gs.resolve(n);
|
|
9696
9696
|
}
|
|
9697
9697
|
getDocumentsMatchingQuery(t, e, n) {
|
|
@@ -9702,7 +9702,7 @@ class Cr {
|
|
|
9702
9702
|
for (;r.hasNext(); ) {
|
|
9703
9703
|
const {key: t, value: {document: i, readTime: o}} = r.getNext();
|
|
9704
9704
|
if (!e.path.isPrefixOf(t.path)) break;
|
|
9705
|
-
o.compareTo(n) <= 0 || Se(e, i) && (s = s.insert(i.key, i.
|
|
9705
|
+
o.compareTo(n) <= 0 || Se(e, i) && (s = s.insert(i.key, i.mutableCopy()));
|
|
9706
9706
|
}
|
|
9707
9707
|
return Gs.resolve(s);
|
|
9708
9708
|
}
|
|
@@ -17832,9 +17832,9 @@ function Ih(t, e) {
|
|
|
17832
17832
|
return n = Object.assign({
|
|
17833
17833
|
useFetchStreams: e
|
|
17834
17834
|
}, n), i._setSettings(n), i;
|
|
17835
|
-
}), "PUBLIC")), registerVersion(S, "3.4.1-canary.
|
|
17835
|
+
}), "PUBLIC")), registerVersion(S, "3.4.1-canary.8d415c6b4", t),
|
|
17836
17836
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
17837
|
-
registerVersion(S, "3.4.1-canary.
|
|
17837
|
+
registerVersion(S, "3.4.1-canary.8d415c6b4", "esm2017");
|
|
17838
17838
|
}();
|
|
17839
17839
|
|
|
17840
17840
|
export { rh as AbstractUserDataWriter, eu as Bytes, Fc as CACHE_SIZE_UNLIMITED, vc as CollectionReference, bc as DocumentReference, xu as DocumentSnapshot, Zc as FieldPath, nu as FieldValue, Oc as Firestore, j as FirestoreError, su as GeoPoint, $c as LoadBundleTask, Pc as Query, Bu as QueryConstraint, $u as QueryDocumentSnapshot, Fu as QuerySnapshot, ku as SnapshotMetadata, at as Timestamp, bh as Transaction, ch as WriteBatch, dc as _DatabaseId, St as _DocumentKey, tt as _EmptyAppCheckTokenProvider, G as _EmptyAuthCredentialsProvider, _t as _FieldPath, Tc as _cast, U as _debugAssert, gt as _isBase64Available, O as _logWarn, mc as _validateIsNotUsedTogether, Th as addDoc, Dh as arrayRemove, Sh as arrayUnion, Qc as clearIndexedDbPersistence, Vc as collection, Sc as collectionGroup, Rc as connectFirestoreEmulator, ph as deleteDoc, vh as deleteField, zc as disableNetwork, Dc as doc, tu as documentId, qc as enableIndexedDbPersistence, Kc as enableMultiTabIndexedDbPersistence, Gc as enableNetwork, th as endAt, Zu as endBefore, Bc as ensureFirestoreConfigured, Ah as executeWrite, hh as getDoc, fh as getDocFromCache, dh as getDocFromServer, wh as getDocs, _h as getDocsFromCache, mh as getDocsFromServer, Lc as getFirestore, Ch as increment, Mc as initializeFirestore, Gu as limit, zu as limitToLast, Jc as loadBundle, Yc as namedQuery, Eh as onSnapshot, Ih as onSnapshotsInSync, Qu as orderBy, Uu as query, Nc as queryEqual, Cc as refEqual, Ph as runTransaction, Vh as serverTimestamp, gh as setDoc, x as setLogLevel, Mu as snapshotEqual, Yu as startAfter, Ju as startAt, Hc as terminate, yh as updateDoc, Wc as waitForPendingWrites, Ku as where, Nh as writeBatch };
|