Skip to content

feat(react)!: Drop support for React 16 - #22665

Merged
chargome merged 1 commit into
developfrom
cg/drop-react16
Jul 27, 2026
Merged

feat(react)!: Drop support for React 16#22665
chargome merged 1 commit into
developfrom
cg/drop-react16

Conversation

@chargome

@chargome chargome commented Jul 27, 2026

Copy link
Copy Markdown
Member

Removes React 16 support from @sentry/react and @sentry/gatsby for v11. The minimum supported version is now React 17, as already documented in the v11 migration guide.

Raises the react peer dependency range and drops two code paths that only existed for React 16.

No e2e app targeted React 16 — react-17 was already the lowest and stays as the app pinning the new minimum.

closes #21461

@chargome chargome self-assigned this Jul 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.95 kB - -
@sentry/browser - with treeshaking flags 26.39 kB - -
@sentry/browser (incl. Tracing) 46.41 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.18 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.21 kB - -
@sentry/browser (incl. Tracing, Replay) 85.69 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.33 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.4 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.06 kB - -
@sentry/browser (incl. Feedback) 45.13 kB - -
@sentry/browser (incl. sendFeedback) 32.74 kB - -
@sentry/browser (incl. FeedbackAsync) 37.8 kB - -
@sentry/browser (incl. Metrics) 29.04 kB - -
@sentry/browser (incl. Logs) 29.26 kB - -
@sentry/browser (incl. Metrics & Logs) 29.97 kB - -
@sentry/react 29.71 kB -0.13% -38 B 🔽
@sentry/react (incl. Tracing) 48.68 kB -0.07% -34 B 🔽
@sentry/vue 33.38 kB - -
@sentry/vue (incl. Tracing) 48.4 kB - -
@sentry/svelte 27.97 kB - -
CDN Bundle 30.28 kB - -
CDN Bundle (incl. Tracing) 48.26 kB - -
CDN Bundle (incl. Logs, Metrics) 31.85 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.58 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 71.13 kB - -
CDN Bundle (incl. Tracing, Replay) 85.83 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.14 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.6 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.89 kB - -
CDN Bundle - uncompressed 90.15 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.22 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.86 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.2 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.62 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.46 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.42 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.11 kB - -
@sentry/nextjs (client) 51.23 kB - -
@sentry/sveltekit (client) 46.84 kB - -
@sentry/core/server 80.05 kB - -
@sentry/core/browser 52.01 kB - -
@sentry/node 123.14 kB - -
@sentry/node (incl. diagnostics channel injection) 167.14 kB -0.01% -1 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 73.31 kB - -
@sentry/aws-serverless 82.82 kB - -
@sentry/cloudflare (withSentry) - minified 197.05 kB - -
@sentry/cloudflare (withSentry) 484.73 kB - -

View base workflow run

@chargome

chargome commented Jul 27, 2026

Copy link
Copy Markdown
Member Author

buglitzer 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 99ead0d. Configure here.

@chargome
chargome marked this pull request as ready for review July 27, 2026 09:34
@chargome
chargome requested a review from a team as a code owner July 27, 2026 09:34
@chargome
chargome requested review from andreiborza, nicohrubec and s1gr1d and removed request for a team and nicohrubec July 27, 2026 09:34
"peerDependencies": {
"gatsby": "^3.0.0 || ^4.0.0 || ^5.0.0",
"react": "16.x || 17.x || 18.x"
"react": "17.x || 18.x"

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.

q: what about 19?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fair, I'll add it in a follow up

@chargome
chargome merged commit 5a0f486 into develop Jul 27, 2026
228 of 230 checks passed
@chargome
chargome deleted the cg/drop-react16 branch July 27, 2026 09:51
chargome added a commit that referenced this pull request Jul 27, 2026
Gatsby supports React 19 as of 5.16.0, but `@sentry/gatsby` still
declared `react: 17.x || 18.x`. The package just delegates to
`@sentry/react`, which already declares `19.x`, so no source changes are
needed.

came up in review of #22665.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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.

Drop React 16 support

2 participants