Driftwatch

Mux / Mux API /

Breakingdirection flip: their tools call this safe

state can now return "optimizing"

What changed

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects state on AssetProgress reachable from 6 operations.

New value: optimizing.

can now return "optimizing"

Who is affected

Code that reads Mux's AssetProgress objects, used by 6 Mux operations.

Before and after

WhereBeforeAfter
AssetProgress.state"completed", "errored", "ingesting", "live", "transcoding""completed", "errored", "ingesting", "live", "optimizing", "transcoding"

Code that breaks

switch (response.state) {
  // existing branches …
  // no branch for "optimizing"
  default:
    throw new Error("unexpected state");
}

Based on Mux’s published API specification. How severity is decided.