@sentry/react-native 5.16.0-alpha.1 → 5.16.0-alpha.3
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/CHANGELOG.md +82 -0
- package/dist/js/NativeRNSentry.d.ts +1 -1
- package/dist/js/NativeRNSentry.d.ts.map +1 -1
- package/dist/js/NativeRNSentry.js.map +1 -1
- package/dist/js/index.js +1 -1
- package/dist/js/index.js.map +1 -1
- package/dist/js/integrations/debugsymbolicator.d.ts.map +1 -1
- package/dist/js/integrations/debugsymbolicator.js +12 -10
- package/dist/js/integrations/debugsymbolicator.js.map +1 -1
- package/dist/js/integrations/default.d.ts +11 -0
- package/dist/js/integrations/default.d.ts.map +1 -0
- package/dist/js/integrations/default.js +79 -0
- package/dist/js/integrations/default.js.map +1 -0
- package/dist/js/integrations/expocontext.d.ts +17 -0
- package/dist/js/integrations/expocontext.d.ts.map +1 -0
- package/dist/js/integrations/expocontext.js +68 -0
- package/dist/js/integrations/expocontext.js.map +1 -0
- package/dist/js/integrations/reactnativeerrorhandlers.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeerrorhandlers.js +9 -6
- package/dist/js/integrations/reactnativeerrorhandlers.js.map +1 -1
- package/dist/js/integrations/reactnativeinfo.d.ts +3 -1
- package/dist/js/integrations/reactnativeinfo.d.ts.map +1 -1
- package/dist/js/integrations/reactnativeinfo.js +9 -1
- package/dist/js/integrations/reactnativeinfo.js.map +1 -1
- package/dist/js/integrations/sdkinfo.d.ts.map +1 -1
- package/dist/js/integrations/sdkinfo.js +5 -2
- package/dist/js/integrations/sdkinfo.js.map +1 -1
- package/dist/js/measurements.d.ts +0 -7
- package/dist/js/measurements.d.ts.map +1 -1
- package/dist/js/measurements.js +0 -56
- package/dist/js/measurements.js.map +1 -1
- package/dist/js/options.d.ts +6 -0
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js +23 -1
- package/dist/js/options.js.map +1 -1
- package/dist/js/sdk.d.ts.map +1 -1
- package/dist/js/sdk.js +13 -55
- package/dist/js/sdk.js.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.d.ts +6 -0
- package/dist/js/tools/sentryMetroSerializer.d.ts.map +1 -1
- package/dist/js/tools/sentryMetroSerializer.js +34 -1
- package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
- package/dist/js/tools/vendor/expo/expoconfig.d.ts +24 -0
- package/dist/js/tools/vendor/expo/expoconfig.d.ts.map +1 -0
- package/dist/js/tools/vendor/expo/expoconfig.js +3 -0
- package/dist/js/tools/vendor/expo/expoconfig.js.map +1 -0
- package/dist/js/tracing/addTracingExtensions.d.ts +8 -0
- package/dist/js/tracing/addTracingExtensions.d.ts.map +1 -0
- package/dist/js/tracing/addTracingExtensions.js +58 -0
- package/dist/js/tracing/addTracingExtensions.js.map +1 -0
- package/dist/js/tracing/reactnativenavigation.d.ts +1 -1
- package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnativenavigation.js.map +1 -1
- package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
- package/dist/js/tracing/reactnavigation.js +6 -4
- package/dist/js/tracing/reactnavigation.js.map +1 -1
- package/dist/js/tracing/reactnavigationv4.d.ts.map +1 -1
- package/dist/js/tracing/reactnavigationv4.js +4 -3
- package/dist/js/tracing/reactnavigationv4.js.map +1 -1
- package/dist/js/utils/environment.d.ts +9 -1
- package/dist/js/utils/environment.d.ts.map +1 -1
- package/dist/js/utils/environment.js +28 -1
- package/dist/js/utils/environment.js.map +1 -1
- package/dist/js/utils/expoglobalobject.d.ts +51 -0
- package/dist/js/utils/expoglobalobject.d.ts.map +1 -0
- package/dist/js/utils/expoglobalobject.js +2 -0
- package/dist/js/utils/expoglobalobject.js.map +1 -0
- package/dist/js/utils/expomodules.d.ts +10 -0
- package/dist/js/utils/expomodules.d.ts.map +1 -0
- package/dist/js/utils/expomodules.js +14 -0
- package/dist/js/utils/expomodules.js.map +1 -0
- package/dist/js/utils/rnlibraries.d.ts +3 -0
- package/dist/js/utils/rnlibraries.d.ts.map +1 -0
- package/dist/js/utils/rnlibraries.js +29 -0
- package/dist/js/utils/rnlibraries.js.map +1 -0
- package/dist/js/utils/rnlibraries.web.d.ts +3 -0
- package/dist/js/utils/rnlibraries.web.d.ts.map +1 -0
- package/dist/js/utils/rnlibraries.web.js +2 -0
- package/dist/js/utils/rnlibraries.web.js.map +1 -0
- package/dist/js/utils/rnlibrariesinterface.d.ts +19 -0
- package/dist/js/utils/rnlibrariesinterface.d.ts.map +1 -0
- package/dist/js/utils/rnlibrariesinterface.js +8 -0
- package/dist/js/utils/rnlibrariesinterface.js.map +1 -0
- package/dist/js/utils/worldwide.d.ts +2 -1
- package/dist/js/utils/worldwide.d.ts.map +1 -1
- package/dist/js/utils/worldwide.js.map +1 -1
- package/dist/js/version.d.ts +1 -1
- package/dist/js/version.js +1 -1
- package/dist/js/version.js.map +1 -1
- package/package.json +14 -6
- package/samples/react-native/react-native.config.js +5 -0
- package/scripts/expo-upload-sourcemaps.js +160 -0
- package/src/js/NativeRNSentry.ts +2 -1
- package/ts3.8/dist/js/NativeRNSentry.d.ts +1 -1
- package/ts3.8/dist/js/integrations/default.d.ts +11 -0
- package/ts3.8/dist/js/integrations/expocontext.d.ts +17 -0
- package/ts3.8/dist/js/integrations/reactnativeinfo.d.ts +3 -1
- package/ts3.8/dist/js/measurements.d.ts +0 -7
- package/ts3.8/dist/js/options.d.ts +6 -0
- package/ts3.8/dist/js/tracing/addTracingExtensions.d.ts +8 -0
- package/ts3.8/dist/js/tracing/reactnativenavigation.d.ts +1 -1
- package/ts3.8/dist/js/utils/environment.d.ts +9 -1
- package/ts3.8/dist/js/utils/expoglobalobject.d.ts +51 -0
- package/ts3.8/dist/js/utils/expomodules.d.ts +10 -0
- package/ts3.8/dist/js/utils/rnlibraries.d.ts +3 -0
- package/ts3.8/dist/js/utils/rnlibraries.web.d.ts +3 -0
- package/ts3.8/dist/js/utils/rnlibrariesinterface.d.ts +19 -0
- package/ts3.8/dist/js/utils/worldwide.d.ts +2 -1
- package/ts3.8/dist/js/version.d.ts +1 -1
|
@@ -5,9 +5,11 @@ export interface ReactNativeContext extends Context {
|
|
|
5
5
|
fabric: boolean;
|
|
6
6
|
expo: boolean;
|
|
7
7
|
hermes_version?: string;
|
|
8
|
-
react_native_version
|
|
8
|
+
react_native_version?: string;
|
|
9
9
|
component_stack?: string;
|
|
10
10
|
hermes_debug_info?: boolean;
|
|
11
|
+
expo_go_version?: string;
|
|
12
|
+
expo_sdk_version?: string;
|
|
11
13
|
}
|
|
12
14
|
/** Loads React Native context at runtime */
|
|
13
15
|
export declare class ReactNativeInfo implements Integration {
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import type { Hub, Transaction } from '@sentry/core';
|
|
2
|
-
import type { CustomSamplingContext, TransactionContext } from '@sentry/types';
|
|
3
1
|
export declare const APP_START_WARM = "app_start_warm";
|
|
4
2
|
export declare const APP_START_COLD = "app_start_cold";
|
|
5
3
|
export declare const STALL_COUNT = "stall_count";
|
|
6
4
|
export declare const STALL_TOTAL_TIME = "stall_total_time";
|
|
7
5
|
export declare const STALL_LONGEST_TIME = "stall_longest_time";
|
|
8
|
-
/**
|
|
9
|
-
* Adds React Native's extensions. Needs to be called before any transactions are created.
|
|
10
|
-
*/
|
|
11
|
-
export declare function _addTracingExtensions(): void;
|
|
12
|
-
export type StartTransactionFunction = (this: Hub, transactionContext: TransactionContext, customSamplingContext?: CustomSamplingContext) => Transaction;
|
|
13
6
|
//# sourceMappingURL=measurements.d.ts.map
|
|
@@ -155,4 +155,10 @@ export interface ReactNativeWrapperOptions {
|
|
|
155
155
|
/** Props for the root touch event boundary */
|
|
156
156
|
touchEventBoundaryProps?: TouchEventBoundaryProps;
|
|
157
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* If the user has not explicitly set `enableNativeNagger`
|
|
160
|
+
* the function enables native nagging based on the current
|
|
161
|
+
* environment.
|
|
162
|
+
*/
|
|
163
|
+
export declare function shouldEnableNativeNagger(userOptions: unknown): boolean;
|
|
158
164
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Hub, Transaction } from '@sentry/core';
|
|
2
|
+
import type { CustomSamplingContext, TransactionContext } from '@sentry/types';
|
|
3
|
+
/**
|
|
4
|
+
* Adds React Native's extensions. Needs to be called before any transactions are created.
|
|
5
|
+
*/
|
|
6
|
+
export declare function _addTracingExtensions(): void;
|
|
7
|
+
export type StartTransactionFunction = (this: Hub, transactionContext: TransactionContext, customSamplingContext?: CustomSamplingContext) => Transaction;
|
|
8
|
+
//# sourceMappingURL=addTracingExtensions.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EmitterSubscription } from '
|
|
1
|
+
import type { EmitterSubscription } from '../utils/rnlibrariesinterface';
|
|
2
2
|
import type { OnConfirmRoute, TransactionCreator } from './routingInstrumentation';
|
|
3
3
|
import { InternalRoutingInstrumentation } from './routingInstrumentation';
|
|
4
4
|
import type { BeforeNavigate } from './types';
|
|
@@ -5,9 +5,17 @@ export declare function isTurboModuleEnabled(): boolean;
|
|
|
5
5
|
/** Checks if the React Native Fabric renderer is running */
|
|
6
6
|
export declare function isFabricEnabled(): boolean;
|
|
7
7
|
/** Returns React Native Version as semver string */
|
|
8
|
-
export declare function getReactNativeVersion(): string;
|
|
8
|
+
export declare function getReactNativeVersion(): string | undefined;
|
|
9
9
|
/** Checks if Expo is present in the runtime */
|
|
10
10
|
export declare function isExpo(): boolean;
|
|
11
|
+
/** Check if JS runs in Expo Go */
|
|
12
|
+
export declare function isExpoGo(): boolean;
|
|
13
|
+
/** Check Expo Go version if available */
|
|
14
|
+
export declare function getExpoGoVersion(): string | undefined;
|
|
15
|
+
/** Returns Expo SDK version if available */
|
|
16
|
+
export declare function getExpoSdkVersion(): string | undefined;
|
|
17
|
+
/** Checks if the current platform is not web */
|
|
18
|
+
export declare function notWeb(): boolean;
|
|
11
19
|
/** Returns Hermes Version if hermes is present in the runtime */
|
|
12
20
|
export declare function getHermesVersion(): string | undefined;
|
|
13
21
|
/** Returns default environment based on __DEV__ */
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface from the Expo SDK defined here
|
|
3
|
+
* (we are describing the native Module
|
|
4
|
+
* the TS typing is only guideline):
|
|
5
|
+
*
|
|
6
|
+
* https://github.com/expo/expo/blob/b51b5139f2caa2a9495e4132437d7ca612276158/packages/expo-constants/src/Constants.ts
|
|
7
|
+
* https://github.com/expo/expo/blob/b51b5139f2caa2a9495e4132437d7ca612276158/packages/expo-manifests/src/Manifests.ts
|
|
8
|
+
*/
|
|
9
|
+
export interface ExpoConstants {
|
|
10
|
+
appOwnership?: 'standalone' | 'expo' | 'guest';
|
|
11
|
+
/**
|
|
12
|
+
* Deprecated. But until removed we can use it as user ID to match the native SDKs.
|
|
13
|
+
*/
|
|
14
|
+
installationId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Version of the Expo Go app
|
|
17
|
+
*/
|
|
18
|
+
expoVersion?: string | null;
|
|
19
|
+
manifest?: null | {
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
/**
|
|
22
|
+
* Expo SDK version should match `expo` version from the app `package.json`.
|
|
23
|
+
* Example "exposdk:50.0.0"
|
|
24
|
+
*/
|
|
25
|
+
runtimeVersion?: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Interface from the Expo SDK defined here
|
|
30
|
+
* (we are describing the native module
|
|
31
|
+
* the TS typing is only guideline)
|
|
32
|
+
*
|
|
33
|
+
* https://github.com/expo/expo/blob/5d1153e6ae7c497fa1281ffee85fabe90d2321c2/packages/expo-device/src/Device.ts
|
|
34
|
+
*/
|
|
35
|
+
export interface ExpoDevice {
|
|
36
|
+
deviceName?: string;
|
|
37
|
+
isDevice?: boolean;
|
|
38
|
+
manufacturer?: string;
|
|
39
|
+
modelName?: string;
|
|
40
|
+
osName?: string;
|
|
41
|
+
osBuildId?: string;
|
|
42
|
+
osVersion?: string;
|
|
43
|
+
totalMemory?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface ExpoGlobalObject {
|
|
46
|
+
modules?: {
|
|
47
|
+
ExponentConstants?: ExpoConstants;
|
|
48
|
+
ExpoDevice?: ExpoDevice;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=expoglobalobject.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ExpoConstants, ExpoDevice } from './expoglobalobject';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the Expo Constants module if present
|
|
4
|
+
*/
|
|
5
|
+
export declare function getExpoConstants(): ExpoConstants | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Returns the Expo Device module if present
|
|
8
|
+
*/
|
|
9
|
+
export declare function getExpoDevice(): ExpoDevice | undefined;
|
|
10
|
+
//# sourceMappingURL=expomodules.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { version as RNV } from 'react-native/Libraries/Core/ReactNativeVersion';
|
|
2
|
+
import type * as ReactNative from '../vendor/react-native';
|
|
3
|
+
export type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
|
+
export type { EmitterSubscription } from 'react-native/Libraries/vendor/emitter/EventEmitter';
|
|
5
|
+
export interface ReactNativeLibrariesInterface {
|
|
6
|
+
Devtools?: {
|
|
7
|
+
parseErrorStack: (errorStack: string) => Array<ReactNative.StackFrame>;
|
|
8
|
+
symbolicateStackTrace: (stack: Array<ReactNative.StackFrame>, extraData?: Record<string, unknown>) => Promise<ReactNative.SymbolicatedStackTrace>;
|
|
9
|
+
getDevServer: () => ReactNative.DevServerInfo;
|
|
10
|
+
};
|
|
11
|
+
Utilities?: {
|
|
12
|
+
polyfillGlobal: <T>(name: string, getValue: () => T) => void;
|
|
13
|
+
};
|
|
14
|
+
Promise?: typeof Promise;
|
|
15
|
+
ReactNativeVersion?: {
|
|
16
|
+
version: typeof RNV;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=rnlibrariesinterface.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { InternalGlobal } from '@sentry/utils';
|
|
2
2
|
import type { ErrorUtils } from 'react-native/types';
|
|
3
|
+
import type { ExpoGlobalObject } from './expoglobalobject';
|
|
3
4
|
/** Internal Global object interface with common and Sentry specific properties */
|
|
4
5
|
export interface ReactNativeInternalGlobal extends InternalGlobal {
|
|
5
6
|
__sentry_rn_v4_registered?: boolean;
|
|
@@ -11,7 +12,7 @@ export interface ReactNativeInternalGlobal extends InternalGlobal {
|
|
|
11
12
|
__turboModuleProxy: unknown;
|
|
12
13
|
nativeFabricUIManager: unknown;
|
|
13
14
|
ErrorUtils?: ErrorUtils;
|
|
14
|
-
expo
|
|
15
|
+
expo?: ExpoGlobalObject;
|
|
15
16
|
}
|
|
16
17
|
/** Get's the global object for the current JavaScript runtime */
|
|
17
18
|
export declare const RN_GLOBAL_OBJ: ReactNativeInternalGlobal;
|
|
@@ -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 = "5.16.0-alpha.
|
|
3
|
+
export declare const SDK_VERSION = "5.16.0-alpha.3";
|
|
4
4
|
//# sourceMappingURL=version.d.ts.map
|