@firebase/firestore 3.0.2-canary.0281e06de → 3.0.2-canary.07b88e6e8

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.
@@ -30,15 +30,6 @@ export interface PersistenceProvider {
30
30
  enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
31
31
  clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
32
32
  }
33
- /**
34
- * The persistence provider included with the memory-only SDK. This provider
35
- * errors for all attempts to access persistence.
36
- */
37
- export declare class MemoryPersistenceProvider implements PersistenceProvider {
38
- enableIndexedDbPersistence(firestore: Firestore, forceOwnership: boolean): Promise<void>;
39
- enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
40
- clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
41
- }
42
33
  /**
43
34
  * The persistence provider included with the full Firestore SDK.
44
35
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
18
18
  import { Provider } from '@firebase/component';
19
- import { Firestore as FirestoreCompat } from './api/database';
19
+ import { Firestore as FirestoreCompat, PersistenceProvider } from './api/database';
20
20
  export { CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from './api/database';
21
21
  export { Blob } from './api/blob';
22
22
  export { GeoPoint } from './api/geo_point';
@@ -27,6 +27,15 @@ export interface FirestoreDatabase {
27
27
  projectId: string;
28
28
  database?: string;
29
29
  }
30
+ /**
31
+ * The persistence provider included with the memory-only SDK. This provider
32
+ * errors for all attempts to access persistence.
33
+ */
34
+ export declare class MemoryPersistenceProvider implements PersistenceProvider {
35
+ enableIndexedDbPersistence(firestore: FirestoreCompat, forceOwnership: boolean): Promise<void>;
36
+ enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
37
+ clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
38
+ }
30
39
  /** Firestore class that exposes the constructor expected by the Console. */
31
40
  export declare class Firestore extends FirestoreCompat {
32
41
  constructor(firestoreDatabase: FirestoreDatabase, authProvider: Provider<FirebaseAuthInternalName>);
@@ -68,7 +68,7 @@ V.MOCK_USER = new V("mock-user");
68
68
  * See the License for the specific language governing permissions and
69
69
  * limitations under the License.
70
70
  */
71
- let S = "9.0.2-canary.0281e06de";
71
+ let S = "9.0.2-canary.07b88e6e8";
72
72
 
73
73
  /**
74
74
  * @license
@@ -17780,7 +17780,7 @@ function gh(t, e) {
17780
17780
  return e = Object.assign({
17781
17781
  useFetchStreams: !0
17782
17782
  }, e), s._setSettings(e), s;
17783
- }), "PUBLIC" /* PUBLIC */)), s("@firebase/firestore", "3.0.2-canary.0281e06de", Vh);
17783
+ }), "PUBLIC" /* PUBLIC */)), s("@firebase/firestore", "3.0.2-canary.07b88e6e8", Vh);
17784
17784
 
17785
17785
  export { th as AbstractUserDataWriter, Jc as Bytes, Cc as CACHE_SIZE_UNLIMITED, Ic as CollectionReference, Ec as DocumentReference, Su as DocumentSnapshot, zc as FieldPath, Yc as FieldValue, Nc as Firestore, q as FirestoreError, Xc as GeoPoint, Dc as LoadBundleTask, Tc as Query, $u as QueryConstraint, Du as QueryDocumentSnapshot, Cu as QuerySnapshot, Vu as SnapshotMetadata, nt as Timestamp, Eh as Transaction, sh as WriteBatch, cc as _DatabaseId, Rt as _DocumentKey, Q as _EmptyCredentialsProvider, ht as _FieldPath, _c as _cast, L as _debugAssert, ft as _isBase64Available, $ as _logWarn, lc as _validateIsNotUsedTogether, _h as addDoc, bh as arrayRemove, Rh as arrayUnion, Bc as clearIndexedDbPersistence, Ac as collection, Rc as collectionGroup, pc as connectFirestoreEmulator, wh as deleteDoc, Ih as deleteField, Kc as disableNetwork, bc as doc, Hc as documentId, Fc as enableIndexedDbPersistence, Mc as enableMultiTabIndexedDbPersistence, qc as enableNetwork, Hu as endAt, zu as endBefore, $c as ensureFirestoreConfigured, yh as executeWrite, rh as getDoc, ah as getDocFromCache, ch as getDocFromServer, uh as getDocs, hh as getDocsFromCache, lh as getDocsFromServer, kc as getFirestore, Ph as increment, xc as initializeFirestore, qu as limit, Ku as limitToLast, Qc as loadBundle, Wc as namedQuery, mh as onSnapshot, gh as onSnapshotsInSync, Bu as orderBy, Ou as query, vc as queryEqual, Pc as refEqual, Th as runTransaction, Ah as serverTimestamp, fh as setDoc, N as setLogLevel, xu as snapshotEqual, Wu as startAfter, Qu as startAt, jc as terminate, dh as updateDoc, Uc as waitForPendingWrites, Mu as where, vh as writeBatch };
17786
17786
  //# sourceMappingURL=index.esm2017.js.map
@@ -69,7 +69,7 @@ L.MOCK_USER = new L("mock-user");
69
69
  * See the License for the specific language governing permissions and
70
70
  * limitations under the License.
71
71
  */
72
- var R = "9.0.2-canary.0281e06de", O = new h("@firebase/firestore");
72
+ var R = "9.0.2-canary.07b88e6e8", O = new h("@firebase/firestore");
73
73
 
74
74
  /**
75
75
  * @license
@@ -18379,7 +18379,7 @@ R = i, o(new c("firestore", (function(t, e) {
18379
18379
  return n = Object.assign({
18380
18380
  useFetchStreams: !0
18381
18381
  }, n), i._setSettings(n), i;
18382
- }), "PUBLIC" /* PUBLIC */)), s("@firebase/firestore", "3.0.2-canary.0281e06de", undefined);
18382
+ }), "PUBLIC" /* PUBLIC */)), s("@firebase/firestore", "3.0.2-canary.07b88e6e8", undefined);
18383
18383
 
18384
18384
  export { Bc as AbstractUserDataWriter, Mu as Bytes, gu as CACHE_SIZE_UNLIMITED, cu as CollectionReference, au as DocumentReference, vc as DocumentSnapshot, Pu as FieldPath, Vu as FieldValue, wu as Firestore, Q as FirestoreError, qu as GeoPoint, mu as LoadBundleTask, uu as Query, Tc as QueryConstraint, mc as QueryDocumentSnapshot, gc as QuerySnapshot, yc as SnapshotMetadata, st as Timestamp, ah as Transaction, zc as WriteBatch, Ya as _DatabaseId, At as _DocumentKey, Y as _EmptyCredentialsProvider, pt as _FieldPath, nu as _cast, j as _debugAssert, vt as _isBase64Available, q as _logWarn, $a as _validateIsNotUsedTogether, nh as addDoc, lh as arrayRemove, fh as arrayUnion, Du as clearIndexedDbPersistence, hu as collection, fu as collectionGroup, su as connectFirestoreEmulator, eh as deleteDoc, ch as deleteField, Cu as disableNetwork, lu as doc, Fu as documentId, Su as enableIndexedDbPersistence, Nu as enableMultiTabIndexedDbPersistence, ku as enableNetwork, Fc as endAt, Pc as endBefore, Tu as ensureFirestoreConfigured, oh as executeWrite, Qc as getDoc, Wc as getDocFromCache, Yc as getDocFromServer, Jc as getDocs, Xc as getDocsFromCache, $c as getDocsFromServer, Iu as getFirestore, dh as increment, bu as initializeFirestore, kc as limit, Cc as limitToLast, Lu as loadBundle, Ru as namedQuery, rh as onSnapshot, ih as onSnapshotsInSync, Dc as orderBy, Ec as query, pu as queryEqual, du as refEqual, uh as runTransaction, hh as serverTimestamp, Zc as setDoc, F as setLogLevel, bc as snapshotEqual, Rc as startAfter, Lc as startAt, xu as terminate, th as updateDoc, Au as waitForPendingWrites, Nc as where, ph as writeBatch };
