@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.
Files changed (129) hide show
  1. package/dist/firestore/src/api/snapshot.d.ts +6 -6
  2. package/dist/firestore/src/lite-api/snapshot.d.ts +2 -2
  3. package/dist/firestore/test/integration/bootstrap.d.ts +0 -1
  4. package/dist/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  5. package/dist/firestore/test/integration/util/firebase_export.d.ts +6 -14
  6. package/dist/firestore/test/integration/util/helpers.d.ts +18 -18
  7. package/dist/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  8. package/dist/firestore/test/integration/util/settings.d.ts +2 -2
  9. package/dist/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  10. package/dist/firestore/test/util/api_helpers.d.ts +1 -1
  11. package/dist/firestore/test/util/helpers.d.ts +4 -6
  12. package/dist/index.d.ts +6 -6
  13. package/dist/index.esm2017.js +227 -227
  14. package/dist/index.esm2017.js.map +1 -1
  15. package/dist/index.esm5.js +202 -202
  16. package/dist/index.esm5.js.map +1 -1
  17. package/dist/index.node.cjs.js +14 -15
  18. package/dist/index.node.cjs.js.map +1 -1
  19. package/dist/index.node.mjs +14 -15
  20. package/dist/index.node.mjs.map +1 -1
  21. package/dist/index.rn.js +1068 -1068
  22. package/dist/index.rn.js.map +1 -1
  23. package/dist/internal.d.ts +8 -8
  24. package/dist/lite/firestore/src/api/snapshot.d.ts +6 -6
  25. package/dist/lite/firestore/src/lite-api/snapshot.d.ts +2 -2
  26. package/dist/lite/firestore/test/integration/bootstrap.d.ts +0 -1
  27. package/dist/lite/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  28. package/dist/lite/firestore/test/integration/util/firebase_export.d.ts +6 -14
  29. package/dist/lite/firestore/test/integration/util/helpers.d.ts +18 -18
  30. package/dist/lite/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  31. package/dist/lite/firestore/test/integration/util/settings.d.ts +2 -2
  32. package/dist/lite/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  33. package/dist/lite/firestore/test/util/api_helpers.d.ts +1 -1
  34. package/dist/lite/firestore/test/util/helpers.d.ts +4 -6
  35. package/dist/lite/index.browser.esm2017.js +124 -124
  36. package/dist/lite/index.browser.esm2017.js.map +1 -1
  37. package/dist/lite/index.browser.esm5.js +99 -99
  38. package/dist/lite/index.browser.esm5.js.map +1 -1
  39. package/dist/lite/index.d.ts +2 -2
  40. package/dist/lite/index.node.cjs.js +11 -12
  41. package/dist/lite/index.node.cjs.js.map +1 -1
  42. package/dist/lite/index.node.mjs +11 -12
  43. package/dist/lite/index.node.mjs.map +1 -1
  44. package/dist/lite/index.rn.esm2017.js +148 -148
  45. package/dist/lite/index.rn.esm2017.js.map +1 -1
  46. package/dist/lite/internal.d.ts +2 -2
  47. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +16 -16
  48. package/dist/lite/packages/firestore/src/api/snapshot.d.ts +6 -6
  49. package/dist/lite/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
  50. package/dist/lite/packages/firestore/test/integration/bootstrap.d.ts +0 -1
  51. package/dist/lite/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  52. package/dist/lite/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
  53. package/dist/lite/packages/firestore/test/integration/util/helpers.d.ts +18 -18
  54. package/dist/lite/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  55. package/dist/lite/packages/firestore/test/integration/util/settings.d.ts +2 -2
  56. package/dist/lite/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  57. package/dist/lite/packages/firestore/test/util/api_helpers.d.ts +1 -1
  58. package/dist/lite/packages/firestore/test/util/helpers.d.ts +4 -6
  59. package/dist/lite/private.d.ts +2 -2
  60. package/dist/packages/firestore/dist/index.esm2017.d.ts +13 -13
  61. package/dist/packages/firestore/src/api/snapshot.d.ts +6 -6
  62. package/dist/packages/firestore/src/lite-api/snapshot.d.ts +2 -2
  63. package/dist/packages/firestore/test/integration/bootstrap.d.ts +0 -1
  64. package/dist/packages/firestore/test/integration/util/events_accumulator.d.ts +2 -2
  65. package/dist/packages/firestore/test/integration/util/firebase_export.d.ts +6 -14
  66. package/dist/packages/firestore/test/integration/util/helpers.d.ts +18 -18
  67. package/dist/packages/firestore/test/integration/util/internal_helpers.d.ts +3 -3
  68. package/dist/packages/firestore/test/integration/util/settings.d.ts +2 -2
  69. package/dist/packages/firestore/test/unit/api/{blob.test.d.ts → bytes.test.d.ts} +0 -0
  70. package/dist/packages/firestore/test/util/api_helpers.d.ts +1 -1
  71. package/dist/packages/firestore/test/util/helpers.d.ts +4 -6
  72. package/dist/private.d.ts +8 -8
  73. package/package.json +10 -13
  74. package/dist/firestore/compat/api/blob.d.ts +0 -29
  75. package/dist/firestore/compat/api/database.d.ts +0 -228
  76. package/dist/firestore/compat/api/field_path.d.ts +0 -36
  77. package/dist/firestore/compat/api/field_value.d.ts +0 -29
  78. package/dist/firestore/compat/api/geo_point.d.ts +0 -17
  79. package/dist/firestore/compat/api/observer.d.ts +0 -29
  80. package/dist/firestore/compat/api/timestamp.d.ts +0 -17
  81. package/dist/firestore/compat/config.d.ts +0 -28
  82. package/dist/firestore/compat/index.console.d.ts +0 -42
  83. package/dist/firestore/compat/index.d.ts +0 -49
  84. package/dist/firestore/compat/index.node.d.ts +0 -22
  85. package/dist/firestore/compat/index.rn.d.ts +0 -22
  86. package/dist/firestore/compat/register-module.d.ts +0 -42
  87. package/dist/firestore/compat/util/input_validation.d.ts +0 -18
  88. package/dist/lite/firestore/compat/api/blob.d.ts +0 -29
  89. package/dist/lite/firestore/compat/api/database.d.ts +0 -228
  90. package/dist/lite/firestore/compat/api/field_path.d.ts +0 -36
  91. package/dist/lite/firestore/compat/api/field_value.d.ts +0 -29
  92. package/dist/lite/firestore/compat/api/geo_point.d.ts +0 -17
  93. package/dist/lite/firestore/compat/api/observer.d.ts +0 -29
  94. package/dist/lite/firestore/compat/api/timestamp.d.ts +0 -17
  95. package/dist/lite/firestore/compat/config.d.ts +0 -28
  96. package/dist/lite/firestore/compat/index.console.d.ts +0 -42
  97. package/dist/lite/firestore/compat/index.d.ts +0 -49
  98. package/dist/lite/firestore/compat/index.node.d.ts +0 -22
  99. package/dist/lite/firestore/compat/index.rn.d.ts +0 -22
  100. package/dist/lite/firestore/compat/register-module.d.ts +0 -42
  101. package/dist/lite/firestore/compat/util/input_validation.d.ts +0 -18
  102. package/dist/lite/packages/firestore/compat/api/blob.d.ts +0 -29
  103. package/dist/lite/packages/firestore/compat/api/database.d.ts +0 -228
  104. package/dist/lite/packages/firestore/compat/api/field_path.d.ts +0 -36
  105. package/dist/lite/packages/firestore/compat/api/field_value.d.ts +0 -29
  106. package/dist/lite/packages/firestore/compat/api/geo_point.d.ts +0 -17
  107. package/dist/lite/packages/firestore/compat/api/observer.d.ts +0 -29
  108. package/dist/lite/packages/firestore/compat/api/timestamp.d.ts +0 -17
  109. package/dist/lite/packages/firestore/compat/config.d.ts +0 -28
  110. package/dist/lite/packages/firestore/compat/index.console.d.ts +0 -42
  111. package/dist/lite/packages/firestore/compat/index.d.ts +0 -49
  112. package/dist/lite/packages/firestore/compat/index.node.d.ts +0 -22
  113. package/dist/lite/packages/firestore/compat/index.rn.d.ts +0 -22
  114. package/dist/lite/packages/firestore/compat/register-module.d.ts +0 -42
  115. package/dist/lite/packages/firestore/compat/util/input_validation.d.ts +0 -18
  116. package/dist/packages/firestore/compat/api/blob.d.ts +0 -29
  117. package/dist/packages/firestore/compat/api/database.d.ts +0 -228
  118. package/dist/packages/firestore/compat/api/field_path.d.ts +0 -36
  119. package/dist/packages/firestore/compat/api/field_value.d.ts +0 -29
  120. package/dist/packages/firestore/compat/api/geo_point.d.ts +0 -17
  121. package/dist/packages/firestore/compat/api/observer.d.ts +0 -29
  122. package/dist/packages/firestore/compat/api/timestamp.d.ts +0 -17
  123. package/dist/packages/firestore/compat/config.d.ts +0 -28
  124. package/dist/packages/firestore/compat/index.console.d.ts +0 -42
  125. package/dist/packages/firestore/compat/index.d.ts +0 -49
  126. package/dist/packages/firestore/compat/index.node.d.ts +0 -22
  127. package/dist/packages/firestore/compat/index.rn.d.ts +0 -22
  128. package/dist/packages/firestore/compat/register-module.d.ts +0 -42
  129. package/dist/packages/firestore/compat/util/input_validation.d.ts +0 -18
