Driftwatch

Square / Square API /

Breakingdirection flip: their tools call this safe

value can now return "COMPLETED"

What changed

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

Affects this value on SubscriptionStatus reachable from 10 operations.

New value: COMPLETED.

can now return "COMPLETED"

Who is affected

Code that reads Square's SubscriptionStatus objects, used by 10 Square operations.

Before and after

WhereBeforeAfter
SubscriptionStatus"ACTIVE", "CANCELED", "DEACTIVATED", "PAUSED", "PENDING""ACTIVE", "CANCELED", "COMPLETED", "DEACTIVATED", "PAUSED", "PENDING"

Code that breaks

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

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