🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@sentry/types

Package Overview
Dependencies
Maintainers
10
Versions
546
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/types - npm Package Versions

2345
55

9.22.0

Diff
sentry-bot
published 9.22.0 •
sentry-bot
published 9.21.0 •
sentry-bot
published 9.20.0 •

Changelog

Source

9.20.0

Important changes

  • feat(browser): Track measure detail as span attributes (#16240)

The SDK now automatically collects details passed to performance.measure options.

Other changes

  • feat(node): Add maxIncomingRequestBodySize (#16225)
  • feat(react-router): Add server action instrumentation (#16292)
  • feat(react-router): Filter manifest requests (#16294)
  • feat(replay): Extend default list for masking with aria-label (#16192)
  • fix(browser): Ensure pageload & navigation spans have correct data (#16279)
  • fix(cloudflare): Account for static fields in wrapper type (#16303)
  • fix(nextjs): Preserve next.route attribute on root spans (#16297)
  • feat(node): Fork isolation scope in tRPC middleware (#16296)
  • feat(core): Add orgId option to init and DSC (sentry-org_id in baggage) (#16305)
sentry-bot
published 9.19.0 •

Changelog

Source

9.19.0

  • feat(react-router): Add otel instrumentation for server requests (#16147)
  • feat(remix): Vendor in opentelemetry-instrumentation-remix (#16145)
  • fix(browser): Ensure spans auto-ended for navigations have cancelled reason (#16277)
  • fix(node): Pin @fastify/otel fork to direct url to allow installing without git (#16287)
  • fix(react): Handle nested parameterized routes in reactrouterv3 transaction normalization (#16274)

Work in this release was contributed by @sidx1024. Thank you for your contribution!

sentry-bot
published 9.18.0 •

Changelog

Source

9.18.0

Important changes

  • feat: Support Node 24 (#16236)

We now also publish profiling binaries for Node 24.

Other changes

  • deps(node): Bump import-in-the-middle to 1.13.1 (#16260)
  • feat: Export consoleLoggingIntegration from vercel edge sdk (#16228)
  • feat(cloudflare): Add support for email, queue, and tail handler (#16233)
  • feat(cloudflare): Improve http span data (#16232)
  • feat(nextjs): Add more attributes for generation functions (#16214)
  • feat(opentelemetry): Widen peer dependencies to support Otel v2 (#16246)
  • fix(core): Gracefully handle invalid baggage entries (#16257)
  • fix(node): Ensure traces are propagated without spans in Node 22+ (#16221)
  • fix(node): Use sentry forked @fastify/otel dependency with pinned Otel v1 deps (#16256)
  • fix(remix): Remove vendored types (#16218)
sentry-bot
published 9.17.0 •

Changelog

Source

9.17.0

  • feat(node): Migrate to @fastify/otel (#15542)
sentry-bot
published 9.16.1 •

Changelog

Source

9.16.1

  • fix(core): Make sure logs get flushed in server-runtime-client (#16222)
  • ref(node): Remove vercel flushing code that does nothing (#16217)
sentry-bot
published 9.16.0 •

Changelog

Source

9.16.0

Important changes

  • feat: Create a Vite plugin that injects sentryConfig into the global config (#16197)

Add a new plugin makeConfigInjectorPlugin within our existing vite plugin that updates the global vite config with sentry options

  • feat(browser): Add option to sample linked traces consistently (#16037)

This PR implements consistent sampling across traces as outlined in (#15754)

  • feat(cloudflare): Add support for durable objects (#16180)

This PR introduces a new instrumentDurableObjectWithSentry method to the SDK, which instruments durable objects. We capture both traces and errors automatically.

  • feat(node): Add Prisma integration by default (#16073)

Prisma integration is enabled by default, it should work for both ESM and CJS.

  • feat(react-router): Add client-side router instrumentation (#16185)

Adds client-side instrumentation for react router's HydratedRouter. To enable it, simply replace browserTracingIntegration() with reactRouterTracingIntegration() in your client-side init call.

  • fix(node): Avoid double-wrapping http module (#16177)

When running your application in ESM mode, there have been scenarios that resulted in the http/https emitting duplicate spans for incoming requests. This was apparently caused by us double-wrapping the modules for incoming request isolation.

In order to solve this problem, the modules are no longer monkey patched by us for request isolation. Instead, we register diagnosticschannel hooks to handle request isolation now. While this is generally not expected to break anything, there is one tiny change that _may affect you if you have been relying on very specific functionality:

The ignoreOutgoingRequests option of httpIntegration receives the RequestOptions as second argument. This type is not changed, however due to how the wrapping now works, we no longer pass through the full RequestOptions, but re-construct this partially based on the generated request. For the vast majority of cases, this should be fine, but for the sake of completeness, these are the only fields that may be available there going forward - other fields that may have existed before may no longer be set:

ignoreOutgoingRequests(url: string, {
  method: string;
  protocol: string;
  host: string;
  hostname: string; // same as host
  path: string;
  headers: OutgoingHttpHeaders;
})

Other changes

  • feat(cloudflare): Add logs exports (#16165)
  • feat(vercel-edge): Add logs export (#16166)
  • feat(cloudflare): Read SENTRY_RELEASE from env (#16201)
  • feat(node): Drop http.server spans with 404 status by default (#16205)
  • fix(browser): Respect manually set sentry tracing headers in XHR requests (#16184)
  • fix(core): Respect manually set sentry tracing headers in fetch calls (#16183)
  • fix(feedback): Prevent removeFromDom() from throwing (#16030)
  • fix(node): Use class constructor in docstring for winston transport (#16167)
  • fix(node): Fix vercel flushing logic & add test for it (#16208)
  • fix(node): Fix 404 route handling in express 5 (#16211)
  • fix(logs): Ensure logs can be flushed correctly (#16216)
  • ref(core): Switch to standardized log envelope (#16133)
sentry-bot
published 9.15.0 •

Changelog

Source

9.15.0

Important Changes

  • feat: Export wrapMcpServerWithSentry from server packages (#16127)

Exports the wrapMcpServerWithSentry which is our MCP server instrumentation from all the server packages.

  • feat(core): Associate resource/tool/prompt invocations with request span instead of response span (#16126)

Adds a best effort mechanism to associate handler spans for resource, tool and prompt with the incoming message requests instead of the outgoing SSE response.

Other Changes

  • fix: Vercel ai ESM patching (#16152)
  • fix(node): Update version range for module.register (#16125)
  • fix(react-router): Spread unstable_sentryVitePluginOptions correctly (#16156)
  • fix(react): Fix Redux integration failing with reducer injection (#16106)
  • fix(remix): Add ESM-compatible exports (#16124)
  • fix(remix): Avoid rewrapping root loader. (#16136)

Work in this release was contributed by @AntoineDuComptoirDesPharmacies. Thank you for your contribution!

sentry-bot
published 9.14.0 •

Changelog

Source

9.14.0

Important Changes

  • feat: Add Supabase Integration (#15719)

This PR adds Supabase integration to @sentry/core, allowing automatic instrumentation of Supabase client operations (database queries and authentication) for performance monitoring and error tracking.

  • feat(nestjs): Gracefully handle RPC scenarios in SentryGlobalFilter (#16066)

This PR adds better RPC exception handling to @sentry/nestjs, preventing application crashes while still capturing errors and warning users when a dedicated filter is needed. The implementation gracefully handles the 'rpc' context type in SentryGlobalFilter to improve reliability in hybrid applications.

  • feat(react-router): Trace propagation (#16070)

This PR adds trace propagation to @sentry/react-router by providing utilities to inject trace meta tags into HTML headers and offering a pre-built Sentry-instrumented request handler, improving distributed tracing capabilities across page loads.

Other Changes

  • feat(deps): Bump @prisma/instrumentation from 6.5.0 to 6.6.0 (#16102)
  • feat(nextjs): Improve server component data (#15996)
  • feat(nuxt): Log when adding HTML trace meta tags (#16044)
  • fix(node): Make body capturing more robust (#16105)
  • ref(node): Log when incoming request bodies are being captured (#16104)
2345
55