Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @sentry/react-native to v6 #6379

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 18, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sentry/react-native ^5.36.0 -> ^6.5.0 age adoption passing confidence

Release Notes

getsentry/sentry-react-native (@​sentry/react-native)

v6.5.0

Compare Source

Features
  • Mobile Session Replay is now generally available and ready for production use (#​4384)

    To learn about privacy, custom masking or performance overhead visit the documentation.

    import * as Sentry from '@​sentry/react-native';
    
    Sentry.init({
      replaysSessionSampleRate: 1.0,
      replaysOnErrorSampleRate: 1.0,
      integrations: [
        Sentry.mobileReplayIntegration({
          maskAllImages: true,
          maskAllVectors: true,
          maskAllText: true,
        }),
      ],
    });
  • Adds new captureFeedback and deprecates the captureUserFeedback API (#​4320)

    import * as Sentry from "@​sentry/react-native";
    
    const eventId = Sentry.lastEventId();
    
    Sentry.captureFeedback({
      name: "John Doe",
      email: "[email protected]",
      message: "Hello World!",
      associatedEventId: eventId, // optional
    });

    To learn how to attach context data to the feedback visit the documentation.

  • Export Span type from @sentry/types (#​4345)

  • Add RN SDK package to sdk.packages on Android (#​4380)

Fixes
  • Return lastEventId export from @sentry/core (#​4315)
  • Don't log file not found errors when loading envs in sentry-expo-upload-sourcemaps (#​4332)
  • Navigation Span should have no parent by default (#​4326)
  • Disable HTTP Client Errors on iOS (#​4347)
Changes
  • Falsy values of options.environment (empty string, undefined...) default to production
  • Deprecated _experiments.replaysSessionSampleRate and _experiments.replaysOnErrorSampleRate use replaysSessionSampleRate and replaysOnErrorSampleRate (#​4384)
Dependencies

v6.4.0

Compare Source

Features
  • Add Replay Custom Masking for iOS, Android and Web (#​4224, #​4265, #​4272, #​4314)

    import * as Sentry from '@​sentry/react-native';
    
    const Example = () => {
      return (
        <View>
          <Sentry.Mask>
            <Text>${"All children of Sentry.Mask will be masked."}</Text>
          </Sentry.Mask>
          <Sentry.Unmask>
            <Text>${"Only direct children of Sentry.Unmask will be unmasked."}</Text>
          </Sentry.Unmask>
        </View>
      );
    };

v6.3.0

Compare Source

Features
  • Add support for .env.sentry-build-plugin (#​4281)

    Don't commit the file to your repository. Use it to set your Sentry Auth Token.

    SENTRY_AUTH_TOKEN=your_token_here
    
  • Add Sentry Metro Server Source Context middleware (#​4287)

    This enables the SDK to add source context to locally symbolicated events using the Metro Development Server.
    The middleware can be disabled in metro.config.js using the enableSourceContextInDevelopment option.

    // Expo
    const { getSentryExpoConfig } = require('@&#8203;sentry/react-native/metro');
    const config = getSentryExpoConfig(__dirname, {
      enableSourceContextInDevelopment: false,
    });
    
    // React Native
    const { withSentryConfig } = require('@&#8203;sentry/react-native/metro');
    module.exports = withSentryConfig(config, {
      enableSourceContextInDevelopment: false,
    });
Fixes
  • Prevents exception capture context from being overwritten by native scope sync (#​4124)
  • Excludes Dev Server and Sentry Dsn requests from Breadcrumbs (#​4240)
  • Skips development server spans (#​4271)
  • Execute DebugSymbolicator after RewriteFrames to avoid overwrites by default (#​4285)
    • If custom RewriteFrames is provided the order changes
  • browserReplayIntegration is no longer included by default on React Native Web (#​4270)
  • Remove .sentry tmp directory and use environmental variables instead to save default Babel transformer path (#​4298)
    • This resolves concurrency issues when running multiple bundle processes
Dependencies

v6.2.0

Compare Source

Features
  • Enables Spotlight in Android and iOS SDKs (#​4211)

  • Add env flag SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD to allow disabling the debug file upload (#​4223)

    How to use in Android project? It works by default, just set export SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD=true in your build environment. For Sentry Android Gradle Plugin add the following to your android/app/build.gradle.

    apply from: "../../../sentry.gradle"
    
    sentry {
        autoUploadProguardMapping = shouldSentryAutoUpload()
        uploadNativeSymbols = shouldSentryAutoUpload()
    }

    How to use in Xcode? Make sure you are using scripts/sentry-xcode.sh and scripts/sentry-xcode-debug-files.sh in your
    build phases. And add the following to your ios/.xcode.env.local file.

    export SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD=true
Fixes
  • Ignore JavascriptException to filter out obfuscated duplicate JS Errors on Android (#​4232)
  • Skips ignoring require cycle logs for RN 0.70 or newer (#​4214)
  • Enhanced accuracy of time-to-display spans. (#​4189)
  • Fix Replay redacting of RN Classes on iOS (#​4243)
  • Speed up getBinaryImages for finishing transactions and capturing events (#​4194)
  • Remove duplicate HTTP Client Errors on iOS (#​4250)
  • Replay maskAll* set to false on iOS kept all masked (#​4257)
  • Add missing getRootSpan, withActiveSpan and suppressTracing exports from @sentry/core, and SeverityLevel export from @sentry/types (#​4254, #​4260)
Dependencies

v6.1.0

Compare Source

Dependencies

v6.0.0

Compare Source

This is a new major version 6.0.0 of the Sentry React Native SDK.
To upgrade from the SDK version 5, please follow our migration guide.

Major Changes
  • React Native Tracing options were moved to the root options

    import * as Sentry from '@&#8203;sentry/react-native';
    
    Sentry.init({
      tracesSampleRate: 1.0,
      enableAppStartTracking: true, // default true
      enableNativeFramesTracking: true, // default true
      enableStallTracking: true, // default true
      enableUserInteractionTracing: true, // default false
      integrations: [
        Sentry.reactNativeTracingIntegration({
          beforeStartSpan: (startSpanOptions) => {
            startSpanOptions.name = 'New Name';
            return startSpanOptions;
          },
        }),
        Sentry.appStartIntegration({
          standalone: false, // default false
        }),
      ],
    });
  • New React Navigation Integration interface (#​4003)

    import * as Sentry from '@&#8203;sentry/react-native';
    import { NavigationContainer } from '@&#8203;react-navigation/native';
    
    const reactNavigationIntegration = Sentry.reactNavigationIntegration();
    
    Sentry.init({
      tracesSampleRate: 1.0,
      integrations: [reactNavigationIntegration],
    });
    
    function RootComponent() {
      const navigation = React.useRef(null);
    
      return <NavigationContainer ref={navigation}
        onReady={() => {
          reactNavigationIntegration.registerNavigationContainer(navigation);
        }}>
      </NavigationContainer>;
    }
  • Removed beforeNavigate use beforeStartSpan instead (#​3998)

    • beforeStartSpan is executed before the span start, compared to beforeNavigate which was executed before the navigation ended (after the span was created)
Other Changes
  • Add sentry.origin to SDK spans to indicated if spans are created by a part of the SDK or manually (#​4066)

  • Xcode Debug Files upload completes in foreground by default (#​4090)

  • Set parentSpanIsAlwaysRootSpan to true to make parent of network requests predictable (#​4084)

  • Remove deprecated enableSpotlight and spotlightSidecarUrl (#​4086)

  • tracePropagationTargets defaults to all targets on mobile and same origin on the web (#​4083)

  • Move _experiments.profilesSampleRate to profilesSampleRate root options object #​3851)

  • Native Frames uses spanId to attach frames replacing traceId (#​4030)

  • Removed deprecated ReactNativeTracing option idleTimeout use idleTimeoutMs instead (#​3998)

  • Removed deprecated ReactNativeTracing option maxTransactionDuration use finalTimeoutMs instead (#​3998)

  • New Native Frames Integration (#​3996)

  • New Stall Tracking Integration (#​3997)

  • New User Interaction Tracing Integration (#​3999)

  • New App Start Integration (#​3852)

    • By default app start spans are attached to the first created transaction.
    • Standalone mode creates single root span (transaction) including only app start data.
  • New React Native Navigation Integration interface (#​4003)

    import * as Sentry from '@&#8203;sentry/react-native';
    import { Navigation } from 'react-native-navigation';
    
    Sentry.init({
      tracesSampleRate: 1.0,
      integrations: [
        Sentry.reactNativeNavigationIntegration({ navigation: Navigation })
      ],
    });
Fixes
  • TimeToDisplay correctly warns about not supporting the new React Native architecture (#​4160)
  • Native Wrapper method setContext ensures only values convertible to NativeMap are passed (#​4168)
  • Native Wrapper method setExtra ensures only stringified values are passed (#​4168)
  • setContext('key', null) removes the key value also from platform context (#​4168)
  • Upload source maps for all splits on Android (not only the last found) (#​4125)
Dependencies
Dependencies

Configuration

📅 Schedule: Branch creation - "after 5pm,every weekend" in timezone America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone America/Los_Angeles.

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/sentry-react-native-6.x branch 6 times, most recently from c2401cd to 6e82d18 Compare December 23, 2024 22:34
@renovate renovate bot force-pushed the renovate/sentry-react-native-6.x branch 12 times, most recently from cd1aeed to e843886 Compare January 9, 2025 03:13
@renovate renovate bot force-pushed the renovate/sentry-react-native-6.x branch 8 times, most recently from d9489ad to 7265cae Compare January 14, 2025 09:12
@renovate renovate bot force-pushed the renovate/sentry-react-native-6.x branch 21 times, most recently from a39ab41 to 77c2889 Compare January 22, 2025 01:05
@renovate renovate bot force-pushed the renovate/sentry-react-native-6.x branch 6 times, most recently from a655b4c to e3fb079 Compare January 23, 2025 14:51
@renovate renovate bot force-pushed the renovate/sentry-react-native-6.x branch from e3fb079 to 7f52745 Compare January 23, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants