npm @sentry/browser 10.55.0

5 hours ago

Important Changes

  • feat(hono): Promote @sentry/hono to stable and deprecate honoIntegration (#21208)

    The @sentry/hono SDK is now stable. See the Sentry Hono SDK docs to get started.

  • docs(tanstackstart-react): Promote SDK status to beta (#21175)

    This release promotes the @sentry/tanstackstart-react SDK to beta. For details on how to use it, check out the
    Sentry TanStack Start SDK docs. Please reach out on
    GitHub if you have any feedback or concerns.

  • feat(hono): Add shouldHandleError option to sentry() middleware (#21205)

    The sentry() middleware now accepts a shouldHandleError callback to control which errors are captured and sent to Sentry. By default, 3xx/4xx HTTP errors are ignored and 5xx errors and plain Error objects are captured. Return true from the callback to capture an error, false to suppress it.

    app.use(
      sentry(app, {
        dsn: '__DSN__',
        shouldHandleError(error) {
          const status = (error as { status?: number })?.status;
          // Capture 401/403 in addition to the default 5xx errors
          return status === 401 || status === 403 || typeof status !== 'number' || status >= 500;
        },
      }),
    );
  • test(tanstackstart-react): Move initialization to client entry point (#21161)

    Change the recommended setup for the SDK to do Sentry.init() in the client entry file to capture telemetry that is emitted ahead of page hydration.

  • feat(tanstackstart-react): Add distributed tracing (#21144)

    Server and client traces are now automatically connected, allowing you to see the full request lifecycle from server-side rendering through client-side hydration in a single trace.

  • feat(tanstackstart-react): Add server-side route parametrization (#21147)

    Server transaction names are now parametrized automatically (e.g., GET /users/123 becomes GET /users/$userId), improving transaction grouping in Sentry.

  • feat(tanstackstart-react): Show readable server function names in traces (#21190)

    Server function spans now show human-readable names (e.g., GET /_serverFn/greet instead of GET /_serverFn/a10e70b3...). The tanstackstart.function.hash.sha256 span attribute has been renamed to tanstackstart.function.id.

Other Changes

  • feat(core): Migrate request data to dataCollection (#21071)
  • feat(hono): Add warning in Bun for double init (#21195)
  • feat(hono): Instrument main-app inline middleware spans (#20999)
  • feat(metrics): Migrate metrics to use dataCollection instead of sendDefaultPii (#21078)
  • feat(tanstackstart-react): Enable component tracking (#21149)
  • feat(tanstackstart-react): Filter noisy dev transactions (#21145)
  • fix(cloudflare): Use original waitUntil to not create a deadlock (#21197)
  • fix(elysia): Widen accepted Elysia app type to support Elysia options (#21164)
  • fix(tanstackstart-react): Add server-side replayIntegration no-op stub (#21148)
Internal Changes
  • chore(changelog): clarify array attributes impact on beforeSend* callbacks (#21186)
  • chore(ci): Update bugbot instructions (#21168)
  • chore(sentry-cli): Upgrade to 2.58.6 (#21165)
  • chore(size-limit): weekly auto-bump (#21123)
  • feat(deps-dev): Bump @sveltejs/kit from 2.52.2 to 2.60.1 in /dev-packages/e2e-tests/test-applications/sveltekit-cloudflare-pages (#21162)
  • fix(e2e): Fix astro-6 e2e test build by relaxing astro version range (#21211)
  • meta(agents): Update AI commit attribution guidance (#21166)
  • ref(browser): Extract browser-specific normalize code out of core (#21172)
  • ref(node): Stop custom-handling normalization of Domain/DomainEmitter (#21182)
  • ref(node): Stop using registerSpanErrorInstrumentation() on server (#21169)
  • test(nitro-3): Update e2e tests for h3 route handler tracing (#21152)
  • test(nuxt): Fix flaky test and add note about hydration timing to skill (#21054)

Bundle size 📦

Path Size
@sentry/browser 26.52 KB
@sentry/browser - with treeshaking flags 25.01 KB
@sentry/browser (incl. Tracing) 44.18 KB
@sentry/browser (incl. Tracing + Span Streaming) 46.35 KB
@sentry/browser (incl. Tracing, Profiling) 49.04 KB
@sentry/browser (incl. Tracing, Replay) 82.83 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 72.65 KB
@sentry/browser (incl. Tracing, Replay with Canvas) 87.42 KB
@sentry/browser (incl. Tracing, Replay, Feedback) 99.76 KB
@sentry/browser (incl. Feedback) 43.29 KB
@sentry/browser (incl. sendFeedback) 31.23 KB
@sentry/browser (incl. FeedbackAsync) 36.2 KB
@sentry/browser (incl. Metrics) 27.58 KB
@sentry/browser (incl. Logs) 27.81 KB
@sentry/browser (incl. Metrics & Logs) 28.49 KB
@sentry/react 28.3 KB
@sentry/react (incl. Tracing) 46.39 KB
@sentry/vue 31.45 KB
@sentry/vue (incl. Tracing) 46.05 KB
@sentry/svelte 26.55 KB
CDN Bundle 28.85 KB
CDN Bundle (incl. Tracing) 46.68 KB
CDN Bundle (incl. Logs, Metrics) 30.31 KB
CDN Bundle (incl. Tracing, Logs, Metrics) 47.89 KB
CDN Bundle (incl. Replay, Logs, Metrics) 68.65 KB
CDN Bundle (incl. Tracing, Replay) 83.18 KB
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 84.32 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 88.92 KB
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 90.05 KB
CDN Bundle - uncompressed 85.52 KB
CDN Bundle (incl. Tracing) - uncompressed 140.7 KB
CDN Bundle (incl. Logs, Metrics) - uncompressed 89.91 KB
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 144.37 KB
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 211.71 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 256.69 KB
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 260.34 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 270.07 KB
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 273.71 KB
@sentry/nextjs (client) 48.85 KB
@sentry/sveltekit (client) 44.6 KB
@sentry/core/server 74.15 KB
@sentry/core/browser 61.61 KB
@sentry/node-core 60.5 KB
@sentry/node 127.33 KB
@sentry/node - without tracing 72.62 KB
@sentry/aws-serverless 84.54 KB
@sentry/cloudflare (withSentry) - minified 167.48 KB
@sentry/cloudflare (withSentry) 419.23 KB

Don't miss a new browser release

NewReleases is sending notifications on new releases.