releases.shpreview
Sentry/Sentry JavaScript

Sentry JavaScript

$npx -y @buildinternet/releases show sentry-javascript
Mon
Wed
Fri
AprMayJunJulAugSepOctNovDecJanFebMarApr
Less
More
Releases19Avg6/moVersionsv10.35.0 → v10.50.0-alpha.0
Aug 6, 2024
  • feat(nestjs): Filter RPC exceptions (#13227)
  • fix: Guard getReader function for other fetch implementations (#13246)
  • fix(feedback): Ensure feedback can be lazy loaded in CDN bundles (#13241)
Aug 5, 2024

Important Changes

  • feat(cloudflare): Add Cloudflare D1 instrumentation (#13142)

This release includes support for Cloudflare D1, Cloudflare's serverless SQL database. To instrument your Cloudflare D1 database, use the instrumentD1WithSentry method as follows:

// env.DB is the D1 DB binding configured in your `wrangler.toml`
const db = instrumentD1WithSentry(env.DB);
// Now you can use the database as usual
await db.prepare('SELECT * FROM table WHERE id = ?').bind(1).run();

Other Changes

  • feat(cloudflare): Allow users to pass handler to sentryPagesPlugin (#13192)
  • feat(cloudflare): Instrument scheduled handler (#13114)
  • feat(core): Add getTraceData function (#13134)
  • feat(nestjs): Automatic instrumentation of nestjs interceptors before route execution (#13153)
  • feat(nestjs): Automatic instrumentation of nestjs pipes (#13137)
  • feat(nuxt): Filter out Nuxt build assets (#13148)
  • feat(profiling): Attach sdk info to chunks (#13145)
  • feat(solidstart): Add sentry onBeforeResponse middleware to enable distributed tracing (#13221)
  • feat(solidstart): Filter out low quality transactions for build assets (#13222)
  • fix(browser): Avoid showing browser extension error message in non-window global scopes (#13156)
  • fix(feedback): Call dialog.close() in dialog close callbacks in \_loadAndRenderDialog (#13203)
  • fix(nestjs): Inline Observable type to resolve missing 'rxjs' dependency (#13166)
  • fix(nuxt): Detect pageload by adding flag in Vue router (#13171)
  • fix(utils): Handle when requests get aborted in fetch instrumentation (#13202)
  • ref(browser): Improve browserMetrics collection (#13062)

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

Aug 1, 2024

Important Changes

  • feat(cloudflare): Add plugin for cloudflare pages (#13123)

This release adds support for Cloudflare Pages to @sentry/cloudflare, our SDK for the Cloudflare Workers JavaScript Runtime! For details on how to use it, please see the README. Any feedback/bug reports are greatly appreciated, please reach out on GitHub.

// functions/_middleware.js
import * as Sentry from '@sentry/cloudflare';

export const onRequest = Sentry.sentryPagesPlugin({
  dsn: __PUBLIC_DSN__,
  // Set tracesSampleRate to 1.0 to capture 100% of spans for tracing.
  tracesSampleRate: 1.0,
});

Other Changes

  • feat(meta-sdks): Remove runtime tags (#13105)
  • feat(nestjs): Automatic instrumentation of nestjs guards (#13129)
  • feat(nestjs): Filter all HttpExceptions (#13120)
  • feat(replay): Capture exception when internal_sdk_error client report happens (#13072)
  • fix: Use globalThis for code injection (#13132)

Bundle size 📦

PathSize
@sentry/browser22.45 KB
@sentry/browser (incl. Tracing)34.22 KB
@sentry/browser (incl. Tracing, Replay)70.28 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags63.62 KB
@sentry/browser (incl. Tracing, Replay with Canvas)74.68 KB
@sentry/browser (incl. Tracing, Replay, Feedback)87.26 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)89.11 KB
@sentry/browser (incl. metrics)26.75 KB
@sentry/browser (incl. Feedback)39.37 KB
@sentry/browser (incl. sendFeedback)27.06 KB
@sentry/browser (incl. FeedbackAsync)31.7 KB
@sentry/react25.22 KB
@sentry/react (incl. Tracing)37.22 KB
@sentry/vue26.6 KB
@sentry/vue (incl. Tracing)36.06 KB
@sentry/svelte22.58 KB
CDN Bundle23.64 KB
CDN Bundle (incl. Tracing)35.88 KB
CDN Bundle (incl. Tracing, Replay)70.31 KB
CDN Bundle (incl. Tracing, Replay, Feedback)75.57 KB
CDN Bundle - uncompressed69.37 KB
CDN Bundle (incl. Tracing) - uncompressed106.31 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed218.16 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed230.99 KB
@sentry/nextjs (client)37.07 KB
@sentry/sveltekit (client)34.79 KB
@sentry/node114.65 KB
@sentry/node - without tracing89.33 KB
@sentry/aws-serverless98.5 KB
Jul 31, 2024

Important Changes

  • Alpha release of Official Cloudflare SDK
    • feat(cloudflare): Add withSentry method (#13025)
    • feat(cloudflare): Add cloudflare sdk scaffolding (#12953)
    • feat(cloudflare): Add basic cloudflare package and tests (#12861)

This release contains the alpha version of @sentry/cloudflare, our SDK for the Cloudflare Workers JavaScript Runtime! For details on how to use it, please see the README. Any feedback/bug reports are greatly appreciated, please reach out on GitHub.

Please note that only Cloudflare Workers are tested and supported - official Cloudflare Pages support will come in an upcoming release.

Other Changes

  • feat(feedback): Make cropped screenshot area draggable (#13071)
  • feat(core): Adapt spans for client-side fetch to streaming responses (#12723)
  • feat(core): Capture # of dropped spans through beforeSendTransaction (#13022)
  • feat(deps): bump @opentelemetry/instrumentation-aws-sdk from 0.43.0 to 0.43.1 (#13089)
  • feat(deps): bump @opentelemetry/instrumentation-express from 0.41.0 to 0.41.1 (#13090)
  • feat(nestjs): Automatic instrumentation of nestjs middleware (#13065)
  • feat(node): Upgrade import-in-the-middle to 1.11.0 (#13107)
  • feat(nuxt): Add connected tracing meta tags (#13098)
  • feat(nuxt): Add vue-router instrumentation (#13054)
  • feat(solidstart): Add server action instrumentation helper (#13035)
  • fix(feedback): Ensure pluggable feedback CDN bundle is correctly built (#13081)
  • fix(nextjs): Only delete clientside bundle source maps with sourcemaps.deleteFilesAfterUpload (#13102)
  • fix(node): Improve OTEL validation logic (#13079)

Bundle size 📦

PathSize
@sentry/browser22.45 KB
@sentry/browser (incl. Tracing)34.22 KB
@sentry/browser (incl. Tracing, Replay)70.26 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags63.59 KB
@sentry/browser (incl. Tracing, Replay with Canvas)74.66 KB
@sentry/browser (incl. Tracing, Replay, Feedback)87.24 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)89.08 KB
@sentry/browser (incl. metrics)26.75 KB
@sentry/browser (incl. Feedback)39.37 KB
@sentry/browser (incl. sendFeedback)27.06 KB
@sentry/browser (incl. FeedbackAsync)31.7 KB
@sentry/react25.22 KB
@sentry/react (incl. Tracing)37.22 KB
@sentry/vue26.6 KB
@sentry/vue (incl. Tracing)36.06 KB
@sentry/svelte22.58 KB
CDN Bundle23.64 KB
CDN Bundle (incl. Tracing)35.88 KB
CDN Bundle (incl. Tracing, Replay)70.27 KB
CDN Bundle (incl. Tracing, Replay, Feedback)75.53 KB
CDN Bundle - uncompressed69.37 KB
CDN Bundle (incl. Tracing) - uncompressed106.31 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed217.95 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed230.78 KB
@sentry/nextjs (client)37.08 KB
@sentry/sveltekit (client)34.81 KB
@sentry/node114.55 KB
@sentry/node - without tracing89.33 KB
@sentry/aws-serverless98.5 KB
Jul 24, 2024

Important Changes

  • feat(node): Allow to pass registerEsmLoaderHooks to preload (#12998)

You can write your own custom preload script and configure this in the preload options. registerEsmLoaderHooks can be passed as an option to preloadOpenTelemetry, which allows to exclude/include packages in the preload.

  • fix(node): Do not emit fetch spans when tracing is disabled (#13003)

Sentry will not emit "fetch" spans if tracing is disabled. This is relevant for user who use their own sampler.

Other Changes

  • feat(feedback): Trigger button aria label configuration (#13008)
  • feat(nestjs): Change nest sdk setup (#12920)
  • feat(node): Extend ESM hooks options for iitm v1.10.0 (#13016)
  • feat(node): Send client reports (#12951)
  • feat(nuxt): Automatically add BrowserTracing (#13005)
  • feat(nuxt): Setup source maps with vite config (#13018)
  • feat(replay): Improve public Replay APIs (#13000)

Bundle size 📦

PathSize
@sentry/browser22.31 KB
@sentry/browser (incl. Tracing)33.72 KB
@sentry/browser (incl. Tracing, Replay)69.82 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags63.16 KB
@sentry/browser (incl. Tracing, Replay with Canvas)74.21 KB
@sentry/browser (incl. Tracing, Replay, Feedback)86.58 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)88.45 KB
@sentry/browser (incl. metrics)26.62 KB
@sentry/browser (incl. Feedback)39.02 KB
@sentry/browser (incl. sendFeedback)26.93 KB
@sentry/browser (incl. FeedbackAsync)31.57 KB
@sentry/react25.08 KB
@sentry/react (incl. Tracing)36.8 KB
@sentry/vue26.45 KB
@sentry/vue (incl. Tracing)35.61 KB
@sentry/svelte22.44 KB
CDN Bundle23.52 KB
CDN Bundle (incl. Tracing)35.5 KB
CDN Bundle (incl. Tracing, Replay)69.86 KB
CDN Bundle (incl. Tracing, Replay, Feedback)75.15 KB
CDN Bundle - uncompressed69 KB
CDN Bundle (incl. Tracing) - uncompressed105.1 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed216.74 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed229.57 KB
@sentry/nextjs (client)36.66 KB
@sentry/sveltekit (client)34.39 KB
@sentry/node111.76 KB
@sentry/node - without tracing89.21 KB
@sentry/aws-serverless98.34 KB
Jul 19, 2024
  • feat(core): Align Span interface with OTEL (#12898)
  • feat(express): Allow to pass options to setupExpressErrorHandler (#12952)
  • feat(node): Add request parameter to httpIntegration ignore callbacks (#12930)
  • feat(vercel-edge): Add dedupe as default integration (#12957)
  • fix(angular): Remove afterSendEvent listener once root injector is destroyed (#12786)
  • fix(browser): Fix bug causing unintentional dropping of transactions (#12933)
  • fix(feedback): Add a missing call of Actor.appendToDom method when DOMContentLoaded event is triggered (#12973)
  • fix(node): Pass inferred name & attributes to tracesSampler (#12945)

Work in this release was contributed by @jaspreet57 and @arturovt. Thank you for your contribution!

Bundle size 📦

PathSize
@sentry/browser22.3 KB
@sentry/browser (incl. Tracing)33.72 KB
@sentry/browser (incl. Tracing, Replay)69.81 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags63.11 KB
@sentry/browser (incl. Tracing, Replay with Canvas)74.2 KB
@sentry/browser (incl. Tracing, Replay, Feedback)86.52 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)88.39 KB
@sentry/browser (incl. metrics)26.62 KB
@sentry/browser (incl. Feedback)38.98 KB
@sentry/browser (incl. sendFeedback)26.93 KB
@sentry/browser (incl. FeedbackAsync)31.54 KB
@sentry/react25.07 KB
@sentry/react (incl. Tracing)36.79 KB
@sentry/vue26.44 KB
@sentry/vue (incl. Tracing)35.6 KB
@sentry/svelte22.44 KB
CDN Bundle23.52 KB
CDN Bundle (incl. Tracing)35.5 KB
CDN Bundle (incl. Tracing, Replay)69.91 KB
CDN Bundle (incl. Tracing, Replay, Feedback)75.17 KB
CDN Bundle - uncompressed69 KB
CDN Bundle (incl. Tracing) - uncompressed105.1 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed216.88 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed229.6 KB
@sentry/nextjs (client)36.65 KB
@sentry/sveltekit (client)34.37 KB
@sentry/node111.29 KB
@sentry/node - without tracing88.71 KB
@sentry/aws-serverless97.88 KB
Jul 16, 2024

Important Changes

  • ref: Deprecate enableTracing (12897)

The enableTracing option has been deprecated and will be removed in the next major version. We recommend removing it in favor of the tracesSampleRate and tracesSampler options. If you want to enable performance monitoring, please set the tracesSampleRate to a sample rate of your choice, or provide a sampling function as tracesSampler option instead. If you want to disable performance monitoring, remove the tracesSampler and tracesSampleRate options.

Other Changes

  • feat(node): Expose exclude and include options for ESM loader (#12910)
  • feat(browser): Add user agent to INP standalone span attributes (#12896)
  • feat(nextjs): Add experimental_captureRequestError for onRequestError hook (#12885)
  • feat(replay): Bump rrweb to 2.25.0 (#12478)
  • feat(tracing): Add long animation frame tracing (#12646)
  • fix: Cleanup hooks when they are not used anymore (#12852)
  • fix(angular): Guard ErrorEvent check in ErrorHandler to avoid throwing in Node environments (#12892)
  • fix(inp): Ensure INP spans have correct transaction (#12871)
  • fix(nestjs): Do not make SentryTraced() decorated functions async (#12879)
  • fix(nextjs): Support automatic instrumentation for app directory with custom page extensions (#12858)
  • fix(node): Ensure correct URL is passed to ignoreIncomingRequests callback (#12929)
  • fix(otel): Do not add otel.kind: INTERNAL attribute (#12841)
  • fix(solidstart): Set proper sentry origin for solid router integration when used in solidstart sdk (#12919)
  • fix(sveltekit): Add Vite peer dep for proper type resolution (#12926)
  • fix(tracing): Ensure you can pass null as parentSpan in startSpan* (#12928)
  • ref(core): Small bundle size improvement (#12830)

Work in this release was contributed by @GitSquared, @ziyadkhalil and @mcous. Thank you for your contributions!

Bundle size 📦

PathSize
@sentry/browser22.3 KB
@sentry/browser (incl. Tracing)33.69 KB
@sentry/browser (incl. Tracing, Replay)69.77 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags63.08 KB
@sentry/browser (incl. Tracing, Replay with Canvas)74.17 KB
@sentry/browser (incl. Tracing, Replay, Feedback)86.49 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)88.36 KB
@sentry/browser (incl. metrics)26.59 KB
@sentry/browser (incl. Feedback)38.98 KB
@sentry/browser (incl. sendFeedback)26.93 KB
@sentry/browser (incl. FeedbackAsync)31.54 KB
@sentry/react25.06 KB
@sentry/react (incl. Tracing)36.75 KB
@sentry/vue26.41 KB
@sentry/vue (incl. Tracing)35.57 KB
@sentry/svelte22.44 KB
CDN Bundle23.52 KB
CDN Bundle (incl. Tracing)35.47 KB
CDN Bundle (incl. Tracing, Replay)69.87 KB
CDN Bundle (incl. Tracing, Replay, Feedback)75.14 KB
CDN Bundle - uncompressed69 KB
CDN Bundle (incl. Tracing) - uncompressed104.93 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed216.71 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed229.43 KB
@sentry/nextjs (client)36.61 KB
@sentry/sveltekit (client)34.34 KB
@sentry/node130.83 KB
@sentry/node - without tracing91.91 KB
@sentry/aws-serverless117.08 KB
Jul 10, 2024
  • feat: Upgrade OTEL deps (#12809)
  • fix(nuxt): Add module to build:transpile script (#12843)
  • fix(browser): Allow SDK initialization in NW.js apps (#12846)

Bundle size 📦

PathSize
@sentry/browser22.31 KB
@sentry/browser (incl. Tracing)33.45 KB
@sentry/browser (incl. Tracing, Replay)69.2 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.53 KB
@sentry/browser (incl. Tracing, Replay with Canvas)73.27 KB
@sentry/browser (incl. Tracing, Replay, Feedback)85.9 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)87.76 KB
@sentry/browser (incl. metrics)26.59 KB
@sentry/browser (incl. Feedback)38.98 KB
@sentry/browser (incl. sendFeedback)26.92 KB
@sentry/browser (incl. FeedbackAsync)31.54 KB
@sentry/react25.05 KB
@sentry/react (incl. Tracing)36.49 KB
@sentry/vue26.41 KB
@sentry/vue (incl. Tracing)35.31 KB
@sentry/svelte22.44 KB
CDN Bundle23.52 KB
CDN Bundle (incl. Tracing)35.21 KB
CDN Bundle (incl. Tracing, Replay)69.31 KB
CDN Bundle (incl. Tracing, Replay, Feedback)74.51 KB
CDN Bundle - uncompressed69.02 KB
CDN Bundle (incl. Tracing) - uncompressed104.04 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed214.43 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed227.15 KB
@sentry/nextjs (client)36.37 KB
@sentry/sveltekit (client)34.1 KB
@sentry/node130.79 KB
@sentry/node - without tracing91.88 KB
@sentry/aws-serverless117.05 KB
Jul 9, 2024

Important Changes

  • feat(nextjs): Use spans generated by Next.js for App Router (#12729)

Previously, the @sentry/nextjs SDK automatically recorded spans in the form of transactions for each of your top-level server components (pages, layouts, ...). This approach had a few drawbacks, the main ones being that traces didn't have a root span, and more importantly, if you had data stream to the client, its duration was not captured because the server component spans had finished before the data could finish streaming.

With this release, we will capture the duration of App Router requests in their entirety as a single transaction with server component spans being descendants of that transaction. This means you will get more data that is also more accurate. Note that this does not apply to the Edge runtime. For the Edge runtime, the SDK will emit transactions as it has before.

Generally speaking, this change means that you will see less transactions and more spans in Sentry. You will no longer receive server component transactions like Page Server Component (/path/to/route) (unless using the Edge runtime), and you will instead receive transactions for your App Router SSR requests that look like GET /path/to/route.

If you are on Sentry SaaS, this may have an effect on your quota consumption: Less transactions, more spans.

  • - feat(nestjs): Add nest cron monitoring support (#12781)

The @sentry/nestjs SDK now includes a @SentryCron decorator that can be used to augment the native NestJS @Cron decorator to send check-ins to Sentry before and after each cron job run:

import { Cron } from '@nestjs/schedule';
import { SentryCron, MonitorConfig } from '@sentry/nestjs';
import type { MonitorConfig } from '@sentry/types';

const monitorConfig: MonitorConfig = {
  schedule: {
    type: 'crontab',
    value: '* * * * *',
  },
  checkinMargin: 2, // In minutes. Optional.
  maxRuntime: 10, // In minutes. Optional.
  timezone: 'America/Los_Angeles', // Optional.
};

export class MyCronService {
  @Cron('* * * * *')
  @SentryCron('my-monitor-slug', monitorConfig)
  handleCron() {
    // Your cron job logic here
  }
}

Other Changes

  • feat(node): Allow to pass instrumentation config to httpIntegration (#12761)
  • feat(nuxt): Add server error hook (#12796)
  • feat(nuxt): Inject sentry config with Nuxt addPluginTemplate (#12760)
  • fix: Apply stack frame metadata before event processors (#12799)
  • fix(feedback): Add missing h import in ScreenshotEditor (#12784)
  • fix(node): Ensure autoSessionTracking is enabled by default (#12790)
  • ref(feedback): Let CropCorner inherit the existing h prop (#12814)
  • ref(otel): Ensure we never swallow args for ContextManager (#12798)

Bundle size 📦

PathSize
@sentry/browser22.29 KB
@sentry/browser (incl. Tracing)33.44 KB
@sentry/browser (incl. Tracing, Replay)69.19 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.52 KB
@sentry/browser (incl. Tracing, Replay with Canvas)73.25 KB
@sentry/browser (incl. Tracing, Replay, Feedback)85.88 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)87.74 KB
@sentry/browser (incl. metrics)26.58 KB
@sentry/browser (incl. Feedback)38.97 KB
@sentry/browser (incl. sendFeedback)26.92 KB
@sentry/browser (incl. FeedbackAsync)31.53 KB
@sentry/react25.04 KB
@sentry/react (incl. Tracing)36.48 KB
@sentry/vue26.4 KB
@sentry/vue (incl. Tracing)35.3 KB
@sentry/svelte22.43 KB
CDN Bundle23.51 KB
CDN Bundle (incl. Tracing)35.2 KB
CDN Bundle (incl. Tracing, Replay)69.31 KB
CDN Bundle (incl. Tracing, Replay, Feedback)74.5 KB
CDN Bundle - uncompressed69 KB
CDN Bundle (incl. Tracing) - uncompressed104.02 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed214.41 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed227.12 KB
@sentry/nextjs (client)36.36 KB
@sentry/sveltekit (client)34.09 KB
@sentry/node130.86 KB
@sentry/node - without tracing91.88 KB
@sentry/aws-serverless117.05 KB
Jul 4, 2024

Important Changes

  • feat(nestjs): Filter 4xx errors (#12695)

The @sentry/nestjs SDK no longer captures 4xx errors automatically.

Other Changes

  • chore(react): Remove private namespace JSX (#12691)
  • feat(deps): bump @opentelemetry/propagator-aws-xray from 1.25.0 to 1.25.1 (#12719)
  • feat(deps): bump @prisma/instrumentation from 5.16.0 to 5.16.1 (#12718)
  • feat(node): Add registerEsmLoaderHooks option (#12684)
  • feat(opentelemetry): Expose sampling helper (#12674)
  • fix(browser): Make sure measure spans have valid start timestamps (#12648)
  • fix(hapi): Widen type definitions (#12710)
  • fix(nextjs): Attempt to ignore critical dependency warnings (#12694)
  • fix(react): Fix React jsx runtime import for esm (#12740)
  • fix(replay): Start replay in afterAllSetup instead of next tick (#12709)

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

Bundle size 📦

PathSize
@sentry/browser22.22 KB
@sentry/browser (incl. Tracing)33.38 KB
@sentry/browser (incl. Tracing, Replay)69.12 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.45 KB
@sentry/browser (incl. Tracing, Replay with Canvas)73.18 KB
@sentry/browser (incl. Tracing, Replay, Feedback)85.8 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)87.66 KB
@sentry/browser (incl. metrics)26.5 KB
@sentry/browser (incl. Feedback)38.86 KB
@sentry/browser (incl. sendFeedback)26.85 KB
@sentry/browser (incl. FeedbackAsync)31.45 KB
@sentry/react24.97 KB
@sentry/react (incl. Tracing)36.43 KB
@sentry/vue26.33 KB
@sentry/vue (incl. Tracing)35.24 KB
@sentry/svelte22.36 KB
CDN Bundle23.42 KB
CDN Bundle (incl. Tracing)35.12 KB
CDN Bundle (incl. Tracing, Replay)69.22 KB
CDN Bundle (incl. Tracing, Replay, Feedback)74.41 KB
CDN Bundle - uncompressed68.8 KB
CDN Bundle (incl. Tracing) - uncompressed103.82 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed214.21 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed226.92 KB
@sentry/nextjs (client)36.3 KB
@sentry/sveltekit (client)34.02 KB
@sentry/node130.68 KB
@sentry/node - without tracing91.71 KB
@sentry/aws-serverless116.88 KB
Jun 27, 2024

Important Changes

  • feat(nestjs): Add Nest SDK This release adds a dedicated SDK for NestJS (@sentry/nestjs) in alpha state. The SDK is a drop-in replacement for the Sentry Node SDK (@sentry/node) supporting the same set of features. See the docs for how to use the SDK.

Other Changes

  • deps: Bump bundler plugins to 2.20.1 (#12641)
  • deps(nextjs): Remove react peer dep and allow rc (#12670)
  • feat: Update OTEL deps (#12635)
  • feat(deps): bump @prisma/instrumentation from 5.15.0 to 5.15.1 (#12627)
  • feat(node): Add context info for missing instrumentation (#12639)
  • fix(feedback): Improve feedback error message (#12647)

Bundle size 📦

PathSize
@sentry/browser22.22 KB
@sentry/browser (incl. Tracing)33.31 KB
@sentry/browser (incl. Tracing, Replay)69.09 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.42 KB
@sentry/browser (incl. Tracing, Replay with Canvas)73.15 KB
@sentry/browser (incl. Tracing, Replay, Feedback)85.75 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)87.61 KB
@sentry/browser (incl. metrics)26.5 KB
@sentry/browser (incl. Feedback)38.86 KB
@sentry/browser (incl. sendFeedback)26.84 KB
@sentry/browser (incl. FeedbackAsync)31.45 KB
@sentry/react24.97 KB
@sentry/react (incl. Tracing)36.36 KB
@sentry/vue26.33 KB
@sentry/vue (incl. Tracing)35.17 KB
@sentry/svelte22.36 KB
CDN Bundle23.42 KB
CDN Bundle (incl. Tracing)35.05 KB
CDN Bundle (incl. Tracing, Replay)69.18 KB
CDN Bundle (incl. Tracing, Replay, Feedback)74.38 KB
CDN Bundle - uncompressed68.8 KB
CDN Bundle (incl. Tracing) - uncompressed103.66 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed214.13 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed226.84 KB
@sentry/nextjs (client)36.24 KB
@sentry/sveltekit (client)33.95 KB
@sentry/node130.61 KB
@sentry/node - without tracing91.63 KB
@sentry/aws-serverless116.8 KB
Jun 25, 2024

Important Changes

  • feat(solid): Remove need to pass router hooks to solid integration (breaking)

This release introduces breaking changes to the @sentry/solid package (which is currently out in alpha).

We've made it easier to get started with the solid router integration by removing the need to pass use* hooks explicitly to solidRouterBrowserTracingIntegration. Import solidRouterBrowserTracingIntegration from @sentry/solid/solidrouter and add it to Sentry.init

import * as Sentry from '@sentry/solid';
import { solidRouterBrowserTracingIntegration, withSentryRouterRouting } from '@sentry/solid/solidrouter';
import { Router } from '@solidjs/router';

Sentry.init({
  dsn: '__PUBLIC_DSN__',
  integrations: [solidRouterBrowserTracingIntegration()],
  tracesSampleRate: 1.0, //  Capture 100% of the transactions
});

const SentryRouter = withSentryRouterRouting(Router);
  • feat(core): Return client from init method (#12585)

Sentry.init() now returns a client directly, so you don't need to explicitly call getClient() anymore:

const client = Sentry.init();
  • feat(nextjs): Add deleteSourcemapsAfterUpload option (#12457)

This adds an easy way to delete sourcemaps immediately after uploading them:

module.exports = withSentryConfig(nextConfig, {
  sourcemaps: {
    deleteSourcemapsAfterUpload: true,
  },
});
  • feat(node): Allow to configure maxSpanWaitDuration (#12610)

Adds configuration option for the max. duration in seconds that the SDK will wait for parent spans to be finished before discarding a span. The SDK will automatically clean up spans that have no finished parent after this duration. This is necessary to prevent memory leaks in case of parent spans that are never finished or otherwise dropped/missing. However, if you have very long-running spans in your application, a shorter duration might cause spans to be discarded too early. In this case, you can increase this duration to a value that fits your expected data.

Other Changes

  • feat(feedback): Extra check for iPad in screenshot support (#12593)
  • fix(bundle): Ensure CDN bundles do not overwrite window.Sentry (#12580)
  • fix(feedback): Inject preact from feedbackModal into feedbackScreenshot integration (#12535)
  • fix(node): Re-throw errors from koa middleware (#12609)
  • fix(remix): Mark isRemixV2 as optional in exposed types. (#12614)
  • ref(node): Add error message to NodeFetch log (#12612)

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

Bundle size 📦

PathSize
@sentry/browser22.22 KB
@sentry/browser (incl. Tracing)33.31 KB
@sentry/browser (incl. Tracing, Replay)69.09 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.42 KB
@sentry/browser (incl. Tracing, Replay with Canvas)73.15 KB
@sentry/browser (incl. Tracing, Replay, Feedback)85.76 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)87.62 KB
@sentry/browser (incl. metrics)26.5 KB
@sentry/browser (incl. Feedback)38.87 KB
@sentry/browser (incl. sendFeedback)26.85 KB
@sentry/browser (incl. FeedbackAsync)31.45 KB
@sentry/react24.97 KB
@sentry/react (incl. Tracing)36.36 KB
@sentry/vue26.33 KB
@sentry/vue (incl. Tracing)35.17 KB
@sentry/svelte22.36 KB
CDN Bundle23.42 KB
CDN Bundle (incl. Tracing)35.05 KB
CDN Bundle (incl. Tracing, Replay)69.18 KB
CDN Bundle (incl. Tracing, Replay, Feedback)74.38 KB
CDN Bundle - uncompressed68.8 KB
CDN Bundle (incl. Tracing) - uncompressed103.66 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed214.13 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed226.79 KB
@sentry/nextjs (client)36.24 KB
@sentry/sveltekit (client)33.95 KB
@sentry/node113.27 KB
@sentry/node - without tracing90.65 KB
@sentry/aws-serverless99.74 KB
Jun 24, 2024

This pre-release includes an rrweb version bump that includes quite a few upstream changes. We will test this on Sentry before a release.

Bundle size 📦

PathSize
@sentry/browser22.23 KB
@sentry/browser (incl. Tracing)33.32 KB
@sentry/browser (incl. Tracing, Replay)69.4 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.7 KB
@sentry/browser (incl. Tracing, Replay with Canvas)73.8 KB
@sentry/browser (incl. Tracing, Replay, Feedback)85.67 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)87.55 KB
@sentry/browser (incl. metrics)26.51 KB
@sentry/browser (incl. Feedback)38.46 KB
@sentry/browser (incl. sendFeedback)26.86 KB
@sentry/browser (incl. FeedbackAsync)31.46 KB
@sentry/react24.97 KB
@sentry/react (incl. Tracing)36.37 KB
@sentry/vue26.33 KB
@sentry/vue (incl. Tracing)35.17 KB
@sentry/svelte22.36 KB
CDN Bundle23.43 KB
CDN Bundle (incl. Tracing)35.06 KB
CDN Bundle (incl. Tracing, Replay)69.48 KB
CDN Bundle (incl. Tracing, Replay, Feedback)74.74 KB
CDN Bundle - uncompressed68.81 KB
CDN Bundle (incl. Tracing) - uncompressed103.66 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed215.52 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed228.18 KB
@sentry/nextjs (client)36.24 KB
@sentry/sveltekit (client)33.96 KB
@sentry/node113.27 KB
@sentry/node - without tracing90.67 KB
@sentry/aws-serverless99.76 KB
Jun 21, 2024

Important Changes

  • feat(core): Add parentSpan option to startSpan* APIs (#12567)

We've made it easier to create a span as a child of a specific span via the startSpan* APIs. This should allow you to explicitly manage the parent-child relationship of your spans better.

Sentry.startSpan({ name: 'root' }, parent => {
  const span = Sentry.startInactiveSpan({ name: 'xxx', parentSpan: parent });

  Sentry.startSpan({ name: 'xxx', parentSpan: parent }, () => {});

  Sentry.startSpanManual({ name: 'xxx', parentSpan: parent }, () => {});
});

Other Changes

  • feat(node): Detect release from more providers (#12529)
  • fix(profiling-node): Use correct getGlobalScope import (#12564)
  • fix(profiling-node) sample timestamps need to be in seconds (#12563)
  • ref: Align @sentry/node exports from framework SDKs. (#12589)

Bundle size 📦

PathSize
@sentry/browser22.22 KB
@sentry/browser (incl. Tracing)33.31 KB
@sentry/browser (incl. Tracing, Replay)69.09 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.41 KB
@sentry/browser (incl. Tracing, Replay with Canvas)73.14 KB
@sentry/browser (incl. Tracing, Replay, Feedback)85.31 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)87.17 KB
@sentry/browser (incl. metrics)26.5 KB
@sentry/browser (incl. Feedback)38.42 KB
@sentry/browser (incl. sendFeedback)26.85 KB
@sentry/browser (incl. FeedbackAsync)31.42 KB
@sentry/react24.96 KB
@sentry/react (incl. Tracing)36.35 KB
@sentry/vue26.32 KB
@sentry/vue (incl. Tracing)35.16 KB
@sentry/svelte22.35 KB
CDN Bundle23.41 KB
CDN Bundle (incl. Tracing)35.04 KB
CDN Bundle (incl. Tracing, Replay)69.17 KB
CDN Bundle (incl. Tracing, Replay, Feedback)74.34 KB
CDN Bundle - uncompressed68.76 KB
CDN Bundle (incl. Tracing) - uncompressed103.61 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed214.08 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed226.67 KB
@sentry/nextjs (client)36.23 KB
@sentry/sveltekit (client)33.95 KB
@sentry/node112.99 KB
@sentry/node - without tracing90.4 KB
@sentry/aws-serverless99.48 KB
  • fix(v7/bundle): Ensure CDN bundles do not overwrite window.Sentry (#12579)

Bundle size 📦

PathSize
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped)80.83 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped)71.77 KB
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped)76.02 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped)65.38 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped)35.64 KB
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped)35.53 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped)31.6 KB
@sentry/browser (incl. sendFeedback) - Webpack (gzipped)31.61 KB
@sentry/browser - Webpack (gzipped)22.78 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped)79.05 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped)70.38 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped)36.06 KB
@sentry/browser - ES6 CDN Bundle (gzipped)25.29 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed)221.51 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed)109.1 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed)75.83 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped)39.34 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped)72.27 KB
@sentry/react - Webpack (gzipped)22.81 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped)90.03 KB
@sentry/nextjs Client - Webpack (gzipped)54.15 KB
@sentry-internal/feedback - Webpack (gzipped)17.34 KB
Jun 19, 2024

Important Changes

  • feat(remix): Migrate to opentelemetry-instrumentation-remix. (#12110)

You can now simplify your remix instrumentation by opting-in like this:

const Sentry = require('@sentry/remix');

Sentry.init({
  dsn: YOUR_DSN
  // opt-in to new auto instrumentation
  autoInstrumentRemix: true,
});

With this setup, you do not need to add e.g. wrapExpressCreateRequestHandler anymore. Additionally, the quality of the captured data improves. The old way to use @sentry/remix continues to work, but it is encouraged to use the new setup.

Other Changes

  • feat(browser): Export thirdPartyErrorFilterIntegration from @sentry/browser (#12512)
  • feat(feedback): Allow passing tags field to any feedback config param (#12197)
  • feat(feedback): Improve screenshot quality for retina displays (#12487)
  • feat(feedback): Screenshots don't resize after cropping (#12481)
  • feat(node) add max lineno and colno limits (#12514)
  • feat(profiling) add global profile context while profiler is running (#12394)
  • feat(react): Add React version to events (#12390)
  • feat(replay): Add url to replay hydration error breadcrumb type (#12521)
  • fix(core): Ensure standalone spans respect sampled flag (#12533)
  • fix(core): Use maxValueLength in extra error data integration (#12174)
  • fix(feedback): Fix scrolling after feedback submission (#12499)
  • fix(feedback): Send feedback rejects invalid responses (#12518)
  • fix(nextjs): Update @rollup/plugin-commonjs (#12527)
  • fix(node): Ensure status is correct for http server span errors (#12477)
  • fix(node): UnifygetDynamicSamplingContextFromSpan (#12522)
  • fix(profiling): continuous profile chunks should be in seconds (#12532)
  • fix(remix): Add nativeFetch support for accessing request headers (#12479)
  • fix(remix): Export no-op as captureRemixServerException from client SDK (#12497)
  • ref(node) refactor contextlines to use readline (#12221)

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

Bundle size 📦

PathSize
@sentry/browser22.22 KB
@sentry/browser (incl. Tracing)33.27 KB
@sentry/browser (incl. Tracing, Replay)69.05 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.37 KB
@sentry/browser (incl. Tracing, Replay with Canvas)73.11 KB
@sentry/browser (incl. Tracing, Replay, Feedback)85.27 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)87.09 KB
@sentry/browser (incl. metrics)26.42 KB
@sentry/browser (incl. Feedback)38.42 KB
@sentry/browser (incl. sendFeedback)26.85 KB
@sentry/browser (incl. FeedbackAsync)31.42 KB
@sentry/react24.96 KB
@sentry/react (incl. Tracing)36.32 KB
@sentry/vue26.23 KB
@sentry/vue (incl. Tracing)35.13 KB
@sentry/svelte22.35 KB
CDN Bundle23.41 KB
CDN Bundle (incl. Tracing)34.95 KB
CDN Bundle (incl. Tracing, Replay)69.08 KB
CDN Bundle (incl. Tracing, Replay, Feedback)74.25 KB
CDN Bundle - uncompressed68.76 KB
CDN Bundle (incl. Tracing) - uncompressed103.41 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed213.88 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed226.47 KB
@sentry/nextjs (client)36.2 KB
@sentry/sveltekit (client)33.9 KB
@sentry/node112.62 KB
@sentry/node - without tracing90.04 KB
@sentry/aws-serverless99.12 KB
Latest
10.50.0-alpha.0
Tracking Since
Jun 19, 2024
Last checked Apr 21, 2026