Skip to content

Commit 960186f

Browse files
Merge branch 'main' into 5.0.0
2 parents fe95540 + 675e538 commit 960186f

Some content is hidden

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

65 files changed

+508
-266
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
};

.github/workflows/e2e.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
platform: ['ios', 'android']
3232
include:
3333
- platform: ios
34-
runtime: '16.0'
34+
runtime: 'latest'
3535
device: 'iPhone 14'
3636
steps:
3737
- uses: actions/checkout@v3
@@ -89,9 +89,8 @@ jobs:
8989
mkdir -p DerivedData
9090
defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
9191
buildArgs=(
92-
'-destination' 'platform=iOS Simulator,name=${{ matrix.device }}'
92+
'-destination' 'platform=iOS Simulator,OS=${{ matrix.runtime }},name=${{ matrix.device }}'
9393
'ONLY_ACTIVE_ARCH=yes'
94-
'-sdk' 'iphonesimulator${{ matrix.runtime }}'
9594
'-derivedDataPath' $(cd "DerivedData" ; pwd -P)
9695
)
9796
echo "buildArgs = ${buildArgs[@]}"
@@ -242,7 +241,7 @@ jobs:
242241
build-type: ['dev', 'production']
243242
include:
244243
- platform: ios
245-
runtime: '16.0'
244+
runtime: 'latest'
246245
device: 'iPhone 14'
247246
# exclude all rn versions lower than 0.70.0 for new architecture
248247
exclude:
@@ -354,9 +353,9 @@ jobs:
354353
-workspace RnDiffApp.xcworkspace \
355354
-configuration "$CONFIG" \
356355
-scheme RnDiffApp \
357-
-destination 'platform=iOS Simulator,name=${{ matrix.device }}' \
356+
-destination 'platform=iOS Simulator,OS=${{ matrix.runtime }},name=${{ matrix.device }}' \
358357
ONLY_ACTIVE_ARCH=yes \
359-
-sdk 'iphonesimulator${{ matrix.runtime }}' \
358+
-sdk 'iphonesimulator' \
360359
-derivedDataPath "$derivedData" \
361360
build
362361

CHANGELOG.md

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

1821
## 5.0.0-alpha.11
1922

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@
4242
"react-native": ">=0.65.0"
4343
},
4444
"dependencies": {
45-
"@sentry/browser": "7.29.0",
45+
"@sentry/browser": "7.31.1",
4646
"@sentry/cli": "2.10.0",
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
},
5555
"devDependencies": {
56-
"@sentry-internal/eslint-config-sdk": "7.29.0",
57-
"@sentry-internal/eslint-plugin-sdk": "7.29.0",
56+
"@sentry-internal/eslint-config-sdk": "7.31.1",
57+
"@sentry-internal/eslint-plugin-sdk": "7.31.1",
5858
"@sentry/typescript": "^5.20.1",
5959
"@sentry/wizard": "2.2.0",
6060
"@types/jest": "^26.0.15",

src/js/NativeRNSentry.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { Package } from '@sentry/types';
2-
import { TurboModule, TurboModuleRegistry } from 'react-native';
1+
import type { Package } from '@sentry/types';
2+
import type { TurboModule} from 'react-native';
3+
import { TurboModuleRegistry } from 'react-native';
34
import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
45

56
// There has to be only one interface and it has to be named `Spec`

src/js/breadcrumb.ts

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

44
export const DEFAULT_BREADCRUMB_LEVEL: SeverityLevel = 'info';

src/js/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { eventFromException, eventFromMessage } from '@sentry/browser';
22
import { BaseClient } from '@sentry/core';
3-
import {
3+
import type {
44
ClientReportEnvelope,
55
ClientReportItem,
66
Envelope,
@@ -17,7 +17,7 @@ import { Alert } from 'react-native';
1717

1818
import { Screenshot } from './integrations/screenshot';
1919
import { defaultSdkInfo } from './integrations/sdkinfo';
20-
import { ReactNativeClientOptions } from './options';
20+
import type { ReactNativeClientOptions } from './options';
2121
import { createUserFeedbackEnvelope, items } from './utils/envelope';
2222
import { ignoreRequireCycleLogs } from './utils/ignorerequirecyclelogs';
2323
import { mergeOutcomes } from './utils/outcome';

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable complexity */
2-
import { Event, EventProcessor, Hub, Integration } from '@sentry/types';
2+
import type { Event, EventProcessor, Hub, Integration } from '@sentry/types';
33
import { logger, severityLevelFromString } from '@sentry/utils';
44

55
import { breadcrumbFromObject } from '../breadcrumb';
6-
import { NativeDeviceContextsResponse } from '../NativeRNSentry';
6+
import type { NativeDeviceContextsResponse } from '../NativeRNSentry';
77
import { NATIVE } from '../wrapper';
88

99
/** Load device context from native. */

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 {

0 commit comments

Comments
 (0)