@firebase/firestore 3.4.4-canary.f5ac47fb1 → 3.4.5

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 (151) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/firestore/src/api/credentials.d.ts +1 -0
  3. package/dist/firestore/src/index/index_byte_encoder.d.ts +18 -1
  4. package/dist/firestore/src/index/index_entry.d.ts +26 -0
  5. package/dist/firestore/src/local/document_overlay_cache.d.ts +72 -0
  6. package/dist/firestore/src/local/indexeddb_document_overlay_cache.d.ts +45 -0
  7. package/dist/firestore/src/local/indexeddb_index_manager.d.ts +29 -2
  8. package/dist/firestore/src/local/indexeddb_persistence.d.ts +6 -4
  9. package/dist/firestore/src/local/indexeddb_remote_document_cache.d.ts +2 -8
  10. package/dist/firestore/src/local/indexeddb_schema.d.ts +83 -9
  11. package/dist/firestore/src/local/local_documents_view.d.ts +0 -1
  12. package/dist/firestore/src/local/local_serializer.d.ts +18 -2
  13. package/dist/firestore/src/local/memory_document_overlay_cache.d.ts +37 -0
  14. package/dist/firestore/src/local/memory_persistence.d.ts +6 -2
  15. package/dist/firestore/src/local/memory_remote_document_cache.d.ts +1 -3
  16. package/dist/firestore/src/local/persistence.d.ts +8 -2
  17. package/dist/firestore/src/local/remote_document_cache.d.ts +7 -9
  18. package/dist/firestore/src/model/document_key.d.ts +5 -0
  19. package/dist/firestore/src/model/field_index.d.ts +2 -2
  20. package/dist/firestore/src/model/overlay.d.ts +32 -0
  21. package/dist/firestore/src/model/target_index_matcher.d.ts +70 -0
  22. package/dist/firestore/src/platform/node/grpc_connection.d.ts +2 -2
  23. package/dist/firestore/src/platform/node/load_protos.d.ts +2 -2
  24. package/dist/firestore/src/util/sorted_set.d.ts +18 -0
  25. package/dist/firestore/test/unit/local/counting_query_engine.d.ts +3 -3
  26. package/dist/firestore/test/unit/local/document_overlay_cache.test.d.ts +1 -0
  27. package/dist/firestore/test/unit/local/persistence_test_helpers.d.ts +1 -0
  28. package/dist/firestore/test/unit/local/test_document_overlay_cache.d.ts +38 -0
  29. package/dist/firestore/test/unit/local/test_index_manager.d.ts +11 -0
  30. package/dist/firestore/test/unit/local/test_remote_document_cache.d.ts +4 -2
  31. package/dist/firestore/test/unit/local/test_remote_document_change_buffer.d.ts +1 -1
  32. package/dist/firestore/test/unit/model/target_index_matcher.test.d.ts +17 -0
  33. package/dist/index.esm2017.js +4367 -3517
  34. package/dist/index.esm2017.js.map +1 -1
  35. package/dist/index.esm5.js +4226 -3437
  36. package/dist/index.esm5.js.map +1 -1
  37. package/dist/index.node.cjs.js +1519 -242
  38. package/dist/index.node.cjs.js.map +1 -1
  39. package/dist/index.node.mjs +1501 -245
  40. package/dist/index.node.mjs.map +1 -1
  41. package/dist/index.rn.js +4355 -3509
  42. package/dist/index.rn.js.map +1 -1
  43. package/dist/internal.d.ts +84 -12
  44. package/dist/lite/firestore/src/api/credentials.d.ts +1 -0
  45. package/dist/lite/firestore/src/index/index_byte_encoder.d.ts +18 -1
  46. package/dist/lite/firestore/src/index/index_entry.d.ts +26 -0
  47. package/dist/lite/firestore/src/local/document_overlay_cache.d.ts +72 -0
  48. package/dist/lite/firestore/src/local/indexeddb_document_overlay_cache.d.ts +45 -0
  49. package/dist/lite/firestore/src/local/indexeddb_index_manager.d.ts +29 -2
  50. package/dist/lite/firestore/src/local/indexeddb_persistence.d.ts +6 -4
  51. package/dist/lite/firestore/src/local/indexeddb_remote_document_cache.d.ts +2 -8
  52. package/dist/lite/firestore/src/local/indexeddb_schema.d.ts +83 -9
  53. package/dist/lite/firestore/src/local/local_documents_view.d.ts +0 -1
  54. package/dist/lite/firestore/src/local/local_serializer.d.ts +18 -2
  55. package/dist/lite/firestore/src/local/memory_document_overlay_cache.d.ts +37 -0
  56. package/dist/lite/firestore/src/local/memory_persistence.d.ts +6 -2
  57. package/dist/lite/firestore/src/local/memory_remote_document_cache.d.ts +1 -3
  58. package/dist/lite/firestore/src/local/persistence.d.ts +8 -2
  59. package/dist/lite/firestore/src/local/remote_document_cache.d.ts +7 -9
  60. package/dist/lite/firestore/src/model/document_key.d.ts +5 -0
  61. package/dist/lite/firestore/src/model/field_index.d.ts +2 -2
  62. package/dist/lite/firestore/src/model/overlay.d.ts +32 -0
  63. package/dist/lite/firestore/src/model/target_index_matcher.d.ts +70 -0
  64. package/dist/lite/firestore/src/platform/node/grpc_connection.d.ts +2 -2
  65. package/dist/lite/firestore/src/platform/node/load_protos.d.ts +2 -2
  66. package/dist/lite/firestore/src/util/sorted_set.d.ts +18 -0
  67. package/dist/lite/firestore/test/unit/local/counting_query_engine.d.ts +3 -3
  68. package/dist/lite/firestore/test/unit/local/document_overlay_cache.test.d.ts +1 -0
  69. package/dist/lite/firestore/test/unit/local/persistence_test_helpers.d.ts +1 -0
  70. package/dist/lite/firestore/test/unit/local/test_document_overlay_cache.d.ts +38 -0
  71. package/dist/lite/firestore/test/unit/local/test_index_manager.d.ts +11 -0
  72. package/dist/lite/firestore/test/unit/local/test_remote_document_cache.d.ts +4 -2
  73. package/dist/lite/firestore/test/unit/local/test_remote_document_change_buffer.d.ts +1 -1
  74. package/dist/lite/firestore/test/unit/model/target_index_matcher.test.d.ts +17 -0
  75. package/dist/lite/index.browser.esm2017.js +1121 -1112
  76. package/dist/lite/index.browser.esm2017.js.map +1 -1
  77. package/dist/lite/index.browser.esm5.js +60 -48
  78. package/dist/lite/index.browser.esm5.js.map +1 -1
  79. package/dist/lite/index.node.cjs.js +13 -2
  80. package/dist/lite/index.node.cjs.js.map +1 -1
  81. package/dist/lite/index.node.mjs +13 -2
  82. package/dist/lite/index.node.mjs.map +1 -1
  83. package/dist/lite/index.rn.esm2017.js +46 -37
  84. package/dist/lite/index.rn.esm2017.js.map +1 -1
  85. package/dist/lite/internal.d.ts +5 -0
  86. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +112 -112
  87. package/dist/lite/packages/firestore/src/api/credentials.d.ts +1 -0
  88. package/dist/lite/packages/firestore/src/index/index_byte_encoder.d.ts +18 -1
  89. package/dist/lite/packages/firestore/src/index/index_entry.d.ts +26 -0
  90. package/dist/lite/packages/firestore/src/local/document_overlay_cache.d.ts +72 -0
  91. package/dist/lite/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +45 -0
  92. package/dist/lite/packages/firestore/src/local/indexeddb_index_manager.d.ts +29 -2
  93. package/dist/lite/packages/firestore/src/local/indexeddb_persistence.d.ts +6 -4
  94. package/dist/lite/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +2 -8
  95. package/dist/lite/packages/firestore/src/local/indexeddb_schema.d.ts +83 -9
  96. package/dist/lite/packages/firestore/src/local/local_documents_view.d.ts +0 -1
  97. package/dist/lite/packages/firestore/src/local/local_serializer.d.ts +18 -2
  98. package/dist/lite/packages/firestore/src/local/memory_document_overlay_cache.d.ts +37 -0
  99. package/dist/lite/packages/firestore/src/local/memory_persistence.d.ts +6 -2
  100. package/dist/lite/packages/firestore/src/local/memory_remote_document_cache.d.ts +1 -3
  101. package/dist/lite/packages/firestore/src/local/persistence.d.ts +8 -2
  102. package/dist/lite/packages/firestore/src/local/remote_document_cache.d.ts +7 -9
  103. package/dist/lite/packages/firestore/src/model/document_key.d.ts +5 -0
  104. package/dist/lite/packages/firestore/src/model/field_index.d.ts +2 -2
  105. package/dist/lite/packages/firestore/src/model/overlay.d.ts +32 -0
  106. package/dist/lite/packages/firestore/src/model/target_index_matcher.d.ts +70 -0
  107. package/dist/lite/packages/firestore/src/platform/node/grpc_connection.d.ts +2 -2
  108. package/dist/lite/packages/firestore/src/platform/node/load_protos.d.ts +2 -2
  109. package/dist/lite/packages/firestore/src/util/sorted_set.d.ts +18 -0
  110. package/dist/lite/packages/firestore/test/unit/local/counting_query_engine.d.ts +3 -3
  111. package/dist/lite/packages/firestore/test/unit/local/document_overlay_cache.test.d.ts +1 -0
  112. package/dist/lite/packages/firestore/test/unit/local/persistence_test_helpers.d.ts +1 -0
  113. package/dist/lite/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +38 -0
  114. package/dist/lite/packages/firestore/test/unit/local/test_index_manager.d.ts +11 -0
  115. package/dist/lite/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +4 -2
  116. package/dist/lite/packages/firestore/test/unit/local/test_remote_document_change_buffer.d.ts +1 -1
  117. package/dist/lite/packages/firestore/test/unit/model/target_index_matcher.test.d.ts +17 -0
  118. package/dist/packages/firestore/dist/index.esm2017.d.ts +187 -184
  119. package/dist/packages/firestore/src/api/credentials.d.ts +1 -0
  120. package/dist/packages/firestore/src/index/index_byte_encoder.d.ts +18 -1
  121. package/dist/packages/firestore/src/index/index_entry.d.ts +26 -0
  122. package/dist/packages/firestore/src/local/document_overlay_cache.d.ts +72 -0
  123. package/dist/packages/firestore/src/local/indexeddb_document_overlay_cache.d.ts +45 -0
  124. package/dist/packages/firestore/src/local/indexeddb_index_manager.d.ts +29 -2
  125. package/dist/packages/firestore/src/local/indexeddb_persistence.d.ts +6 -4
  126. package/dist/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +2 -8
  127. package/dist/packages/firestore/src/local/indexeddb_schema.d.ts +83 -9
  128. package/dist/packages/firestore/src/local/local_documents_view.d.ts +0 -1
  129. package/dist/packages/firestore/src/local/local_serializer.d.ts +18 -2
  130. package/dist/packages/firestore/src/local/memory_document_overlay_cache.d.ts +37 -0
  131. package/dist/packages/firestore/src/local/memory_persistence.d.ts +6 -2
  132. package/dist/packages/firestore/src/local/memory_remote_document_cache.d.ts +1 -3
  133. package/dist/packages/firestore/src/local/persistence.d.ts +8 -2
  134. package/dist/packages/firestore/src/local/remote_document_cache.d.ts +7 -9
  135. package/dist/packages/firestore/src/model/document_key.d.ts +5 -0
  136. package/dist/packages/firestore/src/model/field_index.d.ts +2 -2
  137. package/dist/packages/firestore/src/model/overlay.d.ts +32 -0
  138. package/dist/packages/firestore/src/model/target_index_matcher.d.ts +70 -0
  139. package/dist/packages/firestore/src/platform/node/grpc_connection.d.ts +2 -2
  140. package/dist/packages/firestore/src/platform/node/load_protos.d.ts +2 -2
  141. package/dist/packages/firestore/src/util/sorted_set.d.ts +18 -0
  142. package/dist/packages/firestore/test/unit/local/counting_query_engine.d.ts +3 -3
  143. package/dist/packages/firestore/test/unit/local/document_overlay_cache.test.d.ts +1 -0
  144. package/dist/packages/firestore/test/unit/local/persistence_test_helpers.d.ts +1 -0
  145. package/dist/packages/firestore/test/unit/local/test_document_overlay_cache.d.ts +38 -0
  146. package/dist/packages/firestore/test/unit/local/test_index_manager.d.ts +11 -0
  147. package/dist/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +4 -2
  148. package/dist/packages/firestore/test/unit/local/test_remote_document_change_buffer.d.ts +1 -1
  149. package/dist/packages/firestore/test/unit/model/target_index_matcher.test.d.ts +17 -0
  150. package/dist/private.d.ts +79 -12
  151. package/package.json +9 -9