18385
18385
  //# sourceMappingURL=index.esm5.js.map
@@ -10,7 +10,7 @@ import { resolve, join } from 'path';
10
10
  import { loadSync } from '@grpc/proto-loader';
11
11
 
12
12
  const name = "@firebase/firestore";
13
- const version$1 = "3.0.2-canary.0281e06de";
13
+ const version$1 = "3.0.2-canary.07b88e6e8";
14
14
 
15
15
  /**
16
16
  * @license
@@ -63,7 +63,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
63
63
  User.FIRST_PARTY = new User('first-party-uid');
64
64
  User.MOCK_USER = new User('mock-user');
65
65
 
66
- const version = "9.0.2-canary.0281e06de";
66
+ const version = "9.0.2-canary.07b88e6e8";
67
67
 
68
68
  /**
69
69
  * @license
@@ -15,7 +15,7 @@ var path = require('path');
15
15
  var protoLoader = require('@grpc/proto-loader');
16
16
 
17
17
  var name = "@firebase/firestore";
18
- var version$1 = "3.0.2-canary.0281e06de";
18
+ var version$1 = "3.0.2-canary.07b88e6e8";
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
@@ -67,7 +67,7 @@ User.UNAUTHENTICATED = new User(null);
67
67
  User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
68
68
  User.FIRST_PARTY = new User('first-party-uid');
69
69
  User.MOCK_USER = new User('mock-user');
70
- var version = "9.0.2-canary.0281e06de";
70
+ var version = "9.0.2-canary.07b88e6e8";
71
71
  /**
72
72
  * @license
73
73
  * Copyright 2017 Google LLC
package/dist/index.rn.js CHANGED
@@ -68,7 +68,7 @@ S.MOCK_USER = new S("mock-user");
68
68
  * See the License for the specific language governing permissions and
69
69
  * limitations under the License.
70
70
  */
71
- let D = "9.0.2-canary.0281e06de";
71
+ let D = "9.0.2-canary.07b88e6e8";
72
72
 
73
73
  /**
74
74
  * @license
@@ -17804,7 +17804,7 @@ Dh = "rn", function(t) {
17804
17804
  return e = Object.assign({
17805
17805
  useFetchStreams: !0
17806
17806
  }, e), s._setSettings(e), s;
17807
- }), "PUBLIC" /* PUBLIC */)), s("@firebase/firestore", "3.0.2-canary.0281e06de", Dh);
17807
+ }), "PUBLIC" /* PUBLIC */)), s("@firebase/firestore", "3.0.2-canary.07b88e6e8", Dh);
17808
17808
 
17809
17809
  export { nh as AbstractUserDataWriter, Xa as Bytes, xa as CACHE_SIZE_UNLIMITED, Ra as CollectionReference, Ia as DocumentReference, Cu as DocumentSnapshot, Ja as FieldPath, Za as FieldValue, ka as Firestore, K as FirestoreError, tu as GeoPoint, Na as LoadBundleTask, Aa as Query, Fu as QueryConstraint, Nu as QueryDocumentSnapshot, xu as QuerySnapshot, Du as SnapshotMetadata, st as Timestamp, Ih as Transaction, rh as WriteBatch, ha as _DatabaseId, Pt as _DocumentKey, W as _EmptyCredentialsProvider, lt as _FieldPath, ga as _cast, B as _debugAssert, wt as _isBase64Available, O as _logWarn, da as _validateIsNotUsedTogether, gh as addDoc, vh as arrayRemove, Ph as arrayUnion, qa as clearIndexedDbPersistence, ba as collection, Pa as collectionGroup, Ta as connectFirestoreEmulator, mh as deleteDoc, Rh as deleteField, Qa as disableNetwork, va as doc, Ya as documentId, La as enableIndexedDbPersistence, Ba as enableMultiTabIndexedDbPersistence, ja as enableNetwork, Yu as endAt, Ju as endBefore, Fa as ensureFirestoreConfigured, Eh as executeWrite, ch as getDoc, uh as getDocFromCache, hh as getDocFromServer, lh as getDocs, fh as getDocsFromCache, dh as getDocsFromServer, Oa as getFirestore, Vh as increment, $a as initializeFirestore, ju as limit, Qu as limitToLast, Ga as loadBundle, za as namedQuery, yh as onSnapshot, ph as onSnapshotsInSync, qu as orderBy, Mu as query, Sa as queryEqual, Va as refEqual, Ah as runTransaction, bh as serverTimestamp, wh as setDoc, x as setLogLevel, $u as snapshotEqual, zu as startAfter, Gu as startAt, Wa as terminate, _h as updateDoc, Ka as waitForPendingWrites, Bu as where, Sh as writeBatch };
17810
17810
  //# sourceMappingURL=index.rn.js.map
@@ -30,15 +30,6 @@ export interface PersistenceProvider {
30
30
  enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
31
31
  clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
32
32
  }
33
- /**
34
- * The persistence provider included with the memory-only SDK. This provider
35
- * errors for all attempts to access persistence.
36
- */
37
- export declare class MemoryPersistenceProvider implements PersistenceProvider {
38
- enableIndexedDbPersistence(firestore: Firestore, forceOwnership: boolean): Promise<void>;
39
- enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
40
- clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
41
- }
42
33
  /**
43
34
  * The persistence provider included with the full Firestore SDK.
44
35
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
18
18
  import { Provider } from '@firebase/component';
19
- import { Firestore as FirestoreCompat } from './api/database';
19
+ import { Firestore as FirestoreCompat, PersistenceProvider } from './api/database';
20
20
  export { CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from './api/database';
21
21
  export { Blob } from './api/blob';
22
22
  export { GeoPoint } from './api/geo_point';
@@ -27,6 +27,15 @@ export interface FirestoreDatabase {
27
27
  projectId: string;
28
28
  database?: string;
29
29
  }
30
+ /**
31
+ * The persistence provider included with the memory-only SDK. This provider
32
+ * errors for all attempts to access persistence.
33
+ */
34
+ export declare class MemoryPersistenceProvider implements PersistenceProvider {
35
+ enableIndexedDbPersistence(firestore: FirestoreCompat, forceOwnership: boolean): Promise<void>;
36
+ enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
37
+ clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
38
+ }
30
39
  /** Firestore class that exposes the constructor expected by the Console. */
