Skip to content

ref(nextjs): Add deprecation notices to nested reactComponentAnnotation options - #23394

Merged
chargome merged 2 commits into
developfrom
charlygomez/deprecate-nested-react-component-annotation
Aug 13, 2026
Merged

ref(nextjs): Add deprecation notices to nested reactComponentAnnotation options#23394
chargome merged 2 commits into
developfrom
charlygomez/deprecate-nested-react-component-annotation

Conversation

@chargome

Copy link
Copy Markdown
Member

Follow-up to #23268. Adds @deprecated to the individual properties inside
webpack.reactComponentAnnotation and _experimental.turbopackReactComponentAnnotation, so hovering
enabled or ignoredComponents surfaces the notice too, not just the parent option.

…on options
Adds `@deprecated` to the individual properties inside
`webpack.reactComponentAnnotation` and `_experimental.turbopackReactComponentAnnotation`
so hovering them surfaces the notice too, not just the parent option.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chargomechargome self-assigned this Aug 13, 2026
Deprecating the nested properties made the spread-merged object carry the
deprecated declarations, so reading `enabled` / `ignoredComponents` off it
tripped `no-deprecated`. Annotating the merge with the unified option type
resolves those reads against the non-deprecated declarations.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chargome
chargome marked this pull request as ready for review August 13, 2026 09:31
@chargome
chargome requested a review from a team as a code ownerAugust 13, 2026 09:31
@chargome
chargome requested review from mydea and nicohrubec and removed request for a team, mydea and nicohrubecAugust 13, 2026 09:31
@chargome
chargome enabled auto-merge (squash) August 13, 2026 09:32
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser30.3 kB--
@sentry/browser - with treeshaking flags28.47 kB--
@sentry/browser - with treeshaking flags tracing without tracing26.81 kB--
@sentry/browser (incl. Tracing)48.54 kB--
@sentry/browser (incl. Tracing + Span Streaming)48.55 kB--
@sentry/browser (incl. Tracing, Profiling)51.43 kB--
@sentry/browser (incl. Tracing, Replay)87.94 kB--
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags77.32 kB--
@sentry/browser (incl. Tracing, Replay with Canvas)92.67 kB--
@sentry/browser (incl. Tracing, Replay, Feedback)105.36 kB--
@sentry/browser (incl. Feedback)47.65 kB--
@sentry/browser (incl. sendFeedback)35.13 kB--
@sentry/browser (incl. FeedbackAsync)40.28 kB--
@sentry/browser (incl. Metrics)31.24 kB--
@sentry/browser (incl. Logs)31.52 kB--
@sentry/browser (incl. Metrics & Logs)32.15 kB--
@sentry/react32.09 kB--
@sentry/react (incl. Tracing)50.73 kB--
@sentry/vue35.31 kB--
@sentry/vue (incl. Tracing)50.5 kB--
@sentry/svelte30.33 kB--
CDN Bundle31.61 kB--
CDN Bundle (incl. Tracing)48.87 kB--
CDN Bundle (incl. Logs, Metrics)33.8 kB--
CDN Bundle (incl. Tracing, Logs, Metrics)50.79 kB--
CDN Bundle (incl. Replay, Logs, Metrics)74.31 kB--
CDN Bundle (incl. Tracing, Replay)86.46 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)88.29 kB--
CDN Bundle (incl. Tracing, Replay, Feedback)92.16 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)94.11 kB--
CDN Bundle - uncompressed93.84 kB--
CDN Bundle (incl. Tracing) - uncompressed146.72 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed100.14 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed152.41 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed229.08 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed265.98 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed271.65 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed279.68 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed285.34 kB--
@sentry/nextjs (client)53.26 kB--
@sentry/sveltekit (client)48.96 kB--
@sentry/core/server65.34 kB--
@sentry/core/browser51.69 kB--
@sentry/node117.94 kB-0.01%-1 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection)0 Baddedadded
@sentry/node - without tracing82.06 kB--
@sentry/aws-serverless91.47 kB+0.01%+1 B 🔺
@sentry/cloudflare (withSentry) - minified213.99 kB--
@sentry/cloudflare (withSentry)528.77 kB--

View base workflow run

@chargome
chargome merged commit 14c6e77 into developAug 13, 2026
83 checks passed
@chargome
chargome deleted the charlygomez/deprecate-nested-react-component-annotation branch August 13, 2026 09:49
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.

2 participants

@chargome@s1gr1d