Skip to content

feat(astro)!: Drop support for Astro 3 - #22683

Merged
chargome merged 4 commits into
developfrom
charlygomez/js-2750-drop-astro-3-support
Jul 28, 2026
Merged

feat(astro)!: Drop support for Astro 3#22683
chargome merged 4 commits into
developfrom
charlygomez/js-2750-drop-astro-3-support

Conversation

@chargome

@chargome chargome commented Jul 27, 2026

Copy link
Copy Markdown
Member

Raises the minimum supported Astro version to 4. The astro peer dependency drops >=3.x, and the dev dependency moves to ^4.16.19 — pinned to the new floor so the package keeps typechecking against the oldest supported Astro rather than the newest.

Removes the supportsAddMiddleware guard, which only existed because addMiddleware landed in astro@3.5.0. README, JSDoc, and comments documenting the 3.5.0 conditional are updated; the manual-middleware snippet moves under "Disable Automatic Server Instrumentation", where it's still relevant. MIGRATION.md already documents the drop.

closes #21462

Raises the minimum supported Astro version to 4. The `astro` peer
dependency drops `>=3.x`, and the dev dependency moves to `^4.16.19`,
pinned to the new floor so the package keeps typechecking against the
oldest supported Astro rather than the newest.

Removes the `supportsAddMiddleware` guard, which only existed because
`addMiddleware` landed in astro@3.5.0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jul 27, 2026

Copy link
Copy Markdown

JS-2750

@chargome chargome self-assigned this Jul 27, 2026
Comment thread yarn.lock
Comment thread yarn.lock
@github-actions

github-actions Bot commented Jul 27, 2026

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 - -
@sentry/react (incl. Tracing) 48.68 kB - -
@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 112.66 kB -0.01% -1 B 🔽
@sentry/node (incl. diagnostics channel injection) 156.79 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 62.19 kB +0.01% +1 B 🔺
@sentry/aws-serverless 72.46 kB - -
@sentry/cloudflare (withSentry) - minified 197.05 kB - -
@sentry/cloudflare (withSentry) 484.73 kB - -

View base workflow run

chargome and others added 3 commits July 27, 2026 14:12
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@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 eb30de1. Configure here.

@chargome
chargome marked this pull request as ready for review July 27, 2026 14:32
@chargome
chargome requested a review from a team as a code owner July 27, 2026 14:32
@chargome
chargome requested review from nicohrubec and s1gr1d and removed request for a team July 27, 2026 14:32
@Lms24

Lms24 commented Jul 27, 2026

Copy link
Copy Markdown
Member

dumb q: why are we dropping Astro 3 support?

@chargome

Copy link
Copy Markdown
Member Author

@Lms24 Usage is near 0 and we have some special cased code for this in the SDK.

@chargome
chargome requested a review from andreiborza July 28, 2026 07:20
},
"peerDependencies": {
"astro": ">=3.x || >=4.0.0-beta || >=7.0.0-beta"
"astro": ">=4.0.0-beta || >=7.0.0-beta"

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.

I am just wondering why we don't support the beta versions of 5 and 6. But almost no one is using them, so I guess it's fine to keep them out.

@chargome
chargome merged commit 9b1f5af into develop Jul 28, 2026
277 checks passed
@chargome
chargome deleted the charlygomez/js-2750-drop-astro-3-support branch July 28, 2026 07:59
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 Astro 3 support

3 participants