Skip to content

Commit 6730a71

Browse files
authored
chore(changelog): Fix v7 changelog (#5124)
* chore(changelog): Fix v7 changelog * Revert "chore(changelog): Fix v7 changelog" This reverts commit 5a5e8e2. * Move 7.0.0-alpha.0 below 7 betas * Update changelog * Add removed types * Add Upgrading from 6.x to 7.0 note
1 parent b3b5f2a commit 6730a71

File tree

1 file changed

+161
-77
lines changed

1 file changed

+161
-77
lines changed

CHANGELOG.md

Lines changed: 161 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,77 @@
88
99
## 7.0.0
1010

11-
### Important Changes
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 versions 9 and 10. 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+
17+
### Major Changes
18+
19+
- Ensure IP address is only inferred by Relay if `sendDefaultPii` is `true` ([#5111](https://github.com/getsentry/sentry-react-native/pull/5111))
20+
- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466))
21+
- `Sentry.captureUserFeedback` removed, use `Sentry.captureFeedback` instead ([#4855](https://github.com/getsentry/sentry-react-native/pull/4855))
22+
- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default
23+
- `shutdownTimeout` moved from `core` to `@sentry/react-native`
24+
- `hasTracingEnabled` was renamed to `hasSpansEnabled`
25+
- You can no longer drop spans or return null on `beforeSendSpan` hook
26+
- Tags formatting logic updated ([#4965](https://github.com/getsentry/sentry-react-native/pull/4965))
27+
Here are the altered/unaltered types, make sure to update your UI filters and alerts.
28+
29+
Unaltered: string, null, number, and undefined values remain unchanged.
30+
31+
Altered: Boolean values are now capitalized: true -> True, false -> False.
32+
33+
### Removed types
34+
35+
- TransactionNamingScheme
36+
- Request
37+
- Scope (prefer using the Scope class)
38+
39+
### Other removed items.
40+
41+
- `autoSessionTracking` from options.
42+
To enable session tracking, ensure that `enableAutoSessionTracking` is enabled.
43+
- `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.
44+
- `getCurrentHub()`, `Hub`, and `getCurrentHubShim()`
45+
- `spanId` from propagation `context`
46+
- metrics API
47+
- `transactionContext` from `samplingContext`
48+
- `@sentry/utils` package, the exports were moved to `@sentry/core`
49+
- Standalone `Client` interface & deprecate `BaseClient`
50+
51+
### Changes
52+
53+
- Expose `featureFlagsIntegration` ([#4984](https://github.com/getsentry/sentry-react-native/pull/4984))
54+
- Expose `logger` and `consoleLoggingIntegration` ([#4930](https://github.com/getsentry/sentry-react-native/pull/4930))
55+
- Remove deprecated `appOwnership` constant use in Expo Go detection ([#4893](https://github.com/getsentry/sentry-react-native/pull/4893))
56+
- Disable AppStart and NativeFrames in unsupported environments (web, Expo Go) ([#4897](https://github.com/getsentry/sentry-react-native/pull/4897))
57+
- Use `Replay` interface for `browserReplayIntegration` return type ([#4858](https://github.com/getsentry/sentry-react-native/pull/4858))
58+
- Allow using `browserReplayIntegration` without `isWeb` guard ([#4858](https://github.com/getsentry/sentry-react-native/pull/4858))
59+
- The integration returns noop in non-browser environments
60+
- Use single `encodeUTF8` implementation through the SDK ([#4885](https://github.com/getsentry/sentry-react-native/pull/4885))
61+
- 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))
62+
- `breadcrumbsIntegration` disables React Native incompatible options automatically ([#4886](https://github.com/getsentry/sentry-react-native/pull/4886))
63+
- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan`
64+
- On React Native Web, `browserSessionIntegration` is added when `enableAutoSessionTracking` is set to `True` ([#4732](https://github.com/getsentry/sentry-react-native/pull/4732))
65+
- Change `Cold/Warm App Start` span description to `Cold/Warm Start` ([#4636](https://github.com/getsentry/sentry-react-native/pull/4636))
1266

13-
- The `_experiments.enableLogs` and `_experiments.beforeSendLog` options were removed, use the top-level `enableLogs` and `beforeSendLog` options instead. ([#5122](https://github.com/getsentry/sentry-react-native/pull/5122))
67+
### Features
68+
69+
- Add support for Log tracing ([#4827](https://github.com/getsentry/sentry-react-native/pull/4827), [#5122](https://github.com/getsentry/sentry-react-native/pull/5122))
70+
71+
To enable it add the following code to your Sentry Options:
1472

1573
```js
16-
// before
1774
Sentry.init({
18-
_experiments: {
19-
enableLogs: true,
20-
beforeSendLog: log => {
21-
return log;
22-
},
23-
},
75+
enableLogs: true,
2476
});
77+
```
78+
79+
You can also filter the logs being collected by adding `beforeSendLogs`
2580

26-
// after
81+
```js
2782
Sentry.init({
2883
enableLogs: true,
2984
beforeSendLog: log => {
@@ -32,11 +87,40 @@ Sentry.init({
3287
});
3388
```
3489

90+
- Automatically detect Release name and version for Expo Web ([#4967](https://github.com/getsentry/sentry-react-native/pull/4967))
91+
92+
### Fixes
93+
94+
- Align span description with other platforms (#4636) by @krystofwoldrich
95+
- Tags with symbol are now logged ([#4965](https://github.com/getsentry/sentry-react-native/pull/4965))
96+
- IgnoreError now filters Native errors ([#4948](https://github.com/getsentry/sentry-react-native/pull/4948))
97+
98+
You can use strings to filter errors or RegEx for filtering with a pattern.
99+
100+
example:
101+
102+
```typescript
103+
ignoreErrors: [
104+
'1234', // Will filter any error message that contains 1234.
105+
'.*1234', // Will not filter as regex, instead will filter messages that contains '.*1234"
106+
/.*1234/, // Regex will filter any error message that ends with 1234
107+
/.*1234.*/ // Regex will filter any error message that contains 1234.
108+
]
109+
```
110+
111+
- Expo Updates Context is passed to native after native init to be available for crashes ([#4808](https://github.com/getsentry/sentry-react-native/pull/4808))
112+
- Expo Updates Context values should all be lowercase ([#4809](https://github.com/getsentry/sentry-react-native/pull/4809))
113+
- Avoid duplicate network requests (fetch, xhr) by default ([#4816](https://github.com/getsentry/sentry-react-native/pull/4816))
114+
- `traceFetch` is disabled by default on mobile as RN uses a polyfill which will be traced by `traceXHR`
115+
35116
### Dependencies
36117

37-
- Bump JavaScript SDK from v10.7.0 to v10.8.0 ([#5123](https://github.com/getsentry/sentry-react-native/pull5123))
118+
- Bump JavaScript SDK from v8.54.0 to v10.8.0 ([#5123](https://github.com/getsentry/sentry-react-native/pull5123))
38119
- [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#1080)
39-
- [diff](https://github.com/getsentry/sentry-javascript/compare/10.7.0...10.8.0)
120+
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.54.0...10.8.0)
121+
- Bump Android SDK from v7.20.1 to v8.20.0 ([#5106](https://github.com/getsentry/sentry-react-native/pull/5106))
122+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8200)
123+
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.20.0)
40124

41125
## 7.0.0-rc.2
42126

@@ -257,6 +341,71 @@ Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or hi
257341
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8132)
258342
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.13.2)
259343

344+
## 7.0.0-alpha.0
345+
346+
### Upgrading from 6.x to 7.0
347+
348+
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.
349+
350+
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.
351+
352+
### Fixes
353+
354+
- Expo Updates Context is passed to native after native init to be available for crashes ([#4808](https://github.com/getsentry/sentry-react-native/pull/4808))
355+
- Expo Updates Context values should all be lowercase ([#4809](https://github.com/getsentry/sentry-react-native/pull/4809))
356+
- Avoid duplicate network requests (fetch, xhr) by default ([#4816](https://github.com/getsentry/sentry-react-native/pull/4816))
357+
- `traceFetch` is disabled by default on mobile as RN uses a polyfill which will be traced by `traceXHR`
358+
359+
### Major Changes
360+
361+
- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466))
362+
- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default
363+
- `shutdownTimeout` moved from `core` to `@sentry/react-native`
364+
- `hasTracingEnabled` was renamed to `hasSpansEnabled`
365+
- You can no longer drop spans or return null on `beforeSendSpan` hook
366+
367+
### Removed types
368+
369+
- TransactionNamingScheme
370+
- Request
371+
- Scope (prefer using the Scope class)
372+
373+
### Other removed items.
374+
375+
- `autoSessionTracking` from options.
376+
To enable session tracking, ensure that `enableAutoSessionTracking` is enabled.
377+
- `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.
378+
- `getCurrentHub()`, `Hub`, and `getCurrentHubShim()`
379+
- `spanId` from propagation `context`
380+
- metrics API
381+
- `transactionContext` from `samplingContext`
382+
- `@sentry/utils` package, the exports were moved to `@sentry/core`
383+
- Standalone `Client` interface & deprecate `BaseClient`
384+
385+
### Other Changes
386+
387+
- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan`
388+
- On React Native Web, `browserSessionIntegration` is added when `enableAutoSessionTracking` is set to `True` ([#4732](https://github.com/getsentry/sentry-react-native/pull/4732))
389+
- Change `Cold/Warm App Start` span description to `Cold/Warm Start` ([#4636](https://github.com/getsentry/sentry-react-native/pull/4636))
390+
391+
### Dependencies
392+
393+
- Bump JavaScript SDK from v8.54.0 to v9.12.0 ([#4568](https://github.com/getsentry/sentry-react-native/pull/4568), [#4752](https://github.com/getsentry/sentry-react-native/pull/4752))
394+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/9.12.0/CHANGELOG.md)
395+
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.54.0...9.12.0)
396+
- Bump Android SDK from v7.20.1 to v8.11.1 ([#4490](https://github.com/getsentry/sentry-react-native/pull/4490))
397+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8111)
398+
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.11.1)
399+
- Bump CLI from v2.43.1 to v2.45.0 ([#4804](https://github.com/getsentry/sentry-react-native/pull/4804), [#4818](https://github.com/getsentry/sentry-react-native/pull/4818))
400+
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2450)
401+
- [diff](https://github.com/getsentry/sentry-cli/compare/2.43.1...2.45.0)
402+
- Bump Bundler Plugins from v3.3.1 to v3.4.0 ([#4805](https://github.com/getsentry/sentry-react-native/pull/4805))
403+
- [changelog](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md#340)
404+
- [diff](https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/3.3.1...3.4.0)
405+
- Bump Cocoa SDK from v8.49.2 to v8.50.0 ([#4807](https://github.com/getsentry/sentry-react-native/pull/4807))
406+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8500)
407+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.49.2...8.50.0)
408+
260409
## 6.21.0
261410

262411
### Important Changes
@@ -498,71 +647,6 @@ We apologize for any inconvenience caused!
498647
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2460)
499648
- [diff](https://github.com/getsentry/sentry-cli/compare/2.45.0...2.46.0)
500649

501-
## 7.0.0-alpha.0
502-
503-
### Upgrading from 6.x to 7.0
504-
505-
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.
506-
507-
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.
508-
509-
### Fixes
510-
511-
- Expo Updates Context is passed to native after native init to be available for crashes ([#4808](https://github.com/getsentry/sentry-react-native/pull/4808))
512-
- Expo Updates Context values should all be lowercase ([#4809](https://github.com/getsentry/sentry-react-native/pull/4809))
513-
- Avoid duplicate network requests (fetch, xhr) by default ([#4816](https://github.com/getsentry/sentry-react-native/pull/4816))
514-
- `traceFetch` is disabled by default on mobile as RN uses a polyfill which will be traced by `traceXHR`
515-
516-
### Major Changes
517-
518-
- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466))
519-
- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default
520-
- `shutdownTimeout` moved from `core` to `@sentry/react-native`
521-
- `hasTracingEnabled` was renamed to `hasSpansEnabled`
522-
- You can no longer drop spans or return null on `beforeSendSpan` hook
523-
524-
### Removed types
525-
526-
- TransactionNamingScheme
527-
- Request
528-
- Scope (prefer using the Scope class)
529-
530-
### Other removed items.
531-
532-
- `autoSessionTracking` from options.
533-
To enable session tracking, ensure that `enableAutoSessionTracking` is enabled.
534-
- `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.
535-
- `getCurrentHub()`, `Hub`, and `getCurrentHubShim()`
536-
- `spanId` from propagation `context`
537-
- metrics API
538-
- `transactionContext` from `samplingContext`
539-
- `@sentry/utils` package, the exports were moved to `@sentry/core`
540-
- Standalone `Client` interface & deprecate `BaseClient`
541-
542-
### Other Changes
543-
544-
- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan`
545-
- On React Native Web, `browserSessionIntegration` is added when `enableAutoSessionTracking` is set to `True` ([#4732](https://github.com/getsentry/sentry-react-native/pull/4732))
546-
- Change `Cold/Warm App Start` span description to `Cold/Warm Start` ([#4636](https://github.com/getsentry/sentry-react-native/pull/4636))
547-
548-
### Dependencies
549-
550-
- Bump JavaScript SDK from v8.54.0 to v9.12.0 ([#4568](https://github.com/getsentry/sentry-react-native/pull/4568), [#4752](https://github.com/getsentry/sentry-react-native/pull/4752))
551-
- [changelog](https://github.com/getsentry/sentry-javascript/blob/9.12.0/CHANGELOG.md)
552-
- [diff](https://github.com/getsentry/sentry-javascript/compare/8.54.0...9.12.0)
553-
- Bump Android SDK from v7.20.1 to v8.11.1 ([#4490](https://github.com/getsentry/sentry-react-native/pull/4490))
554-
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8111)
555-
- [diff](https://github.com/getsentry/sentry-java/compare/7.20.1...8.11.1)
556-
- Bump CLI from v2.43.1 to v2.45.0 ([#4804](https://github.com/getsentry/sentry-react-native/pull/4804), [#4818](https://github.com/getsentry/sentry-react-native/pull/4818))
557-
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2450)
558-
- [diff](https://github.com/getsentry/sentry-cli/compare/2.43.1...2.45.0)
559-
- Bump Bundler Plugins from v3.3.1 to v3.4.0 ([#4805](https://github.com/getsentry/sentry-react-native/pull/4805))
560-
- [changelog](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/CHANGELOG.md#340)
561-
- [diff](https://github.com/getsentry/sentry-javascript-bundler-plugins/compare/3.3.1...3.4.0)
562-
- Bump Cocoa SDK from v8.49.2 to v8.50.0 ([#4807](https://github.com/getsentry/sentry-react-native/pull/4807))
563-
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8500)
564-
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.49.2...8.50.0)
565-
566650
## 6.14.0
567651

568652
### Fixes

0 commit comments

Comments
 (0)