@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.
- package/dist/firestore/src/core/query.d.ts +0 -1
- package/dist/index.cjs.js +12 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +12 -20
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +117 -125
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +46 -65
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +46 -65
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +12 -20
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/firestore/src/core/query.d.ts +0 -1
- package/dist/lite/index.browser.esm2017.js +1301 -1309
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +16 -24
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.cjs.js +1301 -1309
- package/dist/lite/index.cjs.js.map +1 -1
- package/dist/lite/index.node.cjs.js +9 -28
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +9 -28
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +1309 -1317
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +130 -130
- package/dist/lite/packages/firestore/src/core/query.d.ts +0 -1
- package/dist/packages/firestore/src/core/query.d.ts +0 -1
- package/package.json +9 -9
package/dist/index.esm2017.js
CHANGED
|
@@ -66,7 +66,7 @@ v.MOCK_USER = new v("mock-user");
|
|
|
66
66
|
* See the License for the specific language governing permissions and
|
|
67
67
|
* limitations under the License.
|
|
68
68
|
*/
|
|
69
|
-
let P = "9.17.1-canary.
|
|
69
|
+
let P = "9.17.1-canary.d5d78cbcf";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
@@ -16223,7 +16223,7 @@ function la(t, e = 10240) {
|
|
|
16223
16223
|
},
|
|
16224
16224
|
async cancel() {},
|
|
16225
16225
|
releaseLock() {},
|
|
16226
|
-
closed: Promise.
|
|
16226
|
+
closed: Promise.resolve()
|
|
16227
16227
|
};
|
|
16228
16228
|
}
|
|
16229
16229
|
|
|
@@ -19464,20 +19464,17 @@ function Rl(t, e, n) {
|
|
|
19464
19464
|
* array requirements.
|
|
19465
19465
|
*/ function bl(t, e) {
|
|
19466
19466
|
if (!Array.isArray(t) || 0 === t.length) throw new L(B.INVALID_ARGUMENT, `Invalid Query. A non-empty array is required for '${e.toString()}' filters.`);
|
|
19467
|
-
if (t.length > 10) throw new L(B.INVALID_ARGUMENT, `Invalid Query. '${e.toString()}' filters support a maximum of 10 elements in the value array.`);
|
|
19468
19467
|
}
|
|
19469
19468
|
|
|
19470
19469
|
/**
|
|
19471
19470
|
* Given an operator, returns the set of operators that cannot be used with it.
|
|
19472
19471
|
*
|
|
19473
|
-
*
|
|
19474
|
-
*
|
|
19475
|
-
* 2. Only one disjunctive operator is allowed.
|
|
19476
|
-
* 3. `NOT_EQUAL` cannot be used with another `NOT_EQUAL` operator.
|
|
19477
|
-
* 4. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
|
|
19472
|
+
* This is not a comprehensive check, and this function should be removed in the
|
|
19473
|
+
* long term. Validations should occur in the Firestore backend.
|
|
19478
19474
|
*
|
|
19479
|
-
*
|
|
19480
|
-
*
|
|
19475
|
+
* Operators in a query must adhere to the following set of rules:
|
|
19476
|
+
* 1. Only one inequality per query.
|
|
19477
|
+
* 2. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
|
|
19481
19478
|
*/ function vl(t, e) {
|
|
19482
19479
|
if (e.isInequality()) {
|
|
19483
19480
|
const n = yn(t), s = e.field;
|
|
@@ -19493,17 +19490,12 @@ function Rl(t, e, n) {
|
|
|
19493
19490
|
case "!=" /* Operator.NOT_EQUAL */ :
|
|
19494
19491
|
return [ "!=" /* Operator.NOT_EQUAL */ , "not-in" /* Operator.NOT_IN */ ];
|
|
19495
19492
|
|
|
19496
|
-
case "array-contains" /* Operator.ARRAY_CONTAINS */ :
|
|
19497
|
-
return [ "array-contains" /* Operator.ARRAY_CONTAINS */ , "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "not-in" /* Operator.NOT_IN */ ];
|
|
19498
|
-
|
|
19499
|
-
case "in" /* Operator.IN */ :
|
|
19500
|
-
return [ "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ ];
|
|
19501
|
-
|
|
19502
19493
|
case "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ :
|
|
19503
|
-
|
|
19494
|
+
case "in" /* Operator.IN */ :
|
|
19495
|
+
return [ "not-in" /* Operator.NOT_IN */ ];
|
|
19504
19496
|
|
|
19505
19497
|
case "not-in" /* Operator.NOT_IN */ :
|
|
19506
|
-
return [ "array-contains
|
|
19498
|
+
return [ "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ , "!=" /* Operator.NOT_EQUAL */ ];
|
|
19507
19499
|
|
|
19508
19500
|
default:
|
|
19509
19501
|
return [];
|
|
@@ -20748,9 +20740,9 @@ function pf(t, e) {
|
|
|
20748
20740
|
return s = Object.assign({
|
|
20749
20741
|
useFetchStreams: e
|
|
20750
20742
|
}, s), r._setSettings(s), r;
|
|
20751
|
-
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.8.3-canary.
|
|
20743
|
+
}), "PUBLIC").setMultipleInstances(!0)), registerVersion(b, "3.8.3-canary.d5d78cbcf", t),
|
|
20752
20744
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
20753
|
-
registerVersion(b, "3.8.3-canary.
|
|
20745
|
+
registerVersion(b, "3.8.3-canary.d5d78cbcf", "esm2017");
|
|
20754
20746
|
}();
|
|
20755
20747
|
|
|
20756
20748
|
export { Sl as AbstractUserDataWriter, Th as AggregateField, Eh as AggregateQuerySnapshot, Ah as Bytes, ih as CACHE_SIZE_UNLIMITED, Ha as CollectionReference, za as DocumentReference, $l as DocumentSnapshot, Rh as FieldPath, vh as FieldValue, rh as Firestore, L as FirestoreError, Ph as GeoPoint, sh as LoadBundleTask, Wa as Query, al as QueryCompositeFilterConstraint, rl as QueryConstraint, Bl as QueryDocumentSnapshot, Il as QueryEndAtConstraint, ul as QueryFieldFilterConstraint, _l as QueryLimitConstraint, fl as QueryOrderByConstraint, Ll as QuerySnapshot, gl as QueryStartAtConstraint, Fl as SnapshotMetadata, nt as Timestamp, hf as Transaction, cf as WriteBatch, Lt as _DatabaseId, ct as _DocumentKey, J as _EmptyAppCheckTokenProvider, K as _EmptyAuthCredentialsProvider, ut as _FieldPath, Ua as _cast, F as _debugAssert, Wt as _isBase64Available, N as _logWarn, $a as _validateIsNotUsedTogether, Xl as addDoc, Ol as aggregateFieldEqual, Ml as aggregateQuerySnapshotEqual, ll as and, wf as arrayRemove, _f as arrayUnion, Nl as average, dh as clearIndexedDbPersistence, Ja as collection, Ya as collectionGroup, ja as connectFirestoreEmulator, kl as count, Zl as deleteDoc, ff as deleteField, mh as disableNetwork, Za as doc, bh as documentId, hh as enableIndexedDbPersistence, lh as enableMultiTabIndexedDbPersistence, wh as enableNetwork, El as endAt, Tl as endBefore, ch as ensureFirestoreConfigured, nf as executeWrite, of as getAggregateFromServer, rf as getCountFromServer, Kl as getDoc, Ql as getDocFromCache, jl as getDocFromServer, zl as getDocs, Wl as getDocsFromCache, Hl as getDocsFromServer, uh as getFirestore, mf as increment, oh as initializeFirestore, wl as limit, ml as limitToLast, yh as loadBundle, ph as namedQuery, tf as onSnapshot, ef as onSnapshotsInSync, hl as or, dl as orderBy, ol as query, th as queryEqual, Xa as refEqual, lf as runTransaction, df as serverTimestamp, Jl as setDoc, yf as setIndexConfiguration, D as setLogLevel, Ul as snapshotEqual, pl as startAfter, yl as startAt, xl as sum, gh as terminate, Yl as updateDoc, _h as waitForPendingWrites, cl as where, gf as writeBatch };
|