@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.
package/dist/index.cjs CHANGED
@@ -5414,10 +5414,7 @@ var RTCPeerConnectionController = class extends Destroyable {
5414
5414
  }
5415
5415
  stopRawAudioInputForPipeline() {
5416
5416
  const rawTracks = this.localStreamController.localAudioTracks;
5417
- for (const track of rawTracks) if (track.readyState === "live") {
5418
- track.stop();
5419
- this.localStreamController.removeTrack(track.id);
5420
- }
5417
+ for (const track of rawTracks) if (track.readyState === "live") this.localStreamController.removeTrack(track.id);
5421
5418
  this._localAudioPipeline?.setInputTrack(null);
5422
5419
  }
5423
5420
  get isNegotiating$() {
@@ -6187,7 +6184,13 @@ var RTCPeerConnectionController = class extends Destroyable {
6187
6184
  * carries.
6188
6185
  */
6189
6186
  async updateSendersConstraints(kind, constraints) {
6190
- if (kind === "audio" && constraints && this._localAudioPipeline) return this.applyPipelineSourceConstraints(constraints);
6187
+ if (kind === "audio" && this._localAudioPipeline) {
6188
+ if (!constraints) {
6189
+ this.stopTrackSender("audio");
6190
+ return false;
6191
+ }
6192
+ return this.applyPipelineSourceConstraints(constraints);
6193
+ }
6191
6194
  return await this.transceiverController?.updateSendersConstraints(kind, constraints) ?? false;
6192
6195
  }
6193
6196
  /**
@@ -12326,7 +12329,7 @@ var SignalWire = class extends Destroyable {
12326
12329
  logger$1.warn("[SignalWire] Failed to initialize VisibilityController:", error);
12327
12330
  }
12328
12331
  try {
12329
- this._diagnosticsCollector = new DiagnosticsCollector({ sdkVersion: "4.0.0-dev-20260914201232" });
12332
+ this._diagnosticsCollector = new DiagnosticsCollector({ sdkVersion: "4.0.0-dev-20260915014810" });
12330
12333
  } catch (error) {
12331
12334
  logger$1.warn("[SignalWire] Failed to initialize DiagnosticsCollector:", error);
12332
12335
  }
@@ -12880,7 +12883,7 @@ var StaticCredentialProvider = class {
12880
12883
  /**
12881
12884
  * Library version from package.json, injected at build time.
12882
12885
  */
12883
- const version = "4.0.0-dev-20260914201232";
12886
+ const version = "4.0.0-dev-20260915014810";
12884
12887
  /**
12885
12888
  * Flag indicating the library has been loaded and is ready to use.
12886
12889
  * For UMD builds: `window.SignalWire.ready`
@@ -12902,7 +12905,7 @@ const ready = true;
12902
12905
  */
12903
12906
  const emitReadyEvent = () => {
12904
12907
  if (typeof window !== "undefined") {
12905
- const event = new CustomEvent("signalwire:js:ready", { detail: { version: "4.0.0-dev-20260914201232" } });
12908
+ const event = new CustomEvent("signalwire:js:ready", { detail: { version: "4.0.0-dev-20260915014810" } });
12906
12909
  window.dispatchEvent(event);
12907
12910
  }
12908
12911
  };