@firebase/firestore 3.12.1 → 3.12.2-20230531163950

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 (40) hide show
  1. package/dist/firestore/src/api/cache_config.d.ts +4 -0
  2. package/dist/firestore/src/api/database.d.ts +2 -0
  3. package/dist/firestore/src/api/settings.d.ts +6 -0
  4. package/dist/index.cjs.js +22 -15
  5. package/dist/index.cjs.js.map +1 -1
  6. package/dist/index.d.ts +12 -0
  7. package/dist/index.esm2017.js +22 -15
  8. package/dist/index.esm2017.js.map +1 -1
  9. package/dist/index.esm5.js +21 -14
  10. package/dist/index.esm5.js.map +1 -1
  11. package/dist/index.node.cjs.js +20 -13
  12. package/dist/index.node.cjs.js.map +1 -1
  13. package/dist/index.node.mjs +20 -13
  14. package/dist/index.node.mjs.map +1 -1
  15. package/dist/index.rn.js +22 -15
  16. package/dist/index.rn.js.map +1 -1
  17. package/dist/internal.d.ts +12 -0
  18. package/dist/lite/firestore/src/api/cache_config.d.ts +4 -0
  19. package/dist/lite/firestore/src/api/database.d.ts +2 -0
  20. package/dist/lite/firestore/src/api/settings.d.ts +6 -0
  21. package/dist/lite/index.browser.esm2017.js +2 -2
  22. package/dist/lite/index.browser.esm2017.js.map +1 -1
  23. package/dist/lite/index.browser.esm5.js +2 -2
  24. package/dist/lite/index.browser.esm5.js.map +1 -1
  25. package/dist/lite/index.cjs.js +2 -2
  26. package/dist/lite/index.cjs.js.map +1 -1
  27. package/dist/lite/index.node.cjs.js +2 -2
  28. package/dist/lite/index.node.mjs +2 -2
  29. package/dist/lite/index.node.mjs.map +1 -1
  30. package/dist/lite/index.rn.esm2017.js +2 -2
  31. package/dist/lite/index.rn.esm2017.js.map +1 -1
  32. package/dist/lite/packages/firestore/src/api/cache_config.d.ts +4 -0
  33. package/dist/lite/packages/firestore/src/api/database.d.ts +2 -0
  34. package/dist/lite/packages/firestore/src/api/settings.d.ts +6 -0
  35. package/dist/packages/firestore/dist/index.esm2017.d.ts +4 -0
  36. package/dist/packages/firestore/src/api/cache_config.d.ts +4 -0
  37. package/dist/packages/firestore/src/api/database.d.ts +2 -0
  38. package/dist/packages/firestore/src/api/settings.d.ts +6 -0
  39. package/dist/private.d.ts +12 -0
  40. package/package.json +2 -2
@@ -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.22.1", P = new l("@firebase/firestore");
73
+ var F = "9.22.2-20230531163950", P = new l("@firebase/firestore");
74
74
 
75
75
  /**
76
76
  * @license
@@ -7471,23 +7471,26 @@ function Ro(t, e) {
7471
7471
  var e = mt(t);
7472
7472
  if (void 0 !== e && !this.en(e)) return !1;
7473
7473
  // Process all equalities first. Equalities can appear out of order.
7474
- for (var n = yt(t), r = 0, i = 0; r < n.length && this.en(n[r]); ++r) ;
7474
+ for (var n = yt(t), r = new Set, i = 0, o = 0; i < n.length && this.en(n[i]); ++i) r = r.add(n[i].fieldPath.canonicalString());
7475
7475
  // If we already have processed all segments, all segments are used to serve
7476
7476
  // the equality filters and we do not need to map any segments to the
7477
7477
  // target's inequality and orderBy clauses.
7478
- if (r === n.length) return !0;
7479
- // If there is an inequality filter, the next segment must match both the
7480
- // filter and the first orderBy clause.
7481
- if (void 0 !== this.Ze) {
7482
- var o = n[r];
7483
- if (!this.nn(this.Ze, o) || !this.sn(this.Ye[i++], o)) return !1;
7484
- ++r;
7478
+ if (i === n.length) return !0;
7479
+ if (void 0 !== this.Ze) {
7480
+ // If there is an inequality filter and the field was not in one of the
7481
+ // equality filters above, the next segment must match both the filter
7482
+ // and the first orderBy clause.
7483
+ if (!r.has(this.Ze.field.canonicalString())) {
7484
+ var u = n[i];
7485
+ if (!this.nn(this.Ze, u) || !this.sn(this.Ye[o++], u)) return !1;
7486
+ }
7487
+ ++i;
7485
7488
  }
7486
7489
  // All remaining segments need to represent the prefix of the target's
7487
7490
  // orderBy.
7488
- for (;r < n.length; ++r) {
7489
- var u = n[r];
7490
- if (i >= this.Ye.length || !this.sn(this.Ye[i++], u)) return !1;
7491
+ for (;i < n.length; ++i) {
7492
+ var a = n[i];
7493
+ if (o >= this.Ye.length || !this.sn(this.Ye[o++], a)) return !1;
7491
7494
  }
7492
7495
  return !0;
7493
7496
  }, t.prototype.en = function(t) {
@@ -18753,6 +18756,8 @@ function vl(t) {
18753
18756
  * * unimplemented: The browser is incompatible with the offline
18754
18757
  * persistence implementation.
18755
18758
  *
18759
+ * Persistence cannot be used in a Node.js environment.
18760
+ *
18756
18761
  * @param firestore - The {@link Firestore} instance to enable persistence for.
18757
18762
  * @param persistenceSettings - Optional settings object to configure
18758
18763
  * persistence.
@@ -21586,6 +21591,8 @@ function yf() {
21586
21591
  /**
21587
21592
  * Creates an instance of `PersistentLocalCache`. The instance can be set to
21588
21593
  * `FirestoreSettings.cache` to tell the SDK which cache layer to use.
21594
+ *
21595
+ * Persistent cache cannot be used in a Node.js environment.
21589
21596
  */ function bf(t) {
21590
21597
  return new pf(t);
21591
21598
  }
