@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.
@@ -4,11 +4,11 @@ import { Component as o } from "@firebase/component";
4
4
 
5
5
  import { Logger as a, LogLevel as u } from "@firebase/logger";
6
6
 
7
- import { FirebaseError as _, isCloudWorkstation as c, base64 as l, DecodeBase64StringError as h, updateEmulatorBanner as d, getDefaultEmulatorHostnameAndPort as f, deepEqual as E, pingServer as m, createMockUserToken as T, getModularInstance as A } from "@firebase/util";
7
+ import { FirebaseError as _, isCloudWorkstation as c, base64 as l, DecodeBase64StringError as h, getDefaultEmulatorHostnameAndPort as d, pingServer as f, updateEmulatorBanner as E, deepEqual as m, createMockUserToken as T, getModularInstance as A } from "@firebase/util";
8
8
 
9
9
  import { Integer as P } from "@firebase/webchannel-wrapper/bloom-blob";
10
10
 
11
- const R = "4.7.15";
11
+ const R = "4.7.16-20250521232236";
12
12
 
13
13
  /**
14
14
  * @license
@@ -69,7 +69,7 @@ User.MOCK_USER = new User("mock-user");
69
69
  * See the License for the specific language governing permissions and
70
70
  * limitations under the License.
71
71
  */
72
- let I = "11.8.0";
72
+ let I = "11.8.1-20250521232236";
73
73
 
74
74
  /**
75
75
  * @license
@@ -4424,8 +4424,7 @@ class Firestore {
4424
4424
  return this._emulatorOptions;
4425
4425
  }
4426
4426
  _freezeSettings() {
4427
- return this._settingsFrozen = !0, d("Firestore", this._settings.isUsingEmulator),
4428
- this._settings;
4427
+ return this._settingsFrozen = !0, this._settings;
4429
4428
  }
4430
4429
  _delete() {
4431
4430
  // The `_terminateTask` must be assigned future that completes when
@@ -4475,7 +4474,7 @@ function getFirestore(t, r) {
4475
4474
  identifier: i
4476
4475
  });
4477
4476
  if (!s._initialized) {
4478
- const t = f("firestore");
4477
+ const t = d("firestore");
4479
4478
  t && connectFirestoreEmulator(s, ...t);
4480
4479
  }
4481
4480
  return s;
@@ -4499,7 +4498,7 @@ function getFirestore(t, r) {
4499
4498
  const s = c(e), o = t._getSettings(), a = Object.assign(Object.assign({}, o), {
4500
4499
  emulatorOptions: t._getEmulatorOptions()
4501
4500
  }), u = `${e}:${r}`;
4502
- o.host !== _t && o.host !== u && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
4501
+ s && (f(`https://${u}`), E("Firestore", !0)), o.host !== _t && o.host !== u && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
4503
4502
  const _ = Object.assign(Object.assign({}, o), {
4504
4503
  host: u,
4505
4504
  ssl: s,
@@ -4507,8 +4506,7 @@ function getFirestore(t, r) {
4507
4506
  });
4508
4507
  // No-op if the new configuration matches the current configuration. This supports SSR
4509
4508
  // enviornments which might call `connectFirestoreEmulator` multiple times as a standard practice.
4510
- if (!E(_, a) && (t._setSettings(_), s && (m(`https://${u}`), d("Firestore", !0)),
4511
- n.mockUserToken)) {
4509
+ if (!m(_, a) && (t._setSettings(_), n.mockUserToken)) {
4512
4510
  let e, r;
4513
4511
  if ("string" == typeof n.mockUserToken) e = n.mockUserToken, r = User.MOCK_USER; else {
4514
4512
  // Let createMockUserToken validate first (catches common mistakes like
@@ -5321,7 +5319,7 @@ class __PRIVATE_ArrayUnionFieldValueImpl extends FieldValue {
5321
5319
  return new FieldTransform(t.path, n);
5322
5320
  }
5323
5321
  isEqual(t) {
5324
- return t instanceof __PRIVATE_ArrayUnionFieldValueImpl && E(this.At, t.At);
5322
+ return t instanceof __PRIVATE_ArrayUnionFieldValueImpl && m(this.At, t.At);
5325
5323
  }
5326
5324
  }
5327
5325
 
@@ -5335,7 +5333,7 @@ class __PRIVATE_ArrayRemoveFieldValueImpl extends FieldValue {
5335
5333
  return new FieldTransform(t.path, n);
5336
5334
  }
5337
5335
  isEqual(t) {
5338
- return t instanceof __PRIVATE_ArrayRemoveFieldValueImpl && E(this.At, t.At);
5336
+ return t instanceof __PRIVATE_ArrayRemoveFieldValueImpl && m(this.At, t.At);
5339
5337
  }
5340
5338
  }
5341
5339
 
@@ -6643,7 +6641,7 @@ function sum(t) {
6643
6641
  * @returns `true` if the objects are "equal", as defined above, or `false`
6644
6642
  * otherwise.
6645
6643
  */ function aggregateQuerySnapshotEqual(t, e) {
6646
- return queryEqual(t.query, e.query) && E(t.data(), e.data());
6644
+ return queryEqual(t.query, e.query) && m(t.data(), e.data());
6647
6645
  }
6648
6646
 
6649
6647
  /**