@firebase/firestore 4.7.15 → 4.7.16-20250521232236

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.
package/dist/index.rn.js CHANGED
@@ -4,13 +4,13 @@ import { Component as o } from "@firebase/component";
4
4
 
5
5
  import { Logger as _, LogLevel as a } from "@firebase/logger";
6
6
 
7
- import { FirebaseError as u, getGlobal as c, isIndexedDBAvailable as l, getUA as h, base64 as P, DecodeBase64StringError as T, isSafariOrWebkit as I, isSafari as E, isCloudWorkstation as d, deepEqual as A, pingServer as R, updateEmulatorBanner as V, createMockUserToken as m, getModularInstance as f, getDefaultEmulatorHostnameAndPort as g } from "@firebase/util";
7
+ import { FirebaseError as u, getGlobal as c, isIndexedDBAvailable as l, getUA as h, base64 as P, DecodeBase64StringError as T, isSafariOrWebkit as I, isSafari as E, isCloudWorkstation as d, pingServer as A, updateEmulatorBanner as R, deepEqual as V, createMockUserToken as m, getModularInstance as f, getDefaultEmulatorHostnameAndPort as g } from "@firebase/util";
8
8
 
9
9
  import { Integer as p, Md5 as y } from "@firebase/webchannel-wrapper/bloom-blob";
10
10
 
11
11
  import { XhrIo as w, EventType as S, ErrorCode as b, createWebChannelTransport as D, getStatEventTarget as v, WebChannel as C, Event as F, Stat as M } from "@firebase/webchannel-wrapper/webchannel-blob";
12
12
 
13
- const x = "@firebase/firestore", O = "4.7.15";
13
+ const x = "@firebase/firestore", O = "4.7.16-20250521232236";
14
14
 
15
15
  /**
16
16
  * @license
@@ -72,7 +72,7 @@ User.MOCK_USER = new User("mock-user");
72
72
  * See the License for the specific language governing permissions and
73
73
  * limitations under the License.
74
74
  */
75
- let N = "11.8.0";
75
+ let N = "11.8.1-20250521232236";
76
76
 
77
77
  /**
78
78
  * @license
@@ -18663,8 +18663,7 @@ class Firestore$1 {
18663
18663
  return this._emulatorOptions;
18664
18664
  }
18665
18665
  _freezeSettings() {
18666
- return this._settingsFrozen = !0, V("Firestore", this._settings.isUsingEmulator),
18667
- this._settings;
18666
+ return this._settingsFrozen = !0, this._settings;
18668
18667
  }
18669
18668
  _delete() {
18670
18669
  // The `_terminateTask` must be assigned future that completes when
@@ -18722,7 +18721,7 @@ class Firestore$1 {
18722
18721
  const s = d(t), o = e._getSettings(), _ = Object.assign(Object.assign({}, o), {
18723
18722
  emulatorOptions: e._getEmulatorOptions()
18724
18723
  }), a = `${t}:${n}`;
18725
- o.host !== un && o.host !== a && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
18724
+ s && (A(`https://${a}`), R("Firestore", !0)), o.host !== un && o.host !== a && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
18726
18725
  const u = Object.assign(Object.assign({}, o), {
18727
18726
  host: a,
18728
18727
  ssl: s,
@@ -18730,8 +18729,7 @@ class Firestore$1 {
18730
18729
  });
18731
18730
  // No-op if the new configuration matches the current configuration. This supports SSR
18732
18731
  // enviornments which might call `connectFirestoreEmulator` multiple times as a standard practice.
18733
- if (!A(u, _) && (e._setSettings(u), s && (R(`https://${a}`), V("Firestore", !0)),
18734
- r.mockUserToken)) {
18732
+ if (!V(u, _) && (e._setSettings(u), r.mockUserToken)) {
18735
18733
  let t, n;
18736
18734
  if ("string" == typeof r.mockUserToken) t = r.mockUserToken, n = User.MOCK_USER; else {
18737
18735
  // Let createMockUserToken validate first (catches common mistakes like
@@ -19300,13 +19298,13 @@ class LoadBundleTask {
19300
19298
  const e = r.getImmediate({
19301
19299
  identifier: n
19302
19300
  }), i = r.getOptions(n);
19303
- if (A(i, t)) return e;
19301
+ if (V(i, t)) return e;
19304
19302
  throw new FirestoreError(L.FAILED_PRECONDITION, "initializeFirestore() has already been called with different options. To avoid this error, call initializeFirestore() with the same options as when it was originally called, or call getFirestore() to return the already initialized instance.");
19305
19303
  }
19306
19304
  if (void 0 !== t.cacheSizeBytes && void 0 !== t.localCache) throw new FirestoreError(L.INVALID_ARGUMENT, "cache and cacheSizeBytes cannot be specified at the same time as cacheSizeBytes willbe deprecated. Instead, specify the cache size in the cache object");
19307
19305
  if (void 0 !== t.cacheSizeBytes && -1 !== t.cacheSizeBytes && t.cacheSizeBytes < Lt) throw new FirestoreError(L.INVALID_ARGUMENT, "cacheSizeBytes must be at least 1048576");
19308
19306
  // Workaround to get cookies in Firebase Studio
19309
- return t.host && d(t.host) && R(t.host), r.initialize({
19307
+ return t.host && d(t.host) && A(t.host), r.initialize({
19310
19308
  options: t,
19311
19309
  instanceIdentifier: n
19312
19310
  });
@@ -20133,7 +20131,7 @@ class __PRIVATE_ArrayUnionFieldValueImpl extends FieldValue {
20133
20131
  return new FieldTransform(e.path, r);
20134
20132
  }
20135
20133
  isEqual(e) {
20136
- return e instanceof __PRIVATE_ArrayUnionFieldValueImpl && A(this.yc, e.yc);
20134
+ return e instanceof __PRIVATE_ArrayUnionFieldValueImpl && V(this.yc, e.yc);
20137
20135
  }
20138
20136
  }
20139
20137
 
@@ -20147,7 +20145,7 @@ class __PRIVATE_ArrayRemoveFieldValueImpl extends FieldValue {
20147
20145
  return new FieldTransform(e.path, r);
20148
20146
  }
20149
20147
  isEqual(e) {
20150
- return e instanceof __PRIVATE_ArrayRemoveFieldValueImpl && A(this.yc, e.yc);
20148
+ return e instanceof __PRIVATE_ArrayRemoveFieldValueImpl && V(this.yc, e.yc);
20151
20149
  }
20152
20150
  }
20153
20151
 
@@ -21258,7 +21256,7 @@ class __PRIVATE_LiteUserDataWriter extends AbstractUserDataWriter {
21258
21256
  * @returns `true` if the objects are "equal", as defined above, or `false`
21259
21257
  * otherwise.
21260
21258
  */ function aggregateQuerySnapshotEqual(e, t) {
21261
- return queryEqual(e.query, t.query) && A(e.data(), t.data());
21259
+ return queryEqual(e.query, t.query) && V(e.data(), t.data());
21262
21260
  }
21263
21261
 
21264
21262
  /**