Skip to content

[v3] Fix JS interface execute promise resolve values #2606

@Lms24

Description

@Lms24

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

Labels

CLIProduct areaFeatureIssue typeQuality Improvementv3.0Breaking changes to include in version 3.0.0 of Sentry CLI

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions