Repository navigation
Test with JS SDK Alpha and Beta releases #6656
Copy link
Copy link
Closed
Labels
Description
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,statuscollapsed took/error). Internals that need the classicSpanJSONswitched tospanToStaticSpanJSON(). - 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_SOURCEreplaced bySENTRY_SEGMENT_NAME_SOURCE.- Tightened typings —
ExtendedErrorandUserindex signaturesany→unknown;User.namedropped from the typed interface. - RN-owned options —
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.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
- Test assertions still reading the old span shape (
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). - Regenerate the API report and add a
CHANGELOG.mdentry once the approach is confirmed.
Alpha / Beta releases
-
11.0.0-alpha.2 - later alpha / beta / rc releases
Reactions are currently unavailable
Activity
linear-code commentedon Sep 2, 2026
RN-753
antonis commentedon Sep 17, 2026
Closing this after testing with rc.0