@firebase/firestore 3.8.3-canary.c8a6e08b0 → 3.8.3-canary.d5d78cbcf

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.
@@ -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.17.1-canary.c8a6e08b0", w = new l("@firebase/firestore");
70
+ var g = "9.17.1-canary.d5d78cbcf", w = new l("@firebase/firestore");
71
71
 
72
72
  /**
73
73
  * @license
@@ -3276,14 +3276,14 @@ function ln(t) {
3276
3276
  function n(t, n, r, i) {
3277
3277
  var o = this;
3278
3278
  return (o = e.call(this) || this).authCredentials = t, o.appCheckCredentials = n,
3279
- o.connection = r, o.M = i, o.nt = !1, o;
3279
+ o.connection = r, o.M = i, o.et = !1, o;
3280
3280
  }
3281
- return t(n, e), n.prototype.et = function() {
3282
- if (this.nt) throw new B(C, "The client has already been terminated.");
3281
+ return t(n, e), n.prototype.nt = function() {
3282
+ if (this.et) throw new B(C, "The client has already been terminated.");
3283
3283
  },
3284
3284
  /** Invokes the provided RPC with auth and AppCheck tokens. */ n.prototype.A = function(t, e, n) {
3285
3285
  var r = this;
3286
- return this.et(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((function(i) {
3286
+ return this.nt(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((function(i) {
3287
3287
  var o = i[0], a = i[1];
3288
3288
  return r.connection.A(t, e, n, o, a);
3289
3289
  })).catch((function(t) {
@@ -3293,7 +3293,7 @@ function ln(t) {
3293
3293
  },
3294
3294
  /** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */ n.prototype.P = function(t, e, n, r) {
3295
3295
  var i = this;
3296
- return this.et(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((function(o) {
3296
+ return this.nt(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((function(o) {
3297
3297
  var a = o[0], u = o[1];
3298
3298
  return i.connection.P(t, e, n, a, u, r);
3299
3299
  })).catch((function(t) {
@@ -3301,7 +3301,7 @@ function ln(t) {
3301
3301
  i.appCheckCredentials.invalidateToken()), t) : new B(P, t.toString());
3302
3302
  }));
3303
3303
  }, n.prototype.terminate = function() {
3304
- this.nt = !0;
3304
+ this.et = !0;
3305
3305
  }, n;
3306
3306
  }((function() {}));
3307
3307
 
@@ -5293,20 +5293,17 @@ function Cr(t, e, n) {
5293
5293
  * array requirements.
5294
5294
  */ function xr(t, e) {
5295
5295
  if (!Array.isArray(t) || 0 === t.length) throw new B(V, "Invalid Query. A non-empty array is required for '".concat(e.toString(), "' filters."));
5296
- if (t.length > 10) throw new B(V, "Invalid Query. '".concat(e.toString(), "' filters support a maximum of 10 elements in the value array."));
5297
5296
  }
5298
5297
 
5299
5298
  /**
5300
5299
  * Given an operator, returns the set of operators that cannot be used with it.
5301
5300
  *
5302
- * Operators in a query must adhere to the following set of rules:
5303
- * 1. Only one array operator is allowed.
5304
- * 2. Only one disjunctive operator is allowed.
5305
- * 3. `NOT_EQUAL` cannot be used with another `NOT_EQUAL` operator.
5306
- * 4. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
5301
+ * This is not a comprehensive check, and this function should be removed in the
5302
+ * long term. Validations should occur in the Firestore backend.
5307
5303
  *
5308
- * Array operators: `ARRAY_CONTAINS`, `ARRAY_CONTAINS_ANY`
5309
- * Disjunctive operators: `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`
5304
+ * Operators in a query must adhere to the following set of rules:
5305
+ * 1. Only one inequality per query.
5306
+ * 2. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
5310
5307
  */ function Mr(t, e) {
5311
5308
  if (e.isInequality()) {
5312
5309
  var n = Se(t), r = e.field;
@@ -5325,17 +5322,12 @@ function Cr(t, e, n) {
5325
5322
  case "!=" /* Operator.NOT_EQUAL */ :
5326
5323
  return [ "!=" /* Operator.NOT_EQUAL */ , "not-in" /* Operator.NOT_IN */ ];
5327
5324
 
5328
- case "array-contains" /* Operator.ARRAY_CONTAINS */ :
5329
- return [ "array-contains" /* Operator.ARRAY_CONTAINS */ , "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "not-in" /* Operator.NOT_IN */ ];
5330
-
5331
- case "in" /* Operator.IN */ :
5332
- return [ "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ ];
5333
-
5334
5325
  case "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ :
5335
- return [ "array-contains" /* Operator.ARRAY_CONTAINS */ , "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ ];
5326
+ case "in" /* Operator.IN */ :
5327
+ return [ "not-in" /* Operator.NOT_IN */ ];
5336
5328
 
5337
5329
  case "not-in" /* Operator.NOT_IN */ :
5338
- return [ "array-contains" /* Operator.ARRAY_CONTAINS */ , "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ , "!=" /* Operator.NOT_EQUAL */ ];
5330
+ return [ "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ , "!=" /* Operator.NOT_EQUAL */ ];
5339
5331
 
5340
5332
  default:
5341
5333
  return [];
@@ -6645,7 +6637,7 @@ di = "".concat(i, "_lite"), g = di, o(new c("firestore/lite", (function(t, e) {
6645
6637
  return r && o._setSettings(r), o;
6646
6638
  }), "PUBLIC").setMultipleInstances(!0)),
6647
6639
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
6648
- a("firestore-lite", "3.8.3-canary.c8a6e08b0", ""), a("firestore-lite", "3.8.3-canary.c8a6e08b0", "esm5");
6640
+ a("firestore-lite", "3.8.3-canary.d5d78cbcf", ""), a("firestore-lite", "3.8.3-canary.d5d78cbcf", "esm5");
6649
6641
 
6650
6642
  export { Sn as AggregateField, kn as AggregateQuerySnapshot, qn as Bytes, Fn as CollectionReference, An as DocumentReference, fr as DocumentSnapshot, Rn as FieldPath, xn as FieldValue, wn as Firestore, B as FirestoreError, Mn as GeoPoint, In as Query, br as QueryCompositeFilterConstraint, vr as QueryConstraint, hr as QueryDocumentSnapshot, Nr as QueryEndAtConstraint, wr as QueryFieldFilterConstraint, Ar as QueryLimitConstraint, Sr as QueryOrderByConstraint, pr as QuerySnapshot, Pr as QueryStartAtConstraint, Ot as Timestamp, vi as Transaction, ui as WriteBatch, Wr as addDoc, ti as aggregateFieldEqual, ei as aggregateQuerySnapshotEqual, Er as and, oi as arrayRemove, ii as arrayUnion, Zr as average, Pn as collection, Vn as collectionGroup, Tn as connectFirestoreEmulator, $r as count, Yr as deleteDoc, ni as deleteField, Dn as doc, Cn as documentId, qr as endAt, Or as endBefore, Xr as getAggregate, Hr as getCount, zr as getDoc, Kr as getDocs, bn as getFirestore, ai as increment, _n as initializeFirestore, Ir as limit, Fr as limitToLast, Tr as or, kr as orderBy, gr as query, On as queryEqual, Nn as refEqual, gi as runTransaction, ri as serverTimestamp, Qr as setDoc, _ as setLogLevel, dr as snapshotEqual, Dr as startAfter, Vr as startAt, Jr as sum, En as terminate, Gr as updateDoc, _r as where, ci as writeBatch };
6651
6643
  //# sourceMappingURL=index.browser.esm5.js.map