Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into kw-app-in-foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Feb 23, 2023
2 parents ce0ffb7 + 2ccadb5 commit 0f0745c
Show file tree
Hide file tree
Showing 8 changed files with 166 additions and 190 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
platform: ["android"] # "ios" will be added after codegen is fixed
platform: ["android", "ios"]
include:
- platform: android
command: |
cd sample-new-architecture/android
./gradlew generateCodegenArtifactsFromSchema
- platform: ios
command: |
cd sample-new-architecture/ios
node ../node_modules/react-native/scripts/generate-codegen-artifacts.js \
--path .. \
--outputPath codegen
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
73 changes: 67 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,67 @@

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

## 5.0.0

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).

### Features

- Add support for the RN New Architecture, backwards compatible RNSentry Turbo Module ([#2522](https://github.com/getsentry/sentry-react-native/pull/2522))
- Add View Hierarchy to the crashed/errored events ([#2708](https://github.com/getsentry/sentry-react-native/pull/2708))
- 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))
- Sync `tags`, `extra`, `fingerprint`, `level`, `environment` and `breadcrumbs` from `sentry-cocoa` during event processing. ([#2713](https://github.com/getsentry/sentry-react-native/pull/2713))
- `breadcrumb.level` value `log` is transformed to `debug` when syncing with native layers.
- Remove `breadcrumb.level` value `critical` transformation to `fatal`.
- Default `breadcrumb.level` is `info`

### Breaking changes

- Option `enableAutoPerformanceTracking` renamed to `enableAutoPerformanceTracing`
- Option `enableOutOfMemoryTracking` renamed to `enableWatchdogTerminationTracking`
- Remove link hooks (RN 0.68 and older) ([#2332](https://github.com/getsentry/sentry-react-native/pull/2332))
- 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))
- New ReactNativeTracingOptions ([#2481](https://github.com/getsentry/sentry-react-native/pull/2481))
- `idleTimeout` renamed to `idleTimeoutMs`
- `maxTransactionDuration` renamed to `finalTimeoutMs`
- `touchEventBoundaryProps.labelName` property instead of default `accessibilityLabel` fallback ([#2712](https://github.com/getsentry/sentry-react-native/pull/2712))
- Message event current stack trace moved from `exception` to `threads` ([#2694](https://github.com/getsentry/sentry-react-native/pull/2694))

### Fixes

- Unreachable fallback to fetch transport if native is not available ([#2695](https://github.com/getsentry/sentry-react-native/pull/2695))

### Dependencies

- Bump Cocoa SDK from v7.31.5 to v8.0.0 ([#2756](https://github.com/getsentry/sentry-react-native/pull/2756))
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#800)
- [diff](https://github.com/getsentry/sentry-cocoa/compare/7.31.5...8.0.0)
- Bump CLI from v1.74.4 to v2.10.0 ([#2669](https://github.com/getsentry/sentry-react-native/pull/2669))
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2100)
- [diff](https://github.com/getsentry/sentry-cli/compare/1.74.4...2.10.0)

## 4.15.0

### Features

- 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))

### Fixes

- React Native Error Handlers Integration doesn't crash if ErrorUtils are not available ([#2808](https://github.com/getsentry/sentry-react-native/pull/2808))

### Dependencies

- 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))
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6140)
- [diff](https://github.com/getsentry/sentry-java/compare/6.12.1...6.14.0)
- Bump Sample React Native from v0.71.0 to v0.71.1 ([#2767](https://github.com/getsentry/sentry-react-native/pull/2767))
- [changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0711)
- [diff](https://github.com/facebook/react-native/compare/v0.71.0...v0.71.1)
- 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))
- [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7372)
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.32.1...7.37.2)

## 5.0.0-rc.1

### Fixes
Expand All @@ -21,15 +82,15 @@

### Dependencies

- 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))
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6131)
- [diff](https://github.com/getsentry/sentry-java/compare/6.12.1...6.13.1)
- 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))
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6140)
- [diff](https://github.com/getsentry/sentry-java/compare/6.12.1...6.14.0)
- Bump Sample React Native from v0.71.0 to v0.71.1 ([#2767](https://github.com/getsentry/sentry-react-native/pull/2767))
- [changelog](https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0711)
- [diff](https://github.com/facebook/react-native/compare/v0.71.0...v0.71.1)
- 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))
- [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7360)
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.32.1...7.36.0)
- 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))
- [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7372)
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.32.1...7.37.2)

## 5.0.0-beta.1

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ android {

dependencies {
implementation 'com.facebook.react:react-native:+'
api 'io.sentry:sentry-android:6.13.1'
api 'io.sentry:sentry-android:6.14.0'
}
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@sentry/react-native",
"homepage": "https://github.com/getsentry/sentry-react-native",
"repository": "https://github.com/getsentry/sentry-react-native",
"version": "5.0.0-rc.1",
"version": "5.0.0",
"description": "Official Sentry SDK for react-native",
"typings": "dist/js/index.d.ts",
"types": "dist/js/index.d.ts",
Expand Down Expand Up @@ -42,21 +42,21 @@
"react-native": ">=0.65.0"
},
"dependencies": {
"@sentry/browser": "7.36.0",
"@sentry/browser": "7.37.2",
"@sentry/cli": "2.10.0",
"@sentry/core": "7.36.0",
"@sentry/hub": "7.36.0",
"@sentry/integrations": "7.36.0",
"@sentry/react": "7.36.0",
"@sentry/tracing": "7.36.0",
"@sentry/types": "7.36.0",
"@sentry/utils": "7.36.0"
"@sentry/core": "7.37.2",
"@sentry/hub": "7.37.2",
"@sentry/integrations": "7.37.2",
"@sentry/react": "7.37.2",
"@sentry/tracing": "7.37.2",
"@sentry/types": "7.37.2",
"@sentry/utils": "7.37.2"
},
"devDependencies": {
"@sentry-internal/eslint-config-sdk": "7.36.0",
"@sentry-internal/eslint-plugin-sdk": "7.36.0",
"@sentry-internal/eslint-config-sdk": "7.37.2",
"@sentry-internal/eslint-plugin-sdk": "7.37.2",
"@sentry/typescript": "^5.20.1",
"@sentry/wizard": "2.2.0",
"@sentry/wizard": "2.6.0",
"@types/jest": "^29.2.5",
"@types/react": "^18.0.25",
"babel-jest": "^29.3.1",
Expand Down
12 changes: 3 additions & 9 deletions src/js/utils/ignorerequirecyclelogs.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/* eslint-disable deprecation/deprecation */
import { LogBox, YellowBox } from 'react-native';
import { LogBox } from 'react-native';

/**
* This is a workaround for now using fetch on RN, this is a known issue in react-native and only generates a warning
* YellowBox deprecated and replaced with with LogBox in RN 0.63
* This is a workaround for using fetch on RN, this is a known issue in react-native and only generates a warning.
*/
export function ignoreRequireCycleLogs(): void {
if (LogBox) {
LogBox.ignoreLogs(['Require cycle:']);
} else {
YellowBox.ignoreWarnings(['Require cycle:']);
}
LogBox.ignoreLogs(['Require cycle:']);
}
2 changes: 1 addition & 1 deletion src/js/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const SDK_PACKAGE_NAME = 'npm:@sentry/react-native';
export const SDK_NAME = 'sentry.javascript.react-native';
export const SDK_VERSION = '5.0.0-rc.1';
export const SDK_VERSION = '5.0.0';
85 changes: 0 additions & 85 deletions test/client.rn.before.0.63.test.ts

This file was deleted.

Loading

0 comments on commit 0f0745c

Please sign in to comment.