You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove _experiments replay options compat shim in v9 #5882
The _experiments.replaysSessionSampleRate and _experiments.replaysOnErrorSampleRate options were deprecated in favor of the root-level replaysSessionSampleRate / replaysOnErrorSampleRate options. A compat shim in packages/core/src/js/integrations/default.ts copies the old values to the new location at init time.
The original comment said "Remove in the next major version (v7)", but this was missed in both v7 and v8. Updated to v9 in #5881.
Action for v9
Remove the compat shim in default.ts (lines 144-154)
Remove the _experiments.replaysSessionSampleRate and _experiments.replaysOnErrorSampleRate type definitions from options.ts
Consider also removing the initialScope option (deprecated since v5, replacement: getGlobalScope() / getIsolationScope())
Activity
linear-code commentedon Mar 25, 2026
RN-552