@sentry/react-native 7.0.0-beta.0 → 7.0.0-beta.2

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 (138) hide show
  1. package/RNSentry.podspec +10 -3
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +42 -0
  4. package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
  5. package/android/src/newarch/java/io/sentry/react/replay/RNSentryReplayUnmaskManager.java +2 -2
  6. package/dist/js/client.d.ts +1 -0
  7. package/dist/js/client.d.ts.map +1 -1
  8. package/dist/js/client.js +16 -2
  9. package/dist/js/client.js.map +1 -1
  10. package/dist/js/feedback/FeedbackWidget.d.ts +2 -0
  11. package/dist/js/feedback/FeedbackWidget.d.ts.map +1 -1
  12. package/dist/js/feedback/FeedbackWidget.js +39 -21
  13. package/dist/js/feedback/FeedbackWidget.js.map +1 -1
  14. package/dist/js/feedback/ScreenshotButton.js +1 -1
  15. package/dist/js/feedback/ScreenshotButton.js.map +1 -1
  16. package/dist/js/index.d.ts +1 -0
  17. package/dist/js/index.d.ts.map +1 -1
  18. package/dist/js/index.js +1 -0
  19. package/dist/js/index.js.map +1 -1
  20. package/dist/js/integrations/default.d.ts.map +1 -1
  21. package/dist/js/integrations/default.js +4 -3
  22. package/dist/js/integrations/default.js.map +1 -1
  23. package/dist/js/integrations/exports.d.ts +1 -0
  24. package/dist/js/integrations/exports.d.ts.map +1 -1
  25. package/dist/js/integrations/exports.js +1 -0
  26. package/dist/js/integrations/exports.js.map +1 -1
  27. package/dist/js/integrations/primitiveTagIntegration.d.ts +16 -0
  28. package/dist/js/integrations/primitiveTagIntegration.d.ts.map +1 -0
  29. package/dist/js/integrations/primitiveTagIntegration.js +35 -0
  30. package/dist/js/integrations/primitiveTagIntegration.js.map +1 -0
  31. package/dist/js/integrations/reactnativeinfo.js +1 -1
  32. package/dist/js/integrations/reactnativeinfo.js.map +1 -1
  33. package/dist/js/options.d.ts +14 -2
  34. package/dist/js/options.d.ts.map +1 -1
  35. package/dist/js/options.js +2 -3
  36. package/dist/js/options.js.map +1 -1
  37. package/dist/js/playground/animations.d.ts +4 -0
  38. package/dist/js/playground/animations.d.ts.map +1 -0
  39. package/dist/js/playground/animations.js +4 -0
  40. package/dist/js/playground/animations.js.map +1 -0
  41. package/dist/js/playground/examples.d.ts +13 -0
  42. package/dist/js/playground/examples.d.ts.map +1 -0
  43. package/dist/js/playground/examples.js +35 -0
  44. package/dist/js/playground/examples.js.map +1 -0
  45. package/dist/js/playground/images.d.ts +4 -0
  46. package/dist/js/playground/images.d.ts.map +1 -0
  47. package/dist/js/playground/images.js +4 -0
  48. package/dist/js/playground/images.js.map +1 -0
  49. package/dist/js/playground/index.d.ts +2 -0
  50. package/dist/js/playground/index.d.ts.map +1 -0
  51. package/dist/js/playground/index.js +2 -0
  52. package/dist/js/playground/index.js.map +1 -0
  53. package/dist/js/playground/modal.d.ts +29 -0
  54. package/dist/js/playground/modal.d.ts.map +1 -0
  55. package/dist/js/playground/modal.js +259 -0
  56. package/dist/js/playground/modal.js.map +1 -0
  57. package/dist/js/scopeSync.js +2 -2
  58. package/dist/js/scopeSync.js.map +1 -1
  59. package/dist/js/sdk.d.ts.map +1 -1
  60. package/dist/js/sdk.js +9 -7
  61. package/dist/js/sdk.js.map +1 -1
  62. package/dist/js/tools/metroconfig.d.ts +6 -0
  63. package/dist/js/tools/metroconfig.d.ts.map +1 -1
  64. package/dist/js/tools/metroconfig.js +5 -3
  65. package/dist/js/tools/metroconfig.js.map +1 -1
  66. package/dist/js/tools/sentryMetroSerializer.d.ts +1 -1
  67. package/dist/js/tools/sentryMetroSerializer.d.ts.map +1 -1
  68. package/dist/js/tools/sentryMetroSerializer.js +6 -42
  69. package/dist/js/tools/sentryMetroSerializer.js.map +1 -1
  70. package/dist/js/tools/sentryReleaseInjector.d.ts +10 -0
  71. package/dist/js/tools/sentryReleaseInjector.d.ts.map +1 -0
  72. package/dist/js/tools/sentryReleaseInjector.js +30 -0
  73. package/dist/js/tools/sentryReleaseInjector.js.map +1 -0
  74. package/dist/js/tools/utils.d.ts +18 -1
  75. package/dist/js/tools/utils.d.ts.map +1 -1
  76. package/dist/js/tools/utils.js +69 -1
  77. package/dist/js/tools/utils.js.map +1 -1
  78. package/dist/js/tracing/integrations/appStart.d.ts +7 -1
  79. package/dist/js/tracing/integrations/appStart.d.ts.map +1 -1
  80. package/dist/js/tracing/integrations/appStart.js +60 -9
  81. package/dist/js/tracing/integrations/appStart.js.map +1 -1
  82. package/dist/js/tracing/span.js +3 -3
  83. package/dist/js/tracing/span.js.map +1 -1
  84. package/dist/js/utils/environment.js +3 -3
  85. package/dist/js/utils/environment.js.map +1 -1
  86. package/dist/js/utils/expoglobalobject.d.ts +2 -1
  87. package/dist/js/utils/expoglobalobject.d.ts.map +1 -1
  88. package/dist/js/utils/expoglobalobject.js.map +1 -1
  89. package/dist/js/utils/expomodules.d.ts +5 -1
  90. package/dist/js/utils/expomodules.d.ts.map +1 -1
  91. package/dist/js/utils/expomodules.js +7 -0
  92. package/dist/js/utils/expomodules.js.map +1 -1
  93. package/dist/js/utils/primitiveConverter.d.ts +6 -0
  94. package/dist/js/utils/primitiveConverter.d.ts.map +1 -0
  95. package/dist/js/utils/primitiveConverter.js +24 -0
  96. package/dist/js/utils/primitiveConverter.js.map +1 -0
  97. package/dist/js/utils/release.d.ts +9 -0
  98. package/dist/js/utils/release.d.ts.map +1 -0
  99. package/dist/js/utils/release.js +29 -0
  100. package/dist/js/utils/release.js.map +1 -0
  101. package/dist/js/utils/worldwide.d.ts +6 -0
  102. package/dist/js/utils/worldwide.d.ts.map +1 -1
  103. package/dist/js/utils/worldwide.js.map +1 -1
  104. package/dist/js/version.d.ts +1 -1
  105. package/dist/js/version.js +1 -1
  106. package/dist/js/version.js.map +1 -1
  107. package/dist/js/wrapper.d.ts +6 -2
  108. package/dist/js/wrapper.d.ts.map +1 -1
  109. package/dist/js/wrapper.js +17 -2
  110. package/dist/js/wrapper.js.map +1 -1
  111. package/ios/RNSentry.mm +92 -3
  112. package/ios/RNSentryExperimentalOptions.h +26 -0
  113. package/ios/RNSentryExperimentalOptions.m +22 -0
  114. package/ios/RNSentryVersion.m +1 -1
  115. package/package.json +3 -3
  116. package/plugin/build/withSentryAndroidGradlePlugin.d.ts +1 -0
  117. package/plugin/build/withSentryAndroidGradlePlugin.js +3 -3
  118. package/react-native.config.js +4 -4
  119. package/scripts/sentry_utils.rb +5 -0
  120. package/ts3.8/dist/js/client.d.ts +1 -0
  121. package/ts3.8/dist/js/feedback/FeedbackWidget.d.ts +2 -0
  122. package/ts3.8/dist/js/index.d.ts +2 -0
  123. package/ts3.8/dist/js/integrations/exports.d.ts +1 -0
  124. package/ts3.8/dist/js/integrations/primitiveTagIntegration.d.ts +16 -0
  125. package/ts3.8/dist/js/options.d.ts +14 -2
  126. package/ts3.8/dist/js/playground/animations.d.ts +4 -0
  127. package/ts3.8/dist/js/playground/examples.d.ts +13 -0
  128. package/ts3.8/dist/js/playground/images.d.ts +4 -0
  129. package/ts3.8/dist/js/playground/index.d.ts +2 -0
  130. package/ts3.8/dist/js/playground/modal.d.ts +29 -0
  131. package/ts3.8/dist/js/tracing/integrations/appStart.d.ts +7 -1
  132. package/ts3.8/dist/js/utils/expoglobalobject.d.ts +2 -1
  133. package/ts3.8/dist/js/utils/expomodules.d.ts +5 -1
  134. package/ts3.8/dist/js/utils/primitiveConverter.d.ts +6 -0
  135. package/ts3.8/dist/js/utils/release.d.ts +9 -0
  136. package/ts3.8/dist/js/utils/worldwide.d.ts +6 -0
  137. package/ts3.8/dist/js/version.d.ts +1 -1
  138. package/ts3.8/dist/js/wrapper.d.ts +6 -2
