@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.
@@ -1,10 +1,10 @@
1
1
  import { _registerComponent, registerVersion, _isFirebaseServerApp, _getProvider, getApp, _removeServiceInstance, SDK_VERSION } from '@firebase/app';
2
2
  import { Component } from '@firebase/component';
3
3
  import { Logger, LogLevel } from '@firebase/logger';
4
- import { FirebaseError, updateEmulatorBanner, getDefaultEmulatorHostnameAndPort, isCloudWorkstation, deepEqual, pingServer, createMockUserToken, getModularInstance } from '@firebase/util';
4
+ import { FirebaseError, getDefaultEmulatorHostnameAndPort, isCloudWorkstation, pingServer, updateEmulatorBanner, deepEqual, createMockUserToken, getModularInstance } from '@firebase/util';
5
5
  import { Integer } from '@firebase/webchannel-wrapper/bloom-blob';
6
6
 
7
- const A = "4.7.15";
7
+ const A = "4.7.16-20250521232236";
8
8
 
9
9
  /**
10
10
  * @license
@@ -65,7 +65,7 @@ User.MOCK_USER = new User("mock-user");
65
65
  * See the License for the specific language governing permissions and
66
66
  * limitations under the License.
67
67
  */
68
- let P = "11.8.0";
68
+ let P = "11.8.1-20250521232236";
69
69
 
70
70
  /**
71
71
  * @license
@@ -4412,8 +4412,7 @@ class Firestore {
4412
4412
  return this._emulatorOptions;
4413
4413
  }
4414
4414
  _freezeSettings() {
4415
- return this._settingsFrozen = !0, updateEmulatorBanner("Firestore", this._settings.isUsingEmulator),
4416
- this._settings;
4415
+ return this._settingsFrozen = !0, this._settings;
4417
4416
  }
4418
4417
  _delete() {
4419
4418
  // The `_terminateTask` must be assigned future that completes when
@@ -4487,7 +4486,7 @@ function getFirestore(t, r) {
4487
4486
  const s = isCloudWorkstation(e), o = t._getSettings(), a = Object.assign(Object.assign({}, o), {
4488
4487
  emulatorOptions: t._getEmulatorOptions()
4489
4488
  }), u = `${e}:${r}`;
4490
- o.host !== ot && o.host !== u && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
4489
+ s && (pingServer(`https://${u}`), updateEmulatorBanner("Firestore", !0)), o.host !== ot && o.host !== u && __PRIVATE_logWarn("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");
4491
4490
  const _ = Object.assign(Object.assign({}, o), {
4492
4491
  host: u,
4493
4492
  ssl: s,
@@ -4495,8 +4494,7 @@ function getFirestore(t, r) {
4495
4494
  });
4496
4495
  // No-op if the new configuration matches the current configuration. This supports SSR
4497
4496
  // enviornments which might call `connectFirestoreEmulator` multiple times as a standard practice.
4498
- if (!deepEqual(_, a) && (t._setSettings(_), s && (pingServer(`https://${u}`), updateEmulatorBanner("Firestore", !0)),
4499
- n.mockUserToken)) {
4497
+ if (!deepEqual(_, a) && (t._setSettings(_), n.mockUserToken)) {
4500
4498
  let e, r;
4501
4499
  if ("string" == typeof n.mockUserToken) e = n.mockUserToken, r = User.MOCK_USER; else {
4502
4500
  // Let createMockUserToken validate first (catches common mistakes like