@firebase/firestore 3.8.0 → 3.8.1-canary.0bab0b7a7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/firestore/src/api/reference_impl.d.ts +2 -1
  3. package/dist/firestore/src/lite-api/query.d.ts +14 -12
  4. package/dist/firestore/src/local/overlayed_document.d.ts +8 -4
  5. package/dist/firestore/src/local/remote_document_cache.d.ts +5 -5
  6. package/dist/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
  7. package/dist/firestore/test/unit/local/test_remote_document_cache.d.ts +3 -3
  8. package/dist/index.cjs.js +20635 -0
  9. package/dist/index.cjs.js.map +1 -0
  10. package/dist/index.d.ts +2 -1
  11. package/dist/index.esm2017.js +62 -44
  12. package/dist/index.esm2017.js.map +1 -1
  13. package/dist/index.esm5.js +175 -155
  14. package/dist/index.esm5.js.map +1 -1
  15. package/dist/index.node.cjs.js +56 -27
  16. package/dist/index.node.cjs.js.map +1 -1
  17. package/dist/index.node.mjs +56 -27
  18. package/dist/index.node.mjs.map +1 -1
  19. package/dist/index.rn.js +62 -44
  20. package/dist/index.rn.js.map +1 -1
  21. package/dist/internal.d.ts +28 -21
  22. package/dist/lite/firestore/src/api/reference_impl.d.ts +2 -1
  23. package/dist/lite/firestore/src/lite-api/query.d.ts +14 -12
  24. package/dist/lite/firestore/src/local/overlayed_document.d.ts +8 -4
  25. package/dist/lite/firestore/src/local/remote_document_cache.d.ts +5 -5
  26. package/dist/lite/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
  27. package/dist/lite/firestore/test/unit/local/test_remote_document_cache.d.ts +3 -3
  28. package/dist/lite/index.browser.esm2017.js +16 -14
  29. package/dist/lite/index.browser.esm2017.js.map +1 -1
  30. package/dist/lite/index.browser.esm5.js +62 -60
  31. package/dist/lite/index.browser.esm5.js.map +1 -1
  32. package/dist/lite/index.cjs.js +6954 -0
  33. package/dist/lite/index.cjs.js.map +1 -0
  34. package/dist/lite/index.node.cjs.js +16 -14
  35. package/dist/lite/index.node.cjs.js.map +1 -1
  36. package/dist/lite/index.node.mjs +16 -14
  37. package/dist/lite/index.node.mjs.map +1 -1
  38. package/dist/lite/index.rn.esm2017.js +16 -14
  39. package/dist/lite/index.rn.esm2017.js.map +1 -1
  40. package/dist/lite/internal.d.ts +15 -13
  41. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +15 -13
  42. package/dist/lite/packages/firestore/src/api/reference_impl.d.ts +2 -1
  43. package/dist/lite/packages/firestore/src/lite-api/query.d.ts +14 -12
  44. package/dist/lite/packages/firestore/src/local/overlayed_document.d.ts +8 -4
  45. package/dist/lite/packages/firestore/src/local/remote_document_cache.d.ts +5 -5
  46. package/dist/lite/packages/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
  47. package/dist/lite/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +3 -3
  48. package/dist/packages/firestore/dist/index.esm2017.d.ts +17 -14
  49. package/dist/packages/firestore/src/api/reference_impl.d.ts +2 -1
  50. package/dist/packages/firestore/src/lite-api/query.d.ts +14 -12
  51. package/dist/packages/firestore/src/local/overlayed_document.d.ts +8 -4
  52. package/dist/packages/firestore/src/local/remote_document_cache.d.ts +5 -5
  53. package/dist/packages/firestore/test/unit/local/counting_query_engine.d.ts +12 -21
  54. package/dist/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +3 -3
  55. package/dist/private.d.ts +13 -8
  56. package/package.json +19 -11
@@ -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 = "9.15.0", w = new l("@firebase/firestore");
70
+ var g = "9.16.0-canary.0bab0b7a7", w = new l("@firebase/firestore");
71
71
 
