Skip to content

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jul 18, 2025

While working on #2605, I missed that we also need to add the new live option to the manually created public type declaration of the SentryCLI().releases.uploadSourceMaps method. This PR now adds the live option to this method. (feat because although there's no behaviour change, from a user perspective #2605 is only public with this change)

Very good reason to tackle #2617, since it will eliminate this kind of divergence. I gave it a quick try and got results pretty quickly. However, due to our internal typing currently being a lot more lenient than what the type declarations specify, I'd consider unifying the typing a breaking change. The goal is that our exported type declarations come from out internal type definitions BUT to get to this point, we first need to change these internal types to adhere to the currently exported declarations.
@szokeasaurusrex let me know when you want to tackle v3, then I'll take another look at this.

@Lms24 Lms24 requested a review from szokeasaurusrex as a code owner July 18, 2025 09:01
@Lms24 Lms24 self-assigned this Jul 18, 2025
@Lms24 Lms24 requested review from a team, RulaKhaled and andreiborza and removed request for a team July 18, 2025 09:14
* ext: ['js', 'map', 'jsbundle', 'bundle'], // override file extensions to scan for
* projects: ['node'], // provide a list of projects
* decompress: false // decompress gzip files before uploading
* live: undefined // whether to inherit stdio to display `sentry-cli` output directly.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is live undefined? Seems wrong but maybe this is just some JS thing I don't understand 🫣

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! Forgot that the default value is actually true 🤦‍♂️

@Lms24 Lms24 merged commit 4376ec2 into master Jul 18, 2025
26 checks passed
@Lms24 Lms24 deleted the lms/feat-export-uploadSourceMaps-live-param branch July 18, 2025 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants