Skip to content

Commit d5079ff

Browse files
antonisclaude
andauthored
fix(core): Fix stale deprecation references (#5881)
* fix(core): Fix stale deprecation references - Update `initialScope` deprecation to point to `getGlobalScope()`/ `getIsolationScope()` instead of removed `configureScope()` API - Update stale "Remove in v7" comment to "Remove in v9" since the `_experiments` replay options compat shim was not removed in v8 Ref: https://develop.sentry.dev/sdk/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(core): Show setter pattern in initialScope deprecation message The deprecation should show how to mutate the scope, not just how to get it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9662540 commit d5079ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/js/integrations/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export function getDefaultIntegrations(options: ReactNativeClientOptions): Integ
148148
(options._experiments && typeof options._experiments.replaysSessionSampleRate === 'number');
149149

150150
if (!hasReplayOptions && hasExperimentsReplayOptions) {
151-
// Remove in the next major version (v7)
151+
// Remove in the next major version (v9)
152152
options.replaysOnErrorSampleRate = options._experiments?.replaysOnErrorSampleRate;
153153
options.replaysSessionSampleRate = options._experiments?.replaysSessionSampleRate;
154154
}

packages/core/src/js/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export interface BaseReactNativeOptions {
125125

126126
/**
127127
* Set data to the inital scope
128-
* @deprecated Use `Sentry.configureScope(...)`
128+
* @deprecated Use `Sentry.getGlobalScope().setTag(...)`, `Sentry.getGlobalScope().setUser(...)`, etc. instead.
129129
*/
130130
initialScope?: CaptureContext;
131131

0 commit comments

Comments
 (0)