Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
ErrorCode · reachable from 334 operations
Code that breaks
switch (response) {
// existing branches …
// no branch for "AMOUNT_TOO_LOW"
// no branch for "CART_INELIGIBLE_FOR_EBT"
// no branch for "PLAID_ERROR_INSUFFICIENT_CREDENTIALS"
// no branch for "PLAID_ERROR_INVALID_ACCESS_TOKEN"
// no branch for "PLAID_ERROR_INVALID_ACCOUNT_ID"
// no branch for "PLAID_ERROR_ITEM_NOT_FOUND"
// no branch for "PLAID_ERROR_ITEM_NOT_SUPPORTED"
// no branch for "PLAID_ERROR_NO_ACCOUNTS"
// no branch for "PLAID_ERROR_PRODUCT_NOT_READY"
default:
throw new Error("unexpected value");
}
Breakingdirection flip: their tools call this safe
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
CardBrand · reachable from 30 operations
Code that breaks
switch (response) {
// existing branches …
// no branch for "CARNET"
// no branch for "ID"
// no branch for "QUICPAY"
// no branch for "TRANSPORTATION_IC"
default:
throw new Error("unexpected value");
}
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
ErrorCode · reachable from 328 operations
Code that breaks
switch (response) {
// existing branches …
// no branch for "PARTIAL_PAYMENT_DELAY_CAPTURE_NOT_SUPPORTED"
// no branch for "PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET"
default:
throw new Error("unexpected value");
}
A tighter guarantee, not a break. Every value you can receive now was already possible, so existing handling still covers it; a null check here may now be dead code.
CardPaymentDetails.application_cryptogram · reachable from 6 operations
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
ErrorCode · reachable from 305 operations
Code that breaks
switch (response) {
// existing branches …
// no branch for "READER_DECLINED"
// no branch for "REFUND_ERROR_PAYMENT_NEEDS_COMPLETION"
default:
throw new Error("unexpected value");
}
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
ActivityType · reachable from 1 operation
Code that breaks
switch (response) {
// existing branches …
// no branch for "DEPOSIT_FEE_REVERSED"
// no branch for "SQUARE_PAYROLL_TRANSFER"
// no branch for "SQUARE_PAYROLL_TRANSFER_REVERSED"
default:
throw new Error("unexpected value");
}
Producer-side tools call this non-breaking. For a consumer it is a null dereference on an unknown future date.
LoyaltyPromotion.qualifying_item_variation_ids · reachable from 4 operations
Code that breaks
// response.qualifying_item_variation_ids may now be absent or null
const qualifying_item_variation_ids = response.qualifying_item_variation_ids ?? fallback;
Breakingdirection flip: their tools call this safe