@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.rn.js
CHANGED
|
@@ -70,7 +70,7 @@ V.MOCK_USER = new V("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 = "9.17.1-canary.
|
|
73
|
+
let S = "9.17.1-canary.d5d78cbcf";
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -16238,7 +16238,7 @@ function _a(t, e = 10240) {
|
|
|
16238
16238
|
},
|
|
16239
16239
|
async cancel() {},
|
|
16240
16240
|
releaseLock() {},
|
|
16241
|
-
closed: Promise.
|
|
16241
|
+
closed: Promise.resolve()
|
|
16242
16242
|
};
|
|
16243
16243
|
}
|
|
16244
16244
|
|
|
@@ -19479,20 +19479,17 @@ function Pl(t, e, n) {
|
|
|
19479
19479
|
* array requirements.
|
|
19480
19480
|
*/ function Vl(t, e) {
|
|
19481
19481
|
if (!Array.isArray(t) || 0 === t.length) throw new U(q.INVALID_ARGUMENT, `Invalid Query. A non-empty array is required for '${e.toString()}' filters.`);
|
|
19482
|
-
if (t.length > 10) throw new U(q.INVALID_ARGUMENT, `Invalid Query. '${e.toString()}' filters support a maximum of 10 elements in the value array.`);
|
|
19483
19482
|
}
|
|
19484
19483
|
|
|
19485
19484
|
/**
|
|
19486
19485
|
* Given an operator, returns the set of operators that cannot be used with it.
|
|
19487
19486
|
*
|
|
19488
|
-
*
|
|
19489
|
-
*
|
|
19490
|
-
* 2. Only one disjunctive operator is allowed.
|
|
19491
|
-
* 3. `NOT_EQUAL` cannot be used with another `NOT_EQUAL` operator.
|
|
19492
|
-
* 4. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
|
|
19487
|
+
* This is not a comprehensive check, and this function should be removed in the
|
|
19488
|
+
* long term. Validations should occur in the Firestore backend.
|
|
19493
19489
|
*
|
|
19494
|
-
*
|
|
19495
|
-
*
|
|
19490
|
+
* Operators in a query must adhere to the following set of rules:
|
|
19491
|
+
* 1. Only one inequality per query.
|
|
19492
|
+
* 2. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
|
|
19496
19493
|
*/ function Sl(t, e) {
|
|
19497
19494
|
if (e.isInequality()) {
|
|
19498
19495
|
const n = Tn(t), s = e.field;
|
|
@@ -19508,17 +19505,12 @@ function Pl(t, e, n) {
|
|
|
19508
19505
|
case "!=" /* Operator.NOT_EQUAL */ :
|
|
19509
19506
|
return [ "!=" /* Operator.NOT_EQUAL */ , "not-in" /* Operator.NOT_IN */ ];
|
|
19510
19507
|
|
|
19511
|
-
case "array-contains" /* Operator.ARRAY_CONTAINS */ :
|
|
19512
|
-
return [ "array-contains" /* Operator.ARRAY_CONTAINS */ , "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "not-in" /* Operator.NOT_IN */ ];
|
|
19513
|
-
|
|
19514
|
-
case "in" /* Operator.IN */ :
|
|
19515
|
-
return [ "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ ];
|
|
19516
|
-
|
|
19517
19508
|
case "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ :
|
|
19518
|
-
|
|
19509
|
+
case "in" /* Operator.IN */ :
|
|
19510
|
+
return [ "not-in" /* Operator.NOT_IN */ ];
|
|
19519
19511
|
|
|
19520
19512
|
case "not-in" /* Operator.NOT_IN */ :
|
|
19521
|
-
return [ "array-contains
|
|
19513
|
+
return [ "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ , "!=" /* Operator.NOT_EQUAL */ ];
|
|
19522
19514
|
|
|
19523
19515
|
default:
|
|
19524
19516
|
return [];
|
|
@@ -20774,9 +20766,9 @@ function Ef(t, e) {
|
|
|
20774
20766
|
return s = Object.assign({
|
|
20775
20767
|
useFetchStreams: e
|
|
20776
20768
|
}, s), r._setSettings(s), r;
|
|
20777
|
-
}), "PUBLIC").setMultipleInstances(!0)), s(P, "3.8.3-canary.
|
|
20769
|
+
}), "PUBLIC").setMultipleInstances(!0)), s(P, "3.8.3-canary.d5d78cbcf", t),
|
|
20778
20770
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
20779
|
-
s(P, "3.8.3-canary.
|
|
20771
|
+
s(P, "3.8.3-canary.d5d78cbcf", "esm2017");
|
|
20780
20772
|
}("rn", /* useFetchStreams= */ !1);
|
|
20781
20773
|
|
|
20782
20774
|
export { xl as AbstractUserDataWriter, Rh as AggregateField, bh as AggregateQuerySnapshot, vh as Bytes, uh as CACHE_SIZE_UNLIMITED, Za as CollectionReference, Ja as DocumentReference, ql as DocumentSnapshot, Ph as FieldPath, Sh as FieldValue, ch as Firestore, U as FirestoreError, Dh as GeoPoint, oh as LoadBundleTask, Ya as Query, fl as QueryCompositeFilterConstraint, cl as QueryConstraint, Ul as QueryDocumentSnapshot, Al as QueryEndAtConstraint, hl as QueryFieldFilterConstraint, gl as QueryLimitConstraint, wl as QueryOrderByConstraint, Kl as QuerySnapshot, Il as QueryStartAtConstraint, Ll as SnapshotMetadata, it as Timestamp, df as Transaction, lf as WriteBatch, Ut as _DatabaseId, ht as _DocumentKey, Z as _EmptyAppCheckTokenProvider, Q as _EmptyAuthCredentialsProvider, at as _FieldPath, Qa as _cast, B as _debugAssert, Yt as _isBase64Available, O as _logWarn, qa as _validateIsNotUsedTogether, nf as addDoc, $l as aggregateFieldEqual, Bl as aggregateQuerySnapshotEqual, _l as and, yf as arrayRemove, gf as arrayUnion, Ml as average, mh as clearIndexedDbPersistence, Xa as collection, th as collectionGroup, Ha as connectFirestoreEmulator, Fl as count, ef as deleteDoc, wf as deleteField, ph as disableNetwork, eh as doc, Vh as documentId, dh as enableIndexedDbPersistence, _h as enableMultiTabIndexedDbPersistence, yh as enableNetwork, bl as endAt, Rl as endBefore, lh as ensureFirestoreConfigured, of as executeWrite, af as getAggregateFromServer, cf as getCountFromServer, jl as getDoc, Wl as getDocFromCache, Hl as getDocFromServer, Jl as getDocs, Yl as getDocsFromCache, Zl as getDocsFromServer, hh as getFirestore, pf as increment, ah as initializeFirestore, yl as limit, pl as limitToLast, Th as loadBundle, Eh as namedQuery, sf as onSnapshot, rf as onSnapshotsInSync, dl as or, ml as orderBy, al as query, sh as queryEqual, nh as refEqual, _f as runTransaction, mf as serverTimestamp, Xl as setDoc, Tf as setIndexConfiguration, x as setLogLevel, Ql as snapshotEqual, El as startAfter, Tl as startAt, Ol as sum, Ih as terminate, tf as updateDoc, gh as waitForPendingWrites, ll as where, If as writeBatch };
|