@signalwire/js 4.0.0-dev-20260914201232 → 4.0.0-dev-20260915014810

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.
@@ -16175,10 +16175,7 @@ var RTCPeerConnectionController = class extends Destroyable {
16175
16175
  }
16176
16176
  stopRawAudioInputForPipeline() {
16177
16177
  const rawTracks = this.localStreamController.localAudioTracks;
16178
- for (const track of rawTracks) if (track.readyState === "live") {
16179
- track.stop();
16180
- this.localStreamController.removeTrack(track.id);
16181
- }
16178
+ for (const track of rawTracks) if (track.readyState === "live") this.localStreamController.removeTrack(track.id);
16182
16179
  this._localAudioPipeline?.setInputTrack(null);
16183
16180
  }
16184
16181
  get isNegotiating$() {
@@ -16948,7 +16945,13 @@ var RTCPeerConnectionController = class extends Destroyable {
16948
16945
  * carries.
16949
16946
  */
16950
16947
  async updateSendersConstraints(kind, constraints) {
16951
- if (kind === "audio" && constraints && this._localAudioPipeline) return this.applyPipelineSourceConstraints(constraints);
16948
+ if (kind === "audio" && this._localAudioPipeline) {
16949
+ if (!constraints) {
16950
+ this.stopTrackSender("audio");
16951
+ return false;
16952
+ }
16953
+ return this.applyPipelineSourceConstraints(constraints);
16954
+ }
16952
16955
  return await this.transceiverController?.updateSendersConstraints(kind, constraints) ?? false;
16953
16956
  }
16954
16957
  /**
@@ -23096,7 +23099,7 @@ var SignalWire = class extends Destroyable {
23096
23099
  logger$1.warn("[SignalWire] Failed to initialize VisibilityController:", error);
23097
23100
  }
23098
23101
  try {
23099
- this._diagnosticsCollector = new DiagnosticsCollector({ sdkVersion: "4.0.0-dev-20260914201232" });
23102
+ this._diagnosticsCollector = new DiagnosticsCollector({ sdkVersion: "4.0.0-dev-20260915014810" });
23100
23103
  } catch (error) {
23101
23104
  logger$1.warn("[SignalWire] Failed to initialize DiagnosticsCollector:", error);
23102
23105
  }
@@ -23651,7 +23654,7 @@ var StaticCredentialProvider = class {
23651
23654
  /**
23652
23655
  * Library version from package.json, injected at build time.
23653
23656
  */
23654
- const version = "4.0.0-dev-20260914201232";
23657
+ const version = "4.0.0-dev-20260915014810";
23655
23658
  /**
23656
23659
  * Flag indicating the library has been loaded and is ready to use.
23657
23660
  * For UMD builds: `window.SignalWire.ready`
@@ -23673,7 +23676,7 @@ const ready = true;
23673
23676
  */
23674
23677
  const emitReadyEvent = () => {
23675
23678
  if (typeof window !== "undefined") {
23676
- const event = new CustomEvent("signalwire:js:ready", { detail: { version: "4.0.0-dev-20260914201232" } });
23679
+ const event = new CustomEvent("signalwire:js:ready", { detail: { version: "4.0.0-dev-20260915014810" } });
23677
23680
  window.dispatchEvent(event);
23678
23681
  }
23679
23682
  };