Skip to content

ref(astro)!: Remove deprecated release/debug conflict workaround from BuildTimeOptionsBase - #23270

Open
RulaKhaled wants to merge 3 commits into
developfrom
rolaabuhasna/js-3028-astro-remove-deprecated-releasedebug-from
Open

ref(astro)!: Remove deprecated release/debug conflict workaround from BuildTimeOptionsBase#23270
RulaKhaled wants to merge 3 commits into
developfrom
rolaabuhasna/js-3028-astro-remove-deprecated-releasedebug-from

Conversation

@RulaKhaled

Copy link
Copy Markdown
Collaborator

Removes the DeprecatedRuntimeOptions catch-all type in @sentry/astro that was blocking release and debug from being proper build-time options on BuildTimeOptionsBase.

The other deprecated runtime options (dsn, environment, sampleRate, tracesSampleRate, replaysSessionSampleRate, replaysOnErrorSampleRate) have no build-time equivalent, so they can no longer be set via sentryAstro() at all. The generated snippet now falls back to fixed defaults for them. This was already the deprecated, discouraged path; anyone needing non-default values already needs (and can continue using) a dedicated sentry.client.config.ts / sentry.server.config.ts file with a direct Sentry.init() call, which is unaffected by this change.

Closes #22248

@linear-code

linear-code Bot commented Aug 11, 2026

Copy link
Copy Markdown

JS-3028

RulaKhaled and others added 2 commits August 11, 2026 11:48
…d-releasedebug-from

Resolved conflict in docs/migration/v11-end-state.md by keeping both the new
@sentry/astro section (this branch) and the new @sentry/react-router section (develop).

Co-Authored-By: Fable 5 <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 30.26 kB - -
@sentry/browser - with treeshaking flags 28.44 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.78 kB - -
@sentry/browser (incl. Tracing) 48.5 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.52 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.4 kB - -
@sentry/browser (incl. Tracing, Replay) 87.94 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.3 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.65 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.32 kB - -
@sentry/browser (incl. Feedback) 47.58 kB - -
@sentry/browser (incl. sendFeedback) 35.08 kB - -
@sentry/browser (incl. FeedbackAsync) 40.23 kB - -
@sentry/browser (incl. Metrics) 31.29 kB - -
@sentry/browser (incl. Logs) 31.55 kB - -
@sentry/browser (incl. Metrics & Logs) 32.24 kB - -
@sentry/react 32.06 kB - -
@sentry/react (incl. Tracing) 50.69 kB - -
@sentry/vue 35.32 kB - -
@sentry/vue (incl. Tracing) 50.45 kB - -
@sentry/svelte 30.28 kB - -
CDN Bundle 31.52 kB - -
CDN Bundle (incl. Tracing) 48.78 kB - -
CDN Bundle (incl. Logs, Metrics) 33.75 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.76 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.3 kB - -
CDN Bundle (incl. Tracing, Replay) 86.38 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.29 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.08 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.1 kB - -
CDN Bundle - uncompressed 93.59 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.5 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.06 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.36 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 228.98 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.75 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.6 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.45 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.28 kB - -
@sentry/nextjs (client) 53.24 kB - -
@sentry/sveltekit (client) 48.91 kB - -
@sentry/core/server 65.45 kB - -
@sentry/core/browser 51.79 kB - -
@sentry/node 117.89 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.05 kB -0.01% -1 B 🔽
@sentry/aws-serverless 91.42 kB - -
@sentry/cloudflare (withSentry) - minified 214.07 kB - -
@sentry/cloudflare (withSentry) 528.94 kB - -

View base workflow run

@RulaKhaled

Copy link
Copy Markdown
Collaborator Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 6fab126. Configure here.

@RulaKhaled
RulaKhaled marked this pull request as ready for review August 11, 2026 11:33
@RulaKhaled
RulaKhaled requested a review from a team as a code owner August 11, 2026 11:33
@RulaKhaled
RulaKhaled requested review from chargome, nicohrubec and s1gr1d and removed request for a team August 11, 2026 11:33
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.

Astro: remove deprecated release/debug from BuildTimeOptionsBase

1 participant