31
40
  export declare class Firestore extends FirestoreCompat {
32
41
  constructor(firestoreDatabase: FirestoreDatabase, authProvider: Provider<FirebaseAuthInternalName>);
@@ -66,7 +66,7 @@ h.MOCK_USER = new h("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let l = "9.0.2-canary.0281e06de";
69
+ let l = "9.0.2-canary.07b88e6e8";
70
70
 
71
71
  /**
72
72
  * @license
@@ -5917,7 +5917,7 @@ class Cr {
5917
5917
  }(`${s}_lite`), e(new i("firestore/lite", ((t, {options: n}) => {
5918
5918
  const e = t.getProvider("app").getImmediate(), r = new ee(e, new B(t.getProvider("auth-internal")));
5919
5919
  return n && r._setSettings(n), r;
5920
- }), "PUBLIC" /* PUBLIC */)), r("firestore-lite", "3.0.2-canary.0281e06de", "node");
5920
+ }), "PUBLIC" /* PUBLIC */)), r("firestore-lite", "3.0.2-canary.07b88e6e8", "node");
5921
5921
 
5922
5922
  export { ye as Bytes, ae as CollectionReference, ue as DocumentReference, We as DocumentSnapshot, me as FieldPath, _e as FieldValue, ee as Firestore, L as FirestoreError, ge as GeoPoint, ce as Query, Je as QueryConstraint, Ge as QueryDocumentSnapshot, He as QuerySnapshot, pt as Timestamp, Cr as Transaction, Nr as WriteBatch, Ir as addDoc, Rr as arrayRemove, Pr as arrayUnion, he as collection, le as collectionGroup, ie as connectFirestoreEmulator, Er as deleteDoc, Tr as deleteField, fe as doc, pe as documentId, lr as endAt, hr as endBefore, _r as getDoc, gr as getDocs, se as getFirestore, Vr as increment, re as initializeFirestore, sr as limit, ir as limitToLast, er as orderBy, Ze as query, we as queryEqual, de as refEqual, Lr as runTransaction, Ar as serverTimestamp, br as setDoc, d as setLogLevel, Ye as snapshotEqual, cr as startAfter, ur as startAt, oe as terminate, vr as updateDoc, tr as where, $r as writeBatch };
5923
5923
  //# sourceMappingURL=index.browser.esm2017.js.map
@@ -67,7 +67,7 @@ d.MOCK_USER = new d("mock-user");
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
- var m = "9.0.2-canary.0281e06de", y = new f("@firebase/firestore");
70
+ var m = "9.0.2-canary.07b88e6e8", y = new f("@firebase/firestore");
71
71
 
72
72
  /**
73
73
  * @license
@@ -5627,7 +5627,7 @@ function Lr(t, e) {
5627
5627
  m = i + "_lite", o(new c("firestore/lite", (function(t, e) {
5628
5628
  var n = e.options, r = t.getProvider("app").getImmediate(), i = new Ze(r, new z(t.getProvider("auth-internal")));
5629
5629
  return n && i._setSettings(n), i;
5630
- }), "PUBLIC" /* PUBLIC */)), a("firestore-lite", "3.0.2-canary.0281e06de", "node");
5630
+ }), "PUBLIC" /* PUBLIC */)), a("firestore-lite", "3.0.2-canary.07b88e6e8", "node");
5631
5631
 
5632
5632
  export { mn as Bytes, sn as CollectionReference, on as DocumentReference, Qn as DocumentSnapshot, pn as FieldPath, yn as FieldValue, Ze as Firestore, B as FirestoreError, vn as GeoPoint, an as Query, Yn as QueryConstraint, zn as QueryDocumentSnapshot, Hn as QuerySnapshot, gt as Timestamp, jr as Transaction, Vr as WriteBatch, _r as addDoc, Ir as arrayRemove, Er as arrayUnion, un as collection, cn as collectionGroup, nn as connectFirestoreEmulator, br as deleteDoc, Sr as deleteField, fn as doc, dn as documentId, cr as endAt, ur as endBefore, yr as getDoc, vr as getDocs, en as getFirestore, Ar as increment, tn as initializeFirestore, nr as limit, rr as limitToLast, tr as orderBy, Xn as query, hn as queryEqual, ln as refEqual, Lr as runTransaction, Tr as serverTimestamp, gr as setDoc, v as setLogLevel, Kn as snapshotEqual, ar as startAfter, or as startAt, rn as terminate, wr as updateDoc, Jn as where, kr as writeBatch };
5633
5633
  //# sourceMappingURL=index.browser.esm5.js.map
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
15
15
 
16
16
  var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
17
17
 
18
- var version$1 = "3.0.2-canary.0281e06de";
18
+ var version$1 = "3.0.2-canary.07b88e6e8";
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
@@ -67,7 +67,7 @@ User.UNAUTHENTICATED = new User(null);
67
67
  User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
68
68
  User.FIRST_PARTY = new User('first-party-uid');
69
69
  User.MOCK_USER = new User('mock-user');
70
- var version = "9.0.2-canary.0281e06de";
70
+ var version = "9.0.2-canary.07b88e6e8";
71
71
  /**
72
72
  * @license
73
73
  * Copyright 2017 Google LLC
@@ -6,7 +6,7 @@ import { createMockUserToken, getModularInstance } from '@firebase/util';
6
6
  import nodeFetch from 'node-fetch';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "3.0.2-canary.0281e06de";
9
+ const version$1 = "3.0.2-canary.07b88e6e8";
10
10
 
11
11
  /**
12
12
  * @license
@@ -59,7 +59,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
59
59
  User.FIRST_PARTY = new User('first-party-uid');
60
60
  User.MOCK_USER = new User('mock-user');
61
61
 
62
- const version = "9.0.2-canary.0281e06de";
62
+ const version = "9.0.2-canary.07b88e6e8";
63
63
 
64
64
  /**
65
65
  * @license
@@ -66,7 +66,7 @@ l.MOCK_USER = new l("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let f = "9.0.2-canary.0281e06de";
69
+ let f = "9.0.2-canary.07b88e6e8";
70
70
 
71
71
  /**
72
72
  * @license
@@ -193,14 +193,14 @@ function p(t, ...n) {
193
193
  * given message if it did.
194
194
  *
195
195
  * Messages are stripped in production builds.
196
- */ function v(t, n) {
196
+ */ function b(t, n) {
197
197
  t || g();
198
198
  }
199
199
 
200
200
  /**
201
201
  * Casts `obj` to `T`. In non-production builds, verifies that `obj` is an
202
202
  * instance of `T` before casting.
203
- */ function b(t,
203
+ */ function v(t,
204
204
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
205
205
  n) {
206
206
  return t;
@@ -339,7 +339,7 @@ n) {
339
339
  }));
340
340
  }