@@ -1,10 +1,12 @@
1
1
  import type { makeFetchTransport } from '@sentry/browser';
2
2
  import type { CaptureContext, ClientOptions, Event, EventHint, Options } from '@sentry/core';
3
- import type { Profiler } from '@sentry/react';
3
+ import type { BrowserOptions, Profiler } from '@sentry/react';
4
4
  import type * as React from 'react';
5
5
  import type { TouchEventBoundaryProps } from './touchevents';
6
6
  type ProfilerProps = React.ComponentProps<typeof Profiler>;
7
7
  type BrowserTransportOptions = Parameters<typeof makeFetchTransport>[0];
8
+ type BrowserExperiments = NonNullable<BrowserOptions['_experiments']>;
9
+ type SharedExperimentsSubset = Pick<BrowserExperiments, 'enableLogs' | 'beforeSendLog'>;
8
10
  export interface BaseReactNativeOptions {
9
11
  /**
10
12
  * Enables native transport + device info + offline caching.
@@ -208,7 +210,7 @@ export interface BaseReactNativeOptions {
208
210
  /**
209
211
  * Options which are in beta, or otherwise not guaranteed to be stable.
210
212
  */
211
- _experiments?: {
213
+ _experiments?: SharedExperimentsSubset & {
212
214
  [key: string]: unknown;
213
215
  /**
214
216
  * @deprecated Use `replaysSessionSampleRate` in the options root instead.
@@ -222,6 +224,16 @@ export interface BaseReactNativeOptions {
222
224
  * This will be removed in the next major version.
223
225
  */
224
226
  replaysOnErrorSampleRate?: number;
227
+ /**
228
+ * Experiment: A more reliable way to report unhandled C++ exceptions in iOS.
229
+ *
230
+ * This approach hooks into all instances of the `__cxa_throw` function, which provides a more comprehensive and consistent exception handling across an app’s runtime, regardless of the number of C++ modules or how they’re linked. It helps in obtaining accurate stack traces.
231
+ *
232
+ * - Note: The mechanism of hooking into `__cxa_throw` could cause issues with symbolication on iOS due to caching of symbol references.
233
+ *
234
+ * @default false
235
+ */
236
+ enableUnhandledCPPExceptionsV2?: boolean;
225
237
  };
226
238
  /**
227
239
  * This options changes the placement of the attached stacktrace of `captureMessage` in the event.