@firebase/firestore 3.4.2-canary.044a8d7f9 → 3.4.2-canary.31055413e
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/api/snapshot.d.ts +6 -6
- package/dist/firestore/src/lite-api/snapshot.d.ts +2 -2
- package/dist/firestore/test/integration/bootstrap.d.ts +0 -1
- package/dist/firestore/test/integration/util/events_accumulator.d.ts +2 -2
- package/dist/firestore/test/integration/util/firebase_export.d.ts +6 -14
- package/dist/firestore/test/integration/util/helpers.d.ts +18 -18
- package/dist/firestore/test/integration/util/internal_helpers.d.ts +3 -3
- package/dist/firestore/test/integration/util/settings.d.ts +2 -2
- package/dist/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
- package/dist/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/firestore/test/util/helpers.d.ts +4 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.esm2017.js +227 -227
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +202 -202
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +14 -15
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +14 -15
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +1068 -1068
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +8 -8
- package/dist/lite/firestore/src/api/snapshot.d.ts +6 -6
- package/dist/lite/firestore/src/lite-api/snapshot.d.ts +2 -2
- package/dist/lite/firestore/test/integration/bootstrap.d.ts +0 -1
- package/dist/lite/firestore/test/integration/util/events_accumulator.d.ts +2 -2
- package/dist/lite/firestore/test/integration/util/firebase_export.d.ts +6 -14
- package/dist/lite/firestore/test/integration/util/helpers.d.ts +18 -18
- package/dist/lite/firestore/test/integration/util/internal_helpers.d.ts +3 -3
- package/dist/lite/firestore/test/integration/util/settings.d.ts +2 -2
- package/dist/lite/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
- package/dist/lite/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/lite/firestore/test/util/helpers.d.ts +4 -6
- package/dist/lite/index.browser.esm2017.js +124 -124
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +99 -99
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.d.ts +2 -2
- package/dist/lite/index.node.cjs.js +11 -12
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +11 -12
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +148 -148
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/internal.d.ts +2 -2
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +16 -16
- package/dist/lite/packages/firestore/src/api/snapshot.d.ts +6 -6
- package/dist/lite/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
- package/dist/lite/packages/firestore/test/integration/bootstrap.d.ts +0 -1
- package/dist/lite/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
- package/dist/lite/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
- package/dist/lite/packages/firestore/test/integration/util/helpers.d.ts +18 -18
- package/dist/lite/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
- package/dist/lite/packages/firestore/test/integration/util/settings.d.ts +2 -2
- package/dist/lite/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
- package/dist/lite/packages/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/lite/packages/firestore/test/util/helpers.d.ts +4 -6
- package/dist/lite/private.d.ts +2 -2
- package/dist/packages/firestore/dist/index.esm2017.d.ts +13 -13
- package/dist/packages/firestore/src/api/snapshot.d.ts +6 -6
- package/dist/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
- package/dist/packages/firestore/test/integration/bootstrap.d.ts +0 -1
- package/dist/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
- package/dist/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
- package/dist/packages/firestore/test/integration/util/helpers.d.ts +18 -18
- package/dist/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
- package/dist/packages/firestore/test/integration/util/settings.d.ts +2 -2
- package/dist/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
- package/dist/packages/firestore/test/util/api_helpers.d.ts +1 -1
- package/dist/packages/firestore/test/util/helpers.d.ts +4 -6
- package/dist/private.d.ts +8 -8
- package/package.json +10 -13
- package/dist/firestore/compat/api/blob.d.ts +0 -29
- package/dist/firestore/compat/api/database.d.ts +0 -228
- package/dist/firestore/compat/api/field_path.d.ts +0 -36
- package/dist/firestore/compat/api/field_value.d.ts +0 -29
- package/dist/firestore/compat/api/geo_point.d.ts +0 -17
- package/dist/firestore/compat/api/observer.d.ts +0 -29
- package/dist/firestore/compat/api/timestamp.d.ts +0 -17
- package/dist/firestore/compat/config.d.ts +0 -28
- package/dist/firestore/compat/index.console.d.ts +0 -42
- package/dist/firestore/compat/index.d.ts +0 -49
- package/dist/firestore/compat/index.node.d.ts +0 -22
- package/dist/firestore/compat/index.rn.d.ts +0 -22
- package/dist/firestore/compat/register-module.d.ts +0 -42
- package/dist/firestore/compat/util/input_validation.d.ts +0 -18
- package/dist/lite/firestore/compat/api/blob.d.ts +0 -29
- package/dist/lite/firestore/compat/api/database.d.ts +0 -228
- package/dist/lite/firestore/compat/api/field_path.d.ts +0 -36
- package/dist/lite/firestore/compat/api/field_value.d.ts +0 -29
- package/dist/lite/firestore/compat/api/geo_point.d.ts +0 -17
- package/dist/lite/firestore/compat/api/observer.d.ts +0 -29
- package/dist/lite/firestore/compat/api/timestamp.d.ts +0 -17
- package/dist/lite/firestore/compat/config.d.ts +0 -28
- package/dist/lite/firestore/compat/index.console.d.ts +0 -42
- package/dist/lite/firestore/compat/index.d.ts +0 -49
- package/dist/lite/firestore/compat/index.node.d.ts +0 -22
- package/dist/lite/firestore/compat/index.rn.d.ts +0 -22
- package/dist/lite/firestore/compat/register-module.d.ts +0 -42
- package/dist/lite/firestore/compat/util/input_validation.d.ts +0 -18
- package/dist/lite/packages/firestore/compat/api/blob.d.ts +0 -29
- package/dist/lite/packages/firestore/compat/api/database.d.ts +0 -228
- package/dist/lite/packages/firestore/compat/api/field_path.d.ts +0 -36
- package/dist/lite/packages/firestore/compat/api/field_value.d.ts +0 -29
- package/dist/lite/packages/firestore/compat/api/geo_point.d.ts +0 -17
- package/dist/lite/packages/firestore/compat/api/observer.d.ts +0 -29
- package/dist/lite/packages/firestore/compat/api/timestamp.d.ts +0 -17
- package/dist/lite/packages/firestore/compat/config.d.ts +0 -28
- package/dist/lite/packages/firestore/compat/index.console.d.ts +0 -42
- package/dist/lite/packages/firestore/compat/index.d.ts +0 -49
- package/dist/lite/packages/firestore/compat/index.node.d.ts +0 -22
- package/dist/lite/packages/firestore/compat/index.rn.d.ts +0 -22
- package/dist/lite/packages/firestore/compat/register-module.d.ts +0 -42
- package/dist/lite/packages/firestore/compat/util/input_validation.d.ts +0 -18
- package/dist/packages/firestore/compat/api/blob.d.ts +0 -29
- package/dist/packages/firestore/compat/api/database.d.ts +0 -228
- package/dist/packages/firestore/compat/api/field_path.d.ts +0 -36
- package/dist/packages/firestore/compat/api/field_value.d.ts +0 -29
- package/dist/packages/firestore/compat/api/geo_point.d.ts +0 -17
- package/dist/packages/firestore/compat/api/observer.d.ts +0 -29
- package/dist/packages/firestore/compat/api/timestamp.d.ts +0 -17
- package/dist/packages/firestore/compat/config.d.ts +0 -28
- package/dist/packages/firestore/compat/index.console.d.ts +0 -42
- package/dist/packages/firestore/compat/index.d.ts +0 -49
- package/dist/packages/firestore/compat/index.node.d.ts +0 -22
- package/dist/packages/firestore/compat/index.rn.d.ts +0 -22
- package/dist/packages/firestore/compat/register-module.d.ts +0 -42
- package/dist/packages/firestore/compat/util/input_validation.d.ts +0 -18
package/dist/index.node.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ var url = require('url');
|
|
|
14
14
|
var protoLoader = require('@grpc/proto-loader');
|
|
15
15
|
|
|
16
16
|
const name = "@firebase/firestore";
|
|
17
|
-
const version$1 = "3.4.2-canary.
|
|
17
|
+
const version$1 = "3.4.2-canary.31055413e";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
@@ -67,7 +67,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
|
|
|
67
67
|
User.FIRST_PARTY = new User('first-party-uid');
|
|
68
68
|
User.MOCK_USER = new User('mock-user');
|
|
69
69
|
|
|
70
|
-
const version = "9.6.2-canary.
|
|
70
|
+
const version = "9.6.2-canary.31055413e";
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @license
|
|
@@ -21588,7 +21588,7 @@ function parseData(input, context) {
|
|
|
21588
21588
|
return parseObject(input, context);
|
|
21589
21589
|
}
|
|
21590
21590
|
else if (input instanceof FieldValue) {
|
|
21591
|
-
// FieldValues usually parse into transforms (except
|
|
21591
|
+
// FieldValues usually parse into transforms (except deleteField())
|
|
21592
21592
|
// in which case we do not want to include this field in our parsed data
|
|
21593
21593
|
// (as doing so will overwrite the field directly prior to the transform
|
|
21594
21594
|
// trying to transform it). So we don't add this location to
|
|
@@ -21782,7 +21782,7 @@ function fieldPathFromArgument$1(methodName, path, targetDoc) {
|
|
|
21782
21782
|
return fieldPathFromDotSeparatedString(methodName, path);
|
|
21783
21783
|
}
|
|
21784
21784
|
else {
|
|
21785
|
-
const message = 'Field path arguments must be of type string or
|
|
21785
|
+
const message = 'Field path arguments must be of type string or ';
|
|
21786
21786
|
throw createError(message, methodName,
|
|
21787
21787
|
/* hasConverter= */ false,
|
|
21788
21788
|
/* path= */ undefined, targetDoc);
|
|
@@ -22045,7 +22045,7 @@ class DocumentSnapshot extends DocumentSnapshot$1 {
|
|
|
22045
22045
|
* Retrieves all fields in the document as an `Object`. Returns `undefined` if
|
|
22046
22046
|
* the document doesn't exist.
|
|
22047
22047
|
*
|
|
22048
|
-
* By default, `
|
|
22048
|
+
* By default, `serverTimestamp()` values that have not yet been
|
|
22049
22049
|
* set to their final value will be returned as `null`. You can override
|
|
22050
22050
|
* this by passing an options object.
|
|
22051
22051
|
*
|
|
@@ -22074,7 +22074,7 @@ class DocumentSnapshot extends DocumentSnapshot$1 {
|
|
|
22074
22074
|
* Retrieves the field specified by `fieldPath`. Returns `undefined` if the
|
|
22075
22075
|
* document or field doesn't exist.
|
|
22076
22076
|
*
|
|
22077
|
-
* By default, a `
|
|
22077
|
+
* By default, a `serverTimestamp()` that has not yet been set to
|
|
22078
22078
|
* its final value will be returned as `null`. You can override this by
|
|
22079
22079
|
* passing an options object.
|
|
22080
22080
|
*
|
|
@@ -22113,7 +22113,7 @@ class QueryDocumentSnapshot extends DocumentSnapshot {
|
|
|
22113
22113
|
/**
|
|
22114
22114
|
* Retrieves all fields in the document as an `Object`.
|
|
22115
22115
|
*
|
|
22116
|
-
* By default, `
|
|
22116
|
+
* By default, `serverTimestamp()` values that have not yet been
|
|
22117
22117
|
* set to their final value will be returned as `null`. You can override
|
|
22118
22118
|
* this by passing an options object.
|
|
22119
22119
|
*
|
|
@@ -22461,8 +22461,7 @@ function newQueryFilter(query, methodName, dataReader, databaseId, fieldPath, op
|
|
|
22461
22461
|
let fieldValue;
|
|
22462
22462
|
if (fieldPath.isKeyField()) {
|
|
22463
22463
|
if (op === "array-contains" /* ARRAY_CONTAINS */ || op === "array-contains-any" /* ARRAY_CONTAINS_ANY */) {
|
|
22464
|
-
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid Query. You can't perform '${op}'
|
|
22465
|
-
'queries on FieldPath.documentId().');
|
|
22464
|
+
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid Query. You can't perform '${op}' queries on documentId().`);
|
|
22466
22465
|
}
|
|
22467
22466
|
else if (op === "in" /* IN */ || op === "not-in" /* NOT_IN */) {
|
|
22468
22467
|
validateDisjunctiveFilterElements(value, op);
|
|
@@ -22573,14 +22572,14 @@ function newQueryBoundFromFields(query, databaseId, dataReader, methodName, valu
|
|
|
22573
22572
|
`${methodName}(), but got a ${typeof rawValue}`);
|
|
22574
22573
|
}
|
|
22575
22574
|
if (!isCollectionGroupQuery(query) && rawValue.indexOf('/') !== -1) {
|
|
22576
|
-
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection and ordering by
|
|
22575
|
+
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection and ordering by documentId(), ` +
|
|
22577
22576
|
`the value passed to ${methodName}() must be a plain document ID, but ` +
|
|
22578
22577
|
`'${rawValue}' contains a slash.`);
|
|
22579
22578
|
}
|
|
22580
22579
|
const path = query.path.child(ResourcePath.fromString(rawValue));
|
|
22581
22580
|
if (!DocumentKey.isDocumentKey(path)) {
|
|
22582
22581
|
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection group and ordering by ` +
|
|
22583
|
-
`
|
|
22582
|
+
`documentId(), the value passed to ${methodName}() must result in a ` +
|
|
22584
22583
|
`valid document path, but '${path}' is not because it contains an odd number ` +
|
|
22585
22584
|
`of segments.`);
|
|
22586
22585
|
}
|
|
@@ -22603,18 +22602,18 @@ function parseDocumentIdValue(databaseId, query, documentIdValue) {
|
|
|
22603
22602
|
documentIdValue = util$1.getModularInstance(documentIdValue);
|
|
22604
22603
|
if (typeof documentIdValue === 'string') {
|
|
22605
22604
|
if (documentIdValue === '') {
|
|
22606
|
-
throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. When querying with
|
|
22605
|
+
throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. When querying with documentId(), you ' +
|
|
22607
22606
|
'must provide a valid document ID, but it was an empty string.');
|
|
22608
22607
|
}
|
|
22609
22608
|
if (!isCollectionGroupQuery(query) && documentIdValue.indexOf('/') !== -1) {
|
|
22610
22609
|
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection by ` +
|
|
22611
|
-
`
|
|
22610
|
+
`documentId(), you must provide a plain document ID, but ` +
|
|
22612
22611
|
`'${documentIdValue}' contains a '/' character.`);
|
|
22613
22612
|
}
|
|
22614
22613
|
const path = query.path.child(ResourcePath.fromString(documentIdValue));
|
|
22615
22614
|
if (!DocumentKey.isDocumentKey(path)) {
|
|
22616
22615
|
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection group by ` +
|
|
22617
|
-
`
|
|
22616
|
+
`documentId(), the value provided must result in a valid document path, ` +
|
|
22618
22617
|
`but '${path}' is not because it has an odd number of segments (${path.length}).`);
|
|
22619
22618
|
}
|
|
22620
22619
|
return refValue(databaseId, new DocumentKey(path));
|
|
@@ -22623,7 +22622,7 @@ function parseDocumentIdValue(databaseId, query, documentIdValue) {
|
|
|
22623
22622
|
return refValue(databaseId, documentIdValue._key);
|
|
22624
22623
|
}
|
|
22625
22624
|
else {
|
|
22626
|
-
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying with
|
|
22625
|
+
throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying with documentId(), you must provide a valid ` +
|
|
22627
22626
|
`string or a DocumentReference, but it was: ` +
|
|
22628
22627
|
`${valueDescription(documentIdValue)}.`);
|
|
22629
22628
|
}
|