Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
04b6c06
bump SDKs
lucas-zimerman Feb 14, 2025
0dc4bca
bump SDKs
lucas-zimerman Feb 14, 2025
382fef6
fix build
lucas-zimerman Feb 14, 2025
33af36c
fix tests
lucas-zimerman Feb 19, 2025
ad6a76c
fix tests
lucas-zimerman Feb 19, 2025
15342a2
fix lint errors
lucas-zimerman Feb 19, 2025
c267f9b
test ts 5.0
lucas-zimerman Feb 19, 2025
efea84f
rollback
lucas-zimerman Feb 19, 2025
65a10d5
Merge branch 'v7' into lz/bump/jsv9
lucas-zimerman Feb 24, 2025
028dbf9
fix merge conflict with yarn
lucas-zimerman Feb 25, 2025
a57459a
fix new lint issue
lucas-zimerman Feb 25, 2025
5de9867
sync yarn.lock with V7 branch and install new packages
lucas-zimerman Feb 26, 2025
ae65521
ensure we are using the JS version from the default node resolution
lucas-zimerman Feb 26, 2025
bd64169
update changelog with javascript version bump
lucas-zimerman Feb 26, 2025
39a81c7
fix check type (#4587)
lucas-zimerman Feb 25, 2025
3a4fd4c
add major changes to the SDK
lucas-zimerman Feb 26, 2025
d8088ad
fix lint
lucas-zimerman Feb 26, 2025
6f71cda
review check: fix changelog PR number / Fix wrapper incorrect null c…
lucas-zimerman Feb 26, 2025
55c1961
fix incorrect cli version
lucas-zimerman Feb 26, 2025
97853c6
fix lint
lucas-zimerman Feb 26, 2025
dc2e123
Merge branch 'v7' into lz/bump/jsv9
lucas-zimerman Feb 25, 2025
9a0b21e
remove shutdowntimeout from android / use newer wizard version
lucas-zimerman Mar 3, 2025
45ee6fa
rollback feedback test change, rollback jest version, fix safe test
lucas-zimerman Mar 14, 2025
816b506
return shutdowntimeout
lucas-zimerman Mar 14, 2025
25bf147
explain tracing sample rate
lucas-zimerman Mar 14, 2025
8584214
fix tracing extension test
lucas-zimerman Mar 14, 2025
a26497e
Merge branch 'v7' into lz/bump/jsv9
lucas-zimerman Mar 14, 2025
499e5a3
lint fix
lucas-zimerman Mar 14, 2025
578ad2c
update changelog
lucas-zimerman Mar 15, 2025
d7fe6c6
merge v7
lucas-zimerman Apr 7, 2025
b08c54f
fix yarn lock merge/ fix ts-jest version no longer exists / fix cor…
lucas-zimerman Apr 7, 2025
19197f3
fix lint on addTimeToInitialDisplay
lucas-zimerman Apr 7, 2025
709697c
fix issue with UIManager test
lucas-zimerman Apr 7, 2025
a5ddcda
moved major changes to the correct spot
lucas-zimerman Apr 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge v7
  • Loading branch information
lucas-zimerman committed Apr 7, 2025
commit d7fe6c6517ae0a8911367a60882f7115dd86d2da
144 changes: 144 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,150 @@ Version 7 of the Sentry React Native SDK primarily introduces API cleanup and ve

Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v6). Lower versions may continue to work, but may not support all features.

### Dependencies

