Skip to content

feat(nextjs)!: Remove deprecated build-time config options - #23221

Merged
chargome merged 2 commits into
developfrom
charlygomez/js-3026-remove-deprecated-nextjs-sdk-config-options
Aug 10, 2026
Merged

feat(nextjs)!: Remove deprecated build-time config options#23221
chargome merged 2 commits into
developfrom
charlygomez/js-3026-remove-deprecated-nextjs-sdk-config-options

Conversation

@chargome

@chargomechargome commented Aug 10, 2026

Copy link
Copy Markdown
Member

Removes the deprecated top-level withSentryConfig options marked with TODO(v11). All have replacements documented as an old→new table in docs/migration/v11-end-state.md.

Also removes top-level excludeServerRoutes, which was deprecated in the same PR as the others (#18343) but never got a TODO(v11) marker.

closes#22245

Remove the long-deprecated top-level `withSentryConfig` options marked with
`TODO(v11)`. All have replacements, mostly under `webpack.*`.
Also remove top-level `excludeServerRoutes`, which was deprecated in the same
PR as the others (#18343) but never got a `TODO(v11)` marker. With it gone the
entire `deprecatedWebpackOptions.ts` migration layer can be deleted.
Fixes#22245
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@linear-code

Copy link
Copy Markdown

JS-3026

@chargome

Copy link
Copy Markdown
MemberAuthor

bugbot run

@github-actions

github-actionsBot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser30.35 kB--
@sentry/browser - with treeshaking flags28.52 kB--
@sentry/browser - with treeshaking flags tracing without tracing26.85 kB--
@sentry/browser (incl. Tracing)48.61 kB--
@sentry/browser (incl. Tracing + Span Streaming)48.62 kB--
@sentry/browser (incl. Tracing, Profiling)53.46 kB--
@sentry/browser (incl. Tracing, Replay)88.04 kB--
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags77.45 kB--
@sentry/browser (incl. Tracing, Replay with Canvas)92.77 kB--
@sentry/browser (incl. Tracing, Replay, Feedback)105.45 kB--
@sentry/browser (incl. Feedback)47.69 kB--
@sentry/browser (incl. sendFeedback)35.18 kB--
@sentry/browser (incl. FeedbackAsync)40.33 kB--
@sentry/browser (incl. Metrics)31.43 kB--
@sentry/browser (incl. Logs)31.66 kB--
@sentry/browser (incl. Metrics & Logs)32.34 kB--
@sentry/react32.14 kB--
@sentry/react (incl. Tracing)50.82 kB--
@sentry/vue35.45 kB--
@sentry/vue (incl. Tracing)50.59 kB--
@sentry/svelte30.38 kB--
CDN Bundle31.61 kB--
CDN Bundle (incl. Tracing)48.92 kB--
CDN Bundle (incl. Logs, Metrics)33.84 kB--
CDN Bundle (incl. Tracing, Logs, Metrics)50.88 kB--
CDN Bundle (incl. Replay, Logs, Metrics)74.38 kB--
CDN Bundle (incl. Tracing, Replay)86.49 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)88.4 kB--
CDN Bundle (incl. Tracing, Replay, Feedback)92.21 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)94.18 kB--
CDN Bundle - uncompressed93.95 kB--
CDN Bundle (incl. Tracing) - uncompressed146.92 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed100.42 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed152.78 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed229.34 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed266.17 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed272.01 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed279.87 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed285.7 kB--
@sentry/nextjs (client)53.38 kB-0.05%-25 B 🔽
@sentry/sveltekit (client)49.03 kB--
@sentry/core/server65.6 kB--
@sentry/core/browser51.92 kB--
@sentry/node118.46 kB+0.01%+1 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection)0 Baddedadded
@sentry/node - without tracing82.57 kB+0.01%+1 B 🔺
@sentry/aws-serverless91.94 kB+0.01%+1 B 🔺
@sentry/cloudflare (withSentry) - minified214.7 kB--
@sentry/cloudflare (withSentry)530.23 kB--

View base workflow run

…e2e config
The supabase-nextjs e2e app still set `reactComponentAnnotation` at the top
level. Being a .js config it was not typechecked, so the removal silently
disabled component annotation for that app instead of failing the build.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chargome

Copy link
Copy Markdown
MemberAuthor

bugbot run

@chargomechargome self-assigned this Aug 10, 2026

@cursorcursorBot 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 865a814. Configure here.

@chargome
chargome marked this pull request as ready for review August 10, 2026 12:36
@chargome
chargome requested a review from a team as a code ownerAugust 10, 2026 12:36
@chargome
chargome requested review from logaretm, mydea, nicohrubec and s1gr1d and removed request for a team and mydeaAugust 10, 2026 12:36
@chargome
chargome merged commit 32dd9d8 into developAug 10, 2026
206 checks passed
@chargome
chargome deleted the charlygomez/js-3026-remove-deprecated-nextjs-sdk-config-options branch August 10, 2026 12:43
JPeer264 pushed a commit that referenced this pull request Aug 12, 2026
Removes the deprecated top-level `withSentryConfig` options marked with
`TODO(v11)`. All have replacements documented as an old→new table in
`docs/migration/v11-end-state.md`.
Also removes top-level `excludeServerRoutes`, which was deprecated in
the same PR as the others (#18343) but never
got a `TODO(v11)` marker.
closes#22245
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
chargome added a commit that referenced this pull request Aug 13, 2026
…pack (#23268)
Unifies React component annotation into a single top-level
`reactComponentAnnotation` for both webpack and Turbopack, mirroring
`applicationKey` (#20794).
Removing the top-level option in #23221 was an oversight - it was
deprecated back when annotation was webpack-only, but Turbopack supports
it now.
`webpack.reactComponentAnnotation` and
`_experimental.turbopackReactComponentAnnotation` are deprecated but
still work, removal in v12. We only moved users onto the webpack one in
10.30.0, so removing it now would mean two migrations in a row.
Also warns when annotation is enabled on Turbopack + Next.js < 16, where
it previously no-opped
silently.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Sign up for freeto 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.

Remove deprecated Next.js SDK config options

2 participants

@chargome@s1gr1d