@sentry/react-native 6.0.0-alpha.2 → 6.0.0-beta.1

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.
Files changed (65) hide show
  1. package/android/src/main/java/io/sentry/react/RNSentryOnDrawReporterManager.java +18 -1
  2. package/dist/js/client.d.ts.map +1 -1
  3. package/dist/js/client.js +3 -0
  4. package/dist/js/client.js.map +1 -1
  5. package/dist/js/integrations/default.js +3 -3
  6. package/dist/js/integrations/default.js.map +1 -1
  7. package/dist/js/options.d.ts +5 -28
  8. package/dist/js/options.d.ts.map +1 -1
  9. package/dist/js/options.js.map +1 -1
  10. package/dist/js/profiling/integration.d.ts.map +1 -1
  11. package/dist/js/profiling/integration.js +1 -3
  12. package/dist/js/profiling/integration.js.map +1 -1
  13. package/dist/js/tools/metroconfig.d.ts +11 -2
  14. package/dist/js/tools/metroconfig.d.ts.map +1 -1
  15. package/dist/js/tools/metroconfig.js +42 -2
  16. package/dist/js/tools/metroconfig.js.map +1 -1
  17. package/dist/js/touchevents.d.ts.map +1 -1
  18. package/dist/js/touchevents.js +6 -2
  19. package/dist/js/touchevents.js.map +1 -1
  20. package/dist/js/tracing/gesturetracing.d.ts.map +1 -1
  21. package/dist/js/tracing/gesturetracing.js +6 -2
  22. package/dist/js/tracing/gesturetracing.js.map +1 -1
  23. package/dist/js/tracing/integrations/appStart.d.ts +14 -0
  24. package/dist/js/tracing/integrations/appStart.d.ts.map +1 -1
  25. package/dist/js/tracing/integrations/appStart.js +32 -2
  26. package/dist/js/tracing/integrations/appStart.js.map +1 -1
  27. package/dist/js/tracing/integrations/userInteraction.js +2 -2
  28. package/dist/js/tracing/integrations/userInteraction.js.map +1 -1
  29. package/dist/js/tracing/origin.d.ts +8 -0
  30. package/dist/js/tracing/origin.d.ts.map +1 -1
  31. package/dist/js/tracing/origin.js +8 -0
  32. package/dist/js/tracing/origin.js.map +1 -1
  33. package/dist/js/tracing/reactnativenavigation.d.ts.map +1 -1
  34. package/dist/js/tracing/reactnativenavigation.js +3 -1
  35. package/dist/js/tracing/reactnativenavigation.js.map +1 -1
  36. package/dist/js/tracing/reactnativeprofiler.js +3 -3
  37. package/dist/js/tracing/reactnativeprofiler.js.map +1 -1
  38. package/dist/js/tracing/reactnativetracing.d.ts.map +1 -1
  39. package/dist/js/tracing/reactnativetracing.js +8 -2
  40. package/dist/js/tracing/reactnativetracing.js.map +1 -1
  41. package/dist/js/tracing/reactnavigation.d.ts.map +1 -1
  42. package/dist/js/tracing/reactnavigation.js +4 -1
  43. package/dist/js/tracing/reactnavigation.js.map +1 -1
  44. package/dist/js/tracing/span.d.ts.map +1 -1
  45. package/dist/js/tracing/span.js +4 -3
  46. package/dist/js/tracing/span.js.map +1 -1
  47. package/dist/js/tracing/timetodisplay.d.ts +1 -0
  48. package/dist/js/tracing/timetodisplay.d.ts.map +1 -1
  49. package/dist/js/tracing/timetodisplay.js +16 -3
  50. package/dist/js/tracing/timetodisplay.js.map +1 -1
  51. package/dist/js/utils/environment.d.ts +2 -0
  52. package/dist/js/utils/environment.d.ts.map +1 -1
  53. package/dist/js/utils/environment.js +4 -0
  54. package/dist/js/utils/environment.js.map +1 -1
  55. package/dist/js/version.d.ts +1 -1
  56. package/dist/js/version.d.ts.map +1 -1
  57. package/dist/js/version.js +1 -1
  58. package/dist/js/version.js.map +1 -1
  59. package/package.json +10 -10
  60. package/ts3.8/dist/js/options.d.ts +5 -28
  61. package/ts3.8/dist/js/tracing/integrations/appStart.d.ts +14 -0
  62. package/ts3.8/dist/js/tracing/origin.d.ts +8 -0
  63. package/ts3.8/dist/js/tracing/timetodisplay.d.ts +1 -0
  64. package/ts3.8/dist/js/utils/environment.d.ts +2 -0
  65. package/ts3.8/dist/js/version.d.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/js/utils/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC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vC,IACE,OAAO,aAAa,CAAC,OAAO,KAAK,WAAW;QAC5C,aAAa,CAAC,OAAO,CAAC,GAAG;QACzB,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,KAAK,MAAM,EAClE;QACA,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import { Platform } from 'react-native';\n\nimport { RN_GLOBAL_OBJ } from '../utils/worldwide';\nimport { getExpoConstants } from './expomodules';\nimport { ReactNativeLibraries } from './rnlibraries';\n\n/** Checks if the React Native Hermes engine is running */\nexport function isHermesEnabled(): boolean {\n return !!RN_GLOBAL_OBJ.HermesInternal;\n}\n\n/** Checks if the React Native TurboModules are enabled */\nexport function isTurboModuleEnabled(): boolean {\n return RN_GLOBAL_OBJ.__turboModuleProxy != null;\n}\n\n/** Checks if the React Native Fabric renderer is running */\nexport function isFabricEnabled(): boolean {\n return RN_GLOBAL_OBJ.nativeFabricUIManager != null;\n}\n\n/** Returns React Native Version as semver string */\nexport function getReactNativeVersion(): string | undefined {\n if (!ReactNativeLibraries.ReactNativeVersion) {\n return undefined;\n }\n const RNV = ReactNativeLibraries.ReactNativeVersion.version;\n return `${RNV.major}.${RNV.minor}.${RNV.patch}${RNV.prerelease != null ? `-${RNV.prerelease}` : ''}`;\n}\n\n/** Checks if Expo is present in the runtime */\nexport function isExpo(): boolean {\n return RN_GLOBAL_OBJ.expo != null;\n}\n\n/** Check if JS runs in Expo Go */\nexport function isExpoGo(): boolean {\n const expoConstants = getExpoConstants();\n return (expoConstants && expoConstants.appOwnership) === 'expo';\n}\n\n/** Check Expo Go version if available */\nexport function getExpoGoVersion(): string | undefined {\n const expoConstants = getExpoConstants();\n return typeof expoConstants?.expoVersion === 'string' ? expoConstants.expoVersion : undefined;\n}\n\n/** Returns Expo SDK version if available */\nexport function getExpoSdkVersion(): string | undefined {\n const expoConstants = getExpoConstants();\n const [, expoSdkVersion] =\n typeof expoConstants?.manifest?.runtimeVersion === 'string' ? expoConstants.manifest.runtimeVersion.split(':') : [];\n return expoSdkVersion;\n}\n\n/** Checks if the current platform is not web */\nexport function notWeb(): boolean {\n return Platform.OS !== 'web';\n}\n\n/** Checks if the current platform is supported mobile platform (iOS or Android) */\nexport function isMobileOs(): boolean {\n return Platform.OS === 'ios' || Platform.OS === 'android';\n}\n\n/** Checks if the current platform is not supported mobile platform (iOS or Android) */\nexport function notMobileOs(): boolean {\n return !isMobileOs();\n}\n\n/** Returns Hermes Version if hermes is present in the runtime */\nexport function getHermesVersion(): string | undefined {\n return (\n RN_GLOBAL_OBJ.HermesInternal &&\n RN_GLOBAL_OBJ.HermesInternal.getRuntimeProperties &&\n RN_GLOBAL_OBJ.HermesInternal.getRuntimeProperties()['OSS Release Version']\n );\n}\n\n/** Returns default environment based on __DEV__ */\nexport function getDefaultEnvironment(): 'development' | 'production' {\n return typeof __DEV__ !== 'undefined' && __DEV__ ? 'development' : 'production';\n}\n\n/** Check if SDK runs in Metro Dev Server side */\nexport function isRunningInMetroDevServer(): boolean {\n if (\n typeof RN_GLOBAL_OBJ.process !== 'undefined' &&\n RN_GLOBAL_OBJ.process.env &&\n RN_GLOBAL_OBJ.process.env.___SENTRY_METRO_DEV_SERVER___ === 'true'\n ) {\n return true;\n }\n return false;\n}\n"]}
