chore(deps): update JavaScript SDK to v11.7.0 - #6773
github-actions[bot] wants to merge 1 commit into
Conversation
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
🤖 This preview updates automatically when you update the PR. |
antonis
left a comment
There was a problem hiding this comment.
Marking as blocked since we will bump with our next major
|
Tested out the changes with #6730 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit adfb87a. Configure here.
| "@sentry/core": "11.0.0", | ||
| "@sentry/expo-upload-sourcemaps": "workspace:*", | ||
| "@sentry/react": "10.75.2" | ||
| "@sentry/react": "11.0.0" |
There was a problem hiding this comment.
PII collected by default after v11
High Severity
Flagged because the review rules require PII to stay gated behind sendDefaultPii and require changelog review on JS dependency bumps. v11 replaces sendDefaultPii with dataCollection and collects user info, cookies, HTTP bodies, and similar data by default. This SDK still documents and implements sendDefaultPii (default off) and omits dataCollection from ReactNativeOptions, so JS-core collection turns on while apps cannot disable it through the public options type.
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit adfb87a. Configure here.
| "@sentry/core": "11.0.0", | ||
| "@sentry/expo-upload-sourcemaps": "workspace:*", | ||
| "@sentry/react": "10.75.2" | ||
| "@sentry/react": "11.0.0" |
There was a problem hiding this comment.
Unmigrated v11 breaking JS APIs
High Severity
Flagged because the review rules require JS dependency bumps to be checked for breaking API and default-integration changes. This PR only retargets @sentry/core, @sentry/browser, and @sentry/react to 11.0.0. Default integrations still call removed inboundFiltersIntegration, the public entry still re-exports removed instrumentLangGraph and AI helpers that moved off @sentry/core, and tracing still imports startIdleSpan from the default @sentry/core entry. No code, types, or changelog migration accompanies the major bump.
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit adfb87a. Configure here.
| "@sentry/core": "11.0.0", | ||
| "@sentry/expo-upload-sourcemaps": "workspace:*", | ||
| "@sentry/react": "10.75.2" | ||
| "@sentry/react": "11.0.0" |
There was a problem hiding this comment.
Span streaming default breaks tracing
High Severity
Flagged because the review rules call out silent default and telemetry-shape changes on dependency updates. v11 enables span streaming by default and deprecates transaction-mode hooks such as beforeSendTransaction and forceTransaction. This SDK's navigation, app-start, and idle-span pipeline still assumes root spans are buffered as transactions and discarded via transaction event processors. Streaming would emit child spans before those filters run and change the telemetry apps currently receive.
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit adfb87a. Configure here.
5b99eba to
a7da763
Compare
a5d19b4 to
5949ab3
Compare
9caf113 to
c8c3cc3
Compare
c2a203e to
c6bdd9e
Compare
8949646 to
b314359
Compare
e91ca5a to
4de25fc
Compare
849c853 to
255295a
Compare
14e4413 to
605c605
Compare
605c605 to
7ac8dcd
Compare


