Skip to content
This repository was archived by the owner on Oct 29, 2026. It is now read-only.

feat(core): Accept and await a promise in sourcemaps.filesToDeleteAfterUpload - #677

Merged
Lms24 merged 3 commits into
mainfrom
lms/feat-allow-filesToDeleteAfterUpload-promise
Feb 18, 2025
Merged

Lms24 merged 3 commits into
mainfrom
lms/feat-allow-filesToDeleteAfterUpload-promise

Conversation

@Lms24

@Lms24 Lms24 commented Feb 18, 2025 •

Copy link
Copy Markdown
Member

Some framework SDKs require us to lazily set a "fallback" filesToDeleteAfterSourcemaps option that we don't yet know at plugin creation time. This PR widens the accepted type for filesToDeleteAfterSourcemaps to also allow us (as well as users) to pass in a Promise<string | string[]> to do so. This promise can resolve whenever we know what to set.

Necessary for SvelteKit

ref getsentry/sentry-javascript#15414

@Lms24 Lms24 self-assigned this Feb 18, 2025
@Lms24
Lms24 requested a review from s1gr1d February 18, 2025 13:39

@s1gr1d s1gr1d left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

@Lms24
Lms24 merged commit 4255012 into main Feb 18, 2025
@Lms24
Lms24 deleted the lms/feat-allow-filesToDeleteAfterUpload-promise branch February 18, 2025 16:39
renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Feb 21, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.1.2 | 3.2.0 |


## [v3.2.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#320)

-   feat(core): Accept and await a promise in `sourcemaps.filesToDeleteAfterUpload` ([#677](getsentry/sentry-javascript-bundler-plugins#677))
renovate Bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Feb 21, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.1.2 | 3.2.0 |


## [v3.2.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#320)

-   feat(core): Accept and await a promise in `sourcemaps.filesToDeleteAfterUpload` ([#677](getsentry/sentry-javascript-bundler-plugins#677))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants