Vercel2 breaking4 additive
- Breakingdirection flip: their tools call this safename can now return "ai-gateway-system-credential-fallback-opt-out-toggled"Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums. can now return "ai-gateway-system-credential-fallback-opt-out-toggled" 3 places: ListEventType.name, ListEventType.replacedBy[], UserEvent.type## Code that breaks
switch (response.name) {
// existing branches …
// no branch for "ai-gateway-system-credential-fallback-opt-out-toggled"
default:
throw new Error("unexpected name");
}
- Breakingdirection flip: their tools call this safepermissions can now return "read-write:desktop-device"Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums. can now return "read-write:desktop-device" 2 places: UserEvent.payload.permissions[], UserEvent.payload.nextPermissions[]## Code that breaks
switch (response.payload.permissions[0]) {
// existing branches …
// no branch for "read-write:desktop-device"
default:
throw new Error("unexpected permissions");
}
4 new response fields #
- permissions.desktopDevice
- projects[].permissions.desktopDevice
- UserEvent.payload.next.repositoryScope
- UserEvent.payload.previous.repositoryScope