Driftwatch

Datadog / Datadog API v2 /

Breakingdirection flip: their tools call this safe

value can now return "ELECTRON"

What changed

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

Affects this value on IssuePlatform reachable from 4 operations.

New value: ELECTRON.

can now return "ELECTRON"

Who is affected

Code that reads Datadog's IssuePlatform objects, used by 4 Datadog operations.

Before and after

WhereBeforeAfter
IssuePlatform"ANDROID", "BACKEND", "BROWSER", "FLUTTER", "IOS", "REACT_NATIVE", "ROKU", "UNKNOWN""ANDROID", "BACKEND", "BROWSER", "ELECTRON", "FLUTTER", "IOS", "REACT_NATIVE", "ROKU", "UNKNOWN"

Code that breaks

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

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