Skip to content

Commit 14d27a7

Browse files
github-actions[bot]web-flowkrystofwoldrich
authored
chore(deps): update JavaScript SDK to v7.31.1 (#2738)
Co-authored-by: GitHub <[email protected]> Co-authored-by: Krystof Woldrich <[email protected]>
1 parent bfa818c commit 14d27a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+467
-228
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = {
1414
},
1515
ignorePatterns: [
1616
'test/react-native/versions/*',
17+
'coverage/**/*',
1718
],
1819
overrides: [
1920
{
@@ -58,5 +59,7 @@ module.exports = {
5859
rules: {
5960
// Bundle size isn't too much of an issue for React Native.
6061
'@sentry-internal/sdk/no-async-await': 'off',
62+
'@sentry-internal/sdk/no-optional-chaining': 'off',
63+
'@sentry-internal/sdk/no-nullish-coalescing': 'off',
6164
},
6265
};

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
- Bump Android SDK from v6.11.0 to v6.12.1 ([#2755](https://github.com/getsentry/sentry-react-native/pull/2755))
88
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6121)
99
- [diff](https://github.com/getsentry/sentry-java/compare/6.11.0...6.12.1)
10+
- Bump JavaScript SDK from v7.29.0 to v7.31.1 ([#2738](https://github.com/getsentry/sentry-react-native/pull/2738))
11+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7311)
12+
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.29.0...7.31.1)
1013

1114
## 4.13.0
1215

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@
4242
"react-native": ">=0.56.0"
4343
},
4444
"dependencies": {
45-
"@sentry/browser": "7.29.0",
45+
"@sentry/browser": "7.31.1",
4646
"@sentry/cli": "1.74.4",
47-
"@sentry/core": "7.29.0",
48-
"@sentry/hub": "7.29.0",
49-
"@sentry/integrations": "7.29.0",
50-
"@sentry/react": "7.29.0",
51-
"@sentry/tracing": "7.29.0",
52-
"@sentry/types": "7.29.0",
53-
"@sentry/utils": "7.29.0",
47+
"@sentry/core": "7.31.1",
48+
"@sentry/hub": "7.31.1",
49+
"@sentry/integrations": "7.31.1",
50+
"@sentry/react": "7.31.1",
51+
"@sentry/tracing": "7.31.1",
52+
"@sentry/types": "7.31.1",
53+
"@sentry/utils": "7.31.1",
5454
"@sentry/wizard": "1.4.0"
5555
},
5656
"devDependencies": {
57-
"@sentry-internal/eslint-config-sdk": "7.29.0",
58-
"@sentry-internal/eslint-plugin-sdk": "7.29.0",
57+
"@sentry-internal/eslint-config-sdk": "7.31.1",
58+
"@sentry-internal/eslint-plugin-sdk": "7.31.1",
5959
"@sentry/typescript": "^5.20.1",
6060
"@types/jest": "^26.0.15",
6161
"@types/react": "^18.0.25",

src/js/client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { BrowserClient, defaultStackParser, makeFetchTransport } from '@sentry/browser';
2-
import { FetchImpl } from '@sentry/browser/types/transports/utils';
2+
import type { FetchImpl } from '@sentry/browser/types/transports/utils';
33
import { BaseClient } from '@sentry/core';
4-
import {
4+
import type {
55
ClientReportEnvelope,
66
ClientReportItem,
77
Envelope,
@@ -18,7 +18,7 @@ import { Alert, LogBox, YellowBox } from 'react-native';
1818

1919
import { Screenshot } from './integrations/screenshot';
2020
import { defaultSdkInfo } from './integrations/sdkinfo';
21-
import { ReactNativeClientOptions, ReactNativeTransportOptions } from './options';
21+
import type { ReactNativeClientOptions, ReactNativeTransportOptions } from './options';
2222
import { makeReactNativeTransport } from './transports/native';
2323
import { createUserFeedbackEnvelope, items } from './utils/envelope';
2424
import { mergeOutcomes } from './utils/outcome';

src/js/definitions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Breadcrumb, Package } from '@sentry/types';
1+
import type { Breadcrumb, Package } from '@sentry/types';
22

3-
import { ReactNativeOptions } from './options';
3+
import type { ReactNativeOptions } from './options';
44

55
export type NativeAppStartResponse = {
66
isColdStart: boolean;

src/js/integrations/debugsymbolicator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';
2-
import { Event, EventHint, Integration, StackFrame } from '@sentry/types';
2+
import type { Event, EventHint, Integration, StackFrame } from '@sentry/types';
33
import { addContextToFrame, logger } from '@sentry/utils';
44

55
const INTERNAL_CALLSITES_REGEX = new RegExp(

src/js/integrations/devicecontext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';
2-
import { Contexts, Event, Integration } from '@sentry/types';
2+
import type { Contexts, Event, Integration } from '@sentry/types';
33
import { logger } from '@sentry/utils';
44

55
import { NATIVE } from '../wrapper';

src/js/integrations/eventorigin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EventProcessor, Integration } from '@sentry/types';
1+
import type { EventProcessor, Integration } from '@sentry/types';
22

33
/** Default EventOrigin instrumentation */
44
export class EventOrigin implements Integration {

src/js/integrations/modulesloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Event,EventProcessor, Integration } from '@sentry/types';
1+
import type { Event,EventProcessor, Integration } from '@sentry/types';
22
import { logger } from '@sentry/utils';
33

44
import { NATIVE } from '../wrapper';

src/js/integrations/reactnativeerrorhandlers.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getCurrentHub } from '@sentry/core';
2-
import { EventHint, Integration, SeverityLevel } from '@sentry/types';
2+
import type { EventHint, Integration, SeverityLevel } from '@sentry/types';
33
import { addExceptionMechanism, logger } from '@sentry/utils';
44

5-
import { ReactNativeClient } from '../client';
5+
import type { ReactNativeClient } from '../client';
66
import { RN_GLOBAL_OBJ } from '../utils/worldwide';
77

88
/** ReactNativeErrorHandlers Options */
@@ -17,9 +17,6 @@ interface PromiseRejectionTrackingOptions {
1717
onHandled: (id: string) => void;
1818
}
1919

20-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
21-
declare const global: any;
22-
2320
/** ReactNativeErrorHandlers Integration */
2421
export class ReactNativeErrorHandlers implements Integration {
2522
/**

0 commit comments

Comments
 (0)