@@ -10,7 +10,7 @@ import { fileURLToPath } from 'url';
10
10
  import { loadSync } from '@grpc/proto-loader';
11
11
 
12
12
  const name = "@firebase/firestore";
13
- const version$1 = "3.4.2-canary.044a8d7f9";
13
+ const version$1 = "3.4.2-canary.31055413e";
14
14
 
15
15
  /**
16
16
  * @license
@@ -63,7 +63,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
63
63
  User.FIRST_PARTY = new User('first-party-uid');
64
64
  User.MOCK_USER = new User('mock-user');
65
65
 
66
- const version = "9.6.2-canary.044a8d7f9";
66
+ const version = "9.6.2-canary.31055413e";
67
67
 
68
68
  /**
69
69
  * @license
@@ -21584,7 +21584,7 @@ function parseData(input, context) {
21584
21584
  return parseObject(input, context);
21585
21585
  }
21586
21586
  else if (input instanceof FieldValue) {
21587
- // FieldValues usually parse into transforms (except FieldValue.delete())
21587
+ // FieldValues usually parse into transforms (except deleteField())
21588
21588
  // in which case we do not want to include this field in our parsed data
21589
21589
  // (as doing so will overwrite the field directly prior to the transform
21590
21590
  // trying to transform it). So we don't add this location to
@@ -21778,7 +21778,7 @@ function fieldPathFromArgument$1(methodName, path, targetDoc) {
21778
21778
  return fieldPathFromDotSeparatedString(methodName, path);
21779
21779
  }
21780
21780
  else {
21781
- const message = 'Field path arguments must be of type string or FieldPath.';
21781
+ const message = 'Field path arguments must be of type string or ';
21782
21782
  throw createError(message, methodName,
21783
21783
  /* hasConverter= */ false,
