Skip to content

Releases: getsentry/sentry-capacitor

3.2.1

07 Apr 10:41

Choose a tag to compare

Fixes

  • Deprecate Session Replay (#1205)

3.2.0

20 Mar 12:03

Choose a tag to compare

Fixes

  • (iOS): Missing Device and OS from event's context (#1168)

Dependencies

3.1.0

27 Feb 13:58

Choose a tag to compare

Dependencies

3.0.0

12 Feb 15:37

Choose a tag to compare

Sentry JavaScript V10

Version 10 of the Sentry JavaScript SDK primarily focuses on upgrading underlying OpenTelemetry dependencies to v2 with minimal breaking changes.

Version 10 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v9). Lower versions may continue to work, but may not support all features.

SDK Initialization changed for Sentry Vue and Nuxt

Instead of adding the Nuxt/Vue options into Sentry.init options, you will now have to add it inside siblingOptions, this only applies to parameters specific to the respective SDK, other SDKs like React or Angular won't have to do that:

before

Sentry.init({
  app: app,
  attachErrorHandler: false,
  dsn: '...',
  enableLogs: true,...
}, vueInit);

after

Sentry.init({
  dsn: '...',
  enableLogs: true,
  siblingOptions: {
    vueOptions: {
        app: app,
        attachErrorHandler: false,
        ...
    }
  },
  ...
}, vueInit);

Removed APIs

The changes outlined in this section detail deprecated APIs that are now removed.