1
+ {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/js/utils/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,0DAA0D;AAC1D,MAAM,UAAU,eAAe;IAC7B,OAAO,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC;AACxC,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,oBAAoB;IAClC,OAAO,aAAa,C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AAC","sourcesContent":["import { Platform } from 'react-native';\n\nimport { RN_GLOBAL_OBJ } from '../utils/worldwide';\nimport { getExpoConstants } from './expomodules';\nimport { ReactNativeLibraries } from './rnlibraries';\n\n/** Checks if the React Native Hermes engine is running */\nexport function isHermesEnabled(): boolean {\n return !!RN_GLOBAL_OBJ.HermesInternal;\n}\n\n/** Checks if the React Native TurboModules are enabled */\nexport function isTurboModuleEnabled(): boolean {\n return RN_GLOBAL_OBJ.__turboModuleProxy != null;\n}\n\n/** Checks if the React Native Fabric renderer is running */\nexport function isFabricEnabled(): boolean {\n return RN_GLOBAL_OBJ.nativeFabricUIManager != null;\n}\n\n/** Returns React Native Version as semver string */\nexport function getReactNativeVersion(): string | undefined {\n if (!ReactNativeLibraries.ReactNativeVersion) {\n return undefined;\n }\n const RNV = ReactNativeLibraries.ReactNativeVersion.version;\n return `${RNV.major}.${RNV.minor}.${RNV.patch}${RNV.prerelease != null ? `-${RNV.prerelease}` : ''}`;\n}\n\n/** Checks if Expo is present in the runtime */\nexport function isExpo(): boolean {\n return RN_GLOBAL_OBJ.expo != null;\n}\n\n/** Check if JS runs in Expo Go */\nexport function isExpoGo(): boolean {\n const expoConstants = getExpoConstants();\n return (expoConstants && expoConstants.appOwnership) === 'expo';\n}\n\n/** Check Expo Go version if available */\nexport function getExpoGoVersion(): string | undefined {\n const expoConstants = getExpoConstants();\n return typeof expoConstants?.expoVersion === 'string' ? expoConstants.expoVersion : undefined;\n}\n\n/** Returns Expo SDK version if available */\nexport function getExpoSdkVersion(): string | undefined {\n const expoConstants = getExpoConstants();\n const [, expoSdkVersion] =\n typeof expoConstants?.manifest?.runtimeVersion === 'string' ? expoConstants.manifest.runtimeVersion.split(':') : [];\n return expoSdkVersion;\n}\n\n/** Checks if the current platform is web */\nexport function isWeb(): boolean {\n return Platform.OS === 'web';\n}\n\n/** Checks if the current platform is not web */\nexport function notWeb(): boolean {\n return Platform.OS !== 'web';\n}\n\n/** Checks if the current platform is supported mobile platform (iOS or Android) */\nexport function isMobileOs(): boolean {\n return Platform.OS === 'ios' || Platform.OS === 'android';\n}\n\n/** Checks if the current platform is not supported mobile platform (iOS or Android) */\nexport function notMobileOs(): boolean {\n return !isMobileOs();\n}\n\n/** Returns Hermes Version if hermes is present in the runtime */\nexport function getHermesVersion(): string | undefined {\n return (\n RN_GLOBAL_OBJ.HermesInternal &&\n RN_GLOBAL_OBJ.HermesInternal.getRuntimeProperties &&\n RN_GLOBAL_OBJ.HermesInternal.getRuntimeProperties()['OSS Release Version']\n );\n}\n\n/** Returns default environment based on __DEV__ */\nexport function getDefaultEnvironment(): 'development' | 'production' {\n return typeof __DEV__ !== 'undefined' && __DEV__ ? 'development' : 'production';\n}\n\n/** Check if SDK runs in Metro Dev Server side */\nexport function isRunningInMetroDevServer(): boolean {\n if (\n typeof RN_GLOBAL_OBJ.process !== 'undefined' &&\n RN_GLOBAL_OBJ.process.env &&\n RN_GLOBAL_OBJ.process.env.___SENTRY_METRO_DEV_SERVER___ === 'true'\n ) {\n return true;\n }\n return false;\n}\n"]}
@@ -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 = "6.0.0-alpha.2";
3
+ export declare const SDK_VERSION = "6.0.0-beta.1";
4
4
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6BAA6B,CAAC;AAC3D,eAAO,MAAM,QAAQ,mCAAmC,CAAC;AACzD,eAAO,MAAM,WAAW,kBAAkB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6BAA6B,CAAC;AAC3D,eAAO,MAAM,QAAQ,mCAAmC,CAAC;AACzD,eAAO,MAAM,WAAW,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export const SDK_PACKAGE_NAME = 'npm:@sentry/react-native';
2
2
  export const SDK_NAME = 'sentry.javascript.react-native';
3
- export const SDK_VERSION = '6.0.0-alpha.2';
3
+ export const SDK_VERSION = '6.0.0-beta.1';
4
4
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AAC3D,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC","sourcesContent":["export const SDK_PACKAGE_NAME = 'npm:@sentry/react-native';\nexport const SDK_NAME = 'sentry.javascript.react-native';\nexport const SDK_VERSION = '6.0.0-alpha.2';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/js/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AAC3D,MAAM,CAAC,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC","sourcesContent":["export const SDK_PACKAGE_NAME = 'npm:@sentry/react-native';\nexport const SDK_NAME = 'sentry.javascript.react-native';\nexport const SDK_VERSION = '6.0.0-beta.1';\n"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sentry/react-native",
3
3
  "homepage": "https://github.com/getsentry/sentry-react-native",
4
4
  "repository": "https://github.com/getsentry/sentry-react-native",
5
- "version": "6.0.0-alpha.2",
5
+ "version": "6.0.0-beta.1",
6
6
  "description": "Official Sentry SDK for react-native",
7
7
  "typings": "dist/js/index.d.ts",
8
8
  "types": "dist/js/index.d.ts",
@@ -66,20 +66,20 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@sentry/babel-plugin-component-annotate": "2.20.1",
69
- "@sentry/browser": "8.27.0",
70
- "@sentry/cli": "2.34.0",
71
- "@sentry/core": "8.27.0",
72
- "@sentry/react": "8.27.0",
73
- "@sentry/types": "8.27.0",
74
- "@sentry/utils": "8.27.0"
69
+ "@sentry/browser": "8.30.0",
70
+ "@sentry/cli": "2.36.1",
71
+ "@sentry/core": "8.30.0",
72
+ "@sentry/react": "8.30.0",
73
+ "@sentry/types": "8.30.0",
74
+ "@sentry/utils": "8.30.0"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@babel/core": "^7.23.5",
78
78
  "@expo/metro-config": "0.17.5",
79
79
  "@mswjs/interceptors": "^0.25.15",
80
- "@sentry-internal/eslint-config-sdk": "8.27.0",
81
- "@sentry-internal/eslint-plugin-sdk": "8.27.0",
82
- "@sentry-internal/typescript": "8.27.0",
80
+ "@sentry-internal/eslint-config-sdk": "8.30.0",
81
+ "@sentry-internal/eslint-plugin-sdk": "8.30.0",
82
+ "@sentry-internal/typescript": "8.30.0",
83
83
  "@sentry/wizard": "3.16.3",
84
84
  "@testing-library/react-native": "^12.6.1",
85
85
  "@types/jest": "^29.5.3",
@@ -137,29 +137,6 @@ export interface BaseReactNativeOptions {
137
137
  * @default false
138
138
  */
139
139
  enableCaptureFailedRequests?: boolean;
140
- /**
141
- * This option will enable forwarding captured Sentry events to Spotlight.
142
- *
143
- * More details: https://spotlightjs.com/
144
- *
145
- * IMPORTANT: Only set this option to `true` while developing, not in production!
146
- *
147
- * @deprecated Use `spotlight` instead.
148
- */
149
- enableSpotlight?: boolean;
150
- /**
151
- * This option changes the default Spotlight Sidecar URL.
152
- *
153
- * By default, the SDK expects the Sidecar to be running
154
- * on the same host as React Native Metro Dev Server.
155
- *
156
- * More details: https://spotlightjs.com/
157
- *
158
- * @default "http://localhost:8969/stream"
159
- *
160
- * @deprecated Use `spotlight` instead.
161
- */
162
- spotlightSidecarUrl?: string;
163
140
  /**
164
141
  * If you use Spotlight by Sentry during development, use
165
142
  * this option to forward captured Sentry events to Spotlight.
@@ -205,16 +182,16 @@ export interface BaseReactNativeOptions {
205
182
  * @default false
206
183
  */
207
184
  enableUserInteractionTracing?: boolean;
185
+ /**
186
+ * The sample rate for profiling
187
+ * 1.0 will profile all transactions and 0 will profile none.
188
+ */
189
+ profilesSampleRate?: number;
208
190
  /**
209
191
  * Options which are in beta, or otherwise not guaranteed to be stable.
210
192
  */
211
193
  _experiments?: {
212
194
  [key: string]: unknown;
213
- /**
214
- * The sample rate for profiling
215
- * 1.0 will profile all transactions and 0 will profile none.
216
- */
217
- profilesSampleRate?: number;
218
195
  /**
219
196
  * The sample rate for session-long replays.
220
197
  * 1.0 will record all sessions and 0 will record none.
@@ -7,11 +7,25 @@ export type AppStartIntegration = Integration & {
7
7
  * Used automatically by `Sentry.wrap` and `Sentry.ReactNativeProfiler`.
8
8
  */
9
9
  export declare function captureAppStart(): Promise<void>;
10
+ /**
11
+ * For internal use only.
12
+ *
13
+ * @private
14
+ */
15
+ export declare function _captureAppStart({ isManual }: {
16
+ isManual: boolean;
17
+ }): Promise<void>;
10
18
  /**
11
19
  * Sets the root component first constructor call timestamp.
12
20
  * Used automatically by `Sentry.wrap` and `Sentry.ReactNativeProfiler`.
13
21
  */
14
22
  export declare function setRootComponentCreationTimestampMs(timestampMs: number): void;
23
+ /**
24
+ * For internal use only.
25
+ *
26
+ * @private
27
+ */
28
+ export declare function _setRootComponentCreationTimestampMs(timestampMs: number): void;
15
29
  /**
16
30
  * For internal use only.
17
31
  *
@@ -1,2 +1,10 @@
1
1
  export declare const SPAN_ORIGIN_AUTO_INTERACTION = "auto.interaction";
2
+ export declare const SPAN_ORIGIN_MANUAL_INTERACTION = "manual.interaction";
3
+ export declare const SPAN_ORIGIN_MANUAL_APP_START = "manual.app.start";
4
+ export declare const SPAN_ORIGIN_AUTO_APP_START = "auto.app.start";
5
+ export declare const SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NATIVE_NAVIGATION = "auto.navigation.react_native_navigation";
6
+ export declare const SPAN_ORIGIN_AUTO_NAVIGATION_REACT_NAVIGATION = "auto.navigation.react_navigation";
7
+ export declare const SPAN_ORIGIN_AUTO_NAVIGATION_CUSTOM = "auto.navigation.custom";
8
+ export declare const SPAN_ORIGIN_AUTO_UI_TIME_TO_DISPLAY = "auto.ui.time_to_display";
9
+ export declare const SPAN_ORIGIN_MANUAL_UI_TIME_TO_DISPLAY = "manual.ui.time_to_display";
2
10
  //# sourceMappingURL=origin.d.ts.map
@@ -42,5 +42,6 @@ export declare function startTimeToInitialDisplaySpan(options?: Omit<StartSpanOp
42
42
  export declare function startTimeToFullDisplaySpan(options?: Omit<StartSpanOptions, 'op' | 'name'> & {
43
43
  name?: string;
44
44
  timeoutMs?: number;
45
+ isAutoInstrumented?: boolean;
45
46
  }): Span | undefined;
46
47
  //# sourceMappingURL=timetodisplay.d.ts.map
@@ -14,6 +14,8 @@ export declare function isExpoGo(): boolean;
14
14
  export declare function getExpoGoVersion(): string | undefined;
15
15
  /** Returns Expo SDK version if available */
16
16
  export declare function getExpoSdkVersion(): string | undefined;
17
+ /** Checks if the current platform is web */
18
+ export declare function isWeb(): boolean;
17
19
  /** Checks if the current platform is not web */
18
20
  export declare function notWeb(): boolean;
19
21
  /** Checks if the current platform is supported mobile platform (iOS or Android) */
@@ -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 = "6.0.0-alpha.2";
3
+ export declare const SDK_VERSION = "6.0.0-beta.1";
4
4
  //# sourceMappingURL=version.d.ts.map