Important Changes
-
feat(core): Add option to enhance the fetch error message (#18466)
You can now enable enhanced fetch error messages by setting the
enhancedFetchErrorMessageoption. When enabled, the SDK will include additional context in fetch error messages to help with debugging. -
feat(nextjs): Add routeManifestInjection option to exclude routes from client bundle (#18798)
A new
routeManifestInjectionoption allows you to exclude sensitive routes from being injected into the client bundle. -
feat(tanstackstart-react): Add
wrapMiddlewaresWithSentryfor manual middleware instrumentation (#18680)You can now wrap your middlewares using
wrapMiddlewaresWithSentry, allowing you to trace middleware execution in your TanStack Start application.import { createMiddleware } from '@tanstack/react-start'; import { wrapMiddlewaresWithSentry } from '@sentry/tanstackstart-react'; const loggingMiddleware = createMiddleware({ type: 'function' }).server(async ({ next }) => { console.log('Request started'); return next(); }); export const [wrappedLoggingMiddleware] = wrapMiddlewaresWithSentry({ loggingMiddleware });
Other Changes
- feat(browser): Add CDN bundle for
tracing.logs.metrics(#18784) - feat(core,node-core): Consolidate bun and node types with ServerRuntimeOptions (#18734)
- feat(nextjs): Remove tracing from generation function template (#18733)
- fix(core): Don't record outcomes for failed client reports (#18808)
- fix(deno,cloudflare): Prioritize name from params over name from options (#18800)
- fix(web-vitals): Add error handling for invalid object keys in
WeakMap(#18809)
Internal Changes
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 24.52 KB |
| @sentry/browser - with treeshaking flags | 23.06 KB |
| @sentry/browser (incl. Tracing) | 40.88 KB |
| @sentry/browser (incl. Tracing, Profiling) | 45.36 KB |
| @sentry/browser (incl. Tracing, Replay) | 78.58 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 68.51 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 83.17 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 95.08 KB |
| @sentry/browser (incl. Feedback) | 40.85 KB |
| @sentry/browser (incl. sendFeedback) | 29.1 KB |
| @sentry/browser (incl. FeedbackAsync) | 33.97 KB |
| @sentry/browser (incl. Metrics) | 25.6 KB |
| @sentry/browser (incl. Logs) | 25.75 KB |
| @sentry/browser (incl. Metrics & Logs) | 26.39 KB |
| @sentry/react | 26.21 KB |
| @sentry/react (incl. Tracing) | 43.05 KB |
| @sentry/vue | 28.87 KB |
| @sentry/vue (incl. Tracing) | 42.64 KB |
| @sentry/svelte | 24.53 KB |
| CDN Bundle | 26.96 KB |
| CDN Bundle (incl. Tracing) | 41.6 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 42.48 KB |
| CDN Bundle (incl. Tracing, Replay) | 77.43 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 82.72 KB |
| CDN Bundle - uncompressed | 78.99 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 123.34 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 126.29 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 237.15 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 249.64 KB |
| @sentry/nextjs (client) | 45.34 KB |
| @sentry/sveltekit (client) | 41.25 KB |
| @sentry/node-core | 50.69 KB |
| @sentry/node | 158.35 KB |
| @sentry/node - without tracing | 91.14 KB |
| @sentry/aws-serverless | 106.28 KB |