@firebase/firestore 4.1.3-canary.74fc4cf9c → 4.1.3-canary.c5b9b1fb1

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/index.cjs.js CHANGED
@@ -70,7 +70,7 @@ User.MOCK_USER = new User("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let S = "10.3.1-canary.74fc4cf9c";
73
+ let S = "10.3.1-canary.c5b9b1fb1";
74
74
 
75
75
  /**
76
76
  * @license
@@ -21826,9 +21826,9 @@ let Se = null;
21826
21826
  return r = Object.assign({
21827
21827
  useFetchStreams: t
21828
21828
  }, r), s._setSettings(r), s;
21829
- }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(w, "4.1.3-canary.74fc4cf9c", e),
21829
+ }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(w, "4.1.3-canary.c5b9b1fb1", e),
21830
21830
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21831
- app.registerVersion(w, "4.1.3-canary.74fc4cf9c", "cjs2017");
21831
+ app.registerVersion(w, "4.1.3-canary.c5b9b1fb1", "cjs2017");
21832
21832
  }();
21833
21833
 
21834
21834
  exports.AbstractUserDataWriter = AbstractUserDataWriter;
@@ -66,7 +66,7 @@ User.MOCK_USER = new User("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let S = "10.3.1-canary.74fc4cf9c";
69
+ let S = "10.3.1-canary.c5b9b1fb1";
70
70
 
71
71
  /**
72
72
  * @license
@@ -21822,9 +21822,9 @@ let Se = null;
21822
21822
  return r = Object.assign({
21823
21823
  useFetchStreams: t
21824
21824
  }, r), s._setSettings(r), s;
21825
- }), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.1.3-canary.74fc4cf9c", e),
21825
+ }), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.1.3-canary.c5b9b1fb1", e),
21826
21826
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21827
- registerVersion(w, "4.1.3-canary.74fc4cf9c", "esm2017");
21827
+ registerVersion(w, "4.1.3-canary.c5b9b1fb1", "esm2017");
21828
21828
  }();
21829
21829
 
21830
21830
  export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, fe as CACHE_SIZE_UNLIMITED, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, LoadBundleTask, PersistentCacheIndexManager, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, SnapshotMetadata, Timestamp, Transaction, WriteBatch, ByteString as _ByteString, DatabaseId as _DatabaseId, DocumentKey as _DocumentKey, __PRIVATE_EmptyAppCheckTokenProvider as _EmptyAppCheckTokenProvider, __PRIVATE_EmptyAuthCredentialsProvider as _EmptyAuthCredentialsProvider, FieldPath$1 as _FieldPath, TestingHooks as _TestingHooks, __PRIVATE_cast as _cast, __PRIVATE_debugAssert as _debugAssert, __PRIVATE_isBase64Available as _isBase64Available, __PRIVATE_logWarn as _logWarn, __PRIVATE_validateIsNotUsedTogether as _validateIsNotUsedTogether, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, clearIndexedDbPersistence, collection, collectionGroup, connectFirestoreEmulator, count, deleteAllPersistentCacheIndexes, deleteDoc, deleteField, disableNetwork, disablePersistentCacheIndexAutoCreation, doc, documentId, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, enablePersistentCacheIndexAutoCreation, endAt, endBefore, ensureFirestoreConfigured, executeWrite, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, getPersistentCacheIndexManager, increment, initializeFirestore, limit, limitToLast, loadBundle, memoryEagerGarbageCollector, memoryLocalCache, memoryLruGarbageCollector, namedQuery, onSnapshot, onSnapshotsInSync, or, orderBy, persistentLocalCache, persistentMultipleTabManager, persistentSingleTabManager, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setIndexConfiguration, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, waitForPendingWrites, where, writeBatch };
@@ -70,7 +70,7 @@ k.MOCK_USER = new k("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- var P = "10.3.1-canary.74fc4cf9c", O = new l("@firebase/firestore");
73
+ var P = "10.3.1-canary.c5b9b1fb1", O = new l("@firebase/firestore");
74
74
 
75
75
  /**
76
76
  * @license
@@ -22457,9 +22457,9 @@ function Gf(t, r) {
22457
22457
  return r = Object.assign({
22458
22458
  useFetchStreams: jf
22459
22459
  }, r), o._setSettings(r), o;
22460
- }), "PUBLIC").setMultipleInstances(!0)), a(A, "4.1.3-canary.74fc4cf9c", Kf),
22460
+ }), "PUBLIC").setMultipleInstances(!0)), a(A, "4.1.3-canary.c5b9b1fb1", Kf),
22461
22461
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
22462
- a(A, "4.1.3-canary.74fc4cf9c", "esm5");
22462
+ a(A, "4.1.3-canary.c5b9b1fb1", "esm5");
22463
22463
 
22464
22464
  export { Fh as AbstractUserDataWriter, Cl as AggregateField, Dl as AggregateQuerySnapshot, Nl as Bytes, ll as CACHE_SIZE_UNLIMITED, el as CollectionReference, tl as DocumentReference, Kh as DocumentSnapshot, Al as FieldPath, Pl as FieldValue, hl as Firestore, j as FirestoreError, Ol as GeoPoint, cl as LoadBundleTask, Lf as PersistentCacheIndexManager, $c as Query, vh as QueryCompositeFilterConstraint, hh as QueryConstraint, jh as QueryDocumentSnapshot, xh as QueryEndAtConstraint, dh as QueryFieldFilterConstraint, bh as QueryLimitConstraint, gh as QueryOrderByConstraint, Qh as QuerySnapshot, Eh as QueryStartAtConstraint, Gh as SnapshotMetadata, ut as Timestamp, Df as Transaction, xf as WriteBatch, ke as _ByteString, Ue as _DatabaseId, dt as _DocumentKey, et as _EmptyAppCheckTokenProvider, H as _EmptyAuthCredentialsProvider, ft as _FieldPath, Wf as _TestingHooks, Hc as _cast, z as _debugAssert, Ae as _isBase64Available, L as _logWarn, Kc as _validateIsNotUsedTogether, af as addDoc, Bh as aggregateFieldEqual, zh as aggregateQuerySnapshotEqual, yh as and, Of as arrayRemove, Pf as arrayUnion, qh as average, wl as clearIndexedDbPersistence, nl as collection, rl as collectionGroup, Zc as connectFirestoreEmulator, Uh as count, zf as deleteAllPersistentCacheIndexes, of as deleteDoc, Af as deleteField, _l as disableNetwork, Bf as disablePersistentCacheIndexAutoCreation, il as doc, kl as documentId, ml as enableIndexedDbPersistence, yl as enableMultiTabIndexedDbPersistence, Il as enableNetwork, Uf as enablePersistentCacheIndexAutoCreation, Dh as endAt, Ch as endBefore, pl as ensureFirestoreConfigured, cf as executeWrite, ff as getAggregateFromServer, hf as getCountFromServer, Yh as getDoc, Jh as getDocFromCache, Zh as getDocFromServer, $h as getDocs, tf as getDocsFromCache, ef as getDocsFromServer, dl as getFirestore, qf as getPersistentCacheIndexManager, Rf as increment, fl as initializeFirestore, Ih as limit, _h as limitToLast, Tl as loadBundle, yf as memoryEagerGarbageCollector, wf as memoryLocalCache, gf as memoryLruGarbageCollector, Sl as namedQuery, uf as onSnapshot, sf as onSnapshotsInSync, mh as or, wh as orderBy, bf as persistentLocalCache, Tf as persistentMultipleTabManager, Ef as persistentSingleTabManager, fh as query, al as queryEqual, ol as refEqual, Nf as runTransaction, kf as serverTimestamp, nf as setDoc, Mf as setIndexConfiguration, F as setLogLevel, Hh as snapshotEqual, Sh as startAfter, Th as startAt, Lh as sum, El as terminate, rf as updateDoc, bl as waitForPendingWrites, ph as where, Ff as writeBatch };
22465
22465
  //# sourceMappingURL=index.esm5.js.map
@@ -34,7 +34,7 @@ var grpc__namespace = /*#__PURE__*/_interopNamespace(grpc);
34
34
  var protoLoader__namespace = /*#__PURE__*/_interopNamespace(protoLoader);
35
35
 
36
36
  const name = "@firebase/firestore";
37
- const version$1 = "4.1.3-canary.74fc4cf9c";
37
+ const version$1 = "4.1.3-canary.c5b9b1fb1";
38
38
 
39
39
  /**
40
40
  * @license
@@ -87,7 +87,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
87
87
  User.FIRST_PARTY = new User('first-party-uid');
88
88
  User.MOCK_USER = new User('mock-user');
89
89
 
90
- const version = "10.3.1-canary.74fc4cf9c";
90
+ const version = "10.3.1-canary.c5b9b1fb1";
91
91
 
92
92
  /**
93
93
  * @license
@@ -9,7 +9,7 @@ import * as grpc from '@grpc/grpc-js';
9
9
  import * as protoLoader from '@grpc/proto-loader';
10
10
 
11
11
  const name = "@firebase/firestore";
12
- const version$1 = "4.1.3-canary.74fc4cf9c";
12
+ const version$1 = "4.1.3-canary.c5b9b1fb1";
13
13
 
14
14
  /**
15
15
  * @license
@@ -62,7 +62,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
62
62
  User.FIRST_PARTY = new User('first-party-uid');
63
63
  User.MOCK_USER = new User('mock-user');
64
64
 
65
- const version = "10.3.1-canary.74fc4cf9c";
65
+ const version = "10.3.1-canary.c5b9b1fb1";
66
66
 
67
67
  /**
68
68
  * @license
package/dist/index.rn.js CHANGED
@@ -70,7 +70,7 @@ User.MOCK_USER = new User("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let D = "10.3.1-canary.74fc4cf9c";
73
+ let D = "10.3.1-canary.c5b9b1fb1";
74
74
 
75
75
  /**
76
76
  * @license
@@ -21844,9 +21844,9 @@ let De = null;
21844
21844
  return r = Object.assign({
21845
21845
  useFetchStreams: t
21846
21846
  }, r), s._setSettings(r), s;
21847
- }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.1.3-canary.74fc4cf9c", e),
21847
+ }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.1.3-canary.c5b9b1fb1", e),
21848
21848
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21849
- r(b, "4.1.3-canary.74fc4cf9c", "esm2017");
21849
+ r(b, "4.1.3-canary.c5b9b1fb1", "esm2017");
21850
21850
  }("rn", /* useFetchStreams= */ !1);
