Overview
Track the @sentry/* JavaScript SDK v11 alpha/beta pre-releases and document the compatibility work needed in the React Native SDK ahead of the real v11 bump.
Each pre-release: bump the first-party @sentry/* deps, build, run the test suite, and record the breaking changes and what they require here.
Alpha 2 — 11.0.0-alpha.2
Spike: #6655 (draft, opened to exercise CI).
yarn build (tsc) compiles clean after the adaptations below.
Breaking changes handled in the SDK source
- Span streaming model —
spanToJSON() now returns the streamed shape (name/attributes/end_timestamp, status collapsed to ok/error). Internals that need the classic SpanJSON switched to spanToStaticSpanJSON().
- Event filters rename —
inboundFiltersIntegration → eventFiltersIntegration (re-exported under the existing RN public name).
- AI instrumentation removed from core — OpenAI/Anthropic/Google GenAI/LangChain/LangGraph helpers moved to the server-only
@sentry/server-utils (RN does not depend on it); re-exports and types dropped.
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE replaced by SENTRY_SEGMENT_NAME_SOURCE.
- Tightened typings —
ExtendedError and User index signatures any → unknown; User.name dropped from the typed interface.
- RN-owned options —
enableLogs and sendDefaultPii are no longer on core's client options (core removed them / RN Omits dataCollection); RN declares them itself.
Scope.clear() removed — MIGRATION.md advises withScope/withIsolationScope or SDK re-init; the test harness was migrated onto a clearAllScopes() helper.
TypeScript minimum version
v11 raises the minimum TypeScript to 5.0.4 and stops emitting down-leveled types, which retires the SDK's current TS 3.8 floor (this is what fails the Type Check TypeScript 3.8 CI job on #6655). Tracked separately as a v9 next-major task: #6657.
Open follow-ups
Alpha / Beta releases
Overview
Track the
@sentry/*JavaScript SDK v11 alpha/beta pre-releases and document the compatibility work needed in the React Native SDK ahead of the real v11 bump.Each pre-release: bump the first-party
@sentry/*deps, build, run the test suite, and record the breaking changes and what they require here.Alpha 2 —
11.0.0-alpha.2Spike: #6655 (draft, opened to exercise CI).
yarn build(tsc) compiles clean after the adaptations below.Breaking changes handled in the SDK source
spanToJSON()now returns the streamed shape (name/attributes/end_timestamp,statuscollapsed took/error). Internals that need the classicSpanJSONswitched tospanToStaticSpanJSON().inboundFiltersIntegration→eventFiltersIntegration(re-exported under the existing RN public name).@sentry/server-utils(RN does not depend on it); re-exports and types dropped.SEMANTIC_ATTRIBUTE_SENTRY_SOURCEreplaced bySENTRY_SEGMENT_NAME_SOURCE.ExtendedErrorandUserindex signaturesany→unknown;User.namedropped from the typed interface.enableLogsandsendDefaultPiiare no longer on core's client options (core removed them / RNOmitsdataCollection); RN declares them itself.Scope.clear()removed — MIGRATION.md adviseswithScope/withIsolationScopeor SDK re-init; the test harness was migrated onto aclearAllScopes()helper.TypeScript minimum version
v11 raises the minimum TypeScript to
5.0.4and stops emitting down-leveled types, which retires the SDK's current TS 3.8 floor (this is what fails theType Check TypeScript 3.8CI job on #6655). Tracked separately as a v9 next-major task: #6657.Open follow-ups
spanToJSON(...).status/.data) — apply thespanToStaticSpanJSONswap on the test side.aiExports.test.tsasserts the now-removed AI re-exports — obsolete, delete.measurementscoming backundefinedin stall-tracking / native-frames transactions — investigate (possible real v11 behavior change).CHANGELOG.mdentry once the approach is confirmed.Alpha / Beta releases
11.0.0-alpha.2