Packages

@sentry/types

10.75.2 · 22 Sep 2026MIT13.1M / weekRepositoryHomepagenpmAtom feed

Your version

10.58.0

15 Jun 2026Where it was published

10.77.1 is the newest release of 10.x.

In short

1 deprecated7 new1 faster10 fixed31 internal

  • deprecated

    react-router: Always build client instrumentation and deprecate useInstrumentationAPI

Release note

Important Changes

  • hono: Add support for the Deno runtime

    @sentry/hono now supports the Deno runtime via a new @sentry/hono/deno entry point.
    Install @sentry/deno as a peer dependency and initialize Sentry through the sentry() middleware:

    import { Hono } from 'hono';
    import { sentry } from '@sentry/hono/deno';
    
    const app = new Hono();
    
    app.use(
      sentry(app, {
        dsn: '__DSN__', // or Deno.env.get('SENTRY_DSN')
        tracesSampleRate: 1.0,
      }),
    );
    
    Deno.serve(app.fetch);
  • core: Extract objects as structured logs in consoleLoggingIntegration

    The consoleLoggingIntegration now extracts structured log attributes when the first argument is a plain object.

    // Object keys become log attributes
    console.log({ userId: 123, action: 'login' }, 'User logged in');
    // → attributes: { userId: 123, action: "login" }
    
    // Non-object first args use template + parameters (unchanged)
    console.log('Hello', 'world', 123);
    // → sentry.message.template: "Hello {} {}"
  • react-router: Stabilize the instrumentation API

    React Router's instrumentation API is now stable — the @experimental markers have been removed from createSentryServerInstrumentation, createSentryClientInstrumentation, and the related helpers and types.
    The manual server wrappers wrapServerLoader and wrapServerAction are now deprecated in favor of it. Export instrumentations = [Sentry.createSentryServerInstrumentation()] from your entry.server.tsx to instrument all loaders and actions without wrapping them individually.

Other Changes

  • hono: Add HTTP connection info to server spans

  • node-core: Attach log message and fields to pino error events

  • deprecated

    react-router: Always build client instrumentation and deprecate useInstrumentationAPI

  • react-router: Rename client navigation roots from the route pattern

  • astro: Resolve middleware export types

  • browser: Ignore __sentry_wrapped__ inherited from Function.prototype

  • core: Avoid double counting cached input tokens for Vercel AI SDK v6

  • core: Keep safeJoin side-effect-free for DOM elements

  • deno: Use correct paths for module and types fields in package.json

  • nextjs: Mark redirect server actions as ok instead of internal_error

  • react-router: Mark instrumentation API active on invocation

  • redis: Bring span attributes into alignment with conventions

  • sveltekit: Add default exports condition

  • tanstackstart-react: Preserve middleware context types

  • core: Reuse unchanged Vercel AI messages JSON

Work in this release was contributed by @archievi, @AyaanFaisal21, @itosa-kazu, and @bkchr. Thank you for your contributions!

Internal Changes

  • nestjs: Migrate vendored nest instrumentation to Sentry APIs