21784
21784
  /* path= */ undefined, targetDoc);
@@ -22041,7 +22041,7 @@ class DocumentSnapshot extends DocumentSnapshot$1 {
22041
22041
  * Retrieves all fields in the document as an `Object`. Returns `undefined` if
22042
22042
  * the document doesn't exist.
22043
22043
  *
22044
- * By default, `FieldValue.serverTimestamp()` values that have not yet been
22044
+ * By default, `serverTimestamp()` values that have not yet been
22045
22045
  * set to their final value will be returned as `null`. You can override
22046
22046
  * this by passing an options object.
22047
22047
  *
@@ -22070,7 +22070,7 @@ class DocumentSnapshot extends DocumentSnapshot$1 {
22070
22070
  * Retrieves the field specified by `fieldPath`. Returns `undefined` if the
22071
22071
  * document or field doesn't exist.
22072
22072
  *
22073
- * By default, a `FieldValue.serverTimestamp()` that has not yet been set to
22073
+ * By default, a `serverTimestamp()` that has not yet been set to
22074
22074
  * its final value will be returned as `null`. You can override this by
22075
22075
  * passing an options object.
22076
22076
  *
@@ -22109,7 +22109,7 @@ class QueryDocumentSnapshot extends DocumentSnapshot {
22109
22109
  /**
22110
22110
  * Retrieves all fields in the document as an `Object`.
22111
22111
  *
22112
- * By default, `FieldValue.serverTimestamp()` values that have not yet been
22112
+ * By default, `serverTimestamp()` values that have not yet been
22113
22113
  * set to their final value will be returned as `null`. You can override
22114
22114
  * this by passing an options object.
22115
22115
  *
@@ -22457,8 +22457,7 @@ function newQueryFilter(query, methodName, dataReader, databaseId, fieldPath, op
22457
22457
  let fieldValue;
22458
22458
  if (fieldPath.isKeyField()) {
22459
22459
  if (op === "array-contains" /* ARRAY_CONTAINS */ || op === "array-contains-any" /* ARRAY_CONTAINS_ANY */) {
22460
- throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid Query. You can't perform '${op}' ` +
22461
- 'queries on FieldPath.documentId().');
22460
+ throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid Query. You can't perform '${op}' queries on documentId().`);
22462
22461
  }
22463
22462
  else if (op === "in" /* IN */ || op === "not-in" /* NOT_IN */) {
22464
22463
  validateDisjunctiveFilterElements(value, op);
@@ -22569,14 +22568,14 @@ function newQueryBoundFromFields(query, databaseId, dataReader, methodName, valu
22569
22568
  `${methodName}(), but got a ${typeof rawValue}`);
22570
22569
  }
22571
22570
  if (!isCollectionGroupQuery(query) && rawValue.indexOf('/') !== -1) {
22572
- throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection and ordering by FieldPath.documentId(), ` +
22571
+ throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection and ordering by documentId(), ` +
22573
22572
  `the value passed to ${methodName}() must be a plain document ID, but ` +
22574
22573
  `'${rawValue}' contains a slash.`);
22575
22574
  }
