-
-
Notifications
You must be signed in to change notification settings - Fork 236
Open
Labels
CLIProduct areaProduct areaFeatureIssue typeIssue typeQuality Improvementv3.0Breaking changes to include in version 3.0.0 of Sentry CLIBreaking changes to include in version 3.0.0 of Sentry CLI
Description
Problem Statement
According to our JS interface type definitions, the execute promise, as well as all abstractions (e.g. releases.uploadSourceMaps) building on top of it always have to return a Promise<string>.
However, in reality, if you execute a command with live: true (the second execute param), we resolve with void/undefined, thereby violating our type definitions.
Solution Brainstorm
To avoid behaviour breaking changes, we can leave this as-is for now but we should fix it in v3 of the CLI. We have two options:
- always resolve with a string (I'd prefer this slightly)
- change type definitions to allow for
Promise<string | undefined>
Metadata
Metadata
Assignees
Labels
CLIProduct areaProduct areaFeatureIssue typeIssue typeQuality Improvementv3.0Breaking changes to include in version 3.0.0 of Sentry CLIBreaking changes to include in version 3.0.0 of Sentry CLI