3.0.0-beta.1
Pre-releaseBreak 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,dedupeIntegrationandbrowserSessionIntegration(#1047)- This fixes the following option parameters that weren't working:
ignoreErrors,ignoreTransactions,allowUrls,denyUrls - For more information about the Integrations, check the following link: https://docs.sentry.io/platforms/javascript/configuration/integrations.
- This fixes the following option parameters that weren't working:
-
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
capacitorSDK 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.enableLogswas removed, please use the optionsenableLogsfromCapacitorOptions.
For more informations, please go to the following link: https://docs.sentry.io/platforms/javascript/migration/v9-to-v10