Socket
Socket
Sign inDemoInstall

@sentry/core

Package Overview
Dependencies
3
Maintainers
12
Versions
467
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
35
47Next

7.101.0

Diff

Changelog

Source

7.101.0

  • feat: Export semantic attribute keys from SDK packages (#10637)
  • feat(core): Add metric summaries to spans (#10554)
  • feat(core): Deprecate the Hub constructor (#10584)
  • feat(core): Make custom tracing methods return spans & set default op (#10633)
  • feat(replay): Add getReplay utility function (#10510)
  • fix(angular-ivy): Add exports field to package.json (#10569)
  • fix(sveltekit): Avoid capturing Http 4xx errors on the client (#10571)
  • fix(sveltekit): Properly await sourcemaps flattening (#10602)
sentry-bot
published 7.100.1 •

Changelog

Source

7.100.1

This release contains build fixes for profiling-node.

  • build(profiling-node): make sure debug build plugin is used #10534
  • build: Only run profiling e2e test if bindings have changed #10542
  • fix(feedback): Replay breadcrumb for feedback events was incorrect #10536
sentry-bot
published 7.100.0 •

Changelog

Source

7.100.0

Important Changes

Deprecations

This release includes some deprecations. For more details please look at our migration guide.

The deprecation most likely to affect you is the one of BrowserTracing. Instead of new BrowserTracing(), you should now use browserTracingIntegration(), which will also handle framework-specific instrumentation out of the box for you - no need to pass a custom routingInstrumentation anymore. For @sentry/react, we expose dedicated integrations for the different react-router versions:

  • reactRouterV6BrowserTracingIntegration()
  • reactRouterV5BrowserTracingIntegration()
  • reactRouterV4BrowserTracingIntegration()
  • reactRouterV3BrowserTracingIntegration()

See the migration guide for details.

  • feat(angular): Export custom browserTracingIntegration() (#10353)
  • feat(browser): Deprecate BrowserTracing integration (#10493)
  • feat(browser): Export browserProfilingIntegration (#10438)
  • feat(bun): Export bunServerIntegration() (#10439)
  • feat(nextjs): Add browserTracingIntegration (#10397)
  • feat(react): Add reactRouterV3BrowserTracingIntegration for react router v3 (#10489)
  • feat(react): Add reactRouterV4/V5BrowserTracingIntegration for react router v4 & v5 (#10488)
  • feat(react): Add reactRouterV6BrowserTracingIntegration for react router v6 & v6.4 (#10491)
  • feat(remix): Add custom browserTracingIntegration (#10442)
  • feat(node): Expose functional integrations to replace classes (#10356)
  • feat(vercel-edge): Replace WinterCGFetch with winterCGFetchIntegration (#10436)
  • feat: Deprecate non-callback based continueTrace (#10301)
  • feat(vue): Deprecate new VueIntegration() (#10440)
  • feat(vue): Implement vue browserTracingIntegration() (#10477)
  • feat(sveltekit): Add custom browserTracingIntegration() (#10450)
Profiling Node

@sentry/profiling-node has been ported into the monorepo. Future development for it will happen here!

  • pkg(profiling-node): port profiling-node repo to monorepo (#10151)

Other Changes

  • feat: Export setHttpStatus from all packages (#10475)
  • feat(bundles): Add pluggable integrations on CDN to Sentry namespace (#10452)
  • feat(core): Pass name & attributes to tracesSampler (#10426)
  • feat(feedback): Add system-ui to start of font family (#10464)
  • feat(node-experimental): Add koa integration (#10451)
  • feat(node-experimental): Update opentelemetry packages (#10456)
  • feat(node-experimental): Update tracing integrations to functional style (#10443)
  • feat(replay): Bump rrweb to 2.10.0 (#10445)
  • feat(replay): Enforce masking of credit card fields (#10472)
  • feat(utils): Add propagationContextFromHeaders (#10313)
  • fix: Make startSpan, startSpanManual and startInactiveSpan pick up the scopes at time of creation instead of termination (#10492)
  • fix(feedback): Fix logo color when colorScheme is "system" (#10465)
  • fix(nextjs): Do not report redirects and notFound calls as errors in server actions (#10474)
  • fix(nextjs): Fix navigation tracing on app router (#10502)
  • fix(nextjs): Apply server action data to correct isolation scope (#10514)
  • fix(node): Use normal require call to import Undici (#10388)
  • ref(nextjs): Remove internally used deprecated APIs (#10453)
  • ref(vue): use startInactiveSpan in tracing mixin (#10406)
sentry-bot
published 7.99.0 •

Changelog

Source

7.99.0

Important Changes

Deprecations

This release includes some deprecations for span related methods and integrations in our Deno SDK, @sentry/deno. For more details please look at our migration guide.

  • feat(core): Deprecate Span.setHttpStatus in favor of setHttpStatus (#10268)
  • feat(core): Deprecate spanStatusfromHttpCode in favour of getSpanStatusFromHttpCode (#10361)
  • feat(core): Deprecate StartSpanOptions.origin in favour of passing attribute (#10274)
  • feat(deno): Expose functional integrations to replace classes (#10355)

Other Changes

  • feat(bun): Add missing @sentry/node re-exports (#10396)
  • feat(core): Add afterAllSetup hook for integrations (#10345)
  • feat(core): Ensure startSpan() can handle spans that require parent (#10386)
  • feat(core): Read propagation context off scopes in startSpan APIs (#10300)
  • feat(remix): Export missing @sentry/node functions (#10385, #10391)
  • feat(serverless): Add missing @sentry/node re-exports (#10390)
  • feat(sveltekit): Add more missing @sentry/node re-exports (#10392)
  • feat(tracing): Export proper type for browser tracing (#10411)
  • feat(tracing): Expose new browserTracingIntegration (#10351)
  • fix: Ensure afterAllSetup is called when using addIntegration() (#10372)
  • fix(core): Export spanToTraceContext function from span utils (#10364)
  • fix(core): Make FunctionToString integration use SETUP_CLIENTS weakmap (#10358)
  • fix(deno): Call function if client is not setup (#10354)
  • fix(react): Fix attachReduxState option (#10381)
  • fix(spotlight): Use unpatched http.request (#10369)
  • fix(tracing): Only create request span if there is active span (#10375)
  • ref: Read propagation context off of scope and isolation scope when propagating and applying trace context (#10297)

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

sentry-bot
published 7.98.0 •

Changelog

Source

7.98.0

This release primarily fixes some type declaration errors:

  • feat(core): Export IntegrationIndex type (#10337)
  • fix(nextjs): Fix Http integration type declaration (#10338)
  • fix(node): Fix type definitions (#10339)
sentry-bot
published 7.97.0 •

Changelog

Source

7.97.0

Note: The 7.96.0 release was incomplete. This release is partially encompassing changes from 7.96.0.

  • feat(react): Add stripBasename option for React Router 6 (#10314)
sentry-bot
published 7.96.0 •

Changelog

Source

7.96.0

Note: This release was incomplete. Not all Sentry SDK packages were released for this version. Please upgrade to 7.98.0 directly.

Important Changes

Deprecations

This release includes some deprecations for integrations in @sentry/browser and frontend framework SDKs (@sentry/react, @sentry/vue, etc.). Please take a look at our migration guide for more details.

  • feat(browser): Export functional integrations & deprecate classes (#10267)
Web Vitals Fix for LCP and CLS

This release fixes an issue with the Web Vitals integration where LCP and CLS were not being captured correctly, increasing capture rate by 10-30% for some apps. LCP and CLS capturing issues were introduced with version 7.75.0.

  • fix(tracing): Ensure web vitals are correctly stopped/captured (#10323)

Other Changes

  • fix(node): Fix node-cron types and add test (#10315)
  • fix(node): Fix downleveled types entry point (#10321)
  • fix(node): LocalVariables integration should use setupOnce (#10307)
  • fix(replay): Fix type for options of replayIntegration (#10325)

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

sentry-bot
published 7.95.0 •

Changelog

Source

7.95.0

Important Changes

Deprecations

This release includes some deprecations in preparation for v8.

Most notably, it deprecates the Replay & Feedback classes in favor of a functional replacement:

import * as Sentry from '@sentry/browser';

Sentry.init({
  integrations: [
    // Instead of
    new Sentry.Replay(),
    new Sentry.Feedback(),
    // Use the functional replacement:
    Sentry.replayIntegration(),
    Sentry.feedbackIntegration(),
  ],
});
  • feat(core): Deprecate Span.origin in favor of sentry.origin attribute (#10260)
  • feat(core): Deprecate Span.parentSpanId (#10244)
  • feat(core): Expose isInitialized() to replace checking via getClient (#10296)
  • feat(replay): Deprecate Replay, ReplayCanvas, Feedback classes (#10270)
  • feat(wasm): Deprecate Wasm integration class (#10230)

Other Changes

  • feat: Make parameterize function available through browser and node API (#10085)
  • feat(feedback): Configure feedback border radius (#10289)
  • feat(sveltekit): Update default integration handling & deprecate addOrUpdateIntegration (#10263)
  • fix(replay-canvas): Add missing dependency on @sentry/utils (#10279)
  • fix(tracing): Don't send negative ttfb (#10286)

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

sentry-bot
published 7.94.1 •

Changelog

Source

7.94.1

This release fixes a publishing issue.

sentry-bot
published 7.94.0 •

Changelog

Source

7.94.0

Important Changes

Deprecations

As we're moving closer to the next major version of the SDK, more public APIs were deprecated.

To get a head start on migrating to the replacement APIs, please take a look at our migration guide.

  • feat: Deprecate user segment field (#10210)
  • feat(core): Deprecate finish on Span interface in favour of end (#10161)
  • feat(core): Deprecate getCurrentHub() (#10200)
  • feat(core): Deprecate hub.bindClient() & makeMain() (#10188)
  • feat(core): Deprecate Span.instrumenter (#10139)
  • feat(core): Deprecate Span.isSuccess() in favor of reading span status (#10213)
  • feat(core): Deprecate Span.op in favor of op attribute (#10189)
  • feat(core): Deprecate Span.spanRecorder (#10199)
  • feat(core): Deprecate Span.status (#10208)
  • feat(core): Deprecate Span.transaction in favor of getRootSpan (#10134)
  • feat(core): Deprecate Transaction.instrumenter (#10162)
  • feat(core): Deprecate Transaction.setMeasurement in favor of setMeasurement (#10182)
  • feat(core): Deprecate integration classes & Integrations.X (#10198)
  • feat(core): Deprecate methods on Hub (#10124)
  • feat(core): Deprecate remaining setName declarations on Transaction and Span (#10164)
  • feat(core): Deprecate span startTimestamp & endTimestamp (#10192)
  • feat(core): Deprecate hub.bindClient() and makeMain() (#10118)
  • feat(types): Deprecate op on Span interface (#10217)
  • feat(integrations): Deprecate Transaction integration (#10178)
  • feat(integrations): Deprecate pluggable integration classes (#10211)
Replay & Canvas

We have added a new ReplayCanvas integration (#10112), which you can add to capture the contents of canvas elements with Replay.

Just add it in addition to the regular replay integration:

Sentry.init({
  integrations: [new Sentry.Replay(), new Sentry.ReplayCanvas()],
});

Other Changes

  • feat(core): Add client.getIntegrationByName() (#10130)
  • feat(core): Add client.init() to replace client.setupIntegrations() (#10118)
  • feat(core): Add withActiveSpan (#10195)
  • feat(core): Add withIsolationScope (#10141)
  • feat(core): Streamline integration function results to be compatible (#10135)
  • feat(core): Write data from setUser, setTags, setExtras, setTag, setExtra, and setContext to isolation scope (#10163)
  • feat(core): Add domain information to resource span data #10205
  • feat(feedback): Export sendFeedback from @sentry/browser (#10231)
  • feat(node): Update and vendor https-proxy-agent (#10088)
  • feat(node-experimental): Add withActiveSpan (#10194)
  • feat(replays): Add snapshot function to replay canvas integration (#10066)
  • feat(types): Add SerializedEvent interface (pre v8) (#10240)
  • feat(types): Add support for new monitor config thresholds (#10225)
  • fix: Ensure all integration classes have correct types (#10183)
  • fix(astro): Fix import path when using external init files with default path (#10214)
  • fix(cdn): Emit console warning instead of error for integration shims (#10193)
  • fix(core): Take user from current scope when starting a session (#10153)
  • fix(node-experimental): Ensure http.status_code is always a string (#10177)
  • fix(node): Guard against process.argv[1] being undefined (#10155)
  • fix(node): Module name resolution (#10144)
  • fix(node): Remove leading slash in Windows filenames (#10147)
  • fix(remix): Capture thrown fetch responses. (#10166)
  • fix(tracing): Gate mongo operation span data behind sendDefaultPii (#10227)
  • fix(tracing-internal): Delay pageload transaction finish until document is interactive (#10215)
  • fix(tracing-internal): Only collect request/response spans when browser performance timing is available (#10207)
  • fix(tracing-internal): Prefer fetch init headers over fetch input headers (#10176)
  • fix(utils): Ensure dropUndefinedKeys() does not break class instances (#10245)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc