@firebase/firestore 3.4.1-canary.be7ccb8ed → 3.4.2

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.
@@ -70,7 +70,7 @@ O.MOCK_USER = new O("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- var F = "9.6.1-canary.be7ccb8ed", M = new h("@firebase/firestore");
73
+ var F = "9.6.2", M = new h("@firebase/firestore");
74
74
 
75
75
  /**
76
76
  * @license
@@ -8702,23 +8702,21 @@ function fo(t, e) {
8702
8702
  // Reset newTargetDataByTargetMap in case this transaction gets re-run.
8703
8703
  i = n.qn;
8704
8704
  var s = [];
8705
- e.targetChanges.forEach((function(e, o) {
8706
- var a = i.get(o);
8707
- if (a) {
8705
+ e.targetChanges.forEach((function(o, a) {
8706
+ var u = i.get(a);
8707
+ if (u) {
8708
8708
  // Only update the remote keys if the target is still active. This
8709
8709
  // ensures that we can persist the updated target data along with
8710
8710
  // the updated assignment.
8711
- s.push(n.He.removeMatchingKeys(t, e.removedDocuments, o).next((function() {
8712
- return n.He.addMatchingKeys(t, e.addedDocuments, o);
8711
+ s.push(n.He.removeMatchingKeys(t, o.removedDocuments, a).next((function() {
8712
+ return n.He.addMatchingKeys(t, o.addedDocuments, a);
8713
8713
  })));
8714
- var u = e.resumeToken;
8715
- // Update the resume token if the change includes one.
8716
- if (u.approximateByteSize() > 0) {
8717
- var c = a.withResumeToken(u, r).withSequenceNumber(t.currentSequenceNumber);
8718
- i = i.insert(o, c),
8719
- // Update the target data if there are target changes (or if
8720
- // sufficient time has passed since the last update).
8721
- /**
8714
+ var c = u.withSequenceNumber(t.currentSequenceNumber);
8715
+ e.targetMismatches.has(a) ? c = c.withResumeToken(Et.EMPTY_BYTE_STRING, dt.min()).withLastLimboFreeSnapshotVersion(dt.min()) : o.resumeToken.approximateByteSize() > 0 && (c = c.withResumeToken(o.resumeToken, r)),
8716
+ i = i.insert(a, c),
8717
+ // Update the target data if there are target changes (or if
8718
+ // sufficient time has passed since the last update).
8719
+ /**
8722
8720
  * Returns true if the newTargetData should be persisted during an update of
8723
8721
  * an active target. TargetData should always be persisted when a target is
8724
8722
  * being released and should not call this function.
@@ -8729,17 +8727,16 @@ function fo(t, e) {
8729
8727
  * values from getting too stale after a crash, but this doesn't have to be
8730
8728
  * too frequent.
8731
8729
  */
8732
- function(t, e, n) {
8733
- // Always persist target data if we don't already have a resume token.
8734
- return z(e.resumeToken.approximateByteSize() > 0), 0 === t.resumeToken.approximateByteSize() || (
8735
- // Don't allow resume token changes to be buffered indefinitely. This
8736
- // allows us to be reasonably up-to-date after a crash and avoids needing
8737
- // to loop over all active queries on shutdown. Especially in the browser
8738
- // we may not get time to do anything interesting while the current tab is
8739
- // closing.
8740
- e.snapshotVersion.toMicroseconds() - t.snapshotVersion.toMicroseconds() >= 3e8 || n.addedDocuments.size + n.modifiedDocuments.size + n.removedDocuments.size > 0);
8741
- }(a, c, e) && s.push(n.He.updateTargetData(t, c));
8742
- }
8730
+ function(t, e, n) {
8731
+ // Always persist target data if we don't already have a resume token.
8732
+ return 0 === t.resumeToken.approximateByteSize() || (
8733
+ // Don't allow resume token changes to be buffered indefinitely. This
8734
+ // allows us to be reasonably up-to-date after a crash and avoids needing
8735
+ // to loop over all active queries on shutdown. Especially in the browser
8736
+ // we may not get time to do anything interesting while the current tab is
8737
+ // closing.
8738
+ e.snapshotVersion.toMicroseconds() - t.snapshotVersion.toMicroseconds() >= 3e8 || n.addedDocuments.size + n.modifiedDocuments.size + n.removedDocuments.size > 0);
8739
+ }(u, c, o) && s.push(n.He.updateTargetData(t, c));
8743
8740
  }
8744
8741
  }));
8745
8742
  var a = _n();
@@ -18445,9 +18442,9 @@ void 0 === dh && (dh = !0), F = i, o(new c("firestore", (function(t, e) {
18445
18442
  return n = Object.assign({
18446
18443
  useFetchStreams: dh
18447
18444
  }, n), i._setSettings(n), i;
18448
- }), "PUBLIC")), s(P, "3.4.1-canary.be7ccb8ed", void 0),
18445
+ }), "PUBLIC")), s(P, "3.4.2", void 0),
18449
18446
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
18450
- s(P, "3.4.1-canary.be7ccb8ed", "esm5");
18447
+ s(P, "3.4.2", "esm5");
18451
18448
 
18452
18449
  export { Wc as AbstractUserDataWriter, Ku as Bytes, Su as CACHE_SIZE_UNLIMITED, yu as CollectionReference, du as DocumentReference, Tc as DocumentSnapshot, Bu as FieldPath, Gu as FieldValue, _u as Firestore, Y as FirestoreError, zu as GeoPoint, Eu as LoadBundleTask, pu as Query, Dc as QueryConstraint, Ec as QueryDocumentSnapshot, Sc as QuerySnapshot, Ic as SnapshotMetadata, lt as Timestamp, ph as Transaction, Jc as WriteBatch, eu as _DatabaseId, Pt as _DocumentKey, ot as _EmptyAppCheckTokenProvider, Z as _EmptyAuthCredentialsProvider, bt as _FieldPath, uu as _cast, Q as _debugAssert, Tt as _isBase64Available, j as _logWarn, iu as _validateIsNotUsedTogether, uh as addDoc, wh as arrayRemove, gh as arrayUnion, Lu as clearIndexedDbPersistence, vu as collection, mu as collectionGroup, lu as connectFirestoreEmulator, ah as deleteDoc, vh as deleteField, Fu as disableNetwork, gu as doc, ju as documentId, Cu as enableIndexedDbPersistence, xu as enableMultiTabIndexedDbPersistence, Ou as enableNetwork, jc as endAt, Bc as endBefore, Du as ensureFirestoreConfigured, fh as executeWrite, Zc as getDoc, th as getDocFromCache, eh as getDocFromServer, nh as getDocs, rh as getDocsFromCache, ih as getDocsFromServer, Au as getFirestore, bh as increment, ku as initializeFirestore, Oc as limit, Fc as limitToLast, Vu as loadBundle, qu as namedQuery, ch as onSnapshot, hh as onSnapshotsInSync, Lc as orderBy, Nc as query, bu as queryEqual, wu as refEqual, yh as runTransaction, mh as serverTimestamp, oh as setDoc, q as setLogLevel, kc as snapshotEqual, qc as startAfter, Vc as startAt, Mu as terminate, sh as updateDoc, Pu as waitForPendingWrites, xc as where, Ih as writeBatch };
18453
18450
  //# sourceMappingURL=index.esm5.js.map