21851
21851
 
21852
21852
  export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, pe as CACHE_SIZE_UNLIMITED, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, LoadBundleTask, PersistentCacheIndexManager, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, SnapshotMetadata, Timestamp, Transaction, WriteBatch, ByteString as _ByteString, DatabaseId as _DatabaseId, DocumentKey as _DocumentKey, __PRIVATE_EmptyAppCheckTokenProvider as _EmptyAppCheckTokenProvider, __PRIVATE_EmptyAuthCredentialsProvider as _EmptyAuthCredentialsProvider, FieldPath$1 as _FieldPath, TestingHooks as _TestingHooks, __PRIVATE_cast as _cast, __PRIVATE_debugAssert as _debugAssert, __PRIVATE_isBase64Available as _isBase64Available, __PRIVATE_logWarn as _logWarn, __PRIVATE_validateIsNotUsedTogether as _validateIsNotUsedTogether, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, clearIndexedDbPersistence, collection, collectionGroup, connectFirestoreEmulator, count, deleteAllPersistentCacheIndexes, deleteDoc, deleteField, disableNetwork, disablePersistentCacheIndexAutoCreation, doc, documentId, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, enablePersistentCacheIndexAutoCreation, endAt, endBefore, ensureFirestoreConfigured, executeWrite, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, getPersistentCacheIndexManager, increment, initializeFirestore, limit, limitToLast, loadBundle, memoryEagerGarbageCollector, memoryLocalCache, memoryLruGarbageCollector, namedQuery, onSnapshot, onSnapshotsInSync, or, orderBy, persistentLocalCache, persistentMultipleTabManager, persistentSingleTabManager, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setIndexConfiguration, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, waitForPendingWrites, where, writeBatch };
