@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
|
@@ -80,7 +80,6 @@ export declare function asCollectionQueryAtPath(query: Query, path: ResourcePath
|
|
|
80
80
|
* could remove results.
|
|
81
81
|
*/
|
|
82
82
|
export declare function queryMatchesAllDocuments(query: Query): boolean;
|
|
83
|
-
export declare function queryContainsCompositeFilters(query: Query): boolean;
|
|
84
83
|
export declare function getFirstOrderByField(query: Query): FieldPath | null;
|
|
85
84
|
export declare function getInequalityFilterField(query: Query): FieldPath | null;
|
|
86
85
|
/**
|
package/dist/index.cjs.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 P = "9.17.1-canary.
|
|
73
|
+
let P = "9.17.1-canary.d5d78cbcf";
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
@@ -16227,7 +16227,7 @@ function la(t, e = 10240) {
|
|
|
16227
16227
|
},
|
|
16228
16228
|
async cancel() {},
|
|
16229
16229
|
releaseLock() {},
|
|
16230
|
-
closed: Promise.
|
|
16230
|
+
closed: Promise.resolve()
|
|
16231
16231
|
};
|
|
16232
16232
|
}
|
|
16233
16233
|
|
|
@@ -19468,20 +19468,17 @@ function Rl(t, e, n) {
|
|
|
19468
19468
|
* array requirements.
|
|
19469
19469
|
*/ function bl(t, e) {
|
|
19470
19470
|
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.`);
|
|
19471
|
-
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.`);
|
|
19472
19471
|
}
|
|
19473
19472
|
|
|
19474
19473
|
/**
|
|
19475
19474
|
* Given an operator, returns the set of operators that cannot be used with it.
|
|
19476
19475
|
*
|
|
19477
|
-
*
|
|
19478
|
-
*
|
|
19479
|
-
* 2. Only one disjunctive operator is allowed.
|
|
19480
|
-
* 3. `NOT_EQUAL` cannot be used with another `NOT_EQUAL` operator.
|
|
19481
|
-
* 4. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
|
|
19476
|
+
* This is not a comprehensive check, and this function should be removed in the
|
|
19477
|
+
* long term. Validations should occur in the Firestore backend.
|
|
19482
19478
|
*
|
|
19483
|
-
*
|
|
19484
|
-
*
|
|
19479
|
+
* Operators in a query must adhere to the following set of rules:
|
|
19480
|
+
* 1. Only one inequality per query.
|
|
19481
|
+
* 2. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
|
|
19485
19482
|
*/ function vl(t, e) {
|
|
19486
19483
|
if (e.isInequality()) {
|
|
19487
19484
|
const n = yn(t), s = e.field;
|
|
@@ -19497,17 +19494,12 @@ function Rl(t, e, n) {
|
|
|
19497
19494
|
case "!=" /* Operator.NOT_EQUAL */ :
|
|
19498
19495
|
return [ "!=" /* Operator.NOT_EQUAL */ , "not-in" /* Operator.NOT_IN */ ];
|
|
19499
19496
|
|
|
19500
|
-
case "array-contains" /* Operator.ARRAY_CONTAINS */ :
|
|
19501
|
-
return [ "array-contains" /* Operator.ARRAY_CONTAINS */ , "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "not-in" /* Operator.NOT_IN */ ];
|
|
19502
|
-
|
|
19503
|
-
case "in" /* Operator.IN */ :
|
|
19504
|
-
return [ "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ ];
|
|
19505
|
-
|
|
19506
19497
|
case "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ :
|
|
19507
|
-
|
|
19498
|
+
case "in" /* Operator.IN */ :
|
|
19499
|
+
return [ "not-in" /* Operator.NOT_IN */ ];
|
|
19508
19500
|
|
|
19509
19501
|
case "not-in" /* Operator.NOT_IN */ :
|
|
19510
|
-
return [ "array-contains
|
|
19502
|
+
return [ "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ , "in" /* Operator.IN */ , "not-in" /* Operator.NOT_IN */ , "!=" /* Operator.NOT_EQUAL */ ];
|
|
19511
19503
|
|
|
19512
19504
|
default:
|
|
19513
19505
|
return [];
|
|
@@ -20752,9 +20744,9 @@ function pf(t, e) {
|
|
|
20752
20744
|
return s = Object.assign({
|
|
20753
20745
|
useFetchStreams: e
|
|
20754
20746
|
}, s), r._setSettings(s), r;
|
|
20755
|
-
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(b, "3.8.3-canary.
|
|
20747
|
+
}), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(b, "3.8.3-canary.d5d78cbcf", t),
|
|
20756
20748
|
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
|
|
20757
|
-
app.registerVersion(b, "3.8.3-canary.
|
|
20749
|
+
app.registerVersion(b, "3.8.3-canary.d5d78cbcf", "cjs2017");
|
|
20758
20750
|
}();
|
|
20759
20751
|
|
|
20760
20752
|
exports.AbstractUserDataWriter = Sl;
|