yarn @sentry/react-native 5.23.0

latest releases: 5.25.0-alpha.2, 5.24.1, 5.24.0...
28 days ago

Features

  • Functional integrations (#3814)

    Instead of installing @sentry/integrations and creating integrations using the new keyword, you can use direct imports of the functional integrations.

    // Before
    import * as Sentry from '@sentry/react-native';
    import { HttpClient } from '@sentry/integrations';
    
    Sentry.init({
      integrations: [
        new Sentry.BrowserIntegrations.Dedupe(),
        new Sentry.Integration.Screenshot(),
        new HttpClient(),
      ],
    });
    
    // After
    import * as Sentry from '@sentry/react-native';
    
    Sentry.init({
      integrations: [
        Sentry.dedupeIntegration(),
        Sentry.screenshotIntegration(),
        Sentry.httpClientIntegration(),
      ],
    });

    Note that the Sentry.BrowserIntegrations, Sentry.Integration and the Class style integrations will be removed in the next major version of the SDK.

Fixes

  • Remove unused rnpm config (#3811)

Dependencies

Don't miss a new react-native release

NewReleases is sending notifications on new releases.