@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
@@ -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.044a8d7f9";
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.044a8d7f9";
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 FieldValue.delete())
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 FieldPath.';
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, `FieldValue.serverTimestamp()` values that have not yet been
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 `FieldValue.serverTimestamp()` that has not yet been set to
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, `FieldValue.serverTimestamp()` values that have not yet been
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 FieldPath.documentId(), ` +
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
- `FieldPath.documentId(), the value passed to ${methodName}() must result in a ` +
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 FieldPath.documentId(), you ' +
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
- `FieldPath.documentId(), you must provide a plain document ID, but ` +
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
- `FieldPath.documentId(), the value provided must result in a valid document path, ` +
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 FieldPath.documentId(), you must provide a valid ` +
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
  }