@@ -63,7 +63,7 @@ User.MOCK_USER = new User("mock-user");
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
65
  */
66
- let d = "10.3.1-canary.74fc4cf9c";
66
+ let d = "10.3.1-canary.c5b9b1fb1";
67
67
 
68
68
  /**
69
69
  * @license
@@ -7230,7 +7230,7 @@ class Transaction {
7230
7230
  return r && i._setSettings(r), i;
7231
7231
  }), "PUBLIC").setMultipleInstances(!0)),
7232
7232
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
7233
- registerVersion("firestore-lite", "4.1.3-canary.74fc4cf9c", ""), registerVersion("firestore-lite", "4.1.3-canary.74fc4cf9c", "esm2017");
7233
+ registerVersion("firestore-lite", "4.1.3-canary.c5b9b1fb1", ""), registerVersion("firestore-lite", "4.1.3-canary.c5b9b1fb1", "esm2017");
7234
7234
  }();
7235
7235
 
7236
7236
  export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
@@ -67,7 +67,7 @@ v.MOCK_USER = new v("mock-user");
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
- var g = "10.3.1-canary.74fc4cf9c", w = new l("@firebase/firestore");
70
+ var g = "10.3.1-canary.c5b9b1fb1", w = new l("@firebase/firestore");
71
71
 
72
72
  /**
73
73
  * @license
@@ -98,11 +98,11 @@ var g = "10.3.1-canary.74fc4cf9c", w = new l("@firebase/firestore");
98
98
  * <li><code>`silent` to turn off logging.</li>
99
99
  * </ul>
100
100
  */
