Skip to content

Commit 0f0745c

Browse files
Merge remote-tracking branch 'origin/main' into kw-app-in-foreground
2 parents ce0ffb7 + 2ccadb5 commit 0f0745c

File tree

8 files changed

+166
-190
lines changed

8 files changed

+166
-190
lines changed

.github/workflows/codegen.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
platform: ["android"] # "ios" will be added after codegen is fixed
15+
platform: ["android", "ios"]
1616
include:
1717
- platform: android
1818
command: |
1919
cd sample-new-architecture/android
2020
./gradlew generateCodegenArtifactsFromSchema
21+
- platform: ios
22+
command: |
23+
cd sample-new-architecture/ios
24+
node ../node_modules/react-native/scripts/generate-codegen-artifacts.js \
25+
--path .. \
26+
--outputPath codegen
2127
steps:
2228
- uses: actions/checkout@v3
2329
- uses: actions/setup-node@v3

CHANGELOG.md

Lines changed: 67 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,67 @@
66

77
- Add App Context `in_foreground` ([#2826](https://github.com/getsentry/sentry-react-native/pull/2826))
88

9+
## 5.0.0
10+
11+
The React Native SDK version 5 supports both Legacy (from RN 0.65 and above) and New Architecture (from RN 0.69 and above) as well as the new React Native Gradle Plugin (introduced in RN 0.71). For detailed [migration guide visit our docs](https://docs.sentry.io/platforms/react-native/migration/#from-4x-to-5x).
12+
13+
### Features
14+
15+
- Add support for the RN New Architecture, backwards compatible RNSentry Turbo Module ([#2522](https://github.com/getsentry/sentry-react-native/pull/2522))
16+
- Add View Hierarchy to the crashed/errored events ([#2708](https://github.com/getsentry/sentry-react-native/pull/2708))
17+
- Send react native js engine, turbo module, fabric flags and component stack in Event contexts ([#2552](https://github.com/getsentry/sentry-react-native/pull/2552))
18+
- Sync `tags`, `extra`, `fingerprint`, `level`, `environment` and `breadcrumbs` from `sentry-cocoa` during event processing. ([#2713](https://github.com/getsentry/sentry-react-native/pull/2713))
19+
- `breadcrumb.level` value `log` is transformed to `debug` when syncing with native layers.
20+
- Remove `breadcrumb.level` value `critical` transformation to `fatal`.
21+
- Default `breadcrumb.level` is `info`
22+
23+
### Breaking changes
24+
25+
- Option `enableAutoPerformanceTracking` renamed to `enableAutoPerformanceTracing`
26+
- Option `enableOutOfMemoryTracking` renamed to `enableWatchdogTerminationTracking`
27+
- Remove link hooks (RN 0.68 and older) ([#2332](https://github.com/getsentry/sentry-react-native/pull/2332))
28+
- iOS min target 11, Android API min 21, min React Native version 0.65 ([#2522](https://github.com/getsentry/sentry-react-native/pull/2522), [#2687](https://github.com/getsentry/sentry-react-native/pull/2687))
29+
- New ReactNativeTracingOptions ([#2481](https://github.com/getsentry/sentry-react-native/pull/2481))
30+
- `idleTimeout` renamed to `idleTimeoutMs`
31+
- `maxTransactionDuration` renamed to `finalTimeoutMs`
32+
- `touchEventBoundaryProps.labelName` property instead of default `accessibilityLabel` fallback ([#2712](https://github.com/getsentry/sentry-react-native/pull/2712))
33+
- Message event current stack trace moved from `exception` to `threads` ([#2694](https://github.com/getsentry/sentry-react-native/pull/2694))
34+
35+
### Fixes
36+
37+
- Unreachable fallback to fetch transport if native is not available ([#2695](https://github.com/getsentry/sentry-react-native/pull/2695))
38+
39+
### Dependencies
40+
41+
- Bump Cocoa SDK from v7.31.5 to v8.0.0 ([#2756](https://github.com/getsentry/sentry-react-native/pull/2756))
42+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#800)
43+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/7.31.5...8.0.0)
44+
- Bump CLI from v1.74.4 to v2.10.0 ([#2669](https://github.com/getsentry/sentry-react-native/pull/2669))
45+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2100)
46+
- [diff](https://github.com/getsentry/sentry-cli/compare/1.74.4...2.10.0)
47+
48+
## 4.15.0
49+
50+
### Features
51+
52+
- Collect modules script for XCode builds supports NODE_BINARY to set path to node executable ([#2805](https://github.com/getsentry/sentry-react-native/pull/2805))
53+
54+
### Fixes
55+
56+
- React Native Error Handlers Integration doesn't crash if ErrorUtils are not available ([#2808](https://github.com/getsentry/sentry-react-native/pull/2808))
57+
58+
### Dependencies
59+
60+
- Bump Android SDK from v6.12.1 to v6.14.0 ([#2790](https://github.com/getsentry/sentry-react-native/pull/2790), [#2809](https://github.com/getsentry/sentry-react-native/pull/2809), [#2828](https://github.com/getsentry/sentry-react-native/pull/2828))
61+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6140)
62+
- [diff](https://github.com/getsentry/sentry-java/compare/6.12.1...6.14.0)
63+
- Bump Sample React Native from v0.71.0 to v0.71.1 ([#2767](https://github.com/getsentry/sentry-react-native/pull/2767))
64+
- [changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0711)
65+
- [diff](https://github.com/facebook/react-native/compare/v0.71.0...v0.71.1)
66+
- Bump JavaScript SDK from v7.32.1 to v7.37.2 ([#2785](https://github.com/getsentry/sentry-react-native/pull/2785), [#2799](https://github.com/getsentry/sentry-react-native/pull/2799), [#2818](https://github.com/getsentry/sentry-react-native/pull/2818))
67+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7372)
68+
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.32.1...7.37.2)
69+
970
## 5.0.0-rc.1
1071

1172
### Fixes
@@ -21,15 +82,15 @@
2182

2283
### Dependencies
2384

24-
- Bump Android SDK from v6.12.1 to v6.13.1 ([#2790](https://github.com/getsentry/sentry-react-native/pull/2790), [#2809](https://github.com/getsentry/sentry-react-native/pull/2809))
25-
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6131)
26-
- [diff](https://github.com/getsentry/sentry-java/compare/6.12.1...6.13.1)
85+
- Bump Android SDK from v6.12.1 to v6.14.0 ([#2790](https://github.com/getsentry/sentry-react-native/pull/2790), [#2809](https://github.com/getsentry/sentry-react-native/pull/2809), [#2828](https://github.com/getsentry/sentry-react-native/pull/2828))
86+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6140)
87+
- [diff](https://github.com/getsentry/sentry-java/compare/6.12.1...6.14.0)
2788
- Bump Sample React Native from v0.71.0 to v0.71.1 ([#2767](https://github.com/getsentry/sentry-react-native/pull/2767))
2889
- [changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0711)
2990
- [diff](https://github.com/facebook/react-native/compare/v0.71.0...v0.71.1)
30-
- Bump JavaScript SDK from v7.32.1 to v7.36.0 ([#2785](https://github.com/getsentry/sentry-react-native/pull/2785), [#2799](https://github.com/getsentry/sentry-react-native/pull/2799))
31-
- [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7360)
32-
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.32.1...7.36.0)
91+
- Bump JavaScript SDK from v7.32.1 to v7.37.2 ([#2785](https://github.com/getsentry/sentry-react-native/pull/2785), [#2799](https://github.com/getsentry/sentry-react-native/pull/2799), [#2818](https://github.com/getsentry/sentry-react-native/pull/2818))
92+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7372)
93+
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.32.1...7.37.2)
3394

3495
## 5.0.0-beta.1
3596

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ android {
4242

4343
dependencies {
4444
implementation 'com.facebook.react:react-native:+'
45-
api 'io.sentry:sentry-android:6.13.1'
45+
api 'io.sentry:sentry-android:6.14.0'
4646
}

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@sentry/react-native",
33
"homepage": "https://github.com/getsentry/sentry-react-native",
44
"repository": "https://github.com/getsentry/sentry-react-native",
5-
"version": "5.0.0-rc.1",
5+
"version": "5.0.0",
66
"description": "Official Sentry SDK for react-native",
77
"typings": "dist/js/index.d.ts",
88
"types": "dist/js/index.d.ts",
@@ -42,21 +42,21 @@
4242
"react-native": ">=0.65.0"
4343
},
4444
"dependencies": {
45-
"@sentry/browser": "7.36.0",
45+
"@sentry/browser": "7.37.2",
4646
"@sentry/cli": "2.10.0",
47-
"@sentry/core": "7.36.0",
48-
"@sentry/hub": "7.36.0",
49-
"@sentry/integrations": "7.36.0",
50-
"@sentry/react": "7.36.0",
51-
"@sentry/tracing": "7.36.0",
52-
"@sentry/types": "7.36.0",
53-
"@sentry/utils": "7.36.0"
47+
"@sentry/core": "7.37.2",
48+
"@sentry/hub": "7.37.2",
49+
"@sentry/integrations": "7.37.2",
50+
"@sentry/react": "7.37.2",
51+
"@sentry/tracing": "7.37.2",
52+
"@sentry/types": "7.37.2",
53+
"@sentry/utils": "7.37.2"
5454
},
5555
"devDependencies": {
56-
"@sentry-internal/eslint-config-sdk": "7.36.0",
57-
"@sentry-internal/eslint-plugin-sdk": "7.36.0",
56+
"@sentry-internal/eslint-config-sdk": "7.37.2",
57+
"@sentry-internal/eslint-plugin-sdk": "7.37.2",
5858
"@sentry/typescript": "^5.20.1",
59-
"@sentry/wizard": "2.2.0",
59+
"@sentry/wizard": "2.6.0",
6060
"@types/jest": "^29.2.5",
6161
"@types/react": "^18.0.25",
6262
"babel-jest": "^29.3.1",
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
/* eslint-disable deprecation/deprecation */
2-
import { LogBox, YellowBox } from 'react-native';
1+
import { LogBox } from 'react-native';
32

43
/**
5-
* This is a workaround for now using fetch on RN, this is a known issue in react-native and only generates a warning
6-
* YellowBox deprecated and replaced with with LogBox in RN 0.63
4+
* This is a workaround for using fetch on RN, this is a known issue in react-native and only generates a warning.
75
*/
86
export function ignoreRequireCycleLogs(): void {
9-
if (LogBox) {
10-
LogBox.ignoreLogs(['Require cycle:']);
11-
} else {
12-
YellowBox.ignoreWarnings(['Require cycle:']);
13-
}
7+
LogBox.ignoreLogs(['Require cycle:']);
148
}

src/js/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const SDK_PACKAGE_NAME = 'npm:@sentry/react-native';
22
export const SDK_NAME = 'sentry.javascript.react-native';
3-
export const SDK_VERSION = '5.0.0-rc.1';
3+
export const SDK_VERSION = '5.0.0';

test/client.rn.before.0.63.test.ts

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)