|
8 | 8 |
|
9 | 9 | ## Unreleased
|
10 | 10 |
|
| 11 | +### Upgrading from 6.x to 7.0 |
| 12 | + |
| 13 | +Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK version 9. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling. |
| 14 | + |
| 15 | +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. |
| 16 | + |
11 | 17 | ### Major Changes
|
12 | 18 |
|
| 19 | +- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466)) |
13 | 20 | - `Sentry.captureUserFeedback` removed, use `Sentry.captureFeedback` instead ([#4855](https://github.com/getsentry/sentry-react-native/pull/4855))
|
14 |
| -- Use global `TextEncoder` (available with Hermes in React Native 0.74 or higher) to improve envelope encoding performance. ([#4874](https://github.com/getsentry/sentry-react-native/pull/4874)) |
15 |
| -- `breadcrumbsIntegration` disables React Native incompatible options automatically ([#4886](https://github.com/getsentry/sentry-react-native/pull/4886)) |
| 21 | + |
| 22 | +### Major Changes from Sentry JS SDK v9 |
| 23 | + |
| 24 | +- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default |
| 25 | +- `shutdownTimeout` moved from `core` to `@sentry/react-native` |
| 26 | +- `hasTracingEnabled` was renamed to `hasSpansEnabled` |
| 27 | +- You can no longer drop spans or return null on `beforeSendSpan` hook |
| 28 | +- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan` |
| 29 | + |
| 30 | +#### Removed types |
| 31 | + |
| 32 | +- TransactionNamingScheme |
| 33 | +- Request |
| 34 | +- Scope (prefer using the Scope class) |
| 35 | + |
| 36 | +#### Other removed items. |
| 37 | + |
| 38 | +- `autoSessionTracking` from options. |
| 39 | + To enable session tracking, ensure that `enableAutoSessionTracking` is enabled. |
| 40 | +- `enableTracing`. Instead, set `tracesSampleRate` to a value greater than `zero` to `enable tracing`, `0` to keep tracing integrations active without sampling, or `undefined` to disable the performance integration. |
| 41 | +- `getCurrentHub()`, `Hub`, and `getCurrentHubShim()` |
| 42 | +- `spanId` from propagation `context` |
| 43 | +- metrics API |
| 44 | +- `transactionContext` from `samplingContext` |
| 45 | +- `@sentry/utils` package, the exports were moved to `@sentry/core` |
| 46 | +- Standalone `Client` interface & deprecate `BaseClient` |
16 | 47 |
|
17 | 48 | ### Changes
|
18 | 49 |
|
19 | 50 | - Use `Replay` interface for `browserReplayIntegration` return type ([#4858](https://github.com/getsentry/sentry-react-native/pull/4858))
|
20 | 51 | - Allow using `browserReplayIntegration` without `isWeb` guard ([#4858](https://github.com/getsentry/sentry-react-native/pull/4858))
|
21 | 52 | - The integration returns noop in non-browser environments
|
22 | 53 | - Use single `encodeUTF8` implementation through the SDK ([#4885](https://github.com/getsentry/sentry-react-native/pull/4885))
|
| 54 | +- Use global `TextEncoder` (available with Hermes in React Native 0.74 or higher) to improve envelope encoding performance. ([#4874](https://github.com/getsentry/sentry-react-native/pull/4874)) |
| 55 | +- `breadcrumbsIntegration` disables React Native incompatible options automatically ([#4886](https://github.com/getsentry/sentry-react-native/pull/4886)) |
| 56 | +- On React Native Web, `browserSessionIntegration` is added when `enableAutoSessionTracking` is set to `True` ([#4732](https://github.com/getsentry/sentry-react-native/pull/4732)) |
| 57 | +- Change `Cold/Warm App Start` span description to `Cold/Warm Start` ([#4636](https://github.com/getsentry/sentry-react-native/pull/4636)) |
23 | 58 |
|
24 | 59 | ### Dependencies
|
25 | 60 |
|
26 |
| -- Bump JavaScript SDK from v9.12.0 to v9.22.0 ([#4860](https://github.com/getsentry/sentry-react-native/pull/4860)) |
| 61 | +- Bump JavaScript SDK from v8.54.0 to v9.22.0 ([#4568](https://github.com/getsentry/sentry-react-native/pull/4568), [#4752](https://github.com/getsentry/sentry-react-native/pull/4752), [#4860](https://github.com/getsentry/sentry-react-native/pull/4860)) |
27 | 62 | - [changelog](https://github.com/getsentry/sentry-javascript/blob/9.22.0/CHANGELOG.md)
|
28 |
| - - [diff](https://github.com/getsentry/sentry-javascript/compare/9.12.0...9.22.0) |
29 |
| -- Bump Android SDK from v8.11.1 to v8.13.2 ([#4847](https://github.com/getsentry/sentry-react-native/pull/4847)) |
| 63 | + - [diff](https://github.com/getsentry/sentry-javascript/compare/8.54.0...9.22.0) |
| 64 | +- Bump Android SDK from v7.20.1 to v8.13.2 ([#4490](https://github.com/getsentry/sentry-react-native/pull/4490), [#4847](https://github.com/getsentry/sentry-react-native/pull/4847)) |
30 | 65 | - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8132)
|
31 |
| - - [diff](https://github.com/getsentry/sentry-java/compare/8.11.1...8.13.2) |
| 66 | + - [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.13.2) |
32 | 67 |
|
33 | 68 | ## 6.15.0
|
34 | 69 |
|
|
0 commit comments