Bumps scripts/update-javascript.sh from 10.76.2 to 11.7.0.
Auto-generated by a dependency updater.
Changelog
11.7.0
Important Changes
feat(cloudflare): Add opt-in cron monitoring for Cron Triggers (#25014)
The new
cronTriggersIntegrationsends check-ins for Cron Triggers. Each check-in includes the schedule fromcontroller.cron, so Sentry creates the monitor on the first run. The integration is opt-in, because monitors are billed.Cron Triggers have no names, so map each cron expression of your wrangler config to a monitor slug. With the Sentry Cloudflare Vite plugin, add the integration to
src/instrument.server.ts:The
monitorSlugfunction can also return monitor settings, for example{ monitorSlug: 'daily-report', maxRuntime: 30 }, orundefinedto send no check-ins for a trigger. WithoutmonitorSlug, the SDK derives the slug from the cron expression. If you deploy withwranglerdirectly, pass the same integration toSentry.withSentry.feat(node): Add neonIntegration for neondatabase/serverless (#25164, #25176)
The new
neonIntegrationcreatesdbspans for queries of theneondatabase/serverlessdriver: for the WebSocketClientandPool, and for the HTTPneon()function. This includes theneon-httpandneon-serverlessadapters of Drizzle. The integration is on by default when tracing is enabled.feat(node): Stop sending the process session once request sessions are tracked (#24915)
Node servers sent release health data two times: as request session aggregates, and as the process session of
processSessionIntegration. An error in a request also marked the process session as errored, so the SDK counted the error two times. Now the SDK drops the process session when it tracks the first request session. Scripts, CLIs and workers that do not serve requests keep the process session, and so do servers withhttpServerIntegration({ sessions: false }). This changes the release health numbers of Node servers, because they no longer send the errored or crashed update of the process session.feat(server-utils): Record decide calls as
gen_ai.decidespans (#25270, #25272, #25274, #25281)Vercel AI
experimental_decidecalls, Mastra classifier evaluations, TypeSafe and LangChain Jev calls, and Workers AI calls to TypeSafe Jev and Cloudflare Clef models now createdecide <model>spans with the opgen_ai.decide. Before, these spans had the opgen_ai.evaluate, which is now deprecated in the Sentry conventions. If you usegen_ai.evaluatein queries, alerts or dashboards, change it togen_ai.decide.fix(browser): Apply
urlQueryParamsto more URLs (#25262, #25289)The
dataCollection.urlQueryParamsoption now also filters the query parameters of these URLs:event.request.urlbrowser.*andresource.*span names withtraceLifecycle: 'static'lcp.urlandbrowser.web_vital.lcp.urlui.element.urlattribute ofelementTimingIntegrationBefore this fix, these URLs could send sensitive query values, for example
?jwt=..., to Sentry.fix(nextjs): Apply top-level
bundleSizeOptimizationsto webpack and Turbopack builds (#24818)The top-level
bundleSizeOptimizationsoption now removes unused SDK code in webpack and in Turbopack builds. Before, the tree-shaking options had no effect on Turbopack. Thewebpack.treeshakeoption is deprecated. It still works, but when you set both options,bundleSizeOptimizationstakes precedence.Other Changes
feat(nuxt): Detect the server API with
nuxt/kit4.6 (#25138)fix(bundler-plugins): Escape JSON in generated injection code (#25265)
fix(core): Don't mark http client spans as errors when the caller aborts (#25260)
fix(core): Record
spanclient report outcomes when discarding transactions (#25006)fix(core): Record client outcomes when beforeSend callbacks return invalid values (#25049)
fix(core): Record span outcomes for spans dropped when building a transaction (#25048)
fix(core): Report actual item count in client reports of envelope send failures (#25185)
fix(core): Strip internal custom span name from streamed spans (#25212)
fix(nextjs): Filter query parameters in request error context (#25233)
fix(node): Don't mark fetch spans as errors when the caller aborts (#25129)
fix(nuxt): Delete public source maps before Nitro lists its public assets (#25267)
fix(nuxt): Keep
sentry/server-runtime-injectionexternal on Nitro v3 (#24901)fix(nuxt): Remove opentelemetry/resources dev alias (#25216)
fix(profiling-node): Stop the trace lifecycle profiler when spans are unsampled (#25210)
fix(react-router): Respect custom default integrations (#25259)
fix(remix): Respect custom default integrations (#25258)
fix(server-utils): avoid quadratic SQL summary regex backtracking (#25255)
fix(server-utils): End Express layer spans when the client aborts (#25209)
fix(server-utils): Record amqplib consumer info before the first delivery and instrument the callback API (#25047)
fix(server-utils): Stop treating previous_response_id as the OpenAI conversation id (#25269)
fix(sveltekit): Read load event pathname untracked (#25235)
fix(sveltekit): Stop adapter-node 6 output dir probe from deleting the build (#25193)
chore: Add external contributor to CHANGELOG.md (#25230)
chore: Add external contributor to CHANGELOG.md (#25271)
chore(deps-dev): Bump oxlint-tsgolint from 7.0.2001 to 7.0.2003 (#25237)
chore(deps-dev): Bump rimraf from 5.0.10 to 6.1.3 (#25241)
chore(deps): Bump
sentry/conventionsto 0.27.0 (#25264)chore(deps): Bump next from 16.2.11 to 16.3.8 in /dev-packages/e2e-tests/test-applications/nextjs-16 (#25179)
chore(deps): Bump next from 16.2.11 to 16.3.8 in /dev-packages/e2e-tests/test-applications/nextjs-16-tunnel (#25190)
chore(size-limit): weekly auto-bump (#25213)
ci: Install Playwright in the background during E2E app builds (#25207)
ci: Run lint steps in parallel (#25187)
ci(bun): Test the oldest supported Bun version and the newest 1.4 (#25203)
docs: Scope pre-PR tests to affected suites (#25198)
feat(deps): Bump aws-sdk/client-kinesis from 3.1068.0 to 3.1146.0 (#25240)
feat(deps): Bump handlebars from 4.7.9 to 4.7.10 (#25206)
feat(deps): Bump pino from 9.10.0 to 10.4.0 (#25238)
feat(deps): Bump reflect-metadata from 0.2.1 to 0.2.2 (#25239)
ref(core): Simplify transport item loss recording (#25224)
ref(server-utils): Export the pg query span helpers (#25163)
ref(server-utils): Share Orchestrion channel context (#25208)
test(browser): migrate trace lifecycle and span API tests to streaming (#24881)
test(browser): port browser tracing suites to span streaming (#24888)
test(browser): port requests and web vitals to span streaming (#24886)
test(browser): Register the LCP handlers in the bundle of the SDK (#25263)
test(bun): Run the Node suites that need Bun 1.4 on the Bun 1.4 job (#25204)
test(cloudflare): Add LangChain TypeSafeClassifier integration test (#25234)
test(core): Fix flaky span end timestamp test (#25211)
test(deno): Type-check Deno unit tests (#25227)
test(nextjs): Add vinext e2e tests (#25001)
test(node-integration): Replace
conditionalTestwith asupportshelper (#25202)test(node-integration): Stop exporting
NODE_VERSIONandRUNTIMEfrom the test utils (#25292)test(node): Add integration tests for the Neon serverless driver (#25177)
test(node): Port baggage and metadata tests to span streaming (#25220)
test(node): Port basic and nested startSpan tests to streaming (#25214)
test(node): Port fetch request suites to span streaming (#25189)
test(node): Port HTTP options and hooks to span streaming (#25195)
test(node): Port HTTP propagation and transport suites to streaming (#25197)
test(node): Port HTTP request suites to span streaming (#25191)
test(node): Port incoming HTTP behavior to span streaming (#25194)
test(node): Port MongoDB integration tests to span streaming (#25150)
test(node): Port Mongoose integration tests to span streaming (#25151)
test(node): Port outgoing HTTP client spans to streaming (#25192)
test(node): Port parallel span and naming tests to streaming (#25217)
test(node): Port Postgres integration tests to span streaming (#25140)
test(node): Port Prisma integration tests to span streaming (#25152)
test(node): Port Redis integration tests to span streaming (#25153)
test(node): Port span linking and raw OTel tests to streaming (#25219)
test(node): Port trace context tests to span streaming (#25218)
test(node): Run sampling propagation tests with default streaming (#25221)
test(node): Use default streaming in scope and span suites (#25222)
test(nuxt): Test imports from
nuxt/serverin the nuxt-5 E2E app (#25232)Work in this release was contributed by Philip-Nwabuwa and 4ktLuffy. Thank you for your contributions!
11.6.0
Important Changes
feat(nextjs): Add
sentry/nextjs/cloudflare(#24998)The new
sentry/nextjs/cloudflareentry point exportswithSentryfor the Worker entry of a Next.js app on Cloudflare Workers, for example.open-next/worker.jsof OpenNext. It iswithSentryofsentry/cloudflarewith the Next.js server handling added, so a Next.js app on Workers gets the same spans as on Node.js.feat(server-utils): Add instrumentation for pi-durable (#24993)
The new
piDurableIntegrationtraces agents built with pi-durable: each run, with its model requests and tool calls.fix(core): Correct sleep clock drift on telemetry timestamps (#23054)
When a device sleeps, the
performance.now()clock of the browser stops. Before this change, timestamps of spans and other telemetry recorded after the sleep could be too early. The SDK now detects this drift and corrects its time origin, also for spans created from performance entries. Span end times are now computed from theperformance.now()duration since the span start, like in OpenTelemetry (#24903).Other Changes
Internal Changes
sentry/nextjs/cloudflare(#25000)no-unsafe-random-apisrule (#25123)Work in this release was contributed by zkasuran. Thank you for your contribution!
11.5.0
Important Changes
feat(core): Warn on repeated
Sentry.init()and unbind the client onclose()(#24962)Sentry.init()now warns when it runs while a client is still active. For now, the new client still replaces the active client, but the active client is not closed, so state from both can mix. CallSentry.init()once, or callawait Sentry.close()before you call it again.Sentry.close()now unbinds the client it closes, so afterclose(),getClient()returnsundefined,isInitialized()returnsfalse, and a laterinit()sets up a new client. Insentry/cloudflare, later requests no longer reuse the isolate's cached client once it is closed or closing. On the server,sentry/nextjsandsentry/remixnow return the active client from a repeatedinit()call, notundefined.Other Changes
code.file.pathtouse cachefill spans (#24988)initinside a request ofsentry/cloudflare(#24996)experimental_telemetry.metadataon gen_ai spans (#24721)beforeSendSpannull return warning (#24129)Internal Changes
sentry/conventionsto 0.26.0 (#25073)isObjectLikefor object guards (#25058)serverSpanHooks.ts(#24997)nuxt/server(#25093)Work in this release was contributed by minwookshin. Thank you for your contribution!
11.4.0
11.3.0
Important Changes
Remix 3 support (alpha, may break in minor releases)
feat(nextjs): Add
cache_originspan links touse cachehit spans (#24821)A
cache.getspan for a"use cache"hit now carries a span link (sentry.link.type: 'cache_origin') to thecache.putspan of the request that filled the cache entry, connecting the trace that reads a cached value to the trace that produced it.fix(cloudflare): Don't treat DO constructor work as incoming RPC calls (#24829)
Durable Object constructors now run in their own isolation scope. When work that the constructor starts, for example a
blockConcurrencyWhilecallback, calls a method of the instance, that call is no longer treated as an incoming RPC call, so an error the instance catches itself is no longer reported as unhandled. As a result,Sentry.setTag(),setUser()andsetContext()in a constructor now apply only to that constructor work. They no longer reach laterfetch, RPC oralarminvocations, because the scope they used to write to is shared by every Durable Object and handler in the isolate. UseinitialScopefor static data, and set per-instance data in each handler.fix(effect)!: Change peerDependency to v4 and fix currentSpan (#24940)
sentry/effectnow requires a stable Effect v4 release. Effect v4 beta and release candidate versions are no longer supported.sentry/effectis in alpha, so this ships in a minor release.Other Changes
client.sendEnvelope(#24896)Internal Changes
Work in this release was contributed by Shubham-Padkonde and tobias-schnabel. Thank you for your contributions!
11.2.0
Important Changes
feat(hono): add orchestrion-based auto-instrumentation (#24497)
Hono is now instrumented automatically. Request spans are named after the matched Hono route, each middleware gets its own span, and errors thrown in handlers are captured.
feat(node/bun): Enable dedupeIntegration by default (#24794)
sentry/nodeandsentry/bunnow includededupeIntegrationin their default integrations, like the browser, Deno, Vercel Edge and Cloudflare SDKs. When the same error is captured two times in a row, only the first event is sent. To keep the previous behavior, remove the integration:integrations: defaults => defaults.filter(integration => integration.name !== 'Dedupe').feat(remix): Instrument Remix 3 server requests via fetch-router (#24801)
On Remix 3, the SDK now adds the matched route as
http.route, the response status and a low-cardinality name to thehttp.serverspan of eachfetch-routerrequest. Start the app with--import sentry/remix/v3/nodein place of--import remix/node-tsx.Other Changes
bunRuntimeMetricsIntegration(#24892)fmt/parameterizemessages (#24770)nextis called (#24854)rolldownOptionsin instrumentation file plugin (#24863)Internal Changes
externallabel on PRs of external contributors (#24825)dedupeIntegration(#24893)test-utils/cloudflare(#24815)Work in this release was contributed by nabi-noor, LuccaRebelloToledo, andasan, breken-ai, EmileBrunelle, and diobriggs. Thank you for your contributions!
11.1.0
Important Changes
feat(server-utils): Auto-instrument MCP servers via orchestrion (#24529)
A new default
mcpServerIntegrationwraps everyMcpServerinstance (frommodelcontextprotocol/serverandmodelcontextprotocol/sdk) when it is created. You no longer need to callwrapMcpServerWithSentrymanually. You can still callwrapMcpServerWithSentryto override options, for examplerecordInputs: false.feat(node): Support Prisma 8 in
prismaIntegration(#24682)prismaIntegrationnow creates aprisma:client:operationspan for each Prisma 8 ORM call, with the database query spans nested below it. No code changes are necessary.feat(server-utils): Add TypeSafe integration (#24703)
A new default
typesafeIntegrationcreates agen_ai.evaluatespan for each TypeSafe Jev call throughtypesafe-ai/sdk(TypeSafeClient.systemOne). For runtimes without auto-instrumentation, useinstrumentTypeSafeClient().feat(server-utils): Instrument Vercel AI
experimental_evaluate(#24694)Vercel AI
experimental_evaluatecalls now create agen_ai.evaluatespan, with the state and questions as input messages and the answers as output messages.Other Changes
onErrorcallback toshowReportDialog(#24780)