- Bump Bundler Plugins from v3.2.2 to v3.2.4 ([#4693](https://github.com/getsentry/sentry-react-native/pull/4693), [#4707](https://github.com/getsentry/sentry-react-native/pull/4707))
- [changelog](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md#324)
- [diff](https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/3.2.2...3.2.4)
- Bump CLI from v2.42.4 to v2.43.0 ([#4692](https://github.com/getsentry/sentry-react-native/pull/4692))
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2430)
- [diff](https://github.com/getsentry/sentry-cli/compare/2.42.4...2.43.0)

## 6.11.0-beta.0

### Features

- Improve Warm App Start reporting on Android ([#4641](https://github.com/getsentry/sentry-react-native/pull/4641), [#4695](https://github.com/getsentry/sentry-react-native/pull/4695))
- Add `createTimeToInitialDisplay({useFocusEffect})` and `createTimeToFullDisplay({useFocusEffect})` to allow record full display on screen focus ([#4665](https://github.com/getsentry/sentry-react-native/pull/4665))
- Add support for measuring Time to Initial Display for already seen routes ([#4661](https://github.com/getsentry/sentry-react-native/pull/4661))
- Introduce `enableTimeToInitialDisplayForPreloadedRoutes` option to the React Navigation integration.

```js
Sentry.reactNavigationIntegration({
enableTimeToInitialDisplayForPreloadedRoutes: true,
});
```

- Add `useDispatchedActionData` option to the React Navigation integration to filter out navigation actions that should not create spans ([#4684](https://github.com/getsentry/sentry-react-native/pull/4684))
- For example `PRELOAD`, `SET_PARAMS`, `TOGGLE_DRAWER` and others.

```js
Sentry.reactNavigationIntegration({
useDispatchedActionData: true,
});
```

### Fixes

- Equalize TTID and TTFD duration when TTFD manual API is called and resolved before auto TTID ([#4680](https://github.com/getsentry/sentry-react-native/pull/4680))
- Avoid loading Sentry native components in Expo Go ([#4696](https://github.com/getsentry/sentry-react-native/pull/4696))

### Changes

- Change `gradle.projectsEvaluated` to `project.afterEvaluate` in the Sentry Gradle Plugin to fix tasks not being created when using `--configure-on-demand` ([#4687](https://github.com/getsentry/sentry-react-native/pull/4687))
- Remove `SENTRY_FORCE_FOREGROUND` from Xcode Scripts as the underlying `--force-foreground` Sentry CLI is no-op since v2.37.0 ([#4689](https://github.com/getsentry/sentry-react-native/pull/4689))
- TTID and TTFD use native getters instead od events to pass timestamps to the JS layer ([#4669](https://github.com/getsentry/sentry-react-native/pull/4669), [#4681](https://github.com/getsentry/sentry-react-native/pull/4681))

## 6.10.0

### Features

- Add thread information to spans ([#4579](https://github.com/getsentry/sentry-react-native/pull/4579))
- Exposed `getDataFromUri` as a public API to retrieve data from a URI ([#4638](https://github.com/getsentry/sentry-react-native/pull/4638))
- Add `enableExperimentalViewRenderer` to enable up to 5x times more performance in Session Replay on iOS ([#4660](https://github.com/getsentry/sentry-react-native/pull/4660))

```js
import * as Sentry from '@sentry/react-native';

Sentry.init({
integrations: [
Sentry.mobileReplayIntegration({
enableExperimentalViewRenderer: true,
}),
],
});
```

### Fixes

- Considers the `SENTRY_DISABLE_AUTO_UPLOAD` and `SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD` environment variables in the configuration of the Sentry Android Gradle Plugin for Expo plugin ([#4583](https://github.com/getsentry/sentry-react-native/pull/4583))
- Handle non-string category in getCurrentScreen on iOS ([#4629](https://github.com/getsentry/sentry-react-native/pull/4629))
- Use route name instead of route key for current route tracking ([#4650](https://github.com/getsentry/sentry-react-native/pull/4650))
- Using key caused user interaction transaction names to contain route hash in the name.

### Dependencies

- Bump Bundler Plugins from v3.2.0 to v3.2.2 ([#4585](https://github.com/getsentry/sentry-react-native/pull/4585), [#4620](https://github.com/getsentry/sentry-react-native/pull/4620))
- [changelog](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md#322)
- [diff](https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/3.2.0...3.2.2)
- Bump CLI from v2.42.1 to v2.42.4 ([#4586](https://github.com/getsentry/sentry-react-native/pull/4586), [#4655](https://github.com/getsentry/sentry-react-native/pull/4655), [#4671](https://github.com/getsentry/sentry-react-native/pull/4671))
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2424)
- [diff](https://github.com/getsentry/sentry-cli/compare/2.42.1...2.42.4)
- Bump Cocoa SDK from v8.45.0 to v8.48.0 ([#4621](https://github.com/getsentry/sentry-react-native/pull/4621), [#4651](https://github.com/getsentry/sentry-react-native/pull/4651), [#4662](https://github.com/getsentry/sentry-react-native/pull/4662))
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8480)
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.45.0...8.48.0)
- Bump Android SDK from v7.22.1 to v7.22.5 ([#4675](https://github.com/getsentry/sentry-react-native/pull/4675), [#4683](https://github.com/getsentry/sentry-react-native/pull/4683))
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7225)
- [diff](https://github.com/getsentry/sentry-java/compare/7.22.1...7.22.5)

## 6.9.1

### Fixes

- Fixes missing Cold Start measurements by bumping the Android SDK version to v7.22.1 ([#4643](https://github.com/getsentry/sentry-react-native/pull/4643))
- Attach App Start spans to the first created not the first processed root span ([#4618](https://github.com/getsentry/sentry-react-native/pull/4618), [#4644](https://github.com/getsentry/sentry-react-native/pull/4644))

### Dependencies

- Bump Android SDK from v7.22.0 to v7.22.1 ([#4643](https://github.com/getsentry/sentry-react-native/pull/4643))
- [changelog](https://github.com/getsentry/sentry-java/blob/7.x.x/CHANGELOG.md#7221)
- [diff](https://github.com/getsentry/sentry-java/compare/7.22.0...7.22.1)

## 6.9.0

> [!WARNING]
> This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android.
> See issue [#4598](https://github.com/getsentry/sentry-react-native/issues/4598) for more details.

### Features

- User Feedback Widget Beta ([#4435](https://github.com/getsentry/sentry-react-native/pull/4435))

To collect user feedback from inside your application call `Sentry.showFeedbackWidget()`.

```js
import Sentry from "@sentry/react-native";

Sentry.showFeedbackWidget();

Sentry.wrap(RootComponent);
```

To change the default options add `Sentry.feedbackIntegration()`.

```js
import Sentry from "@sentry/react-native";
import * as ImagePicker from 'expo-image-picker';

Sentry.init({
integrations: [
Sentry.feedbackIntegration({
imagePicker: ImagePicker,
showName: true,
showEmail: true,
}),
],
});
```

To learn more about the available configuration options visit [the documentation](https://docs.sentry.io/platforms/react-native/user-feedback/configuration).

## 6.8.0

> [!WARNING]
> This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android.
> See issue [#4598](https://github.com/getsentry/sentry-react-native/issues/4598) for more details.

### Features

- Adds Sentry Android Gradle Plugin as an experimental Expo plugin feature ([#4440](https://github.com/getsentry/sentry-react-native/pull/4440))
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
"dependencies": {
"@sentry/babel-plugin-component-annotate": "3.1.2",
"@sentry/browser": "9.1.0",
"@sentry/cli": "2.42.1",
"@sentry/core": "9.1.0",
"@sentry/react": "9.1.0",
"@sentry/types": "9.1.0"
"@sentry/types": "9.1.0",
"@sentry/cli": "2.43.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -80,7 +80,7 @@
"@sentry-internal/eslint-config-sdk": "9.1.0",
"@sentry-internal/eslint-plugin-sdk": "9.1.0",
"@sentry-internal/typescript": "9.1.0",
"@sentry/wizard": "3.42.0",
"@sentry/wizard": "4.6.0",
"@testing-library/react-native": "^12.7.2",
"@types/jest": "^29.5.13",
"@types/node": "^20.9.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/js/tracing/reactnativeprofiler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export class ReactNativeProfiler extends Profiler {
}

client.addIntegration?.(createIntegration(this.name));

getAppRegistryIntegration(client).onRunApplication(ReactNativeProfilerGlobalState.onRunApplicationHook);
// eslint-disable-next-line @typescript-eslint/no-floating-promises
_captureAppStart({ isManual: false });
}
Expand Down
2 changes: 1 addition & 1 deletion samples/react-native-macos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@react-navigation/stack": "^6.3.20",
"@sentry/core": "9.1.0",
"@sentry/react": "9.1.0",
"@sentry/react-native": "6.7.0",
"@sentry/react-native": "6.11.0-beta.0",
"delay": "^6.0.0",
"react": "18.2.0",
"react-native": "0.73.9",
Expand Down
48 changes: 29 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8113,16 +8113,17 @@ __metadata:
"@expo/metro-config": 0.19.5
"@mswjs/interceptors": ^0.25.15
"@react-native/babel-preset": 0.77.1
"@sentry-internal/eslint-config-sdk": 9.1.0
"@sentry-internal/eslint-plugin-sdk": 9.1.0
"@sentry-internal/typescript": 9.1.0
"@sentry/babel-plugin-component-annotate": 3.1.2
"@sentry/browser": 9.1.0
"@sentry/cli": 2.42.1
"@sentry/core": 9.1.0
"@sentry/react": 9.1.0
"@sentry/types": 9.1.0
"@sentry/wizard": 3.42.0
"@sentry-internal/eslint-config-sdk": 8.54.0
"@sentry-internal/eslint-plugin-sdk": 8.54.0
"@sentry-internal/typescript": 8.54.0
"@sentry/babel-plugin-component-annotate": 3.2.4
"@sentry/browser": 8.54.0
"@sentry/cli": 2.43.0
"@sentry/core": 8.54.0
"@sentry/react": 8.54.0
"@sentry/types": 8.54.0
"@sentry/utils": 8.54.0
"@sentry/wizard": 4.6.0
"@testing-library/react-native": ^12.7.2
"@types/jest": ^29.5.13
"@types/node": ^20.9.3
Expand Down Expand Up @@ -8206,9 +8207,18 @@ __metadata:
languageName: node
linkType: hard

"@sentry/wizard@npm:3.42.0":
version: 3.42.0
resolution: "@sentry/wizard@npm:3.42.0"
"@sentry/utils@npm:8.54.0":
version: 8.54.0
resolution: "@sentry/utils@npm:8.54.0"
dependencies:
"@sentry/core": 8.54.0
checksum: 063c31528f4d3d0f17be18050c84fad12a8a62fde97ca8e0e10c0cc01323e644d8d1cbba4b95b20de5d62eaee23ba43ae51b479057da4fd59dbccd49ac97277a
languageName: node
linkType: hard

"@sentry/wizard@npm:4.6.0":
version: 4.6.0
resolution: "@sentry/wizard@npm:4.6.0"
dependencies:
"@clack/core": ^0.3.4
"@clack/prompts": 0.7.0
Expand Down Expand Up @@ -24664,9 +24674,9 @@ __metadata:
"@react-navigation/bottom-tabs": ^6.5.12
"@react-navigation/native": ^6.1.9
"@react-navigation/stack": ^6.3.20
"@sentry/core": 9.1.0
"@sentry/react": 9.1.0
"@sentry/react-native": 6.7.0
"@sentry/core": 8.54.0
"@sentry/react": 8.54.0
"@sentry/react-native": 6.11.0-beta.0
"@types/react": ^18.2.65
"@types/react-native-vector-icons": ^6.4.18
"@types/react-test-renderer": ^18.0.0
Expand Down Expand Up @@ -26324,9 +26334,9 @@ __metadata:
languageName: node
linkType: hard

"ts-jest@npm:^29.2.5":
version: 29.2.6
resolution: "ts-jest@npm:29.2.6"
"ts-jest@npm:^29.1.1, ts-jest@npm:^29.2.5":
version: 29.2.5
resolution: "ts-jest@npm:29.2.5"
dependencies:
bs-logger: ^0.2.6
ejs: ^3.1.10
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.