Packages

@sentry/node

11.9.0 · 23 Oct 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed

Your version

10.39.0

16 Feb 2026Where it was published

10.77.1 is the newest release of 10.x.

In short

12 new20 fixed40 internal

Release note

Important Changes

  • tanstackstart-react: Auto-instrument server function middleware

    The sentryTanstackStart Vite plugin now automatically instruments middleware in createServerFn().middleware([...]) calls. This captures performance data without requiring manual wrapping with wrapMiddlewaresWithSentry().

  • nextjs: New experimental automatic vercel cron monitoring

    Setting _experimental.vercelCronMonitoring to true in your Sentry configuration will automatically create Sentry cron monitors for your Vercel Cron Jobs.

    Please note that this is an experimental unstable feature and subject to change.

    // next.config.ts
    export default withSentryConfig(nextConfig, {
      _experimental: {
        vercelCronMonitoring: true,
      },
    });
  • node-core: Add node-core/light

    This release adds a new light-weight @sentry/node-core/light export to @sentry/node-core. The export acts as a light-weight SDK that does not depend on OpenTelemetry and emits no spans.

    Use this SDK when:

    • You only need error tracking, logs or metrics without tracing data (no spans)

    • You want to minimize bundle size and runtime overhead

    • You don't need spans emitted by OpenTelemetry instrumentation

    It supports error tracking and reporting, logs, metrics, automatic request isolation (requires Node.js 22+) and basic tracing via our Sentry.startSpan* APIs.

    Install the SDK by running

    npm install @sentry/node-core

    and add Sentry at the top of your application's entry file:

    import * as Sentry from '@sentry/node-core/light';
    
    Sentry.init({
      dsn: '__DSN__',
    });

Other Changes

  • browser: Add mode option for the browser session integration

  • browser: Include culture context with events

  • browser: Trace continuation from server-timing headers

  • core,cloudflare: Enable certain fields with env variables

  • hono: Add base for Sentry Hono middleware (Cloudflare)

  • nextjs: Set cloudflare runtime

  • node-core: Add outgoing fetch trace propagation to light mode

  • react: Add lazyRouteManifest option to resolve lazy-route names

  • vercel-ai: Add rerank support and fix token attribute mapping

  • core: Avoid blocking the process for weightBasedFlushing

  • core: Avoid blocking the process when calling flush on empty buffer

  • core: Ensure partially set SDK metadata options are preserved

  • core: Fix truncation to only keep last message in vercel

  • core: Intercept .withResponse() to preserve OpenAI stream instrumentation

  • core: Prevent infinite recursion when event processor throws

  • core: Record client report with reason for HTTP 413 responses

  • core: Remove outdated _experiments.enableMetrics references from metrics JSDoc

  • core: Respect event.event_id in scope.captureEvent return value

  • core: Use sessionId for MCP transport correlation

  • nextjs: Expose an event id when captureUnderscoreErrorException captures an exception

  • nextjs: Populate SENTRY_SERVER_MODULES in Turbopack

  • node: Use snake_case for Fastify's request-handler op.

  • nuxt: Avoid logging database skip warning when debug is disabled

  • nuxt: Respect configured environment settings

  • profiling-node: 137 ABI should not be pruned for node 24

  • replay: Improve error messages when compression worker fails to load

  • svelte: Bump svelte dev dependency to 3.59.2

  • sveltekit: Detect used adapter via svelte.config.js

  • tanstackstart-react: Use auto.middleware.tanstackstart as middleware trace origin

Internal Changes

Work in this release was contributed by @limbonaut and @rfoel. Thank you for your contributions!