101
- function _(t) {
101
+ function b(t) {
102
102
  w.setLogLevel(t);
103
103
  }
104
104
 
105
- function b(t) {
105
+ function _(t) {
106
106
  for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
107
107
  if (w.logLevel <= f.DEBUG) {
108
108
  var i = e.map(S);
@@ -995,13 +995,13 @@ var wt = /** @class */ function(r) {
995
995
  }), t.prototype.R = function(t, e, n, r, i) {
996
996
  var o = (null === ht ? ht = 268435456 + Math.round(2147483648 * Math.random()) : ht++,
997
997
  "0x" + ht.toString(16)), a = this.I(t, e);
998
- b("RestConnection", "Sending RPC '".concat(t, "' ").concat(o, ":"), a, n);
998
+ _("RestConnection", "Sending RPC '".concat(t, "' ").concat(o, ":"), a, n);
999
999
  var u = {
1000
1000
  "google-cloud-resource-prefix": this.A,
1001
1001
  "x-goog-request-params": this.T
1002
1002
  };
1003
1003
  return this.V(u, r, i), this.p(t, a, u, n).then((function(e) {
1004
- return b("RestConnection", "Received RPC '".concat(t, "' ").concat(o, ": "), e),
1004
+ return _("RestConnection", "Received RPC '".concat(t, "' ").concat(o, ": "), e),
1005
1005
  e;
1006
1006
  }), (function(e) {
1007
1007
  throw E("RestConnection", "RPC '".concat(t, "' ").concat(o, " failed with error: "), e, "url: ", a, "request:", n),
@@ -1032,7 +1032,7 @@ var wt = /** @class */ function(r) {
1032
1032
  var n = vt[t];
1033
1033
  return "".concat(this.m, "/v1/").concat(e, ":").concat(n);
1034
1034
  }, t;
1035
- }()), _t = function(t, e, n) {
1035
+ }()), bt = function(t, e, n) {
1036
1036
  this.alias = t, this.D = e, this.fieldPath = n;
1037
1037
  };
1038
1038
 
@@ -1093,7 +1093,7 @@ var wt = /** @class */ function(r) {
1093
1093
  *
1094
1094
  * If `nBytes < 0` , an error will be thrown.
1095
1095
  */
1096
- function bt(t) {
1096
+ function _t(t) {
1097
1097
  // Polyfills for IE and WebWorker by using `self` and `msCrypto` when `crypto` is not available.
1098
1098
  var e =
1099
1099
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1126,7 +1126,7 @@ function bt(t) {
1126
1126
  // Alphanumeric characters
1127
1127
  var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", e = Math.floor(256 / t.length) * t.length, n = ""
1128
1128
  // The largest byte value that is a multiple of `char.length`.
1129
- ; n.length < 20; ) for (var r = bt(40), i = 0; i < r.length; ++i)
1129
+ ; n.length < 20; ) for (var r = _t(40), i = 0; i < r.length; ++i)
1130
1130
  // Only accept values that are [0, maxMultiple), this ensures they can
1131
1131
  // be evenly mapped to indices of `chars` via a modulo operation.
1132
1132
  n.length < 20 && r[i] < e && (n += t.charAt(r[i] % t.length));
@@ -2712,7 +2712,7 @@ var ye = /** @class */ function() {
2712
2712
  }, t.prototype.toString = function() {
2713
2713
  return "Document(".concat(this.key, ", ").concat(this.version, ", ").concat(JSON.stringify(this.data.value), ", {createTime: ").concat(this.createTime, "}), {documentType: ").concat(this.documentType, "}), {documentState: ").concat(this.documentState, "})");
2714
2714
  }, t;
2715
- }(), _e = function(t, e, n, r, i, o, a) {
2715
+ }(), be = function(t, e, n, r, i, o, a) {
2716
2716
  void 0 === e && (e = null), void 0 === n && (n = []), void 0 === r && (r = []),
2717
2717
  void 0 === i && (i = null), void 0 === o && (o = null), void 0 === a && (a = null),
2718
2718
  this.path = t, this.collectionGroup = e, this.orderBy = n, this.filters = r, this.limit = i,
@@ -2727,10 +2727,10 @@ var ye = /** @class */ function() {
2727
2727
  * using this factory method, because `Query` provides an implicit `orderBy`
2728
2728
  * property.
2729
2729
  */
2730
- function be(t, e, n, r, i, o, a) {
2730
+ function _e(t, e, n, r, i, o, a) {
2731
2731
  return void 0 === e && (e = null), void 0 === n && (n = []), void 0 === r && (r = []),
2732
2732
  void 0 === i && (i = null), void 0 === o && (o = null), void 0 === a && (a = null),
2733
- new _e(t, e, n, r, i, o, a);
2733
+ new be(t, e, n, r, i, o, a);
2734
2734
  }
2735
2735
 
2736
2736
  /**
@@ -2844,7 +2844,7 @@ function Se(t) {
2844
2844
  }
2845
2845
 
2846
2846
  function Pe(t, e) {
2847
- if ("F" /* LimitType.First */ === t.limitType) return be(t.path, t.collectionGroup, e, t.filters, t.limit, t.startAt, t.endAt);
2847
+ if ("F" /* LimitType.First */ === t.limitType) return _e(t.path, t.collectionGroup, e, t.filters, t.limit, t.startAt, t.endAt);
2848
2848
  // Flip the orderBy directions since we want the last results
2849
2849
  e = e.map((function(t) {
2850
2850
  var e = "desc" /* Direction.DESCENDING */ === t.dir ? "asc" /* Direction.ASCENDING */ : "desc" /* Direction.DESCENDING */;
@@ -2853,7 +2853,7 @@ function Pe(t, e) {
2853
2853
  // We need to swap the cursors to match the now-flipped query ordering.
2854
2854
  var n = t.endAt ? new Ht(t.endAt.position, t.endAt.inclusive) : null, r = t.startAt ? new Ht(t.startAt.position, t.startAt.inclusive) : null;
2855
2855
  // Now return as a LimitType.First query.
2856
- return be(t.path, t.collectionGroup, e, t.filters, t.limit, n, r);
2856
+ return _e(t.path, t.collectionGroup, e, t.filters, t.limit, n, r);
2857
2857
  }
2858
2858
 
2859
2859
  function Fe(t, e) {
@@ -3346,7 +3346,7 @@ function fn(t) {
3346
3346
  // honored as such).
3347
3347
  var n = Math.floor(this.W + this.Y()), r = Math.max(0, Date.now() - this.G), i = Math.max(0, n - r);
3348
3348
  // Guard against lastAttemptTime being in the future due to a clock change.
3349
- i > 0 && b("ExponentialBackoff", "Backing off for ".concat(i, " ms (base delay: ").concat(this.W, " ms, delay with jitter: ").concat(n, " ms, last attempt: ").concat(r, " ms ago)")),
3349
+ i > 0 && _("ExponentialBackoff", "Backing off for ".concat(i, " ms (base delay: ").concat(this.W, " ms, delay with jitter: ").concat(n, " ms, last attempt: ").concat(r, " ms ago)")),
3350
3350
  this.K = this.M.enqueueAfterDelay(this.timerId, i, (function() {
3351
3351
  return e.G = Date.now(), t();
3352
3352
  })),
@@ -3555,7 +3555,7 @@ var vn = new Map;
3555
3555
  */ function gn(t) {
3556
3556
  if (t._terminated) throw new B(x, "The client has already been terminated.");
3557
3557
  if (!vn.has(t)) {
3558
- b("ComponentProvider", "Initializing Datastore");
3558
+ _("ComponentProvider", "Initializing Datastore");
3559
3559
  var e = function(t) {
3560
3560
  return new wt(t, fetch.bind(null));
3561
3561
  }(function(t, e, n, r) {
@@ -3610,7 +3610,7 @@ var vn = new Map;
3610
3610
  return t.timeoutSeconds === e.timeoutSeconds;
3611
3611
  }(this.experimentalLongPollingOptions, t.experimentalLongPollingOptions) && this.ignoreUndefinedProperties === t.ignoreUndefinedProperties && this.useFetchStreams === t.useFetchStreams;
3612
3612
  }, t;
3613
- }(), _n = /** @class */ function() {
3613
+ }(), bn = /** @class */ function() {
3614
3614
  /** @hideconstructor */
3615
3615
  function t(t, e, n, r) {
3616
3616
  this._authCredentials = t, this._appCheckCredentials = e, this._databaseId = n,
@@ -3681,13 +3681,13 @@ var vn = new Map;
3681
3681
  * Only ever called once.
3682
3682
  */
3683
3683
  t.prototype._terminate = function() {
3684
- return t = this, (e = vn.get(t)) && (b("ComponentProvider", "Removing Datastore"),
3684
+ return t = this, (e = vn.get(t)) && (_("ComponentProvider", "Removing Datastore"),
3685
3685
  vn.delete(t), e.terminate()), Promise.resolve();
3686
3686
  var t, e;
3687
3687
  }, t;
3688
3688
  }();
3689
3689
 
3690
- function bn(t, e, n) {
3690
+ function _n(t, e, n) {
3691
3691
  n || (n = "(default)");
3692
3692
  var r = _getProvider(t, "firestore/lite");
3693
3693
  if (r.isInitialized(n)) throw new B(x, "Firestore can only be initialized once per app.");
@@ -3723,7 +3723,7 @@ function Tn(t, e) {
3723
3723
  */ function En(t, e, n, r) {
3724
3724
  var i;
3725
3725
  void 0 === r && (r = {});
3726
- var o = (t = ct(t, _n))._getSettings(), a = "".concat(e, ":").concat(n);
3726
+ var o = (t = ct(t, bn))._getSettings(), a = "".concat(e, ":").concat(n);
3727
3727
  if ("firestore.googleapis.com" !== o.host && o.host !== a && E("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),
3728
3728
  t._setSettings(Object.assign(Object.assign({}, o), {
3729
3729
  host: a,
@@ -3762,7 +3762,7 @@ function Tn(t, e) {
3762
3762
  * @returns A `Promise` that is resolved when the instance has been successfully
3763
3763
  * terminated.
3764
3764
  */ function Sn(t) {
3765
- return t = ct(t, _n), s(t.app, "firestore/lite"), t._delete();
3765
+ return t = ct(t, bn), s(t.app, "firestore/lite"), t._delete();
3766
3766
  }
3767
3767
 
3768
3768
  /**
@@ -3945,7 +3945,7 @@ t, e) {
3945
3945
  * The results of executing an aggregation query.
3946
3946
  */ function On(t, e) {
3947
3947
  for (var n = [], i = 2; i < arguments.length; i++) n[i - 2] = arguments[i];
3948
- if (t = p(t), ot("collection", "path", e), t instanceof _n) {
3948
+ if (t = p(t), ot("collection", "path", e), t instanceof bn) {
3949
3949
  var o = et.fromString.apply(et, r([ e ], n, !1));
3950
3950
  return ut(o), new Fn(t, /* converter= */ null, o);
3951
3951
  }
@@ -3968,7 +3968,7 @@ t, e) {
3968
3968
  * will be included. Cannot contain a slash.
3969
3969
  * @returns The created `Query`.
3970
3970
  */ function Vn(t, e) {
3971
- if (t = ct(t, _n), ot("collectionGroup", "collection id", e), e.indexOf("/") >= 0) throw new B(O, "Invalid collection ID '".concat(e, "' passed to function collectionGroup(). Collection IDs must not contain '/'."));
3971
+ if (t = ct(t, bn), ot("collectionGroup", "collection id", e), e.indexOf("/") >= 0) throw new B(O, "Invalid collection ID '".concat(e, "' passed to function collectionGroup(). Collection IDs must not contain '/'."));
3972
3972
  return new An(t,
3973
3973
  /* converter= */ null, function(t) {
3974
3974
  return new Te(et.emptyPath(), t);
@@ -3980,7 +3980,7 @@ function Nn(t, e) {
3980
3980
  if (t = p(t),
3981
3981
  // We allow omission of 'pathString' but explicitly prohibit passing in both
3982
3982
  // 'undefined' and 'null'.
3983
- 1 === arguments.length && (e = Tt.C()), ot("doc", "path", e), t instanceof _n) {
3983
+ 1 === arguments.length && (e = Tt.C()), ot("doc", "path", e), t instanceof bn) {
3984
3984
  var o = et.fromString.apply(et, r([ e ], n, !1));
3985
3985
  return at(o), new Pn(t,
3986
3986
  /* converter= */ null, new it(o));
@@ -4959,7 +4959,7 @@ function mr(t, e) {
4959
4959
  var e = t.filter((function(t) {
4960
4960
  return t instanceof Tr;
4961
4961
  })).length, n = t.filter((function(t) {
4962
- return t instanceof _r;
4962
+ return t instanceof br;
4963
4963
  })).length;
4964
4964
  if (e > 1 || e > 0 && n > 0) throw new B(O, "InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.");
4965
4965
  }(i = i.concat(n));
@@ -4976,7 +4976,7 @@ function mr(t, e) {
4976
4976
  * `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
4977
4977
  * be passed to {@link (query:1)} to create a new query instance that also contains
4978
4978
  * this `QueryFieldFilterConstraint`.
4979
- */ var _r = /** @class */ function(e) {
4979
+ */ var br = /** @class */ function(e) {
4980
4980
  /**
4981
4981
  * @internal
4982
4982
  */
@@ -5027,9 +5027,9 @@ function mr(t, e) {
5027
5027
  * "&lt;=", "!=").
5028
5028
  * @param value - The value for comparison
5029
5029
  * @returns The created {@link QueryFieldFilterConstraint}.
5030
- */ function br(t, e, n) {
5030
+ */ function _r(t, e, n) {
5031
5031
  var r = e, i = mr("where", t);
5032
- return _r._create(i, r, n);
5032
+ return br._create(i, r, n);
5033
5033
  }
5034
5034
 
5035
5035
  /**
@@ -5409,7 +5409,7 @@ function Mr(t, e, n) {
5409
5409
  }
5410
5410
 
5411
5411
  function Ur(t, e) {
5412
- if (!(e instanceof _r || e instanceof Tr)) throw new B(O, "Function ".concat(t, "() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'."));
5412
+ if (!(e instanceof br || e instanceof Tr)) throw new B(O, "Function ".concat(t, "() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'."));
5413
5413
  }
5414
5414
 
5415
5415
  /**
@@ -5727,12 +5727,12 @@ function Wr(t, e, n) {
5727
5727
  * ```
5728
5728
  * @internal TODO (sum/avg) remove when public
5729
5729
  */ function Xr(t, r) {
5730
- var i = ct(t.firestore, _n), o = gn(i), a = function(t, e) {
5730
+ var i = ct(t.firestore, bn), o = gn(i), a = function(t, e) {
5731
5731
  var n = [];
5732
5732
  for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && n.push(e(t[r], r, t));
5733
5733
  return n;
5734
5734
  }(r, (function(t, e) {
5735
- return new _t(e, t._aggregateType, t._internalFieldPath);
5735
+ return new bt(e, t._aggregateType, t._internalFieldPath);
5736
5736
  }));
5737
5737
  // Run the aggregation and convert the results
5738
5738
  return function(t, r, i) {
@@ -6024,7 +6024,7 @@ function ci(t, e) {
6024
6024
  * @returns A `WriteBatch` that can be used to atomically execute multiple
6025
6025
  * writes.
6026
6026
  */ function li(t) {
6027
- var e = gn(t = ct(t, _n));
6027
+ var e = gn(t = ct(t, bn));
6028
6028
  return new si(t, (function(t) {
6029
6029
  return yn(e, t);
6030
6030
  }));
@@ -6426,7 +6426,7 @@ function ci(t, e) {
6426
6426
  // after page comes into foreground.
6427
6427
  this.Nt = function() {
6428
6428
  var e = di();
6429
- e && b("AsyncQueue", "Visibility state changed to " + e.visibilityState), t.Pt.Z();
6429
+ e && _("AsyncQueue", "Visibility state changed to " + e.visibilityState), t.Pt.Z();
6430
6430
  };
6431
6431
  var e = di();
6432
6432
  e && "function" == typeof e.addEventListener && e.addEventListener("visibilitychange", this.Nt);
@@ -6497,7 +6497,7 @@ function ci(t, e) {
6497
6497
  case 3:
6498
6498
  if (t = n.sent(), "IndexedDbTransactionError" !== t.name) throw t;
6499
6499
  // Failure will be handled by AsyncQueue
6500
- return b("AsyncQueue", "Operation failed with retryable error: " + t),
6500
+ return _("AsyncQueue", "Operation failed with retryable error: " + t),
6501
6501
  [ 3 /*break*/ , 4 ];
6502
6502
 
6503
6503
  case 4:
@@ -6704,7 +6704,7 @@ function ci(t, e) {
6704
6704
  * rejected promise with the corresponding failure error is returned.
6705
6705
  */
6706
6706
  function wi(t, e, n) {
6707
- var r = gn(t = ct(t, _n)), i = Object.assign(Object.assign({}, hi), n);
6707
+ var r = gn(t = ct(t, bn)), i = Object.assign(Object.assign({}, hi), n);
6708
6708
  !function(t) {
6709
6709
  if (t.maxAttempts < 1) throw new B(O, "Max attempts must be at least 1");
6710
6710
  }(i);
@@ -6723,14 +6723,14 @@ function wi(t, e, n) {
6723
6723
  }
6724
6724
 
6725
6725
  yi = "".concat(i, "_lite"), g = yi, o(new c("firestore/lite", (function(t, e) {
6726
- var n = e.instanceIdentifier, r = e.options, i = t.getProvider("app").getImmediate(), o = new _n(new W(t.getProvider("auth-internal")), new X(t.getProvider("app-check-internal")), function(t, e) {
6726
+ var n = e.instanceIdentifier, r = e.options, i = t.getProvider("app").getImmediate(), o = new bn(new W(t.getProvider("auth-internal")), new X(t.getProvider("app-check-internal")), function(t, e) {
6727
6727
  if (!Object.prototype.hasOwnProperty.apply(t.options, [ "projectId" ])) throw new B(O, '"projectId" not provided in firebase.initializeApp.');
6728
6728
  return new Z(t.options.projectId, e);
6729
6729
  }(i, n), i);
6730
6730
  return r && o._setSettings(r), o;
6731
6731
  }), "PUBLIC").setMultipleInstances(!0)),
6732
6732
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
6733
- a("firestore-lite", "4.1.3-canary.74fc4cf9c", ""), a("firestore-lite", "4.1.3-canary.74fc4cf9c", "esm5");
6733
+ a("firestore-lite", "4.1.3-canary.c5b9b1fb1", ""), a("firestore-lite", "4.1.3-canary.c5b9b1fb1", "esm5");
6734
6734
 
6735
- export { kn as AggregateField, In as AggregateQuerySnapshot, Rn as Bytes, Fn as CollectionReference, Pn as DocumentReference, hr as DocumentSnapshot, xn as FieldPath, Ln as FieldValue, _n as Firestore, B as FirestoreError, jn as GeoPoint, An as Query, Tr as QueryCompositeFilterConstraint, gr as QueryConstraint, pr as QueryDocumentSnapshot, Dr as QueryEndAtConstraint, _r as QueryFieldFilterConstraint, Ar as QueryLimitConstraint, kr as QueryOrderByConstraint, dr as QuerySnapshot, Or as QueryStartAtConstraint, Dt as Timestamp, gi as Transaction, si as WriteBatch, Hr as addDoc, ei as aggregateFieldEqual, ni as aggregateQuerySnapshotEqual, Sr as and, ai as arrayRemove, oi as arrayUnion, Zr as average, On as collection, Vn as collectionGroup, En as connectFirestoreEmulator, ti as count, Yr as deleteDoc, ri as deleteField, Nn as doc, Cn as documentId, Rr as endAt, qr as endBefore, Xr as getAggregate, Jr as getCount, Kr as getDoc, Gr as getDocs, Tn as getFirestore, ui as increment, bn as initializeFirestore, Pr as limit, Fr as limitToLast, Er as or, Ir as orderBy, wr as query, qn as queryEqual, Dn as refEqual, wi as runTransaction, ii as serverTimestamp, Qr as setDoc, _ as setLogLevel, yr as snapshotEqual, Nr as startAfter, Vr as startAt, $r as sum, Sn as terminate, Wr as updateDoc, br as where, li as writeBatch };
6735
+ export { kn as AggregateField, In as AggregateQuerySnapshot, Rn as Bytes, Fn as CollectionReference, Pn as DocumentReference, hr as DocumentSnapshot, xn as FieldPath, Ln as FieldValue, bn as Firestore, B as FirestoreError, jn as GeoPoint, An as Query, Tr as QueryCompositeFilterConstraint, gr as QueryConstraint, pr as QueryDocumentSnapshot, Dr as QueryEndAtConstraint, br as QueryFieldFilterConstraint, Ar as QueryLimitConstraint, kr as QueryOrderByConstraint, dr as QuerySnapshot, Or as QueryStartAtConstraint, Dt as Timestamp, gi as Transaction, si as WriteBatch, Hr as addDoc, ei as aggregateFieldEqual, ni as aggregateQuerySnapshotEqual, Sr as and, ai as arrayRemove, oi as arrayUnion, Zr as average, On as collection, Vn as collectionGroup, En as connectFirestoreEmulator, ti as count, Yr as deleteDoc, ri as deleteField, Nn as doc, Cn as documentId, Rr as endAt, qr as endBefore, Xr as getAggregate, Jr as getCount, Kr as getDoc, Gr as getDocs, Tn as getFirestore, ui as increment, _n as initializeFirestore, Pr as limit, Fr as limitToLast, Er as or, Ir as orderBy, wr as query, qn as queryEqual, Dn as refEqual, wi as runTransaction, ii as serverTimestamp, Qr as setDoc, b as setLogLevel, yr as snapshotEqual, Nr as startAfter, Vr as startAt, $r as sum, Sn as terminate, Wr as updateDoc, _r as where, li as writeBatch };
6736
6736
  //# sourceMappingURL=index.browser.esm5.js.map
@@ -63,7 +63,7 @@ User.MOCK_USER = new User("mock-user");
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
65
  */
66
- let d = "10.3.1-canary.74fc4cf9c";
66
+ let d = "10.3.1-canary.c5b9b1fb1";
67
67
 
68
68
  /**
69
69
  * @license
@@ -7230,7 +7230,7 @@ class Transaction {
7230
7230
  return r && i._setSettings(r), i;
7231
7231
  }), "PUBLIC").setMultipleInstances(!0)),
7232
7232
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
7233
- registerVersion("firestore-lite", "4.1.3-canary.74fc4cf9c", ""), registerVersion("firestore-lite", "4.1.3-canary.74fc4cf9c", "cjs2017");
7233
+ registerVersion("firestore-lite", "4.1.3-canary.c5b9b1fb1", ""), registerVersion("firestore-lite", "4.1.3-canary.c5b9b1fb1", "cjs2017");
7234
7234
  }();
7235
7235
 
7236
7236
  export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
16
16
 
17
- const version$1 = "4.1.3-canary.74fc4cf9c";
17
+ const version$1 = "4.1.3-canary.c5b9b1fb1";
18
18
 
19
19
  /**
20
20
  * @license
@@ -67,7 +67,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
67
67
  User.FIRST_PARTY = new User('first-party-uid');
68
68
  User.MOCK_USER = new User('mock-user');
69
69
 
70
- const version = "10.3.1-canary.74fc4cf9c";
70
+ const version = "10.3.1-canary.c5b9b1fb1";
71
71
 
72
72
  /**
73
73
  * @license
@@ -6,7 +6,7 @@ import { FirebaseError, getDefaultEmulatorHostnameAndPort, createMockUserToken,
6
6
  import nodeFetch from 'node-fetch';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "4.1.3-canary.74fc4cf9c";
9
+ const version$1 = "4.1.3-canary.c5b9b1fb1";
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 = "10.3.1-canary.74fc4cf9c";
62
+ const version = "10.3.1-canary.c5b9b1fb1";
63
63
 
64
64
  /**
65
65
  * @license
@@ -66,7 +66,7 @@ User.MOCK_USER = new User("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let E = "10.3.1-canary.74fc4cf9c";
69
+ let E = "10.3.1-canary.c5b9b1fb1";
70
70
 
71
71
  /**
72
72
  * @license
@@ -7240,7 +7240,7 @@ class Transaction {
7240
7240
  return r && i._setSettings(r), i;
7241
7241
  }), "PUBLIC").setMultipleInstances(!0)),
7242
7242
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
7243
- n("firestore-lite", "4.1.3-canary.74fc4cf9c", "rn"), n("firestore-lite", "4.1.3-canary.74fc4cf9c", "esm2017");
7243
+ n("firestore-lite", "4.1.3-canary.c5b9b1fb1", "rn"), n("firestore-lite", "4.1.3-canary.c5b9b1fb1", "esm2017");
7244
7244
  }();
7245
7245
 
7246
7246
  export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/firestore",
3
- "version": "4.1.3-canary.74fc4cf9c",
3
+ "version": "4.1.3-canary.c5b9b1fb1",
4
4
  "engines": {
5
5
  "node": ">=10.10.0"
6
6
  },
@@ -96,22 +96,22 @@
96
96
  "lite/package.json"
97
97
  ],
98
98
  "dependencies": {
99
- "@firebase/component": "0.6.4-canary.74fc4cf9c",
100
- "@firebase/logger": "0.4.0-canary.74fc4cf9c",
101
- "@firebase/util": "1.9.3-canary.74fc4cf9c",
102
- "@firebase/webchannel-wrapper": "0.10.2-canary.74fc4cf9c",
99
+ "@firebase/component": "0.6.4-canary.c5b9b1fb1",
100
+ "@firebase/logger": "0.4.0-canary.c5b9b1fb1",
101
+ "@firebase/util": "1.9.3-canary.c5b9b1fb1",
102
+ "@firebase/webchannel-wrapper": "0.10.2-canary.c5b9b1fb1",
103
103
  "@grpc/grpc-js": "~1.9.0",
104
104
  "@grpc/proto-loader": "^0.7.8",
105
105
  "node-fetch": "2.6.7",
106
106
  "tslib": "^2.1.0"
107
107
  },
108
108
  "peerDependencies": {
109
- "@firebase/app": "0.9.18-canary.74fc4cf9c"
109
+ "@firebase/app": "0.9.18-canary.c5b9b1fb1"
110
110
  },
111
111
  "devDependencies": {
112
- "@firebase/app": "0.9.18-canary.74fc4cf9c",
113
- "@firebase/app-compat": "0.2.18-canary.74fc4cf9c",
114
- "@firebase/auth": "1.3.0-canary.74fc4cf9c",
112
+ "@firebase/app": "0.9.18-canary.c5b9b1fb1",
113
+ "@firebase/app-compat": "0.2.18-canary.c5b9b1fb1",
114
+ "@firebase/auth": "1.3.0-canary.c5b9b1fb1",
115
115
  "@rollup/plugin-alias": "3.1.9",
116
116
  "@rollup/plugin-json": "4.1.0",
117
117
  "@types/eslint": "7.29.0",