github getsentry/sentry-react-native 6.3.0

12 hours ago

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('@sentry/react-native/metro');
    const config = getSentryExpoConfig(__dirname, {
      enableSourceContextInDevelopment: false,
    });
    
    // React Native
    const { withSentryConfig } = require('@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

Don't miss a new sentry-react-native release

NewReleases is sending notifications on new releases.