@@ -22145,9 +22152,9 @@ function Lf(t, e) {
22145
22152
  return r = Object.assign({
22146
22153
  useFetchStreams: xf
22147
22154
  }, r), o._setSettings(r), o;
22148
- }), "PUBLIC").setMultipleInstances(!0)), u(k, "3.12.1", void 0),
22155
+ }), "PUBLIC").setMultipleInstances(!0)), u(k, "3.12.2-20230531163950", void 0),
22149
22156
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
22150
- u(k, "3.12.1", "esm5");
22157
+ u(k, "3.12.2-20230531163950", "esm5");
22151
22158
 
22152
22159
  export { Rh as AbstractUserDataWriter, Cl as AggregateField, xl as AggregateQuerySnapshot, Nl as Bytes, ll as CACHE_SIZE_UNLIMITED, el as CollectionReference, $c as DocumentReference, jh as DocumentSnapshot, Al as FieldPath, Ol as FieldValue, hl as Firestore, Q as FirestoreError, Fl as GeoPoint, cl as LoadBundleTask, tl as Query, vh as QueryCompositeFilterConstraint, hh as QueryConstraint, Kh as QueryDocumentSnapshot, Dh as QueryEndAtConstraint, dh as QueryFieldFilterConstraint, bh as QueryLimitConstraint, gh as QueryOrderByConstraint, Qh as QuerySnapshot, Th as QueryStartAtConstraint, Gh as SnapshotMetadata, st as Timestamp, Nf as Transaction, Df as WriteBatch, Ue as _DatabaseId, pt as _DocumentKey, nt as _EmptyAppCheckTokenProvider, Y as _EmptyAuthCredentialsProvider, dt as _FieldPath, hi as _TestingHooks, Hc as _cast, G as _debugAssert, ke as _isBase64Available, q as _logWarn, jc as _validateIsNotUsedTogether, uf as addDoc, Uh as aggregateFieldEqual, zh as aggregateQuerySnapshotEqual, yh as and, Pf as arrayRemove, Ff as arrayUnion, qh as average, wl as clearIndexedDbPersistence, nl as collection, rl as collectionGroup, Zc as connectFirestoreEmulator, Bh as count, of as deleteDoc, kf as deleteField, El as disableNetwork, il as doc, kl as documentId, ml as enableIndexedDbPersistence, yl as enableMultiTabIndexedDbPersistence, Il as enableNetwork, xh as endAt, Ch as endBefore, pl as ensureFirestoreConfigured, cf as executeWrite, ff as getAggregateFromServer, hf as getCountFromServer, Yh as getDoc, Jh as getDocFromCache, Zh as getDocFromServer, $h as getDocs, tf as getDocsFromCache, ef as getDocsFromServer, dl as getFirestore, Rf as increment, fl as initializeFirestore, Ih as limit, Eh as limitToLast, Sl as loadBundle, yf as memoryEagerGarbageCollector, wf as memoryLocalCache, gf as memoryLruGarbageCollector, _l as namedQuery, af as onSnapshot, sf as onSnapshotsInSync, mh as or, wh as orderBy, bf as persistentLocalCache, Sf as persistentMultipleTabManager, Tf as persistentSingleTabManager, fh as query, ul as queryEqual, ol as refEqual, Af as runTransaction, Of as serverTimestamp, nf as setDoc, Mf as setIndexConfiguration, V as setLogLevel, Hh as snapshotEqual, _h as startAfter, Sh as startAt, Lh as sum, Tl as terminate, rf as updateDoc, bl as waitForPendingWrites, ph as where, Vf as writeBatch };
22153
22160
  //# sourceMappingURL=index.esm5.js.map