* BaseClient was removed, use Client as a direct replacement.
* hasTracingEnabled was removed, use hasSpansEnabled as a direct replacement.
* The internal logger and type Logger exports in @sentry/core were removed, use debug and type SentryDebugLogger instead. This does not affect the logger export used for [Sentry Logging](https://docs.sentry.io/product/explore/logs/getting-started/).
* The _experiments.enableLogs and _experiments.beforeSendLog options were removed, use the top-level enableLogs and beforeSendLog options instead.
// before
Sentry.init({
  _experiments: {
    enableLogs: true,
    beforeSendLog: (log) => {
      return log;
    },
  },
});
// after
Sentry.init({
  enableLogs: true,
  beforeSendLog: (log) => {
    return log;
  },
});

Removed Options

  • _experimental.enableLogs was removed, please use the options enableLogs from CapacitorOptions.

For more informations, please go to the following link: https://docs.sentry.io/platforms/javascript/migration/v9-to-v10

Sentry Cocoa V9

  • With the addition of Sentry Cocoa V9, you may face issues when building your project, this is due to the increased minimum required version bump for the Apple platform, you can see the specific changes on the breaking change section.

PodSpec support

  • The current version continues to support Podspec-based setup, however future major releases will support only Swift Package Manager (SPM). We recommend migrating your project to SPM to ensure a smooth transition to upcoming SDK versions.

Breaking Changes

Minimum Version Requirements

  • iOS/macOS/tvOS:
    • iOS 15.0+ (previously 11.0+)
    • macOS 10.14+ (previously 10.13+)
    • tvOS 15.0+ (previously 11.0+)

Features

  • Add native attributes to logs (#1086)
  • Add Replay ID to logs (#1086)
  • Support for Capacitor 8 (#1071) - Special thanks to (jb3rndt).
  • Add experimental Metric support for Web and iOS (#1055)
  • Add Fallback to JavaScript SDK when Native SDK fails to initialize (#1043)
  • Add spotlight integration spotlightIntegration. (#1039)

Fixes

  • Add missing httpContextIntegration integration by default when using your project on the browser. (#1119)

  • Disable Native Android Session Replay (#1105)

  • Duplicated session When running Capacitor as an app (#1088)

  • Added missing integrations inboundFiltersIntegration, functionToStringIntegration, browserApiErrorsIntegration, breadcrumbsIntegration, globalHandlersIntegration, linkedErrorsIntegration, dedupeIntegration and browserSessionIntegration (#1047)

  • Breadcrumbs are now showing and are tied with native breadcrumbs too (#1047)

  • Init now showing the correct JSDoc for Vue/Nuxt init parameters. (#1046)

  • Replays/Logs/Sessions now have the capacitor SDK name as the source of the event. (#1043)

  • Sentry Capacitor integrations are now exposed to @sentry/capacitor (#1039)

Dependencies

3.0.0-rc.1

06 Feb 13:19

Choose a tag to compare

3.0.0-rc.1 Pre-release
Pre-release

Sentry JavaScript V10

Version 10 of the Sentry JavaScript SDK primarily focuses on upgrading underlying OpenTelemetry dependencies to v2 with minimal breaking changes.

Version 10 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v9). Lower versions may continue to work, but may not support all features.

SDK Initialization changed for Sentry Vue and Nuxt

Instead of adding the Nuxt/Vue options into Sentry.init options, you will now have to add it inside siblingOptions, this only applies to parameters specific to the respective SDK, other SDKs like React or Angular won't have to do that:

before

Sentry.init({
  app: app,
  attachErrorHandler: false,
  dsn: '...',
  enableLogs: true,...
}, vueInit);

after

Sentry.init({
  dsn: '...',
  enableLogs: true,
  siblingOptions: {
    vueOptions: {
        app: app,
        attachErrorHandler: false,
        ...
    }
  },
  ...
}, vueInit);

Removed APIs

The changes outlined in this section detail deprecated APIs that are now removed.

* BaseClient was removed, use Client as a direct replacement.
* hasTracingEnabled was removed, use hasSpansEnabled as a direct replacement.
* The internal logger and type Logger exports in @sentry/core were removed, use debug and type SentryDebugLogger instead. This does not affect the logger export used for [Sentry Logging](https://docs.sentry.io/product/explore/logs/getting-started/).
* The _experiments.enableLogs and _experiments.beforeSendLog options were removed, use the top-level enableLogs and beforeSendLog options instead.
// before
Sentry.init({
  _experiments: {
    enableLogs: true,
    beforeSendLog: (log) => {
      return log;
    },
  },
});
// after
Sentry.init({
  enableLogs: true,
  beforeSendLog: (log) => {
    return log;
  },
});

Removed Options

  • _experimental.enableLogs was removed, please use the options enableLogs from CapacitorOptions.

For more informations, please go to the following link: https://docs.sentry.io/platforms/javascript/migration/v9-to-v10

Sentry Cocoa V9

  • With the addition of Sentry Cocoa V9, you may face issues when building your project, this is due to the increased minimum required version bump for the Apple platform, you can see the specific changes on the breaking change section.

PodSpec support

  • The current version continues to support Podspec-based setup, however future major releases will support only Swift Package Manager (SPM). We recommend migrating your project to SPM to ensure a smooth transition to upcoming SDK versions.

Breaking Changes

Minimum Version Requirements

  • iOS/macOS/tvOS:
    • iOS 15.0+ (previously 11.0+)
    • macOS 10.14+ (previously 10.13+)
    • tvOS 15.0+ (previously 11.0+)

Features

  • Add native attributes to logs (#1086)
  • Add Replay ID to logs (#1086)
  • Support for Capacitor 8 (#1071) - Special thanks to (jb3rndt).
  • Add experimental Metric support for Web and iOS (#1055)
  • Add Fallback to JavaScript SDK when Native SDK fails to initialize (#1043)
  • Add spotlight integration spotlightIntegration. (#1039)

Fixes

  • Disable Native Android Session Replay (#1105)

  • Duplicated session When running Capacitor as an app (#1088)

  • Added missing integrations inboundFiltersIntegration, functionToStringIntegration, browserApiErrorsIntegration, breadcrumbsIntegration, globalHandlersIntegration, linkedErrorsIntegration, dedupeIntegration and browserSessionIntegration (#1047)

  • Breadcrumbs are now showing and are tied with native breadcrumbs too (#1047)

  • Init now showing the correct JSDoc for Vue/Nuxt init parameters. (#1046)

  • Replays/Logs/Sessions now have the capacitor SDK name as the source of the event. (#1043)

  • Sentry Capacitor integrations are now exposed to @sentry/capacitor (#1039)

Dependencies

3.0.0-beta.3

28 Jan 11:20

Choose a tag to compare

3.0.0-beta.3 Pre-release
Pre-release

Features

  • Add native attributes to logs (#1086)
  • Add Replay ID to logs (#1086)

Fixes

  • Duplicated session When running Capacitor as an app (#1088)

Dependencies

3.0.0-beta.2

13 Jan 14:40

Choose a tag to compare

3.0.0-beta.2 Pre-release
Pre-release

Features

  • Support for Capacitor 8 (#1071) - Special thanks to (jb3rndt).

3.0.0-beta.1

16 Dec 08:13
43ba90e

Choose a tag to compare

3.0.0-beta.1 Pre-release
Pre-release

Break Changes

Sentry JavaScript V10

Version 10 of the Sentry JavaScript SDK primarily focuses on upgrading underlying OpenTelemetry dependencies to v2 with minimal breaking changes.

Version 10 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v9). Lower versions may continue to work, but may not support all features.

Init changed for Sentry Vue and Nuxt

Instead of adding the Nuxt/Vue options into Sentry.init options, you will now have to add it inside siblingOptions, this only applies to parameters specific to the respective SDK, other SDKs like React or Angular won't have to do that:

before

Sentry.init({
  app: app,
  attachErrorHandler: false,
  dsn: '...',
  enableLogs: true,...
}, vueInit);

after

Sentry.init({
  dsn: '...',
  enableLogs: true,
  siblingOptions: {
    vueOptions: {
        app: app,
        attachErrorHandler: false,
        ...
    }
  },
  ...
}, vueInit);

Features

  • Add experimental Metric support for Web and iOS (#1055)
  • Add Fallback to JavaScript SDK when Native SDK fails to initialize (#1043)
  • Add spotlight integration spotlightIntegration. (#1039)

Fixes

  • Added missing integrations inboundFiltersIntegration, functionToStringIntegration, browserApiErrorsIntegration, breadcrumbsIntegration, globalHandlersIntegration, linkedErrorsIntegration, dedupeIntegration and browserSessionIntegration (#1047)

  • Breadcrumbs are now showing and are tied with native breadcrumbs too (#1047)

  • Init now showing the correct JSDoc for Vue/Nuxt init parameters. (#1046)

  • Replays/Logs/Sessions now have the capacitor SDK name as the source of the event. (#1043)

  • Sentry Capacitor integrations are now exposed to @sentry/capacitor (#1039)

Removed APIs

The changes outlined in this section detail deprecated APIs that are now removed.

* BaseClient was removed, use Client as a direct replacement.
* hasTracingEnabled was removed, use hasSpansEnabled as a direct replacement.
* The internal logger and type Logger exports in @sentry/core were removed, use debug and type SentryDebugLogger instead. This does not affect the logger export used for [Sentry Logging](https://docs.sentry.io/product/explore/logs/getting-started/).
* The _experiments.enableLogs and _experiments.beforeSendLog options were removed, use the top-level enableLogs and beforeSendLog options instead.
// before
Sentry.init({
  _experiments: {
    enableLogs: true,
    beforeSendLog: (log) => {
      return log;
    },
  },
});
// after
Sentry.init({
  enableLogs: true,
  beforeSendLog: (log) => {
    return log;
  },
});

Removed Options

  • _experimental.enableLogs was removed, please use the options enableLogs from CapacitorOptions.

For more informations, please go to the following link: https://docs.sentry.io/platforms/javascript/migration/v9-to-v10

Dependencies

2.4.1

07 Nov 14:56

Choose a tag to compare

Fixes

  • Replay not being captured on Android (#1028)

2.4.0

14 Oct 11:34
1d58198

Choose a tag to compare

Update CHANGELOG.md (#1003)