feat(tanstackstart-react): Add global sentry exception middlewares (#19330)
The sentryGlobalRequestMiddleware and sentryGlobalFunctionMiddleware global middlewares capture unhandled exceptions thrown in TanStack Start API routes and server functions. Add them as the first entries in the requestMiddleware and functionMiddleware arrays of createStart():
import { createStart } from '@tanstack/react-start/server';
import { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from '@sentry/tanstackstart-react';
export default createStart({
requestMiddleware: [sentryGlobalRequestMiddleware, myRequestMiddleware],
functionMiddleware: [sentryGlobalFunctionMiddleware, myFunctionMiddleware],
});
feat(tanstackstart-react)!: Export Vite plugin from @sentry/tanstackstart-react/vite subpath (#19182)
The sentryTanstackStart Vite plugin is now exported from a dedicated subpath. Update your import:
- import { sentryTanstackStart } from '@sentry/tanstackstart-react';
+ import { sentryTanstackStart } from '@sentry/tanstackstart-react/vite';
fix(node-core): Reduce bundle size by removing apm-js-collab and requiring pino >= 9.10 (#18631)
In order to keep receiving pino logs, you need to update your pino version to >= 9.10, the reason for the support bump is to reduce the bundle size of the node-core SDK in frameworks that cannot tree-shake the apm-js-collab dependency.
fix(browser): Ensure user id is consistently added to sessions (#19341)
Previously, the SDK inconsistently set the user id on sessions, meaning sessions were often lacking proper coupling to the user set for example via Sentry.setUser().
Additionally, the SDK incorrectly skipped starting a new session for the first soft navigation after the pageload.
This patch fixes these issues. As a result, metrics around sessions, like "Crash Free Sessions" or "Crash Free Users" might change.
This could also trigger alerts, depending on your set thresholds and conditions.
We apologize for any inconvenience caused!
While we're at it, if you're using Sentry in a Single Page App or meta framework, you might want to give the new 'page' session lifecycle a try!
This new mode no longer creates a session per soft navigation but continues the initial session until the next hard page refresh.
Check out the docs to learn more!
ref!(gatsby): Drop Gatsby v2 support (#19467)
We drop support for Gatsby v2 (which still relies on webpack 4) for a critical security update in https://github.com/getsentry/sentry-javascript-bundler-plugins/releases/tag/5.0.0
setTheme() to dynamically update feedback widget color scheme (#19430)sourcemaps.filesToDeleteAfterUpload as a top-level option (#19280)ignoreConnectSpans option to postgresIntegration (#19291) isPromiseAllSettledResult with null/undefined array elements (#19346)client.close() (#19371)options if set (#19274)sentry.drop_transaction attribute on spans when skipOpenTelemetrySetup is enabled (#19333)options.rootDir instead of options.srcDir (#19343)Work in this release was contributed by @LudvigHz and @jadengis. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 25.02 KB |
| @sentry/browser - with treeshaking flags | 23.56 KB |
| @sentry/browser (incl. Tracing) | 41.43 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.98 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.34 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.2 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.92 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.9 KB |
| @sentry/browser (incl. Feedback) | 41.43 KB |
| @sentry/browser (incl. sendFeedback) | 29.58 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.51 KB |
| @sentry/browser (incl. Metrics) | 26.16 KB |
| @sentry/browser (incl. Logs) | 26.3 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.96 KB |
| @sentry/react | 26.73 KB |
| @sentry/react (incl. Tracing) | 43.71 KB |
| @sentry/vue | 29.36 KB |
| @sentry/vue (incl. Tracing) | 43.23 KB |
| @sentry/svelte | 25.04 KB |
| CDN Bundle | 27.5 KB |
| CDN Bundle (incl. Tracing) | 42.24 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.32 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.06 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.49 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.25 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.1 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.64 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.5 KB |
| CDN Bundle - uncompressed | 80.41 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.06 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.18 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 127.82 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 203.94 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.2 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 241.95 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 251.81 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 254.55 KB |
| @sentry/nextjs (client) | 46.07 KB |
| @sentry/sveltekit (client) | 41.88 KB |
| @sentry/node-core | 50.95 KB |
| @sentry/node | 169.38 KB |
| @sentry/node - without tracing | 95.04 KB |
| @sentry/aws-serverless | 110.47 KB |
Fetched March 26, 2026