Update dependency @sentry/node to v9
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| @sentry/node (source) | dependencies | major | 8.55.0 -> 9.8.0 |
Release Notes
getsentry/sentry-javascript (@sentry/node)
v9.8.0
- feat(node): Implement new continuous profiling API spec (#15635)
- feat(profiling): Add platform to chunk envelope (#15758)
- feat(react): Export captureReactException method (#15746)
- fix(node): Check for
res.endbefore passing to Proxy (#15776) - perf(core): Add short-circuits to
eventFiltersintegration (#15752) - perf(node): Short circuit flushing on Vercel only for Vercel (#15734)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.29 KB |
| @sentry/browser - with treeshaking flags | 23.11 KB |
| @sentry/browser (incl. Tracing) | 36.34 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.51 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.94 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.15 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.71 KB |
| @sentry/browser (incl. Feedback) | 40.43 KB |
| @sentry/browser (incl. sendFeedback) | 27.94 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.73 KB |
| @sentry/react | 25.1 KB |
| @sentry/react (incl. Tracing) | 38.26 KB |
| @sentry/vue | 27.53 KB |
| @sentry/vue (incl. Tracing) | 38.04 KB |
| @sentry/svelte | 23.33 KB |
| CDN Bundle | 24.52 KB |
| CDN Bundle (incl. Tracing) | 36.38 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.41 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.61 KB |
| CDN Bundle - uncompressed | 71.68 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 108.06 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 219.32 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.88 KB |
| @sentry/nextjs (client) | 39.56 KB |
| @sentry/sveltekit (client) | 36.76 KB |
| @sentry/node | 142.65 KB |
| @sentry/node - without tracing | 96.04 KB |
| @sentry/aws-serverless | 120.41 KB |
v9.7.0
- feat(core): Add
captureLogmethod (#15717) - feat(remix/cloudflare): Export
sentryHandleError(#15726) - fix(node): Always flush on Vercel before Lambda freeze (#15602)
- fix(node): Ensure incoming traces are propagated without HttpInstrumentation (#15732)
- fix(node): Use
fatallevel for unhandled rejections instrictmode (#15720) - fix(nuxt): Delete Nuxt server template injection (#15749)
v9.6.1
- feat(deps): bump @prisma/instrumentation from 6.4.1 to 6.5.0 (#15714)
- feat(deps): bump @sentry/cli from 2.42.2 to 2.42.3 (#15711)
- fix(nextjs): Re-patch router if it is overridden by Next.js (#15721)
- fix(nuxt): Add Nitro Rollup plugin to inject Sentry server config (#15710)
- chore(deps): Bump rollup to 4.35.0 (#15651)
v9.6.0
Important Changes
-
feat(tanstackstart): Add
@sentry/tanstackstart-reactpackage and make@sentry/tanstackstartpackage a utility package (#15629)Since TanStack Start is supposed to be a generic framework that supports libraries like React and Solid, the
@sentry/tanstackstartSDK package was renamed to@sentry/tanstackstart-reactto reflect that the SDK is specifically intended to be used for React TanStack Start applications. Note that the TanStack Start SDK is still in alpha status and may be subject to breaking changes in non-major package updates.
Other Changes
- feat(astro): Accept all vite-plugin options (#15638)
- feat(deps): bump @sentry/webpack-plugin from 3.2.1 to 3.2.2 (#15627)
- feat(tanstackstart): Refine initial API (#15574)
- fix(core): Ensure
fillonly patches functions (#15632) - fix(nextjs): Consider
pageExtensionswhen looking for instrumentation file (#15701) - fix(remix): Null-check
options(#15610) - fix(sveltekit): Correctly parse angle bracket type assertions for auto instrumentation (#15578)
- fix(sveltekit): Guard process variable (#15605)
Work in this release was contributed by @angelikatyborska and @nwalters512. Thank you for your contributions!
v9.5.0
Important Changes
We found some issues with the new feedback screenshot annotation where screenshots are not being generated properly. Due to this issue, we are reverting the feature.
Other Changes
- Add cloudflare adapter detection and path generation (#15603)
- deps(nextjs): Bump rollup to
4.34.9(#15589) - feat(bun): Automatically add performance integrations (#15586)
- feat(replay): Bump rrweb to 2.34.0 (#15580)
- fix(browser): Call original function on early return from patched history API (#15576)
- fix(nestjs): Copy metadata in custom decorators (#15598)
- fix(react-router): Fix config type import (#15583)
- fix(remix): Use correct types export for
@sentry/remix/cloudflare(#15599) - fix(vue): Attach Pinia state only once per event (#15588)
Work in this release was contributed by @msurdi-a8c, @namoscato, and @rileyg98. Thank you for your contributions!
v9.4.0
- feat(core): Add types for logs protocol and envelope (#15530)
- feat(deps): Bump
@sentry/clifrom 2.41.1 to 2.42.2 (#15510) - feat(deps): Bump
@sentry/webpack-pluginfrom 3.1.2 to 3.2.1 (#15512) - feat(feedback) Allowing annotation via highlighting & masking (#15484)
- feat(nextjs): Add
use clientdirective to client SDK entrypoints (#15575) - feat(nextjs): Allow silencing of instrumentation warning (#15555)
- feat(sveltekit): Ensure
AsyncLocalStorageasync context strategy is used in Cloudflare Pages (#15557) - fix(cloudflare): Make
@cloudflare/workers-typesan optional peer dependency (#15554) - fix(core): Don't reverse values in event filters (#15584)
- fix(core): Handle normalization of null prototypes correctly (#15556)
- fix(nextjs): Only warn on missing
onRequestErrorin version 15 (#15553) - fix(node): Allow for
undefinedtransport to be passed in (#15560) - fix(wasm): Fix wasm integration stacktrace parsing for filename (#15572)
- perf(node): Store normalized request for processing (#15570)
v9.3.0
Important Changes
With this release we're publishing two new SDKs in experimental alpha stage:
- feat(tanstackstart): Add TanStack Start SDK (#15523)
For details please refer to the README
- feat(react-router): Add React Router SDK (#15524)
For details please refer to the README
- feat(remix): Add support for Hydrogen (#15450)
This MR adds support for Shopify Hydrogen applications running on MiniOxygen runtime.
Other Changes
- feat(core): Add
forceTransactionto trpc middleware options (#15519) - feat(core): Default filter unactionable error (#15527)
- feat(core): Rename
inboundFiltersIntegrationtoeventFiltersIntegration(#15434) - feat(deps): bump @prisma/instrumentation from 6.2.1 to 6.4.1 (#15480)
- feat(react-router): Add build-time config (#15406)
- feat(replay): Bump rrweb to 2.33.0 (#15514)
- fix(core): Fix
allowUrlsanddenyUrlsfor linked and aggregate exceptions (#15521) - fix(nextjs): Don't capture devmode server-action redirect errors (#15485)
- fix(nextjs): warn about missing onRequestError handler #15488)
- fix(nextjs): Prevent wrong culprit from showing up for clientside error events #15475)
- fix(nuxt): Ignore 300-400 status codes on app errors in Nuxt (#15473)
- fix(react): Add support for cross-usage of React Router instrumentations (#15283)
- fix(sveltekit): Guard
processcheck when flushing events (#15516)
Work in this release was contributed by @GerryWilko and @leoambio. Thank you for your contributions!
v9.2.0
Important Changes
- feat(node): Support Express v5 (#15380)
This release adds full tracing support for Express v5, and improves tracing support for Nest.js 11 (which uses Express v5) in the Nest.js SDK.
- feat(sveltekit): Add Support for Cloudflare (#14672)
This release adds support for deploying SvelteKit applications to Cloudflare Pages. A docs update with updated instructions will follow shortly. Until then, you can give this a try by setting up the SvelteKit SDK as usual and then following the instructions outlined in the MR.
Thank you @SG60 for contributing this feature!
Other Changes
- feat(core): Add
addLink(s)to Sentry span (#15452) - feat(core): Add links to span options (#15453)
- feat(deps): Bump @sentry/webpack-plugin from 2.22.7 to 3.1.2 (#15328)
- feat(feedback): Disable Feedback submit & cancel buttons while submitting (#15408)
- feat(nextjs): Add experimental flag to not strip origin information from different origin stack frames (#15418)
- feat(nuxt): Add
enableNitroErrorHandlerto server options (#15444) - feat(opentelemetry): Add
addLink(s)to span (#15387) - feat(opentelemetry): Add
linksto span options (#15403) - feat(replay): Expose rrweb recordCrossOriginIframes under _experiments (#14916)
- fix(browser): Ensure that
performance.measurespans have a positive duration (#15415) - fix(bun): Includes correct sdk metadata (#15459)
- fix(core): Add Google
gmoerror to Inbound Filters (#15432) - fix(core): Ensure
http.clientspan descriptions don't contain query params or fragments (#15404) - fix(core): Filter out unactionable Facebook Mobile browser error (#15430)
- fix(nestjs): Pin dependency on
@opentelemetry/instrumentation(#15419) - fix(nuxt): Only use filename with file extension from command (#15445)
- fix(nuxt): Use
SentryNuxtServerOptionstype for server init (#15441) - fix(sveltekit): Avoid loading vite config to determine source maps setting (#15440)
- ref(profiling-node): Bump chunk interval to 60s (#15361)
Work in this release was contributed by @6farer, @dgavranic and @SG60. Thank you for your contributions!
v9.1.0
- feat(browser): Add
graphqlClientIntegration(#13783) - feat(core): Allow for nested trpc context (#15379)
- feat(core): Create types and utilities for span links (#15375)
- feat(deps): bump @opentelemetry/instrumentation-pg from 0.50.0 to 0.51.0 (#15273)
- feat(node): Extract Sentry-specific node-fetch instrumentation (#15231)
- feat(vue): Support Pinia v3 (#15383)
- fix(sveltekit): Avoid request body double read errors (#15368)
- fix(sveltekit): Avoid top-level
viteimport (#15371)
Work in this release was contributed by @Zen-cronic and @filips-alpe. Thank you for your contribution!
v9.0.1
- ref(flags): rename unleash integration param (#15343)
v9.0.0
Version 9.0.0 marks a release of the Sentry JavaScript SDKs that contains breaking changes.
The goal of this release is to trim down on unused and potentially confusing APIs, prepare the SDKs for future framework versions to build deeper instrumentation, and remove old polyfills to reduce the packages' size.
How To Upgrade
Please carefully read through the migration guide in the Sentry docs on how to upgrade from version 8 to version 9. Make sure to select your specific platform/framework in the top left corner: https://docs.sentry.io/platforms/javascript/migration/v8-to-v9/
A comprehensive migration guide outlining all changes for all the frameworks can be found within the Sentry JavaScript SDK Repository: https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md
Breaking Changes
- doc(deno)!: Make Deno v2 the minimum supported version (#15085)
- feat!: Bump typescript to
~5.0.0(#14758) - feat!: Drop
nitro-utilspackage (#14998) - feat!: Only collect ip addresses with
sendDefaultPii: true(#15084) - feat!: Remove
autoSessionTrackingoption (#14802) - feat!: Remove
enableTracing(#15078) - feat!: Remove
getCurrentHub(),Hub, andgetCurrentHubShim()(#15122) - feat!: Remove
spanIdfrom propagation context (#14733) - feat!: Remove deprecated and unused code (#15077)
- feat!: Remove metrics API from the JS SDK (#14745)
- feat!: Require Node
>=18as minimum supported version (#14749) - feat(astro)!: Respect user-specified source map setting (#14941)
- feat(browser)!: Remove
captureUserFeedbackmethod (#14820) - feat(build)!: Drop pre-ES2020 polyfills (#14882)
- feat(core)!: Add
normalizedRequesttosamplingContext(#14902) - feat(core)!: Always use session from isolation scope (#14860)
- feat(core)!: Pass root spans to
beforeSendSpanand disallow returningnull(#14831) - feat(core)!: Remove
BAGGAGE_HEADER_NAMEexport (#14785) - feat(core)!: Remove
TransactionNamingSchemetype (#14865) - feat(core)!: Remove
addOpenTelemetryInstrumentationmethod (#14792) - feat(core)!: Remove
arrayifymethod (#14782) - feat(core)!: Remove
debugIntegrationandsessionTimingIntegration(#14747) - feat(core)!: Remove
flattenmethod (#14784) - feat(core)!: Remove
getDomElementmethod (#14797) - feat(core)!: Remove
makeFifoCachemethod (#14786) - feat(core)!: Remove
memoBuilderexport &WeakSetfallback (#14859) - feat(core)!: Remove
transactionContextfromsamplingContext(#14904) - feat(core)!: Remove
urlEncodemethod (#14783) - feat(core)!: Remove deprecated
Requesttype (#14858) - feat(core)!: Remove deprecated request data methods (#14896)
- feat(core)!: Remove standalone
Clientinterface & deprecateBaseClient(#14800) - feat(core)!: Remove validSeverityLevels export (#14765)
- feat(core)!: Stop accepting
eventas argument forrecordDroppedEvent(#14999) - feat(core)!: Stop setting user in
requestDataIntegration(#14898) - feat(core)!: Type sdkProcessingMetadata more strictly (#14855)
- feat(core)!: Update
hasTracingEnabledto consider empty trace config (#14857) - feat(core)!: Update
requestDataIntegrationhandling (#14806) - feat(deno)!: Remove deno prepack (#14829)
- feat(ember)!: Officially drop support for ember
<=3.x(#15032) - feat(nestjs)!: Move
nestIntegrationinto nest sdk and removesetupNestErrorHandler(#14751) - feat(nestjs)!: Remove
@WithSentrydecorator (#14762) - feat(nestjs)!: Remove
SentryService(#14759) - feat(nextjs)!: Don't rely on Next.js Build ID for release names (#14939)
- feat(nextjs)!: Remove
experimental_captureRequestError(#14607) - feat(nextjs)!: Respect user-provided source map generation settings (#14956)
- feat(node)!: Add support for Prisma v6 and drop v5 support (#15120)
- feat(node)!: Avoid http spans by default for custom OTEL setups (#14678)
- feat(node)!: Collect request sessions via HTTP instrumentation (#14658)
- feat(node)!: Remove
processThreadBreadcrumbIntegration(#14666) - feat(node)!: Remove fine grained
registerEsmLoaderHooks(#15002) - feat(opentelemetry)!: Exclusively pass root spans through sampling pipeline (#14951)
- feat(pinia)!: Include state of all stores in breadcrumb (#15312)
- feat(react)!: Raise minimum supported TanStack Router version to
1.63.0(#15030) - feat(react)!: Remove deprecated
getNumberOfUrlSegmentsmethod (#14744) - feat(react)!: Remove deprecated react router methods (#14743)
- feat(react)!: Update
ErrorBoundarycomponentStacktype (#14742) - feat(remix)!: Drop support for Remix v1 (#14988)
- feat(remix)!: Remove
autoInstrumentRemixoption (#15074) - feat(solidstart)!: Default to
--importsetup and addautoInjectServerSentry(#14862) - feat(solidstart)!: No longer export
sentrySolidStartVite(#15143) - feat(solidstart)!: Respect user-provided source map setting (#14979)
- feat(svelte)!: Disable component update tracking by default (#15265)
- feat(sveltekit)!: Drop support for SvelteKit @1.x (#15037)
- feat(sveltekit)!: Remove
fetchProxyScriptNonceoption (#15123) - feat(sveltekit)!: Respect user-provided source map generation settings (#14886)
- feat(utils)!: Remove
@sentry/utilspackage (#14830) - feat(vue)!: Remove configuring Vue tracing options anywhere else other than through the
vueIntegration'stracingOptionsoption (#14856) - feat(vue/nuxt)!: No longer create
"update"spans for component tracking by default (#14602) - fix(node)!: Fix name of
vercelAIIntegrationtoVercelAI(#15298) - fix(vue)!: Remove
logErrorfromvueIntegration(#14958) - ref!: Don't polyfill optional chaining and nullish coalescing (#14603)
- ref(core)!: Cleanup internal types, including
ReportDialogOptions(#14861) - ref(core)!: Mark exceptions from
captureConsoleIntegrationashandled: trueby default (#14734) - ref(core)!: Move
shutdownTimeoutoption type from core to node (#15217) - ref(core)!: Remove
Scopetype interface in favor of usingScopeclass (#14721) - ref(core)!: Remove backwards compatible SentryCarrier type (#14697)
Other Changes
- chore(browser): Export ipAddress helpers for use in other SDKs (#15079)
- deps(node): Bump
import-in-the-middleto1.12.0(#14796) - feat(aws): Rename AWS lambda layer name to
SentryNodeServerlessSDKv9(#14927) - feat(aws-serverless): Upgrade OTEL deps (#15091)
- feat(browser): Set
user.ip_addressexplicitly to{{auto}}(#15008) - feat(core): Add
inheritOrSampleWithhelper totraceSampler(#15277) - feat(core): Emit client reports for unsampled root spans on span start (#14936)
- feat(core): Rename
hasTracingEnabledtohasSpansEnabled(#15309) - feat(core): Streamline
SpanJSONtype (#14693) - feat(deno): Don't bundle
@sentry/deno(#15014) - feat(deno): Don't publish to
deno.land(#15016) - feat(deno): Stop inlining types from core (#14729)
- feat(deps): Bump @opentelemetry/instrumentation-amqplib from 0.45.0 to 0.46.0 (#14835)
- feat(deps): Bump @opentelemetry/instrumentation-aws-lambda from 0.49.0 to 0.50.0 (#14833)
- feat(deps): Bump @opentelemetry/instrumentation-express from 0.46.0 to 0.47.0 (#14834)
- feat(deps): Bump @opentelemetry/instrumentation-mysql2 from 0.44.0 to 0.45.0 (#14836)
- feat(deps): Bump @opentelemetry/propagation-utils from 0.30.14 to 0.30.15 (#14832)
- feat(deps): bump @opentelemetry/context-async-hooks from 1.29.0 to 1.30.0 (#14869)
- feat(deps): bump @opentelemetry/instrumentation-generic-pool from 0.42.0 to 0.43.0 (#14870)
- feat(deps): bump @opentelemetry/instrumentation-knex from 0.43.0 to 0.44.0 (#14872)
- feat(deps): bump @opentelemetry/instrumentation-mongodb from 0.50.0 to 0.51.0 (#14871)
- feat(deps): bump @opentelemetry/instrumentation-tedious from 0.17.0 to 0.18.0 (#14868)
- feat(deps): bump @sentry/cli from 2.39.1 to 2.41.1 (#15173)
- feat(flags): Add Statsig browser integration (#15319)
- feat(gatsby): Preserve user-provided source map settings (#15006)
- feat(nestjs): Remove
SentryTracingInterceptor,SentryGlobalGraphQLFilter,SentryGlobalGenericFilter(#14761) - feat(nextjs): Directly forward
sourcemaps.disableto webpack plugin (#15109) - feat(node): Add
processSessionIntegration(#15081) - feat(node): Add missing
vercelAIIntegrationexport (#15318) - feat(node): Capture exceptions from
worker_threads(#15105) - feat(nuxt): Add enabled to disable Sentry module (#15337)
- feat(nuxt): add
silent,errorHandler,releasetoSourceMapsOptions(#15246) - feat(profiling-node): Use
@sentry-internal/node-cpu-profiler(#15208) - feat(replay): Update fflate to 0.8.2 (#14867)
- feat(solidstart): Add
autoInjectServerSentry: 'experimental_dynamic-import(#14863) - feat(sveltekit): Only inject fetch proxy script for SvelteKit < 2.16.0 (#15126)
- feat(user feedback): Adds draw tool for UF screenshot annotations (#15062)
- feat(user feedback): Adds toolbar for cropping and annotating (#15282)
- feat: Avoid class fields all-together (#14887)
- feat: Only emit
__esModuleproperties in CJS modules when there is a default export (#15018) - feat: Pass
parentSampleRatetotracesSampler(#15024) - feat: Propagate and use a sampling random (#14989)
- fix(browser): Remove
browserPerformanceTimeOriginside-effects (#14025) - fix(core): Ensure debugIds are applied to all exceptions in an event (#14881)
- fix(core): Fork scope if custom scope is passed to
startSpanManual(#14901) - fix(core): Fork scope if custom scope is passed to
startSpan(#14900) - fix(core): Only fall back to
sendDefaultPiifor IP collection inrequestDataIntegration(#15125) - fix(nextjs): Flush with
waitUntilincaptureRequestError(#15146) - fix(nextjs): Use batched devserver symbolication endpoint (#15335)
- fix(node): Don't leak
__spanproperty into breadcrumbs (#14798) - fix(node): Fix sample rand propagation for negative sampling decisions (#15045)
- fix(node): Missing
releasefrom ANR sessions (#15138) - fix(node): Set the correct fallback URL fields for outgoing https requests if they are not defined (#15316)
- fix(nuxt): Detect Azure Function runtime for flushing with timeout (#15288)
- fix(react): From location can be undefined in Tanstack Router Instrumentation (#15235)
- fix(react): Import default for hoistNonReactStatics (#15238)
- fix(react): Support lazy-loaded routes and components. (#15039)
- fix(solidstart): Do not copy release-injection map file (#15302)
- ref(browser): Improve active span handling for
browserTracingIntegration(#14959) - ref(browser): Improve setting of propagation scope for navigation spans (#15108)
- ref(browser): Skip browser extension warning in non-debug builds (#15310)
- ref(browser): Update
supportsHistorycheck & history usage (#14696) - ref(core): Ensure non-recording root spans have frozen DSC (#14964)
- ref(core): Log debug message when capturing error events (#14701)
- ref(core): Move log message about invalid sample rate (#15215)
- ref(node): Streamline check for adding performance integrations (#15021)
- ref(react): Adapt tanstack router type (#15241)
- ref(svelte): Remove SvelteKit detection (#15313)
- ref(sveltekit): Clean up sub-request check (#15251)
Work in this release was contributed by @aloisklink, @arturovt, @aryanvdesh, @benjick, @chris-basebone, @davidturissini, @GrizliK1988, @jahands, @jrandolf, @kunal-511, @maximepvrt, @maxmaxme, @mstrokin, @nathankleyn, @nwalters512, @tannerlinsley, @tjhiggins, and @Zen-cronic. Thank you for your contributions!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.