22576
22575
  const path = query.path.child(ResourcePath.fromString(rawValue));
22577
22576
  if (!DocumentKey.isDocumentKey(path)) {
22578
22577
  throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection group and ordering by ` +
22579
- `FieldPath.documentId(), the value passed to ${methodName}() must result in a ` +
22578
+ `documentId(), the value passed to ${methodName}() must result in a ` +
22580
22579
  `valid document path, but '${path}' is not because it contains an odd number ` +
22581
22580
  `of segments.`);
22582
22581
  }
@@ -22599,18 +22598,18 @@ function parseDocumentIdValue(databaseId, query, documentIdValue) {
22599
22598
  documentIdValue = getModularInstance(documentIdValue);
22600
22599
  if (typeof documentIdValue === 'string') {
22601
22600
  if (documentIdValue === '') {
22602
- throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. When querying with FieldPath.documentId(), you ' +
22601
+ throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. When querying with documentId(), you ' +
22603
22602
  'must provide a valid document ID, but it was an empty string.');
22604
22603
  }
22605
22604
  if (!isCollectionGroupQuery(query) && documentIdValue.indexOf('/') !== -1) {
22606
22605
  throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection by ` +
22607
- `FieldPath.documentId(), you must provide a plain document ID, but ` +
22606
+ `documentId(), you must provide a plain document ID, but ` +
22608
22607
  `'${documentIdValue}' contains a '/' character.`);
22609
22608
  }
22610
22609
  const path = query.path.child(ResourcePath.fromString(documentIdValue));
22611
22610
  if (!DocumentKey.isDocumentKey(path)) {
22612
22611
  throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection group by ` +
22613
- `FieldPath.documentId(), the value provided must result in a valid document path, ` +
22612
+ `documentId(), the value provided must result in a valid document path, ` +
22614
22613
  `but '${path}' is not because it has an odd number of segments (${path.length}).`);
22615
22614
  }
22616
22615
  return refValue(databaseId, new DocumentKey(path));
@@ -22619,7 +22618,7 @@ function parseDocumentIdValue(databaseId, query, documentIdValue) {
22619
22618
  return refValue(databaseId, documentIdValue._key);
22620
22619
  }
22621
22620
  else {
22622
- throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying with FieldPath.documentId(), you must provide a valid ` +
22621
+ throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying with documentId(), you must provide a valid ` +
22623
22622
  `string or a DocumentReference, but it was: ` +
22624
22623
  `${valueDescription(documentIdValue)}.`);
22625
22624
  }