Packages

@sentry/utils

8.55.2 · 28 Apr 2026MIT10.5M / weekRepositoryHomepagenpmAtom feed

Your version

8.52.0

28 Jan 2025Where it was published

8.55.2 is the newest release of 8.x.

In short

4 new2 fixed1 changed

Release note

Important Changes

  • solidstart: Add withSentry wrapper for SolidStart config

To enable the SolidStart SDK, wrap your SolidStart Config with withSentry. The sentrySolidStartVite plugin is now automatically
added by withSentry and you can pass the Sentry build-time options like this:

import { defineConfig } from '@solidjs/start/config';
import { withSentry } from '@sentry/solidstart';

export default defineConfig(
  withSentry(
    {
      /* Your SolidStart config options... */
    },
    {
      // Options for setting up source maps
      org: process.env.SENTRY_ORG,
      project: process.env.SENTRY_PROJECT,
      authToken: process.env.SENTRY_AUTH_TOKEN,
    },
  ),
);

With the withSentry wrapper, the Sentry server config should not be added to the public directory anymore.
Add the Sentry server config in src/instrument.server.ts. Then, the server config will be placed inside the server build output as instrument.server.mjs.

Now, there are two options to set up the SDK:

  1. (recommended) Provide an --import CLI flag to the start command like this (path depends on your server setup):
    node --import ./.output/server/instrument.server.mjs .output/server/index.mjs

  2. Add autoInjectServerSentry: 'top-level-import' and the Sentry config will be imported at the top of the server entry (comes with tracing limitations)

    withSentry(
      {
        /* Your SolidStart config options... */
      },
      {
        // Optional: Install Sentry with a top-level import
        autoInjectServerSentry: 'top-level-import',
      },
    );

Other Changes

  • v8/core: Add client outcomes for breadcrumbs buffer

  • v8/core: Improve error formatting in ZodErrors integration

  • v8/bun: Ensure instrumentation of Bun.serve survives a server reload

  • v8/core: Pass module into loadModule

Work in this release was contributed by @jahands, @jrandolf, and @nathankleyn. Thank you for your contributions!

Bundle size

PathSize
@sentry/browser23.32 KB
@sentry/browser - with treeshaking flags23.2 KB
@sentry/browser (incl. Tracing)35.88 KB
@sentry/browser (incl. Tracing, Replay)73.23 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags66.7 KB
@sentry/browser (incl. Tracing, Replay with Canvas)77.54 KB
@sentry/browser (incl. Tracing, Replay, Feedback)89.47 KB
@sentry/browser (incl. Feedback)39.53 KB
@sentry/browser (incl. sendFeedback)27.94 KB
@sentry/browser (incl. FeedbackAsync)32.73 KB
@sentry/react26 KB
@sentry/react (incl. Tracing)38.71 KB
@sentry/vue27.6 KB
@sentry/vue (incl. Tracing)37.74 KB
@sentry/svelte23.49 KB
CDN Bundle24.52 KB
CDN Bundle (incl. Tracing)37.59 KB
CDN Bundle (incl. Tracing, Replay)72.87 KB
CDN Bundle (incl. Tracing, Replay, Feedback)78.24 KB
CDN Bundle - uncompressed72.01 KB
CDN Bundle (incl. Tracing) - uncompressed111.51 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed225.76 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed238.86 KB
@sentry/nextjs (client)38.96 KB
@sentry/sveltekit (client)36.39 KB
@sentry/node162.87 KB
@sentry/node - without tracing99.18 KB
@sentry/aws-serverless126.69 KB