341
341
  getToken() {
342
- return this.auth ? this.auth.getToken().then((t => t ? (v("string" == typeof t.accessToken),
342
+ return this.auth ? this.auth.getToken().then((t => t ? (b("string" == typeof t.accessToken),
343
343
  new k(t.accessToken, new l(this.auth.getUid()))) : null)) : Promise.resolve(null);
344
344
  }
345
345
  invalidateToken() {}
@@ -1349,7 +1349,7 @@ class yt {
1349
1349
  return n;
1350
1350
  }
1351
1351
 
1352
- function vt(t, n) {
1352
+ function bt(t, n) {
1353
1353
  for (const e in t) Object.prototype.hasOwnProperty.call(t, e) && n(e, t[e]);
1354
1354
  }
1355
1355
 
@@ -1379,7 +1379,7 @@ function vt(t, n) {
1379
1379
  * If foo is not an object, foo is replaced with an object
1380
1380
  * containing foo
1381
1381
  */
1382
- class bt {
1382
+ class vt {
1383
1383
  constructor(t) {
1384
1384
  this.fields = t,
1385
1385
  // TODO(dimond): validation of FieldMask
@@ -1530,13 +1530,13 @@ const Tt = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
1530
1530
  // The json interface (for the browser) will return an iso timestamp string,
1531
1531
  // while the proto js library (for node) will return a
1532
1532
  // google.protobuf.Timestamp instance.
1533
- if (v(!!t), "string" == typeof t) {
1533
+ if (b(!!t), "string" == typeof t) {
1534
1534
  // The date string can have higher precision (nanos) than the Date class
1535
1535
  // (millis), so we do some custom parsing here.
1536
1536
  // Parse the nanos right out of the string.
1537
1537
  let n = 0;
1538
1538
  const e = Tt.exec(t);
1539
- if (v(!!e), e[1]) {
1539
+ if (b(!!e), e[1]) {
1540
1540
  // Pad the fraction out to 9 digits (nanos).
1541
1541
  let t = e[1];
1542
1542
  t = (t + "000000000").substr(0, 9), n = Number(t);
@@ -1834,7 +1834,7 @@ function Ot(t, n) {
1834
1834
  fields: {}
1835
1835
  }
1836
1836
  };
1837
- return vt(t.mapValue.fields, ((t, e) => n.mapValue.fields[t] = kt(e))), n;
1837
+ return bt(t.mapValue.fields, ((t, e) => n.mapValue.fields[t] = kt(e))), n;
1838
1838
  }
1839
1839
  if (t.arrayValue) {
1840
1840
  const n = {
@@ -1949,7 +1949,7 @@ function Ot(t, n) {
1949
1949
  * Modifies `fieldsMap` by adding, replacing or deleting the specified
1950
1950
  * entries.
1951
1951
  */ applyChanges(t, n, e) {
1952
- vt(n, ((n, e) => t[n] = e));
1952
+ bt(n, ((n, e) => t[n] = e));
1953
1953
  for (const n of e) delete t[n];
1954
1954
  }
1955
1955
  clone() {
@@ -2333,7 +2333,7 @@ function hn(t) {
2333
2333
  * which can be different from the order by constraints the user provided (e.g.
2334
2334
  * the SDK and backend always orders by `__name__`).
2335
2335
  */ function ln(t) {
2336
- const n = b(t);
2336
+ const n = v(t);
2337
2337
  if (null === n.D) {
2338
2338
  n.D = [];
2339
2339
  const t = an(n), e = cn(n);
@@ -2358,7 +2358,7 @@ function hn(t) {
2358
2358
  /**
2359
2359
  * Converts this `Query` instance to it's corresponding `Target` representation.
2360
2360
  */ function fn(t) {
2361
- const n = b(t);
2361
+ const n = v(t);
2362
2362
  if (!n.$) if ("F" /* First */ === n.limitType) n.$ = zt(n.path, n.collectionGroup, ln(n), n.filters, n.limit, n.startAt, n.endAt); else {
2363
2363
  // Flip the orderBy directions since we want the last results
2364
2364
  const t = [];
@@ -2506,7 +2506,7 @@ function wn(t, n) {
2506
2506
  * See the License for the specific language governing permissions and
2507
2507
  * limitations under the License.
2508
2508
  */
2509
- /** A field path and the TransformOperation to perform upon it. */ class vn {
2509
+ /** A field path and the TransformOperation to perform upon it. */ class bn {
2510
2510
  constructor(t, n) {
2511
2511
  this.field = t, this.transform = n;
2512
2512
  }
@@ -2516,18 +2516,18 @@ function wn(t, n) {
2516
2516
  * Encodes a precondition for a mutation. This follows the model that the
2517
2517
  * backend accepts with the special case of an explicit "empty" precondition
2518
2518
  * (meaning no precondition).
2519
- */ class bn {
2519
+ */ class vn {
2520
2520
  constructor(t, n) {
2521
2521
  this.updateTime = t, this.exists = n;
2522
2522
  }
2523
2523
  /** Creates a new empty Precondition. */ static none() {
2524
- return new bn;
2524
+ return new vn;
2525
2525
  }
2526
2526
  /** Creates a new Precondition with an exists flag. */ static exists(t) {
2527
- return new bn(void 0, t);
2527
+ return new vn(void 0, t);
2528
2528
  }
2529
2529
  /** Creates a new Precondition based on a version a document exists at. */ static updateTime(t) {
2530
- return new bn(t);
2530
+ return new vn(t);
2531
2531
  }
2532
2532
  /** Returns whether this Precondition is empty. */ get isNone() {
2533
2533
  return void 0 === this.updateTime && void 0 === this.exists;
@@ -2721,7 +2721,7 @@ function Fn(t, n) {
2721
2721
  }
2722
2722
 
2723
2723
  function Sn(t) {
2724
- return v(!!t), _t.fromTimestamp(function(t) {
2724
+ return b(!!t), _t.fromTimestamp(function(t) {
2725
2725
  const n = At(t);
2726
2726
  return new yt(n.seconds, n.nanos);
2727
2727
  }(t));
@@ -2740,11 +2740,11 @@ function xn(t, n) {
2740
2740
  function On(t, n) {
2741
2741
  const e = function(t) {
2742
2742
  const n = K.fromString(t);
2743
- return v(Hn(n)), n;
2743
+ return b(Hn(n)), n;
2744
2744
  }(n);
2745
2745
  if (e.get(1) !== t.databaseId.projectId) throw new U(A, "Tried to deserialize key from different project: " + e.get(1) + " vs " + t.databaseId.projectId);
2746
2746
  if (e.get(3) !== t.databaseId.database) throw new U(A, "Tried to deserialize key from different database: " + e.get(3) + " vs " + t.databaseId.database);
2747
- return new X((v((r = e).length > 4 && "documents" === r.get(4)), r.popFirst(5)));
2747
+ return new X((b((r = e).length > 4 && "documents" === r.get(4)), r.popFirst(5)));
2748
2748
  var r;
2749
2749
  /** Creates a Document proto from key and fields (but no create/update time) */}
2750
2750
 
@@ -2765,7 +2765,7 @@ function Un(t, n, e) {
2765
2765
 
2766
2766
  function jn(t, n) {
2767
2767
  return "found" in n ? function(t, n) {
2768
- v(!!n.found), n.found.name, n.found.updateTime;
2768
+ b(!!n.found), n.found.name, n.found.updateTime;
2769
2769
  const e = On(t, n.found.name), r = Sn(n.found.updateTime), s = new Mt({
2770
2770
  mapValue: {
2771
2771
  fields: n.found.fields
@@ -2773,7 +2773,7 @@ function jn(t, n) {
2773
2773
  });
2774
2774
  return Bt.newFoundDocument(e, r, s);
2775
2775
  }(t, n) : "missing" in n ? function(t, n) {
2776
- v(!!n.missing), v(!!n.readTime);
2776
+ b(!!n.missing), b(!!n.readTime);
2777
2777
  const e = On(t, n.missing), r = Sn(n.readTime);
2778
2778
  return Bt.newNoDocument(e, r);
2779
2779
  }(t, n) : g();
@@ -3111,14 +3111,14 @@ class Jn extends class {} {
3111
3111
  // TODO(firestorexp): Make sure there is only one Datastore instance per
3112
3112
  // firestore-exp client.
3113
3113
  async function Zn(t, n) {
3114
- const e = b(t), r = Ln(e.S) + "/documents", s = {
3114
+ const e = v(t), r = Ln(e.S) + "/documents", s = {
3115
3115
  writes: n.map((t => kn(e.S, t)))
3116
3116
  };
3117
3117
  await e.l("Commit", r, s);
3118
3118
  }
3119
3119
 
3120
3120
  async function Xn(t, n) {
3121
- const e = b(t), r = Ln(e.S) + "/documents", s = {
3121
+ const e = v(t), r = Ln(e.S) + "/documents", s = {
3122
3122
  documents: n.map((t => xn(e.S, t)))
3123
3123
  }, i = await e.v("BatchGetDocuments", r, s), o = new Map;
3124
3124
  i.forEach((t => {
@@ -3128,12 +3128,12 @@ async function Xn(t, n) {
3128
3128
  const u = [];
3129
3129
  return n.forEach((t => {
3130
3130
  const n = o.get(t.toString());
3131
- v(!!n), u.push(n);
3131
+ b(!!n), u.push(n);
3132
3132
  })), u;
3133
3133
  }
3134
3134
 
3135
3135
  async function te(t, n) {
3136
- const e = b(t), r = Mn(e.S, fn(n));
3136
+ const e = v(t), r = Mn(e.S, fn(n));
3137
3137
  return (await e.v("RunQuery", r.parent, {
3138
3138
  structuredQuery: r.structuredQuery
3139
3139
  })).filter((t => !!t.document)).map((t => function(t, n, e) {
@@ -3300,7 +3300,7 @@ class re {
3300
3300
  case "gapi":
3301
3301
  const n = t.client;
3302
3302
  // Make sure this really is a Gapi client.
3303
- return v(!("object" != typeof n || null === n || !n.auth || !n.auth.getAuthHeaderValueForFirstParty)),
3303
+ return b(!("object" != typeof n || null === n || !n.auth || !n.auth.getAuthHeaderValueForFirstParty)),
3304
3304
  new W(n, t.sessionIndex || "0", t.iamToken || null);
3305
3305
 
3306
3306
  case "provider":
@@ -3761,7 +3761,7 @@ function we(t, n, ...e) {
3761
3761
  /**
3762
3762
  * Sentinel values that can be used when writing document fields with `set()`
3763
3763
  * or `update()`.
3764
- */ class ve {
3764
+ */ class be {
3765
3765
  /**
3766
3766
  * @param _methodName - The public API endpoint that returns this class.
3767
3767
  * @hideconstructor
@@ -3793,7 +3793,7 @@ function we(t, n, ...e) {
3793
3793
  *
3794
3794
  * Latitude values are in the range of [-90, 90].
3795
3795
  * Longitude values are in the range of [-180, 180].
3796
- */ class be {
3796
+ */ class ve {
3797
3797
  /**
3798
3798
  * Creates a new immutable `GeoPoint` object with the provided latitude and
3799
3799
  * longitude values.
@@ -3996,19 +3996,19 @@ function Ve(t) {
3996
3996
  Me("Data must be an object, but it was:", o, r);
3997
3997
  const u = je(r, o);
3998
3998
  let c, a;
3999
- if (i.merge) c = new bt(o.fieldMask), a = o.fieldTransforms; else if (i.mergeFields) {
3999
+ if (i.merge) c = new vt(o.fieldMask), a = o.fieldTransforms; else if (i.mergeFields) {
4000
4000
  const t = [];
4001
4001
  for (const r of i.mergeFields) {
4002
4002
  const s = Be(n, r, e);
4003
4003
  if (!o.contains(s)) throw new U(A, `Field '${s}' is specified in your field mask but missing from your input data.`);
4004
4004
  Ge(t, s) || t.push(s);
4005
4005
  }
4006
- c = new bt(t), a = o.fieldTransforms.filter((t => c.covers(t.field)));
4006
+ c = new vt(t), a = o.fieldTransforms.filter((t => c.covers(t.field)));
4007
4007
  } else c = null, a = o.fieldTransforms;
4008
4008
  return new Ie(new Mt(u), c, a);
4009
4009
  }
4010
4010
 
4011
- class De extends ve {
4011
+ class De extends be {
4012
4012
  _toFieldTransform(t) {
4013
4013
  if (2 /* MergeSet */ !== t.X) throw 1 /* Update */ === t.X ? t.ot(`${this._methodName}() can only appear at the top level of your update data`) : t.ot(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);
4014
4014
  // No transform to add for a delete, but we need to add it to our
@@ -4044,23 +4044,23 @@ class De extends ve {
4044
4044
  }, n.databaseId, n.S, n.ignoreUndefinedProperties);
4045
4045
  }
4046
4046
 
4047
- class Fe extends ve {
4047
+ class Fe extends be {
4048
4048
  _toFieldTransform(t) {
4049
- return new vn(t.path, new pn);
4049
+ return new bn(t.path, new pn);
4050
4050
  }
4051
4051
  isEqual(t) {
4052
4052
  return t instanceof Fe;
4053
4053
  }
4054
4054
  }
4055
4055
 
4056
- class Se extends ve {
4056
+ class Se extends be {
4057
4057
  constructor(t, n) {
4058
4058
  super(t), this.ht = n;
4059
4059
  }
4060
4060
  _toFieldTransform(t) {
4061
4061
  const n = $e(this, t,
4062
4062
  /*array=*/ !0), e = this.ht.map((t => Ue(t, n))), r = new yn(e);
4063
- return new vn(t.path, r);
4063
+ return new bn(t.path, r);
4064
4064
  }
4065
4065
  isEqual(t) {
4066
4066
  // TODO(mrschmidt): Implement isEquals
@@ -4068,14 +4068,14 @@ class Se extends ve {
4068
4068
  }
4069
4069
  }
4070
4070
 
4071
- class qe extends ve {
4071
+ class qe extends be {
4072
4072
  constructor(t, n) {
4073
4073
  super(t), this.ht = n;
4074
4074
  }
4075
4075
  _toFieldTransform(t) {
4076
4076
  const n = $e(this, t,
4077
4077
  /*array=*/ !0), e = this.ht.map((t => Ue(t, n))), r = new _n(e);
4078
- return new vn(t.path, r);
4078
+ return new bn(t.path, r);
4079
4079
  }
4080
4080
  isEqual(t) {
4081
4081
  // TODO(mrschmidt): Implement isEquals
@@ -4083,13 +4083,13 @@ class qe extends ve {
4083
4083
  }
4084
4084
  }
4085
4085
 
4086
- class xe extends ve {
4086
+ class xe extends be {
4087
4087
  constructor(t, n) {
4088
4088
  super(t), this.lt = n;
4089
4089
  }
4090
4090
  _toFieldTransform(t) {
4091
4091
  const n = new gn(t.S, wn(t.S, this.lt));
4092
- return new vn(t.path, n);
4092
+ return new bn(t.path, n);
4093
4093
  }
4094
4094
  isEqual(t) {
4095
4095
  // TODO(mrschmidt): Implement isEquals
@@ -4101,7 +4101,7 @@ class xe extends ve {
4101
4101
  const s = t.at(1 /* Update */ , n, e);
4102
4102
  Me("Data must be an object, but it was:", s, r);
4103
4103
  const i = [], o = Mt.empty();
4104
- vt(r, ((t, r) => {
4104
+ bt(r, ((t, r) => {
4105
4105
  const u = ze(n, t, e);
4106
4106
  // For Compat types, we have to "extract" the underlying types before
4107
4107
  // performing validation.
@@ -4114,7 +4114,7 @@ class xe extends ve {
4114
4114
  null != t && (i.push(u), o.set(u, t));
4115
4115
  }
4116
4116
  }));
4117
- const u = new bt(i);
4117
+ const u = new vt(i);
4118
4118
  return new Te(o, u, s.fieldTransforms);
4119
4119
  }
4120
4120
 
@@ -4139,7 +4139,7 @@ class xe extends ve {
4139
4139
  null != t && (a.push(n), l.set(n, t));
4140
4140
  }
4141
4141
  }
4142
- const f = new bt(a);
4142
+ const f = new vt(a);
4143
4143
  return new Te(l, f, o.fieldTransforms);
4144
4144
  }
4145
4145
 
@@ -4166,7 +4166,7 @@ class xe extends ve {
4166
4166
  // Unwrap the API type from the Compat SDK. This will return the API type
4167
4167
  // from firestore-exp.
4168
4168
  t = h(t))) return Me("Unsupported field value:", n, t), je(t, n);
4169
- if (t instanceof ve)
4169
+ if (t instanceof be)
4170
4170
  // FieldValues usually parse into transforms (except FieldValue.delete())
4171
4171
  // in which case we do not want to include this field in our parsed data
4172
4172
  // (as doing so will overwrite the field directly prior to the transform
@@ -4249,7 +4249,7 @@ class xe extends ve {
4249
4249
  timestampValue: Dn(n.S, e)
4250
4250
  };
4251
4251
  }
4252
- if (t instanceof be) return {
4252
+ if (t instanceof ve) return {
4253
4253
  geoPointValue: {
4254
4254
  latitude: t.latitude,
4255
4255
  longitude: t.longitude
@@ -4281,7 +4281,7 @@ function je(t, n) {
4281
4281
  return !function(t) {
4282
4282
  for (const n in t) if (Object.prototype.hasOwnProperty.call(t, n)) return !1;
4283
4283
  return !0;
4284
- }(t) ? vt(t, ((t, r) => {
4284
+ }(t) ? bt(t, ((t, r) => {
4285
4285
  const s = Ue(r, n.nt(t));
4286
4286
  null != s && (e[t] = s);
4287
4287
  })) :
@@ -4295,7 +4295,7 @@ function je(t, n) {
4295
4295
  }
4296
4296
 
4297
4297
  function ke(t) {
4298
- return !("object" != typeof t || null === t || t instanceof Array || t instanceof Date || t instanceof yt || t instanceof be || t instanceof ge || t instanceof ae || t instanceof ve);
4298
+ return !("object" != typeof t || null === t || t instanceof Array || t instanceof Date || t instanceof yt || t instanceof ve || t instanceof ge || t instanceof ae || t instanceof be);
4299
4299
  }
4300
4300
 
4301
4301
  function Me(t, n, e) {
@@ -4729,10 +4729,10 @@ class ir extends Xe {
4729
4729
 
4730
4730
  class cr extends Xe {
4731
4731
  constructor(t, n, e) {
4732
- super(), this.type = t, this.vt = n, this.bt = e;
4732
+ super(), this.type = t, this.bt = n, this.vt = e;
4733
4733
  }
4734
4734
  _apply(t) {
4735
- const n = wr(t, this.type, this.vt, this.bt);
4735
+ const n = wr(t, this.type, this.bt, this.vt);
4736
4736
  return new he(t.firestore, t.converter, function(t, n) {
4737
4737
  return new on(t.path, t.collectionGroup, t.explicitOrderBy.slice(), t.filters.slice(), t.limit, t.limitType, n, t.endAt);
4738
4738
  }(t._query, n));
@@ -4750,10 +4750,10 @@ function hr(...t) {
4750
4750
 
4751
4751
  class lr extends Xe {
4752
4752
  constructor(t, n, e) {
4753
- super(), this.type = t, this.vt = n, this.bt = e;
4753
+ super(), this.type = t, this.bt = n, this.vt = e;
4754
4754
  }
4755
4755
  _apply(t) {
4756
- const n = wr(t, this.type, this.vt, this.bt);
4756
+ const n = wr(t, this.type, this.bt, this.vt);
4757
4757
  return new he(t.firestore, t.converter, function(t, n) {
4758
4758
  return new on(t.path, t.collectionGroup, t.explicitOrderBy.slice(), t.filters.slice(), t.limit, t.limitType, t.startAt, n);
4759
4759
  }(t._query, n));
@@ -4946,12 +4946,12 @@ class gr extends class {
4946
4946
  }
4947
4947
  convertObject(t, n) {
4948
4948
  const e = {};
4949
- return vt(t.fields, ((t, r) => {
4949
+ return bt(t.fields, ((t, r) => {
4950
4950
  e[t] = this.convertValue(r, n);
4951
4951
  })), e;
4952
4952
  }
4953
4953
  convertGeoPoint(t) {
4954
- return new be(Pt(t.latitude), Pt(t.longitude));
4954
+ return new ve(Pt(t.latitude), Pt(t.longitude));
4955
4955
  }
4956
4956
  convertArray(t, n) {
4957
4957
  return (t.values || []).map((t => this.convertValue(t, n)));
@@ -4975,7 +4975,7 @@ class gr extends class {
4975
4975
  }
4976
4976
  convertDocumentKey(t, n) {
4977
4977
  const e = K.fromString(t);
4978
- v(Hn(e));
4978
+ b(Hn(e));
4979
4979
  const r = new H(e.get(1), e.get(3)), s = new X(e.popFirst(5));
4980
4980
  return r.isEqual(n) ||
4981
4981
  // TODO(b/64130202): Somehow support foreign references.
@@ -5007,10 +5007,10 @@ class gr extends class {
5007
5007
  * @param reference - The reference of the document to fetch.
5008
5008
  * @returns A Promise resolved with a `DocumentSnapshot` containing the current
5009
5009
  * document contents.
5010
- */ function vr(t) {
5010
+ */ function br(t) {
5011
5011
  const n = ee((t = st(t, ae)).firestore), e = new gr(t.firestore);
5012
5012
  return Xn(n, [ t._key ]).then((n => {
5013
- v(1 === n.length);
5013
+ b(1 === n.length);
5014
5014
  const r = n[0];
5015
5015
  return new He(t.firestore, e, t._key, r.isFoundDocument() ? r : null, t.converter);
5016
5016
  }));
@@ -5027,7 +5027,7 @@ class gr extends class {
5027
5027
  *
5028
5028
  * @param query - The `Query` to execute.
5029
5029
  * @returns A Promise that will be resolved with the results of the query.
5030
- */ function br(t) {
5030
+ */ function vr(t) {
5031
5031
  !function(t) {
5032
5032
  if (un(t) && 0 === t.explicitOrderBy.length) throw new U(x, "limitToLast() queries require specifying at least one orderBy() clause");
5033
5033
  }((t = st(t, he))._query);
@@ -5044,7 +5044,7 @@ class gr extends class {
5044
5044
 
5045
5045
  function Er(t, n, e) {
5046
5046
  const r = _r((t = st(t, ae)).converter, n, e), s = Ne(Ve(t.firestore), "setDoc", t._key, r, null !== t.converter, e);
5047
- return Zn(ee(t.firestore), [ s.toMutation(t._key, bn.none()) ]);
5047
+ return Zn(ee(t.firestore), [ s.toMutation(t._key, vn.none()) ]);
5048
5048
  }
5049
5049
 
5050
5050
  function Ir(t, n, e, ...r) {
@@ -5053,7 +5053,7 @@ function Ir(t, n, e, ...r) {
5053
5053
  // performing validation.
5054
5054
  let i;
5055
5055
  i = "string" == typeof (n = h(n)) || n instanceof ye ? Ce(s, "updateDoc", t._key, n, e, r) : Oe(s, "updateDoc", t._key, n);
5056
- return Zn(ee(t.firestore), [ i.toMutation(t._key, bn.exists(!0)) ]);
5056
+ return Zn(ee(t.firestore), [ i.toMutation(t._key, vn.exists(!0)) ]);
5057
5057
  }
5058
5058
 
5059
5059
  /**
@@ -5068,7 +5068,7 @@ function Ir(t, n, e, ...r) {
5068
5068
  * @returns A `Promise` resolved once the document has been successfully
5069
5069
  * deleted from the backend.
5070
5070
  */ function Tr(t) {
5071
- return Zn(ee((t = st(t, ae)).firestore), [ new An(t._key, bn.none()) ]);
5071
+ return Zn(ee((t = st(t, ae)).firestore), [ new An(t._key, vn.none()) ]);
5072
5072
  }
5073
5073
 
5074
5074
  /**
@@ -5086,7 +5086,7 @@ function Ir(t, n, e, ...r) {
5086
5086
  * newly created document after it has been written to the backend.
5087
5087
  */ function Ar(t, n) {
5088
5088
  const e = we(t = st(t, le)), r = _r(t.converter, n), s = Ne(Ve(t.firestore), "addDoc", e._key, r, null !== e.converter, {});
5089
- return Zn(ee(t.firestore), [ s.toMutation(e._key, bn.exists(!1)) ]).then((() => e));
5089
+ return Zn(ee(t.firestore), [ s.toMutation(e._key, vn.exists(!1)) ]).then((() => e));
5090
5090
  }
5091
5091
 
5092
5092
  /**
@@ -5206,7 +5206,7 @@ function Ir(t, n, e, ...r) {
5206
5206
  set(t, n, e) {
5207
5207
  this._verifyNotCommitted();
5208
5208
  const r = Fr(t, this._firestore), s = _r(r.converter, n, e), i = Ne(this._dataReader, "WriteBatch.set", r._key, s, null !== r.converter, e);
5209
- return this._mutations.push(i.toMutation(r._key, bn.none())), this;
5209
+ return this._mutations.push(i.toMutation(r._key, vn.none())), this;
5210
5210
  }
5211
5211
  update(t, n, e, ...r) {
5212
5212
  this._verifyNotCommitted();
@@ -5215,7 +5215,7 @@ function Ir(t, n, e, ...r) {
5215
5215
  // performing validation.
5216
5216
  let i;
5217
5217
  return i = "string" == typeof (n = h(n)) || n instanceof ye ? Ce(this._dataReader, "WriteBatch.update", s._key, n, e, r) : Oe(this._dataReader, "WriteBatch.update", s._key, n),
5218
- this._mutations.push(i.toMutation(s._key, bn.exists(!0))), this;
5218
+ this._mutations.push(i.toMutation(s._key, vn.exists(!0))), this;
5219
5219
  }
5220
5220
  /**
5221
5221
  * Deletes the document referred to by the provided {@link DocumentReference}.
@@ -5225,7 +5225,7 @@ function Ir(t, n, e, ...r) {
5225
5225
  */ delete(t) {
5226
5226
  this._verifyNotCommitted();
5227
5227
  const n = Fr(t, this._firestore);
5228
- return this._mutations = this._mutations.concat(new An(n._key, bn.none())), this;
5228
+ return this._mutations = this._mutations.concat(new An(n._key, vn.none())), this;
5229
5229
  }
5230
5230
  /**
5231
5231
  * Commits all of the writes in this write batch as a single atomic unit.
@@ -5357,7 +5357,7 @@ function Fr(t, n) {
5357
5357
  * as a precondition, or no precondition if it was not read.
5358
5358
  */ precondition(t) {
5359
5359
  const n = this.readVersions.get(t.toString());
5360
- return !this.writtenDocs.has(t.toString()) && n ? bn.updateTime(n) : bn.none();
5360
+ return !this.writtenDocs.has(t.toString()) && n ? vn.updateTime(n) : vn.none();
5361
5361
  }
5362
5362
  /**
5363
5363
  * Returns the precondition for a document if the operation is an update.
@@ -5378,11 +5378,11 @@ function Fr(t, n) {
5378
5378
  // transaction.
5379
5379
  throw new U(A, "Can't update a document that doesn't exist.");
5380
5380
  // Document exists, base precondition on document update time.
5381
- return bn.updateTime(n);
5381
+ return vn.updateTime(n);
5382
5382
  }
5383
5383
  // Document was not read, so we just use the preconditions for a blind
5384
5384
  // update.
5385
- return bn.exists(!0);
5385
+ return vn.exists(!0);
5386
5386
  }
5387
5387
  write(t) {
5388
5388
  this.ensureCommitNotCalled(), this.mutations.push(t);
@@ -5930,7 +5930,7 @@ class Ur {
5930
5930
  }(`${s}_lite`), e(new i("firestore/lite", ((t, {options: n}) => {
5931
5931
  const e = t.getProvider("app").getImmediate(), r = new se(e, new Q(t.getProvider("auth-internal")));
5932
5932
  return n && r._setSettings(n), r;
5933
- }), "PUBLIC" /* PUBLIC */)), r("firestore-lite", "3.0.2-canary.0281e06de", "node");
5933
+ }), "PUBLIC" /* PUBLIC */)), r("firestore-lite", "3.0.2-canary.07b88e6e8", "node");
5934
5934
 
5935
- export { ge as Bytes, le as CollectionReference, ae as DocumentReference, He as DocumentSnapshot, ye as FieldPath, ve as FieldValue, se as Firestore, U as FirestoreError, be as GeoPoint, he as Query, Xe as QueryConstraint, Ye as QueryDocumentSnapshot, Ke as QuerySnapshot, yt as Timestamp, Ur as Transaction, $r as WriteBatch, Ar as addDoc, Nr as arrayRemove, Vr as arrayUnion, fe as collection, de as collectionGroup, ue as connectFirestoreEmulator, Tr as deleteDoc, Pr as deleteField, we as doc, _e as documentId, dr as endAt, fr as endBefore, vr as getDoc, br as getDocs, oe as getFirestore, Dr as increment, ie as initializeFirestore, or as limit, ur as limitToLast, sr as orderBy, tr as query, pe as queryEqual, me as refEqual, jr as runTransaction, Rr as serverTimestamp, Er as setDoc, w as setLogLevel, Je as snapshotEqual, hr as startAfter, ar as startAt, ce as terminate, Ir as updateDoc, er as where, Sr as writeBatch };
5935
+ export { ge as Bytes, le as CollectionReference, ae as DocumentReference, He as DocumentSnapshot, ye as FieldPath, be as FieldValue, se as Firestore, U as FirestoreError, ve as GeoPoint, he as Query, Xe as QueryConstraint, Ye as QueryDocumentSnapshot, Ke as QuerySnapshot, yt as Timestamp, Ur as Transaction, $r as WriteBatch, Ar as addDoc, Nr as arrayRemove, Vr as arrayUnion, fe as collection, de as collectionGroup, ue as connectFirestoreEmulator, Tr as deleteDoc, Pr as deleteField, we as doc, _e as documentId, dr as endAt, fr as endBefore, br as getDoc, vr as getDocs, oe as getFirestore, Dr as increment, ie as initializeFirestore, or as limit, ur as limitToLast, sr as orderBy, tr as query, pe as queryEqual, me as refEqual, jr as runTransaction, Rr as serverTimestamp, Er as setDoc, w as setLogLevel, Je as snapshotEqual, hr as startAfter, ar as startAt, ce as terminate, Ir as updateDoc, er as where, Sr as writeBatch };
5936
5936
  //# sourceMappingURL=index.rn.esm2017.js.map
@@ -30,15 +30,6 @@ export interface PersistenceProvider {
30
30
  enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
31
31
  clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
32
32
  }
33
- /**
34
- * The persistence provider included with the memory-only SDK. This provider
35
- * errors for all attempts to access persistence.
36
- */
37
- export declare class MemoryPersistenceProvider implements PersistenceProvider {
38
- enableIndexedDbPersistence(firestore: Firestore, forceOwnership: boolean): Promise<void>;
39
- enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
40
- clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
41
- }
42
33
  /**
43
34
  * The persistence provider included with the full Firestore SDK.
44
35
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
18
18
  import { Provider } from '@firebase/component';
19
- import { Firestore as FirestoreCompat } from './api/database';
19
+ import { Firestore as FirestoreCompat, PersistenceProvider } from './api/database';
20
20
  export { CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from './api/database';
21
21
  export { Blob } from './api/blob';
22
22
  export { GeoPoint } from './api/geo_point';
@@ -27,6 +27,15 @@ export interface FirestoreDatabase {
27
27
  projectId: string;
28
28
  database?: string;
29
29
  }
30
+ /**
31
+ * The persistence provider included with the memory-only SDK. This provider
32
+ * errors for all attempts to access persistence.
33
+ */
34
+ export declare class MemoryPersistenceProvider implements PersistenceProvider {
35
+ enableIndexedDbPersistence(firestore: FirestoreCompat, forceOwnership: boolean): Promise<void>;
36
+ enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
37
+ clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
38
+ }
30
39
  /** Firestore class that exposes the constructor expected by the Console. */
31
40
  export declare class Firestore extends FirestoreCompat {
32
41
  constructor(firestoreDatabase: FirestoreDatabase, authProvider: Provider<FirebaseAuthInternalName>);
@@ -30,15 +30,6 @@ export interface PersistenceProvider {
30
30
  enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
31
31
  clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
32
32
  }
33
- /**
34
- * The persistence provider included with the memory-only SDK. This provider
35
- * errors for all attempts to access persistence.
36
- */
37
- export declare class MemoryPersistenceProvider implements PersistenceProvider {
38
- enableIndexedDbPersistence(firestore: Firestore, forceOwnership: boolean): Promise<void>;
39
- enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
40
- clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
41
- }
42
33
  /**
43
34
  * The persistence provider included with the full Firestore SDK.
44
35
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
18
18
  import { Provider } from '@firebase/component';
19
- import { Firestore as FirestoreCompat } from './api/database';
19
+ import { Firestore as FirestoreCompat, PersistenceProvider } from './api/database';
20
20
  export { CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from './api/database';
21
21
  export { Blob } from './api/blob';
22
22
  export { GeoPoint } from './api/geo_point';
@@ -27,6 +27,15 @@ export interface FirestoreDatabase {
27
27
  projectId: string;
28
28
  database?: string;
29
29
  }
30
+ /**
31
+ * The persistence provider included with the memory-only SDK. This provider
32
+ * errors for all attempts to access persistence.
33
+ */
34
+ export declare class MemoryPersistenceProvider implements PersistenceProvider {
35
+ enableIndexedDbPersistence(firestore: FirestoreCompat, forceOwnership: boolean): Promise<void>;
36
+ enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
37
+ clearIndexedDbPersistence(firestore: Firestore): Promise<void>;
38
+ }
30
39
  /** Firestore class that exposes the constructor expected by the Console. */
31
40
  export declare class Firestore extends FirestoreCompat {
32
41
  constructor(firestoreDatabase: FirestoreDatabase, authProvider: Provider<FirebaseAuthInternalName>);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/firestore",
3
- "version": "3.0.2-canary.0281e06de",
3
+ "version": "3.0.2-canary.07b88e6e8",
4
4
  "engines": {
5
5
  "node": "^8.13.0 || >=10.10.0"
6
6
  },
@@ -69,22 +69,22 @@
69
69
  "lite/package.json"
70
70
  ],
71
71
  "dependencies": {
72
- "@firebase/component": "0.5.6-canary.0281e06de",
73
- "@firebase/logger": "0.2.6-canary.0281e06de",
74
- "@firebase/util": "1.3.0-canary.0281e06de",
75
- "@firebase/webchannel-wrapper": "0.5.1-canary.0281e06de",
72
+ "@firebase/component": "0.5.6-canary.07b88e6e8",
73
+ "@firebase/logger": "0.2.6-canary.07b88e6e8",
74
+ "@firebase/util": "1.3.0-canary.07b88e6e8",
75
+ "@firebase/webchannel-wrapper": "0.5.1-canary.07b88e6e8",
76
76
  "@grpc/grpc-js": "^1.3.2",
77
77
  "@grpc/proto-loader": "^0.6.0",
78
78
  "node-fetch": "2.6.2",
79
79
  "tslib": "^2.1.0"
80
80
  },
81
81
  "peerDependencies": {
82
- "@firebase/app": "0.7.0-canary.0281e06de"
82
+ "@firebase/app": "0.7.0-canary.07b88e6e8"
83
83
  },
84
84
  "devDependencies": {
85
- "@firebase/app": "0.7.0-canary.0281e06de",
86
- "@firebase/app-compat": "0.1.1-canary.0281e06de",
87
- "@firebase/auth": "0.17.2-canary.0281e06de",
85
+ "@firebase/app": "0.7.0-canary.07b88e6e8",
86
+ "@firebase/app-compat": "0.1.1-canary.07b88e6e8",
87
+ "@firebase/auth": "0.17.2-canary.07b88e6e8",
88
88
  "@rollup/plugin-alias": "3.1.5",
89
89
  "@rollup/plugin-json": "4.1.0",
90
90
  "@types/eslint": "7.28.0",