72
72
  /**
73
73
  * @license
@@ -98,11 +98,11 @@ var g = "9.15.0", 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(k);
@@ -917,10 +917,10 @@ var vt = /** @class */ function(r) {
917
917
  configurable: !0
918
918
  }), t.prototype.I = function(t, e, n, r, i) {
919
919
  var o = this.T(t, e);
920
- b("RestConnection", "Sending: ", o, n);
920
+ _("RestConnection", "Sending: ", o, n);
921
921
  var a = {};
922
922
  return this.A(a, r, i), this.R(t, o, a, n).then((function(t) {
923
- return b("RestConnection", "Received: ", t), t;
923
+ return _("RestConnection", "Received: ", t), t;
924
924
  }), (function(e) {
925
925
  throw E("RestConnection", "".concat(t, " failed with error: "), e, "url: ", o, "request:", n),
926
926
  e;
@@ -1030,11 +1030,11 @@ var vt = /** @class */ function(r) {
1030
1030
  }, t;
1031
1031
  }();
1032
1032
 
1033
- function _t(t, e) {
1033
+ function bt(t, e) {
1034
1034
  return t < e ? -1 : t > e ? 1 : 0;
1035
1035
  }
1036
1036
 
1037
- /** Helper to compare arrays using isEqual(). */ function bt(t, e, n) {
1037
+ /** Helper to compare arrays using isEqual(). */ function _t(t, e, n) {
1038
1038
  return t.length === e.length && t.every((function(t, r) {
1039
1039
  return n(t, e[r]);
1040
1040
  }));
@@ -1131,7 +1131,7 @@ function Et(t, e) {
1131
1131
  }, t.prototype.approximateByteSize = function() {
1132
1132
  return 2 * this.binaryString.length;
1133
1133
  }, t.prototype.compareTo = function(t) {
1134
- return _t(this.binaryString, t.binaryString);
1134
+ return bt(this.binaryString, t.binaryString);
1135
1135
  }, t.prototype.isEqual = function(t) {
1136
1136
  return this.binaryString === t.binaryString;
1137
1137
  }, t;
@@ -1290,7 +1290,7 @@ var St = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
1290
1290
  t.prototype.toMillis = function() {
1291
1291
  return 1e3 * this.seconds + this.nanoseconds / 1e6;
1292
1292
  }, t.prototype._compareTo = function(t) {
1293
- return this.seconds === t.seconds ? _t(this.nanoseconds, t.nanoseconds) : _t(this.seconds, t.seconds);
1293
+ return this.seconds === t.seconds ? bt(this.nanoseconds, t.nanoseconds) : bt(this.seconds, t.seconds);
1294
1294
  },
1295
1295
  /**
1296
1296
  * Returns true if this `Timestamp` is equal to the provided one.
@@ -1466,7 +1466,7 @@ var St = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
1466
1466
  }(t, e);
1467
1467
 
1468
1468
  case 9 /* TypeOrder.ArrayValue */ :
1469
- return bt(t.arrayValue.values || [], e.arrayValue.values || [], Rt);
1469
+ return _t(t.arrayValue.values || [], e.arrayValue.values || [], Rt);
1470
1470
 
1471
1471
  case 10 /* TypeOrder.ObjectValue */ :
1472
1472
  return function(t, e) {
@@ -1490,14 +1490,14 @@ function Ct(t, e) {
1490
1490
  function xt(t, e) {
1491
1491
  if (t === e) return 0;
1492
1492
  var n = qt(t), r = qt(e);
1493
- if (n !== r) return _t(n, r);
1493
+ if (n !== r) return bt(n, r);
1494
1494
  switch (n) {
1495
1495
  case 0 /* TypeOrder.NullValue */ :
1496
1496
  case 9007199254740991 /* TypeOrder.MaxValue */ :
1497
1497
  return 0;
1498
1498
 
1499
1499
  case 1 /* TypeOrder.BooleanValue */ :
1500
- return _t(t.booleanValue, e.booleanValue);
1500
+ return bt(t.booleanValue, e.booleanValue);
1501
1501
 
1502
1502
  case 2 /* TypeOrder.NumberValue */ :
1503
1503
  return function(t, e) {
@@ -1514,7 +1514,7 @@ function xt(t, e) {
1514
1514
  return Lt(Ot(t), Ot(e));
1515
1515
 
1516
1516
  case 5 /* TypeOrder.StringValue */ :
1517
- return _t(t.stringValue, e.stringValue);
1517
+ return bt(t.stringValue, e.stringValue);
1518
1518
 
1519
1519
  case 6 /* TypeOrder.BlobValue */ :
1520
1520
  return function(t, e) {
@@ -1525,16 +1525,16 @@ function xt(t, e) {
1525
1525
  case 7 /* TypeOrder.RefValue */ :
1526
1526
  return function(t, e) {
1527
1527
  for (var n = t.split("/"), r = e.split("/"), i = 0; i < n.length && i < r.length; i++) {
1528
- var o = _t(n[i], r[i]);
1528
+ var o = bt(n[i], r[i]);
1529
1529
  if (0 !== o) return o;
1530
1530
  }
1531
- return _t(n.length, r.length);
1531
+ return bt(n.length, r.length);
1532
1532
  }(t.referenceValue, e.referenceValue);
1533
1533
 
1534
1534
  case 8 /* TypeOrder.GeoPointValue */ :
1535
1535
  return function(t, e) {
1536
- var n = _t(At(t.latitude), At(e.latitude));
1537
- return 0 !== n ? n : _t(At(t.longitude), At(e.longitude));
1536
+ var n = bt(At(t.latitude), At(e.latitude));
1537
+ return 0 !== n ? n : bt(At(t.longitude), At(e.longitude));
1538
1538
  }(t.geoPointValue, e.geoPointValue);
1539
1539
 
1540
1540
  case 9 /* TypeOrder.ArrayValue */ :
@@ -1543,7 +1543,7 @@ function xt(t, e) {
1543
1543
  var o = xt(n[i], r[i]);
1544
1544
  if (o) return o;
1545
1545
  }
1546
- return _t(n.length, r.length);
1546
+ return bt(n.length, r.length);
1547
1547
  }(t.arrayValue, e.arrayValue);
1548
1548
 
1549
1549
  case 10 /* TypeOrder.ObjectValue */ :
@@ -1558,12 +1558,12 @@ function xt(t, e) {
1558
1558
  // canonical IDs are independent of insertion order.
1559
1559
  r.sort(), o.sort();
1560
1560
  for (var a = 0; a < r.length && a < o.length; ++a) {
1561
- var u = _t(r[a], o[a]);
1561
+ var u = bt(r[a], o[a]);
1562
1562
  if (0 !== u) return u;
1563
1563
  var s = xt(n[r[a]], i[o[a]]);
1564
1564
  if (0 !== s) return s;
1565
1565
  }
1566
- return _t(r.length, o.length);
1566
+ return bt(r.length, o.length);
1567
1567
  }(t.mapValue, e.mapValue);
1568
1568
 
1569
1569
  default:
@@ -1572,9 +1572,9 @@ function xt(t, e) {
1572
1572
  }
1573
1573
 
1574
1574
  function Lt(t, e) {
1575
- if ("string" == typeof t && "string" == typeof e && t.length === e.length) return _t(t, e);
1576
- var n = It(t), r = It(e), i = _t(n.seconds, r.seconds);
1577
- return 0 !== i ? i : _t(n.nanos, r.nanos);
1575
+ if ("string" == typeof t && "string" == typeof e && t.length === e.length) return bt(t, e);
1576
+ var n = It(t), r = It(e), i = bt(n.seconds, r.seconds);
1577
+ return 0 !== i ? i : bt(n.nanos, r.nanos);
1578
1578
  }
1579
1579
 
1580
1580
  function jt(t, e) {
@@ -2345,7 +2345,7 @@ var fe = /** @class */ function() {
2345
2345
  }
2346
2346
  return !1;
2347
2347
  }, t.prototype.isEqual = function(t) {
2348
- return bt(this.fields, t.fields, (function(t, e) {
2348
+ return _t(this.fields, t.fields, (function(t, e) {
2349
2349
  return t.isEqual(e);
2350
2350
  }));
2351
2351
  }, t;
@@ -2617,7 +2617,7 @@ function(t, e, n, r, i, o /* LimitType.First */ , a, u) {
2617
2617
  return t.explicitOrderBy.length > 0 ? t.explicitOrderBy[0].field : null;
2618
2618
  }
2619
2619
 
2620
- function _e(t) {
2620
+ function be(t) {
2621
2621
  for (var e = 0, n = t.filters; e < n.length; e++) {
2622
2622
  var r = n[e].getFirstInequalityField();
2623
2623
  if (null !== r) return r;
@@ -2632,7 +2632,7 @@ function _e(t) {
2632
2632
  /**
2633
2633
  * Returns whether the query matches a collection group rather than a specific
2634
2634
  * collection.
2635
- */ function be(t) {
2635
+ */ function _e(t) {
2636
2636
  return null !== t.collectionGroup;
2637
2637
  }
2638
2638
 
@@ -2644,7 +2644,7 @@ function _e(t) {
2644
2644
  var e = A(t);
2645
2645
  if (null === e.q) {
2646
2646
  e.q = [];
2647
- var n = _e(e), r = we(e);
2647
+ var n = be(e), r = we(e);
2648
2648
  if (null !== n && null === r)
2649
2649
  // In order to implicitly add key ordering, we must also add the
2650
2650
  // inequality filter field for it to be a valid query.
@@ -2685,7 +2685,7 @@ function _e(t) {
2685
2685
  }
2686
2686
 
2687
2687
  function ke(t, e) {
2688
- e.getFirstInequalityField(), _e(t);
2688
+ e.getFirstInequalityField(), be(t);
2689
2689
  var n = t.filters.concat([ e ]);
2690
2690
  return new ge(t.path, t.collectionGroup, t.explicitOrderBy.slice(), n, t.limit, t.limitType, t.startAt, t.endAt);
2691
2691
  }
@@ -3170,7 +3170,7 @@ function an(t) {
3170
3170
  // honored as such).
3171
3171
  var n = Math.floor(this.W + this.J()), r = Math.max(0, Date.now() - this.K), i = Math.max(0, n - r);
3172
3172
  // Guard against lastAttemptTime being in the future due to a clock change.
3173
- 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)")),
3173
+ 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)")),
3174
3174
  this.G = this.M.enqueueAfterDelay(this.timerId, i, (function() {
3175
3175
  return e.K = Date.now(), t();
3176
3176
  })),
@@ -3379,7 +3379,7 @@ var hn = new Map;
3379
3379
  */ function pn(t) {
3380
3380
  if (t._terminated) throw new B(C, "The client has already been terminated.");
3381
3381
  if (!hn.has(t)) {
3382
- b("ComponentProvider", "Initializing Datastore");
3382
+ _("ComponentProvider", "Initializing Datastore");
3383
3383
  var e = function(t) {
3384
3384
  return new vt(t, fetch.bind(null));
3385
3385
  }((i = t._databaseId, o = t.app.options.appId || "", a = t._persistenceKey, u = t._freezeSettings(),
@@ -3507,7 +3507,7 @@ var hn = new Map;
3507
3507
  * Only ever called once.
3508
3508
  */
3509
3509
  t.prototype._terminate = function() {
3510
- return t = this, (e = hn.get(t)) && (b("ComponentProvider", "Removing Datastore"),
3510
+ return t = this, (e = hn.get(t)) && (_("ComponentProvider", "Removing Datastore"),
3511
3511
  hn.delete(t), e.terminate()), Promise.resolve();
3512
3512
  var t, e;
3513
3513
  }, t;
@@ -3647,10 +3647,10 @@ function vn(t, e) {
3647
3647
  * Represents an aggregation that can be performed by Firestore.
3648
3648
  */
3649
3649
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3650
- var _n = function() {
3650
+ var bn = function() {
3651
3651
  /** A type string to uniquely identify instances of this class. */
3652
3652
  this.type = "AggregateField";
3653
- }, bn = /** @class */ function() {
3653
+ }, _n = /** @class */ function() {
3654
3654
  /** @hideconstructor */
3655
3655
  function t(t, e) {
3656
3656
  this._data = e,
@@ -3716,7 +3716,7 @@ var _n = function() {
3716
3716
  var n = e[1];
3717
3717
  return t.userDataWriter.convertValue(n);
3718
3718
  }))[0];
3719
- return I("number" == typeof n), Promise.resolve(new bn(t.query, {
3719
+ return I("number" == typeof n), Promise.resolve(new _n(t.query, {
3720
3720
  count: n
3721
3721
  }));
3722
3722
  }));
@@ -4115,7 +4115,7 @@ function(t) {
4115
4115
  * with an underscore.
4116
4116
  */
4117
4117
  t.prototype._compareTo = function(t) {
4118
- return _t(this._lat, t._lat) || _t(this._long, t._long);
4118
+ return bt(this._lat, t._lat) || bt(this._long, t._long);
4119
4119
  }, t;
4120
4120
  }(), Cn = /^__.*__$/, xn = /** @class */ function() {
4121
4121
  function t(t, e, n) {
@@ -4793,7 +4793,7 @@ function ur(t, e) {
4793
4793
  * @returns true if the snapshots are equal.
4794
4794
  */
4795
4795
  function fr(t, e) {
4796
- return t = p(t), e = p(e), t instanceof sr && e instanceof sr ? t._firestore === e._firestore && t._key.isEqual(e._key) && (null === t._document ? null === e._document : t._document.isEqual(e._document)) && t._converter === e._converter : t instanceof lr && e instanceof lr && Pn(t.query, e.query) && bt(t.docs, e.docs, fr)
4796
+ return t = p(t), e = p(e), t instanceof sr && e instanceof sr ? t._firestore === e._firestore && t._key.isEqual(e._key) && (null === t._document ? null === e._document : t._document.isEqual(e._document)) && t._converter === e._converter : t instanceof lr && e instanceof lr && Pn(t.query, e.query) && _t(t.docs, e.docs, fr)
4797
4797
  /**
4798
4798
  * Helper that calls `fromDotSeparatedString()` but wraps any error thrown.
4799
4799
  */;
@@ -4959,13 +4959,14 @@ function hr(t, e) {
4959
4959
  }(pr);
4960
4960
 
4961
4961
  /**
4962
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical OR
4963
- * of all the provided {@link QueryFilterConstraint}s.
4962
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
4963
+ * the given filter constraints. A disjunction filter includes a document if it
4964
+ * satisfies any of the given filters.
4964
4965
  *
4965
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
4966
- * for OR operation. These must be created with calls to {@link where},
4967
- * {@link or}, or {@link and}.
4968
- * @returns The created {@link QueryCompositeFilterConstraint}.
4966
+ * @param queryConstraints - Optional. The list of
4967
+ * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
4968
+ * created with calls to {@link where}, {@link or}, or {@link and}.
4969
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
4969
4970
  * @internal TODO remove this internal tag with OR Query support in the server
4970
4971
  */ function wr() {
4971
4972
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
@@ -4974,18 +4975,19 @@ function hr(t, e) {
4974
4975
  return xr("or", t);
4975
4976
  })), gr._create("or" /* CompositeOperator.OR */ , t)
4976
4977
  /**
4977
- * Creates a {@link QueryCompositeFilterConstraint} that performs a logical AND
4978
- * of all the provided {@link QueryFilterConstraint}s.
4979
- *
4980
- * @param queryConstraints - Optional. The {@link QueryFilterConstraint}s
4981
- * for AND operation. These must be created with calls to {@link where},
4982
- * {@link or}, or {@link and}.
4983
- * @returns The created {@link QueryCompositeFilterConstraint}.
4978
+ * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
4979
+ * the given filter constraints. A conjunction filter includes a document if it
4980
+ * satisfies all of the given filters.
4981
+ *
4982
+ * @param queryConstraints - Optional. The list of
4983
+ * {@link QueryFilterConstraint}s to perform a conjunction for. These must be
4984
+ * created with calls to {@link where}, {@link or}, or {@link and}.
4985
+ * @returns The newly created {@link QueryCompositeFilterConstraint}.
4984
4986
  * @internal TODO remove this internal tag with OR Query support in the server
4985
4987
  */;
4986
4988
  }
4987
4989
 
4988
- function _r() {
4990
+ function br() {
4989
4991
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
4990
4992
  // Only support QueryFilterConstraints
4991
4993
  return t.forEach((function(t) {
@@ -5002,7 +5004,7 @@ function _r() {
5002
5004
  */;
5003
5005
  }
5004
5006
 
5005
- var br = /** @class */ function(e) {
5007
+ var _r = /** @class */ function(e) {
5006
5008
  /**
5007
5009
  * @internal
5008
5010
  */
@@ -5022,7 +5024,7 @@ var br = /** @class */ function(e) {
5022
5024
  return function(t, e) {
5023
5025
  if (null === we(t)) {
5024
5026
  // This is the first order by. It must match any inequality.
5025
- var n = _e(t);
5027
+ var n = be(t);
5026
5028
  null !== n && Cr(t, n, e.field);
5027
5029
  }
5028
5030
  }(t, r), r;
@@ -5049,7 +5051,7 @@ var br = /** @class */ function(e) {
5049
5051
  */ function Tr(t, e) {
5050
5052
  void 0 === e && (e = "asc");
5051
5053
  var n = e, r = hr("orderBy", t);
5052
- return br._create(r, n);
5054
+ return _r._create(r, n);
5053
5055
  }
5054
5056
 
5055
5057
  /**
@@ -5213,7 +5215,7 @@ function Dr() {
5213
5215
  var c = i[s];
5214
5216
  if (a[s].field.isKeyField()) {
5215
5217
  if ("string" != typeof c) throw new B(P, "Invalid query. Expected a string for document ID in ".concat(r, "(), but got a ").concat(typeof c));
5216
- if (!be(t) && -1 !== c.indexOf("/")) throw new B(P, "Invalid query. When querying a collection and ordering by documentId(), the value passed to ".concat(r, "() must be a plain document ID, but '").concat(c, "' contains a slash."));
5218
+ if (!_e(t) && -1 !== c.indexOf("/")) throw new B(P, "Invalid query. When querying a collection and ordering by documentId(), the value passed to ".concat(r, "() must be a plain document ID, but '").concat(c, "' contains a slash."));
5217
5219
  var l = t.path.child(et.fromString(c));
5218
5220
  if (!it.isDocumentKey(l)) throw new B(P, "Invalid query. When querying a collection group and ordering by documentId(), the value passed to ".concat(r, "() must result in a valid document path, but '").concat(l, "' is not because it contains an odd number of segments."));
5219
5221
  var f = new it(l);
@@ -5230,7 +5232,7 @@ function Dr() {
5230
5232
  function Nr(t, e, n) {
5231
5233
  if ("string" == typeof (n = p(n))) {
5232
5234
  if ("" === n) throw new B(P, "Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");
5233
- if (!be(e) && -1 !== n.indexOf("/")) throw new B(P, "Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n, "' contains a '/' character."));
5235
+ if (!_e(e) && -1 !== n.indexOf("/")) throw new B(P, "Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n, "' contains a '/' character."));
5234
5236
  var r = e.path.child(et.fromString(n));
5235
5237
  if (!it.isDocumentKey(r)) throw new B(P, "Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '".concat(r, "' is not because it has an odd number of segments (").concat(r.length, ")."));
5236
5238
  return jt(t, new it(r));
@@ -5260,7 +5262,7 @@ function Nr(t, e, n) {
5260
5262
  * Disjunctive operators: `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`
5261
5263
  */ function Rr(t, e) {
5262
5264
  if (e.isInequality()) {
5263
- var n = _e(t), r = e.field;
5265
+ var n = be(t), r = e.field;
5264
5266
  if (null !== n && !n.isEqual(r)) throw new B(P, "Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '".concat(n.toString(), "' and '").concat(r.toString(), "'"));
5265
5267
  var i = we(t);
5266
5268
  null !== i && Cr(t, r, i);
@@ -6171,7 +6173,7 @@ function ti(t, e) {
6171
6173
  // after page comes into foreground.
6172
6174
  this.Dt = function() {
6173
6175
  var e = oi();
6174
- e && b("AsyncQueue", "Visibility state changed to " + e.visibilityState), t.gt.X();
6176
+ e && _("AsyncQueue", "Visibility state changed to " + e.visibilityState), t.gt.X();
6175
6177
  };
6176
6178
  var e = oi();
6177
6179
  e && "function" == typeof e.addEventListener && e.addEventListener("visibilitychange", this.Dt);
@@ -6242,7 +6244,7 @@ function ti(t, e) {
6242
6244
  case 3:
6243
6245
  if (t = n.sent(), "IndexedDbTransactionError" !== t.name) throw t;
6244
6246
  // Failure will be handled by AsyncQueue
6245
- return b("AsyncQueue", "Operation failed with retryable error: " + t),
6247
+ return _("AsyncQueue", "Operation failed with retryable error: " + t),
6246
6248
  [ 3 /*break*/ , 4 ];
6247
6249
 
6248
6250
  case 4:
@@ -6475,7 +6477,7 @@ ai = "".concat(i, "_lite"), g = ai, o(new c("firestore/lite", (function(t, e) {
6475
6477
  return r && o._setSettings(r), o;
6476
6478
  }), "PUBLIC").setMultipleInstances(!0)),
6477
6479
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
6478
- a("firestore-lite", "3.8.0", ""), a("firestore-lite", "3.8.0", "esm5");
6480
+ a("firestore-lite", "3.8.1-canary.0bab0b7a7", ""), a("firestore-lite", "3.8.1-canary.0bab0b7a7", "esm5");
6479
6481
 
6480
- export { _n as AggregateField, bn as AggregateQuerySnapshot, Dn as Bytes, Sn as CollectionReference, En as DocumentReference, sr as DocumentSnapshot, On as FieldPath, qn as FieldValue, yn as Firestore, B as FirestoreError, Rn as GeoPoint, kn as Query, gr as QueryCompositeFilterConstraint, dr as QueryConstraint, cr as QueryDocumentSnapshot, Vr as QueryEndAtConstraint, mr as QueryFieldFilterConstraint, Er as QueryLimitConstraint, br as QueryOrderByConstraint, lr as QuerySnapshot, Ir as QueryStartAtConstraint, Vt as Timestamp, ci as Transaction, $r as WriteBatch, zr as addDoc, Wr as aggregateQuerySnapshotEqual, _r as and, Jr as arrayRemove, Xr as arrayUnion, In as collection, An as collectionGroup, gn as connectFirestoreEmulator, Qr as deleteDoc, Hr as deleteField, Fn as doc, Nn as documentId, Dr as endAt, Pr as endBefore, Kr as getCount, Mr as getDoc, Ur as getDocs, vn as getFirestore, Zr as increment, mn as initializeFirestore, kr as limit, Sr as limitToLast, wr as or, Tr as orderBy, yr as query, Pn as queryEqual, Vn as refEqual, li as runTransaction, Yr as serverTimestamp, Br as setDoc, _ as setLogLevel, fr as snapshotEqual, Fr as startAfter, Ar as startAt, wn as terminate, Gr as updateDoc, vr as where, ei as writeBatch };
6482
+ export { bn as AggregateField, _n as AggregateQuerySnapshot, Dn as Bytes, Sn as CollectionReference, En as DocumentReference, sr as DocumentSnapshot, On as FieldPath, qn as FieldValue, yn as Firestore, B as FirestoreError, Rn as GeoPoint, kn as Query, gr as QueryCompositeFilterConstraint, dr as QueryConstraint, cr as QueryDocumentSnapshot, Vr as QueryEndAtConstraint, mr as QueryFieldFilterConstraint, Er as QueryLimitConstraint, _r as QueryOrderByConstraint, lr as QuerySnapshot, Ir as QueryStartAtConstraint, Vt as Timestamp, ci as Transaction, $r as WriteBatch, zr as addDoc, Wr as aggregateQuerySnapshotEqual, br as and, Jr as arrayRemove, Xr as arrayUnion, In as collection, An as collectionGroup, gn as connectFirestoreEmulator, Qr as deleteDoc, Hr as deleteField, Fn as doc, Nn as documentId, Dr as endAt, Pr as endBefore, Kr as getCount, Mr as getDoc, Ur as getDocs, vn as getFirestore, Zr as increment, mn as initializeFirestore, kr as limit, Sr as limitToLast, wr as or, Tr as orderBy, yr as query, Pn as queryEqual, Vn as refEqual, li as runTransaction, Yr as serverTimestamp, Br as setDoc, b as setLogLevel, fr as snapshotEqual, Fr as startAfter, Ar as startAt, wn as terminate, Gr as updateDoc, vr as where, ei as writeBatch };
6481
6483
  //# sourceMappingURL=index.browser.esm5.js.map