@sentry/react-native 7.0.0-beta.0 → 7.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.
- package/RNSentry.podspec +10 -3
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java +6 -0
- package/android/src/main/java/io/sentry/react/RNSentryVersion.java +1 -1
- package/dist/js/client.d.ts +1 -0
- package/dist/js/client.d.ts.map +1 -1
- package/dist/js/client.js +16 -2
- package/dist/js/client.js.map +1 -1
- package/dist/js/feedback/FeedbackWidget.d.ts +2 -0
- package/dist/js/feedback/FeedbackWidget.d.ts.map +1 -1
- package/dist/js/feedback/FeedbackWidget.js +39 -21
- package/dist/js/feedback/FeedbackWidget.js.map +1 -1
- package/dist/js/feedback/ScreenshotButton.js +1 -1
- package/dist/js/feedback/ScreenshotButton.js.map +1 -1
- package/dist/js/index.d.ts +1 -0
- package/dist/js/index.d.ts.map +1 -1
- package/dist/js/index.js +1 -0
- package/dist/js/index.js.map +1 -1
- package/dist/js/integrations/default.js +2 -2
- package/dist/js/integrations/default.js.map +1 -1
- package/dist/js/options.d.ts +4 -2
- package/dist/js/options.d.ts.map +1 -1
- package/dist/js/options.js +2 -3
- package/dist/js/options.js.map +1 -1
- package/dist/js/playground/animations.d.ts +4 -0
- package/dist/js/playground/animations.d.ts.map +1 -0
- package/dist/js/playground/animations.js +4 -0
- package/dist/js/playground/animations.js.map +1 -0
- package/dist/js/playground/examples.d.ts +13 -0
- package/dist/js/playground/examples.d.ts.map +1 -0
- package/dist/js/playground/examples.js +35 -0
- package/dist/js/playground/examples.js.map +1 -0
- package/dist/js/playground/images.d.ts +4 -0
- package/dist/js/playground/images.d.ts.map +1 -0
- package/dist/js/playground/images.js +4 -0
- package/dist/js/playground/images.js.map +1 -0
- package/dist/js/playground/index.d.ts +2 -0
- package/dist/js/playground/index.d.ts.map +1 -0
- package/dist/js/playground/index.js +2 -0
- package/dist/js/playground/index.js.map +1 -0
- package/dist/js/playground/modal.d.ts +29 -0
- package/dist/js/playground/modal.d.ts.map +1 -0
- package/dist/js/playground/modal.js +259 -0
- package/dist/js/playground/modal.js.map +1 -0
- package/dist/js/sdk.d.ts.map +1 -1
- package/dist/js/sdk.js +5 -4
- package/dist/js/sdk.js.map +1 -1
- package/dist/js/tracing/integrations/appStart.d.ts +7 -1
- package/dist/js/tracing/integrations/appStart.d.ts.map +1 -1
- package/dist/js/tracing/integrations/appStart.js +60 -9
- package/dist/js/tracing/integrations/appStart.js.map +1 -1
- package/dist/js/tracing/span.js +3 -3
- package/dist/js/tracing/span.js.map +1 -1
- package/dist/js/utils/environment.js +3 -3
- package/dist/js/utils/environment.js.map +1 -1
- package/dist/js/utils/expoglobalobject.d.ts +2 -1
- package/dist/js/utils/expoglobalobject.d.ts.map +1 -1
- package/dist/js/utils/expoglobalobject.js.map +1 -1
- package/dist/js/utils/expomodules.d.ts +5 -1
- package/dist/js/utils/expomodules.d.ts.map +1 -1
- package/dist/js/utils/expomodules.js +7 -0
- package/dist/js/utils/expomodules.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/dist/js/wrapper.js +1 -1
- package/dist/js/wrapper.js.map +1 -1
- package/ios/RNSentryVersion.m +1 -1
- package/package.json +1 -1
- package/react-native.config.js +4 -4
- package/scripts/sentry_utils.rb +5 -0
- package/ts3.8/dist/js/client.d.ts +1 -0
- package/ts3.8/dist/js/feedback/FeedbackWidget.d.ts +2 -0
- package/ts3.8/dist/js/index.d.ts +1 -0
- package/ts3.8/dist/js/options.d.ts +4 -2
- package/ts3.8/dist/js/playground/animations.d.ts +4 -0
- package/ts3.8/dist/js/playground/examples.d.ts +13 -0
- package/ts3.8/dist/js/playground/images.d.ts +4 -0
- package/ts3.8/dist/js/playground/index.d.ts +2 -0
- package/ts3.8/dist/js/playground/modal.d.ts +29 -0
- package/ts3.8/dist/js/tracing/integrations/appStart.d.ts +7 -1
- package/ts3.8/dist/js/utils/expoglobalobject.d.ts +2 -1
- package/ts3.8/dist/js/utils/expomodules.d.ts +5 -1
- package/ts3.8/dist/js/version.d.ts +1 -1
package/ios/RNSentryVersion.m
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
NSString *const NATIVE_SDK_NAME = @"sentry.cocoa.react-native";
|
|
4
4
|
NSString *const REACT_NATIVE_SDK_NAME = @"sentry.javascript.react-native";
|
|
5
5
|
NSString *const REACT_NATIVE_SDK_PACKAGE_NAME = @"npm:@sentry/react-native";
|
|
6
|
-
NSString *const REACT_NATIVE_SDK_PACKAGE_VERSION = @"7.0.0-beta.
|
|
6
|
+
NSString *const REACT_NATIVE_SDK_PACKAGE_VERSION = @"7.0.0-beta.1";
|
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": "7.0.0-beta.
|
|
5
|
+
"version": "7.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",
|
package/react-native.config.js
CHANGED
package/scripts/sentry_utils.rb
CHANGED
|
@@ -31,3 +31,8 @@ end
|
|
|
31
31
|
def is_profiling_supported(rn_version)
|
|
32
32
|
return (rn_version[:major] >= 1 || (rn_version[:major] == 0 && rn_version[:minor] >= 69))
|
|
33
33
|
end
|
|
34
|
+
|
|
35
|
+
# Check if we need the old Folly flags (for RN < 0.80.0)
|
|
36
|
+
def should_use_folly_flags(rn_version)
|
|
37
|
+
return (rn_version[:major] == 0 && rn_version[:minor] < 80)
|
|
38
|
+
end
|
|
@@ -9,6 +9,7 @@ import type { ReactNativeClientOptions } from './options';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class ReactNativeClient extends BaseClient<ReactNativeClientOptions> {
|
|
11
11
|
private _outcomesBuffer;
|
|
12
|
+
private _logFlushIdleTimeout;
|
|
12
13
|
/**
|
|
13
14
|
* Creates a new React Native SDK instance.
|
|
14
15
|
* @param options Configuration options for this SDK.
|
|
@@ -32,5 +32,7 @@ export declare class FeedbackWidget extends React.Component<FeedbackWidgetProps,
|
|
|
32
32
|
private _saveFormState;
|
|
33
33
|
private _clearFormState;
|
|
34
34
|
private _hasScreenshot;
|
|
35
|
+
private _getUser;
|
|
36
|
+
private _showImageRetrievalDevelopmentNote;
|
|
35
37
|
}
|
|
36
38
|
//# sourceMappingURL=FeedbackWidget.d.ts.map
|
package/ts3.8/dist/js/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { Breadcrumb, SdkInfo, Event, Exception, SendFeedbackParams, SeverityLevel, Span, StackFrame, Stacktrace, Thread, User, UserFeedback, ErrorEvent, TransactionEvent, } from '@sentry/core';
|
|
2
2
|
export { addBreadcrumb, captureException, captureEvent, captureFeedback, captureMessage, Scope, setContext, setExtra, setExtras, setTag, setTags, setUser, startInactiveSpan, startSpan, startSpanManual, getActiveSpan, getRootSpan, withActiveSpan, suppressTracing, spanToJSON, spanIsSampled, setMeasurement, getCurrentScope, getGlobalScope, getIsolationScope, getClient, setCurrentClient, addEventProcessor, lastEventId, } from '@sentry/core';
|
|
3
3
|
export { ErrorBoundary, withErrorBoundary, createReduxEnhancer, Profiler, useProfiler, withProfiler, } from '@sentry/react';
|
|
4
|
+
export { logger, consoleLoggingIntegration } from '@sentry/browser';
|
|
4
5
|
export * from './integrations/exports';
|
|
5
6
|
export { SDK_NAME, SDK_VERSION } from './version';
|
|
6
7
|
export type { ReactNativeOptions } from './options';
|
|
@@ -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.
|