@@ -66,7 +66,7 @@ f.MOCK_USER = new f("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let d = "9.6.6-canary.f5ac47fb1";
69
+ let d = "9.6.7";
70
70
 
71
71
  /**
72
72
  * @license
@@ -328,7 +328,7 @@ n) {
328
328
  }
329
329
  }
330
330
 
331
- /** Credential provider for the Lite SDK. */ class Q {
331
+ /** Credential provider for the Lite SDK. */ class G {
332
332
  constructor(t) {
333
333
  this.auth = null, t.onInit((t => {
334
334
  this.auth = t;
@@ -349,7 +349,7 @@ n) {
349
349
  * Technically this may no longer be necessary since the SDK should gracefully
350
350
  * recover from unauthenticated errors (see b/33147818 for context), but it's
351
351
  * safer to keep the implementation as-is.
352
- */ class G {
352
+ */ class Q {
353
353
  constructor(t, n, e) {
354
354
  this.type = "FirstParty", this.user = f.FIRST_PARTY, this.headers = new Map, this.headers.set("X-Goog-AuthUser", n);
355
355
  const r = t.auth.getAuthHeaderValueForFirstParty([]);
@@ -366,7 +366,7 @@ n) {
366
366
  this.t = t, this.i = n, this.o = e;
367
367
  }
368
368
  getToken() {
369
- return Promise.resolve(new G(this.t, this.i, this.o));
369
+ return Promise.resolve(new Q(this.t, this.i, this.o));
370
370
  }
371
371
  start(t, n) {
372
372
  // Fire with initial uid.
@@ -681,9 +681,18 @@ const tt = /^[_a-zA-Z][_a-zA-Z0-9]*$/;
681
681
  static empty() {
682
682
  return new et(Z.emptyPath());
683
683
  }
684
+ get collectionGroup() {
685
+ return this.path.popLast().lastSegment();
686
+ }
684
687
  /** Returns true if the document is in the specified collectionId. */ hasCollectionId(t) {
685
688
  return this.path.length >= 2 && this.path.get(this.path.length - 2) === t;
686
689
  }
690
+ /** Returns the collection group (i.e. the name of the parent collection) for this key. */ getCollectionGroup() {
691
+ return this.path.get(this.path.length - 2);
692
+ }
693
+ /** Returns the fully qualified path to the parent collection. */ getCollectionPath() {
694
+ return this.path.popLast();
695
+ }
687
696
  isEqual(t) {
688
697
  return null !== t && 0 === Z.comparator(this.path, t.path);
689
698
  }
@@ -1895,12 +1904,12 @@ function kt(t, n) {
1895
1904
  /**
1896
1905
  * An ObjectValue represents a MapValue in the Firestore Proto and offers the
1897
1906
  * ability to add and remove fields (via the ObjectValueBuilder).
1898
- */ class Qt {
1907
+ */ class Gt {
1899
1908
  constructor(t) {
1900
1909
  this.value = t;
1901
1910
  }
1902
1911
  static empty() {
1903
- return new Qt({
1912
+ return new Gt({
1904
1913
  mapValue: {}
1905
1914
  });
1906
1915
  }
@@ -1981,7 +1990,7 @@ function kt(t, n) {
1981
1990
  for (const n of e) delete t[n];
1982
1991
  }
1983
1992
  clone() {
1984
- return new Qt(zt(this.value));
1993
+ return new Gt(zt(this.value));
1985
1994
  }
1986
1995
  }
1987
1996
 
@@ -2010,7 +2019,7 @@ function kt(t, n) {
2010
2019
  * not transition to one of these states even after all mutations have been
2011
2020
  * applied, `isValidDocument()` returns false and the document should be removed
2012
2021
  * from all views.
2013
- */ class Gt {
2022
+ */ class Qt {
2014
2023
  constructor(t, n, e, r, s, i) {
2015
2024
  this.key = t, this.documentType = n, this.version = e, this.readTime = r, this.data = s,
2016
2025
  this.documentState = i;
@@ -2019,23 +2028,23 @@ function kt(t, n) {
2019
2028
  * Creates a document with no known version or data, but which can serve as
2020
2029
  * base document for mutations.
2021
2030
  */ static newInvalidDocument(t) {
2022
- return new Gt(t, 0 /* INVALID */ , bt.min(), bt.min(), Qt.empty(), 0 /* SYNCED */);
2031
+ return new Qt(t, 0 /* INVALID */ , bt.min(), bt.min(), Gt.empty(), 0 /* SYNCED */);
2023
2032
  }
2024
2033
  /**
2025
2034
  * Creates a new document that is known to exist with the given data at the
2026
2035
  * given version.
2027
2036
  */ static newFoundDocument(t, n, e) {
2028
- return new Gt(t, 1 /* FOUND_DOCUMENT */ , n, bt.min(), e, 0 /* SYNCED */);
2037
+ return new Qt(t, 1 /* FOUND_DOCUMENT */ , n, bt.min(), e, 0 /* SYNCED */);
2029
2038
  }
2030
2039
  /** Creates a new document that is known to not exist at the given version. */ static newNoDocument(t, n) {
2031
- return new Gt(t, 2 /* NO_DOCUMENT */ , n, bt.min(), Qt.empty(), 0 /* SYNCED */);
2040
+ return new Qt(t, 2 /* NO_DOCUMENT */ , n, bt.min(), Gt.empty(), 0 /* SYNCED */);
2032
2041
  }
2033
2042
  /**
2034
2043
  * Creates a new document that is known to exist at the given version but
2035
2044
  * whose data is not known (e.g. a document that was updated without a known
2036
2045
  * base document).
2037
2046
  */ static newUnknownDocument(t, n) {
2038
- return new Gt(t, 3 /* UNKNOWN_DOCUMENT */ , n, bt.min(), Qt.empty(), 2 /* HAS_COMMITTED_MUTATIONS */);
2047
+ return new Qt(t, 3 /* UNKNOWN_DOCUMENT */ , n, bt.min(), Gt.empty(), 2 /* HAS_COMMITTED_MUTATIONS */);
2039
2048
  }
2040
2049
  /**
2041
2050
  * Changes the document type to indicate that it exists and that its version
@@ -2048,7 +2057,7 @@ function kt(t, n) {
2048
2057
  * Changes the document type to indicate that it doesn't exist at the given
2049
2058
  * version.
2050
2059
  */ convertToNoDocument(t) {
2051
- return this.version = t, this.documentType = 2 /* NO_DOCUMENT */ , this.data = Qt.empty(),
2060
+ return this.version = t, this.documentType = 2 /* NO_DOCUMENT */ , this.data = Gt.empty(),
2052
2061
  this.documentState = 0 /* SYNCED */ , this;
2053
2062
  }
2054
2063
  /**
@@ -2056,7 +2065,7 @@ function kt(t, n) {
2056
2065
  * that its data is not known (e.g. a document that was updated without a known
2057
2066
  * base document).
2058
2067
  */ convertToUnknownDocument(t) {
2059
- return this.version = t, this.documentType = 3 /* UNKNOWN_DOCUMENT */ , this.data = Qt.empty(),
2068
+ return this.version = t, this.documentType = 3 /* UNKNOWN_DOCUMENT */ , this.data = Gt.empty(),
2060
2069
  this.documentState = 2 /* HAS_COMMITTED_MUTATIONS */ , this;
2061
2070
  }
2062
2071
  setHasCommittedMutations() {
@@ -2090,10 +2099,10 @@ function kt(t, n) {
2090
2099
  return 3 /* UNKNOWN_DOCUMENT */ === this.documentType;
2091
2100
  }
2092
2101
  isEqual(t) {
2093
- return t instanceof Gt && this.key.isEqual(t.key) && this.version.isEqual(t.version) && this.documentType === t.documentType && this.documentState === t.documentState && this.data.isEqual(t.data);
2102
+ return t instanceof Qt && this.key.isEqual(t.key) && this.version.isEqual(t.version) && this.documentType === t.documentType && this.documentState === t.documentState && this.data.isEqual(t.data);
2094
2103
  }
2095
2104
  mutableCopy() {
2096
- return new Gt(this.key, this.documentType, this.version, this.readTime, this.data.clone(), this.documentState);
2105
+ return new Qt(this.key, this.documentType, this.version, this.readTime, this.data.clone(), this.documentState);
2097
2106
  }
2098
2107
  toString() {
2099
2108
  return `Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`;
@@ -2798,16 +2807,16 @@ function Mn(t, n, e) {
2798
2807
  function Bn(t, n) {
2799
2808
  return "found" in n ? function(t, n) {
2800
2809
  b(!!n.found), n.found.name, n.found.updateTime;
2801
- const e = kn(t, n.found.name), r = On(n.found.updateTime), s = new Qt({
2810
+ const e = kn(t, n.found.name), r = On(n.found.updateTime), s = new Gt({
2802
2811
  mapValue: {
2803
2812
  fields: n.found.fields
2804
2813
  }
2805
2814
  });
2806
- return Gt.newFoundDocument(e, r, s);
2815
+ return Qt.newFoundDocument(e, r, s);
2807
2816
  }(t, n) : "missing" in n ? function(t, n) {
2808
2817
  b(!!n.missing), b(!!n.readTime);
2809
2818
  const e = kn(t, n.missing), r = On(n.readTime);
2810
- return Gt.newNoDocument(e, r);
2819
+ return Qt.newNoDocument(e, r);
2811
2820
  }(t, n) : v();
2812
2821
  }
2813
2822
 
@@ -2858,7 +2867,7 @@ function zn(t, n) {
2858
2867
  }(t, n.precondition)), e;
2859
2868
  }
2860
2869
 
2861
- function Qn(t, n) {
2870
+ function Gn(t, n) {
2862
2871
  // Dissect the path into parent, collectionId, and optional key filter.
2863
2872
  const e = {
2864
2873
  structuredQuery: {}
@@ -2925,7 +2934,7 @@ function Qn(t, n) {
2925
2934
  function(t) {
2926
2935
  return {
2927
2936
  field: Yn(t.field),
2928
- direction: Gn(t.dir)
2937
+ direction: Qn(t.dir)
2929
2938
  };
2930
2939
  }(t)));
2931
2940
  }(n.orderBy);
@@ -2949,7 +2958,7 @@ function Qn(t, n) {
2949
2958
  (n.endAt)), e;
2950
2959
  }
2951
2960
 
2952
- function Gn(t) {
2961
+ function Qn(t) {
2953
2962
  return Dn[t];
2954
2963
  }
2955
2964
 
@@ -3168,15 +3177,15 @@ async function ne(t, n) {
3168
3177
  }
3169
3178
 
3170
3179
  async function ee(t, n) {
3171
- const e = E(t), r = Qn(e.q, mn(n));
3180
+ const e = E(t), r = Gn(e.q, mn(n));
3172
3181
  return (await e.T("RunQuery", r.parent, {
3173
3182
  structuredQuery: r.structuredQuery
3174
3183
  })).filter((t => !!t.document)).map((t => function(t, n, e) {
3175
- const r = kn(t, n.name), s = On(n.updateTime), i = new Qt({
3184
+ const r = kn(t, n.name), s = On(n.updateTime), i = new Gt({
3176
3185
  mapValue: {
3177
3186
  fields: n.fields
3178
3187
  }
3179
- }), o = Gt.newFoundDocument(r, s, i);
3188
+ }), o = Qt.newFoundDocument(r, s, i);
3180
3189
  return e && o.setHasCommittedMutations(), e ? o.setHasCommittedMutations() : o;
3181
3190
  }(e.q, t.document, void 0)));
3182
3191
  }
@@ -4034,13 +4043,13 @@ function De(t) {
4034
4043
  if (i.merge) c = new It(o.fieldMask), a = o.fieldTransforms; else if (i.mergeFields) {
4035
4044
  const t = [];
4036
4045
  for (const r of i.mergeFields) {
4037
- const s = Qe(n, r, e);
4046
+ const s = Ge(n, r, e);
4038
4047
  if (!o.contains(s)) throw new U(R, `Field '${s}' is specified in your field mask but missing from your input data.`);
4039
4048
  He(t, s) || t.push(s);
4040
4049
  }
4041
4050
  c = new It(t), a = o.fieldTransforms.filter((t => c.covers(t.field)));
4042
4051
  } else c = null, a = o.fieldTransforms;
4043
- return new Ae(new Qt(u), c, a);
4052
+ return new Ae(new Gt(u), c, a);
4044
4053
  }
4045
4054
 
4046
4055
  class Se extends Ee {
@@ -4135,7 +4144,7 @@ class Ce extends Ee {
4135
4144
  /** Parse update data from an update() call. */ function Le(t, n, e, r) {
4136
4145
  const s = t.ht(1 /* Update */ , n, e);
4137
4146
  ze("Data must be an object, but it was:", s, r);
4138
- const i = [], o = Qt.empty();
4147
+ const i = [], o = Gt.empty();
4139
4148
  Tt(r, ((t, r) => {
4140
4149
  const u = We(n, t, e);
4141
4150
  // For Compat types, we have to "extract" the underlying types before
@@ -4154,10 +4163,10 @@ class Ce extends Ee {
4154
4163
  }
4155
4164
 
4156
4165
  /** Parse update data from a list of field/value arguments. */ function ke(t, n, e, r, s, i) {
4157
- const o = t.ht(1 /* Update */ , n, e), u = [ Qe(n, r, e) ], c = [ s ];
4166
+ const o = t.ht(1 /* Update */ , n, e), u = [ Ge(n, r, e) ], c = [ s ];
4158
4167
  if (i.length % 2 != 0) throw new U(R, `Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);
4159
- for (let t = 0; t < i.length; t += 2) u.push(Qe(n, i[t])), c.push(i[t + 1]);
4160
- const a = [], h = Qt.empty();
4168
+ for (let t = 0; t < i.length; t += 2) u.push(Ge(n, i[t])), c.push(i[t + 1]);
4169
+ const a = [], h = Gt.empty();
4161
4170
  // We iterate in reverse order to pick the last value for a field if the
4162
4171
  // user specified the field multiple times.
4163
4172
  for (let t = u.length - 1; t >= 0; --t) if (!He(a, u[t])) {
@@ -4344,7 +4353,7 @@ function ze(t, n, e) {
4344
4353
 
4345
4354
  /**
4346
4355
  * Helper that calls fromDotSeparatedString() but wraps any error thrown.
4347
- */ function Qe(t, n, e) {
4356
+ */ function Ge(t, n, e) {
4348
4357
  if ((
4349
4358
  // If required, replace the FieldPath Compat class with with the firestore-exp
4350
4359
  // FieldPath.
@@ -4357,7 +4366,7 @@ function ze(t, n, e) {
4357
4366
 
4358
4367
  /**
4359
4368
  * Matches any characters in a field path string that are reserved.
4360
- */ const Ge = new RegExp("[~\\*/\\[\\]]");
4369
+ */ const Qe = new RegExp("[~\\*/\\[\\]]");
4361
4370
 
4362
4371
  /**
4363
4372
  * Wraps fromDotSeparatedString with an error message about the method that
@@ -4368,7 +4377,7 @@ function ze(t, n, e) {
4368
4377
  * @param targetDoc - The document against which the field path will be
4369
4378
  * evaluated.
4370
4379
  */ function We(t, n, e) {
4371
- if (n.search(Ge) >= 0) throw Ye(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`, t,
4380
+ if (n.search(Qe) >= 0) throw Ye(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`, t,
4372
4381
  /* hasConverter= */ !1,
4373
4382
  /* path= */ void 0, e);
4374
4383
  try {
@@ -5880,7 +5889,7 @@ class Cr {
5880
5889
  }
5881
5890
  /**
5882
5891
  * For Tests: Skip all subsequent delays for a timer id.
5883
- */ Qt(t) {
5892
+ */ Gt(t) {
5884
5893
  this.Ot.push(t);
5885
5894
  }
5886
5895
  /** Called once a DelayedOperation is run or canceled. */ jt(t) {
@@ -5964,11 +5973,11 @@ class jr {
5964
5973
  */ !function(t) {
5965
5974
  d = t;
5966
5975
  }(`${s}_lite`), e(new i("firestore/lite", ((t, {options: n}) => {
5967
- const e = t.getProvider("app").getImmediate(), r = new oe(e, new Q(t.getProvider("auth-internal")), new H(t.getProvider("app-check-internal")));
5976
+ const e = t.getProvider("app").getImmediate(), r = new oe(e, new G(t.getProvider("auth-internal")), new H(t.getProvider("app-check-internal")));
5968
5977
  return n && r._setSettings(n), r;
5969
5978
  }), "PUBLIC")),
5970
5979
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
5971
- r("firestore-lite", "3.4.4-canary.f5ac47fb1", "rn"), r("firestore-lite", "3.4.4-canary.f5ac47fb1", "esm2017");
5980
+ r("firestore-lite", "3.4.5", "rn"), r("firestore-lite", "3.4.5", "esm2017");
5972
5981
 
5973
5982
  export { be as Bytes, de as CollectionReference, le as DocumentReference, Ke as DocumentSnapshot, ge as FieldPath, Ee as FieldValue, oe as Firestore, U as FirestoreError, Te as GeoPoint, fe as Query, nr as QueryConstraint, Je as QueryDocumentSnapshot, Xe as QuerySnapshot, vt as Timestamp, jr as Transaction, Fr as WriteBatch, Pr as addDoc, $r as arrayRemove, Dr as arrayUnion, we as collection, me as collectionGroup, ae as connectFirestoreEmulator, Rr as deleteDoc, Vr as deleteField, pe as doc, ve as documentId, mr as endAt, wr as endBefore, Er as getDoc, Tr as getDocs, ce as getFirestore, Sr as increment, ue as initializeFirestore, cr as limit, ar as limitToLast, or as orderBy, er as query, _e as queryEqual, ye as refEqual, Mr as runTransaction, Nr as serverTimestamp, Ir as setDoc, m as setLogLevel, Ze as snapshotEqual, fr as startAfter, lr as startAt, he as terminate, Ar as updateDoc, sr as where, qr as writeBatch };
5974
5983
  //# sourceMappingURL=index.rn.esm2017.js.map