@sentry/react-native 8.0.0-alpha.0 → 8.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNSentry.podspec +3 -2
- package/android/libs/replay-stubs.jar +0 -0
- package/android/src/main/java/io/sentry/react/RNSentryStart.java +19 -23
- package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +2 -2
- package/dist/js/client.js.map +1 -1
- package/dist/js/index.d.ts +2 -2
- package/dist/js/index.d.ts.map +1 -1
- package/dist/js/index.js +1 -1
- package/dist/js/index.js.map +1 -1
- package/dist/js/options.d.ts +18 -10
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/scopeSync.d.ts.map +1 -1
- package/dist/js/scopeSync.js +19 -13
- package/dist/js/scopeSync.js.map +1 -1
- package/dist/js/tracing/expoRouter.d.ts +25 -0
- package/dist/js/tracing/expoRouter.d.ts.map +1 -0
- package/dist/js/tracing/expoRouter.js +73 -0
- package/dist/js/tracing/expoRouter.js.map +1 -0
- package/dist/js/tracing/index.d.ts +2 -0
- package/dist/js/tracing/index.d.ts.map +1 -1
- package/dist/js/tracing/index.js +1 -0
- package/dist/js/tracing/index.js.map +1 -1
- package/dist/js/tracing/origin.d.ts +1 -0
- package/dist/js/tracing/origin.d.ts.map +1 -1
- package/dist/js/tracing/origin.js +1 -0
- package/dist/js/tracing/origin.js.map +1 -1
- package/dist/js/tracing/reactnavigation.d.ts +9 -1
- package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnavigation.js +30 -1
- package/dist/js/tracing/reactnavigation.js.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.d.ts.map +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/dist/js/wrapper.d.ts +4 -2
- package/dist/js/wrapper.d.ts.map +1 -1
- package/dist/js/wrapper.js +6 -4
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentry+fetchNativeStack.m +1 -0
- package/ios/RNSentry.mm +0 -1
- package/ios/RNSentryExperimentalOptions.h +8 -0
- package/ios/RNSentryExperimentalOptions.m +42 -0
- package/ios/RNSentryRNSScreen.m +1 -1
- package/ios/RNSentrySDK.m +2 -2
- package/ios/RNSentryStart.m +2 -2
- package/ios/RNSentryVersion.m +1 -1
- package/ios/SentrySDKWrapper.m +9 -2
- package/package.json +9 -9
- package/plugin/build/withSentryIOS.js +4 -0
- package/scripts/sentry-xcode-debug-files.sh +9 -3
- package/scripts/sentry-xcode.sh +8 -3
- package/ts3.8/dist/js/index.d.ts +2 -2
- package/ts3.8/dist/js/options.d.ts +18 -10
- package/ts3.8/dist/js/tracing/expoRouter.d.ts +25 -0
- package/ts3.8/dist/js/tracing/index.d.ts +2 -0
- package/ts3.8/dist/js/tracing/origin.d.ts +1 -0
- package/ts3.8/dist/js/tracing/reactnavigation.d.ts +9 -1
- package/ts3.8/dist/js/version.d.ts +1 -1
- package/ts3.8/dist/js/wrapper.d.ts +4 -2
|
@@ -41,6 +41,14 @@ interface ReactNavigationIntegrationOptions {
|
|
|
41
41
|
* @default false
|
|
42
42
|
*/
|
|
43
43
|
useFullPathsForNavigationRoutes: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Track performance of route prefetching operations.
|
|
46
|
+
* Creates separate spans for PRELOAD actions to measure prefetch performance.
|
|
47
|
+
* This is useful for Expo Router apps that use the prefetch functionality.
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
enablePrefetchTracking: boolean;
|
|
44
52
|
}
|
|
45
53
|
/**
|
|
46
54
|
* Instrumentation for React-Navigation V5 and above. See docs or sample app for usage.
|
|
@@ -50,7 +58,7 @@ interface ReactNavigationIntegrationOptions {
|
|
|
50
58
|
* - `_onStateChange` is then called AFTER the state change happens due to a dispatch and sets the route context onto the active transaction.
|
|
51
59
|
* - If `_onStateChange` isn't called within `STATE_CHANGE_TIMEOUT_DURATION` of the dispatch, then the transaction is not sampled and finished.
|
|
52
60
|
*/
|
|
53
|
-
export declare const reactNavigationIntegration: ({ routeChangeTimeoutMs, enableTimeToInitialDisplay, ignoreEmptyBackNavigationTransactions, enableTimeToInitialDisplayForPreloadedRoutes, useDispatchedActionData, useFullPathsForNavigationRoutes, }?: Partial<ReactNavigationIntegrationOptions>) => Integration & {
|
|
61
|
+
export declare const reactNavigationIntegration: ({ routeChangeTimeoutMs, enableTimeToInitialDisplay, ignoreEmptyBackNavigationTransactions, enableTimeToInitialDisplayForPreloadedRoutes, useDispatchedActionData, useFullPathsForNavigationRoutes, enablePrefetchTracking, }?: Partial<ReactNavigationIntegrationOptions>) => Integration & {
|
|
54
62
|
/**
|
|
55
63
|
* Pass the ref to the navigation container to register it to the instrumentation
|
|
56
64
|
* @param navigationContainerRef Ref to a `NavigationContainer`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const SDK_PACKAGE_NAME = "npm:@sentry/react-native";
|
|
2
2
|
export declare const SDK_NAME = "sentry.javascript.react-native";
|
|
3
|
-
export declare const SDK_VERSION = "8.0.0-
|
|
3
|
+
export declare const SDK_VERSION = "8.0.0-beta.0";
|
|
4
4
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Breadcrumb, Envelope, EnvelopeItem, Event, Package, Primitive, SeverityLevel, User } from '@sentry/core';
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
3
|
import type { NativeAppStartResponse, NativeDeviceContextsResponse, NativeFramesResponse, NativeReleaseResponse, NativeStackFrames, Spec } from './NativeRNSentry';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ProfilingOptions, ReactNativeClientOptions } from './options';
|
|
5
5
|
import type * as Hermes from './profiling/hermes';
|
|
6
6
|
import type { NativeAndroidProfileEvent, NativeProfileEvent } from './profiling/nativeTypes';
|
|
7
7
|
import type { MobileReplayOptions } from './replay/mobilereplay';
|
|
@@ -21,7 +21,9 @@ export type NativeSdkOptions = Partial<ReactNativeClientOptions> & {
|
|
|
21
21
|
ignoreErrorsRegex?: string[] | undefined;
|
|
22
22
|
} & {
|
|
23
23
|
mobileReplayOptions: MobileReplayOptions | undefined;
|
|
24
|
-
|
|
24
|
+
profilingOptions?: ProfilingOptions | undefined;
|
|
25
|
+
/** @deprecated Use `profilingOptions` instead. */
|
|
26
|
+
androidProfilingOptions?: ProfilingOptions | undefined;
|
|
25
27
|
};
|
|
26
28
|
interface SentryNativeWrapper {
|
|
27
29
|
enableNative: boolean;
|