@firebase/firestore 3.4.7-canary.e9e5f6b3c → 3.4.8

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 (36) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/firestore/src/local/indexeddb_remote_document_cache.d.ts +9 -0
  3. package/dist/firestore/src/local/simple_db.d.ts +2 -0
  4. package/dist/firestore/test/unit/local/test_remote_document_cache.d.ts +0 -4
  5. package/dist/index.esm2017.js +153 -146
  6. package/dist/index.esm2017.js.map +1 -1
  7. package/dist/index.esm5.js +69 -65
  8. package/dist/index.esm5.js.map +1 -1
  9. package/dist/index.node.cjs.js +26 -9
  10. package/dist/index.node.cjs.js.map +1 -1
  11. package/dist/index.node.mjs +26 -9
  12. package/dist/index.node.mjs.map +1 -1
  13. package/dist/index.rn.js +14 -7
  14. package/dist/index.rn.js.map +1 -1
  15. package/dist/lite/firestore/src/local/indexeddb_remote_document_cache.d.ts +9 -0
  16. package/dist/lite/firestore/src/local/simple_db.d.ts +2 -0
  17. package/dist/lite/firestore/test/unit/local/test_remote_document_cache.d.ts +0 -4
  18. package/dist/lite/index.browser.esm2017.js +73 -73
  19. package/dist/lite/index.browser.esm2017.js.map +1 -1
  20. package/dist/lite/index.browser.esm5.js +8 -8
  21. package/dist/lite/index.browser.esm5.js.map +1 -1
  22. package/dist/lite/index.node.cjs.js +2 -2
  23. package/dist/lite/index.node.cjs.js.map +1 -1
  24. package/dist/lite/index.node.mjs +2 -2
  25. package/dist/lite/index.node.mjs.map +1 -1
  26. package/dist/lite/index.rn.esm2017.js +1112 -1112
  27. package/dist/lite/index.rn.esm2017.js.map +1 -1
  28. package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +18 -18
  29. package/dist/lite/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +9 -0
  30. package/dist/lite/packages/firestore/src/local/simple_db.d.ts +2 -0
  31. package/dist/lite/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +0 -4
  32. package/dist/packages/firestore/dist/index.esm2017.d.ts +8 -8
  33. package/dist/packages/firestore/src/local/indexeddb_remote_document_cache.d.ts +9 -0
  34. package/dist/packages/firestore/src/local/simple_db.d.ts +2 -0
  35. package/dist/packages/firestore/test/unit/local/test_remote_document_cache.d.ts +0 -4
  36. package/package.json +9 -9
package/dist/index.rn.js CHANGED
@@ -70,7 +70,7 @@ x.MOCK_USER = new x("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let N = "9.6.10-canary.e9e5f6b3c";
73
+ let N = "9.6.11";
74
74
 
75
75
  /**
76
76
  * @license
@@ -9015,11 +9015,18 @@ function jr(t, e) {
9015
9015
 
9016
9016
  /**
9017
9017
  * Comparator that compares document keys according to the primary key sorting
9018
- * used by the `DbRemoteDocumentDocument` store (by collection path and then
9019
- * document ID).
9018
+ * used by the `DbRemoteDocumentDocument` store (by prefix path, collection id
9019
+ * and then document ID).
9020
+ *
9021
+ * Visible for testing.
9020
9022
  */ function Wr(t, e) {
9021
- const n = t.path.length - e.path.length;
9022
- return 0 !== n ? n : kt.comparator(t, e);
9023
+ const n = t.path.toArray(), s = e.path.toArray();
9024
+ // The ordering is based on https://chromium.googlesource.com/chromium/blink/+/fe5c21fef94dae71c1c3344775b8d8a7f7e6d9ec/Source/modules/indexeddb/IDBKey.cpp#74
9025
+ let i = 0;
9026
+ for (let t = 0; t < n.length - 2 && t < s.length - 2; ++t) if (i = ot(n[t], s[t]),
9027
+ i) return i;
9028
+ return i = ot(n.length, s.length), i || (i = ot(n[n.length - 2], s[s.length - 2]),
9029
+ i || ot(n[n.length - 1], s[s.length - 1]));
9023
9030
  }
9024
9031
 
9025
9032
  /**
@@ -19120,9 +19127,9 @@ function Vl(t, e) {
19120
19127
  return n = Object.assign({
19121
19128
  useFetchStreams: e
19122
19129
  }, n), i._setSettings(n), i;
19123
- }), "PUBLIC")), s(C, "3.4.7-canary.e9e5f6b3c", t),
19130
+ }), "PUBLIC")), s(C, "3.4.8", t),
19124
19131
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
19125
- s(C, "3.4.7-canary.e9e5f6b3c", "esm2017");
19132
+ s(C, "3.4.8", "esm2017");
19126
19133
  }("rn", /* useFetchStreams= */ !1);
19127
19134
 
19128
19135
  export { Xh as AbstractUserDataWriter, zc as Bytes, Sc as CACHE_SIZE_UNLIMITED, Ic as CollectionReference, yc as DocumentReference, Vh as DocumentSnapshot, jc as FieldPath, Hc as FieldValue, Dc as Firestore, j as FirestoreError, Jc as GeoPoint, vc as LoadBundleTask, pc as Query, Nh as QueryConstraint, vh as QueryDocumentSnapshot, Sh as QuerySnapshot, bh as SnapshotMetadata, ct as Timestamp, yl as Transaction, el as WriteBatch, Dt as _DatabaseId, kt as _DocumentKey, nt as _EmptyAppCheckTokenProvider, H as _EmptyAuthCredentialsProvider, gt as _FieldPath, dc as _cast, K as _debugAssert, It as _isBase64Available, B as _logWarn, bl as _setIndexConfiguration, cc as _validateIsNotUsedTogether, dl as addDoc, Al as arrayRemove, El as arrayUnion, $c as clearIndexedDbPersistence, Tc as collection, Ec as collectionGroup, gc as connectFirestoreEmulator, fl as deleteDoc, Il as deleteField, Uc as disableNetwork, Ac as doc, Wc as documentId, Mc as enableIndexedDbPersistence, Oc as enableMultiTabIndexedDbPersistence, Lc as enableNetwork, Wh as endAt, jh as endBefore, Nc as ensureFirestoreConfigured, ml as executeWrite, sl as getDoc, rl as getDocFromCache, ol as getDocFromServer, ul as getDocs, al as getDocsFromCache, cl as getDocsFromServer, xc as getFirestore, Rl as increment, Cc as initializeFirestore, Lh as limit, Uh as limitToLast, Kc as loadBundle, Gc as namedQuery, _l as onSnapshot, wl as onSnapshotsInSync, $h as orderBy, kh as query, Pc as queryEqual, Rc as refEqual, pl as runTransaction, Tl as serverTimestamp, hl as setDoc, O as setLogLevel, Ch as snapshotEqual, Gh as startAfter, Kh as startAt, qc as terminate, ll as updateDoc, Bc as waitForPendingWrites, Oh as where, Pl as writeBatch };