@sentry/ember 7.93.0 → 7.94.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/addon/index.ts CHANGED
@@ -74,7 +74,7 @@ export function InitSentryForEmber(_runtimeConfig?: BrowserOptions): void {
74
74
  */
75
75
  export const getActiveTransaction = (): Transaction | undefined => {
76
76
  // eslint-disable-next-line deprecation/deprecation
77
- return Sentry.getCurrentHub().getScope().getTransaction();
77
+ return Sentry.getCurrentScope().getTransaction();
78
78
  };
79
79
 
80
80
  type RouteConstructor = new (...args: ConstructorParameters<typeof Route>) => Route;
@@ -437,19 +437,19 @@ export async function instrumentForPerformance(appInstance: ApplicationInstance)
437
437
  });
438
438
 
439
439
  if (macroCondition(isTesting())) {
440
- const client = Sentry.getCurrentHub().getClient();
440
+ const client = Sentry.getClient();
441
441
 
442
442
  if (
443
443
  client &&
444
- (client as BrowserClient).getIntegrationById &&
445
- (client as BrowserClient).getIntegrationById('BrowserTracing')
444
+ (client as BrowserClient).getIntegrationByName &&
445
+ (client as BrowserClient).getIntegrationByName('BrowserTracing')
446
446
  ) {
447
447
  // Initializers are called more than once in tests, causing the integrations to not be setup correctly.
448
448
  return;
449
449
  }
450
450
  }
451
451
 
452
- const client = Sentry.getCurrentHub().getClient();
452
+ const client = Sentry.getClient();
453
453
  if (client && client.addIntegration) {
454
454
  client.addIntegration(browserTracing);
455
455
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/ember",
3
- "version": "7.93.0",
3
+ "version": "7.94.1",
4
4
  "description": "Official Sentry SDK for Ember.js",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/ember",
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@embroider/macros": "^1.9.0",
35
- "@sentry/browser": "7.93.0",
36
- "@sentry/core": "7.93.0",
37
- "@sentry/types": "7.93.0",
38
- "@sentry/utils": "7.93.0",
35
+ "@sentry/browser": "7.94.1",
36
+ "@sentry/core": "7.94.1",
37
+ "@sentry/types": "7.94.1",
38
+ "@sentry/utils": "7.94.1",
39
39
  "ember-auto-import": "^1.12.1 || ^2.4.3",
40
40
  "ember-cli-babel": "^7.26.11",
41
41
  "ember-cli-htmlbars": "^6.1.1",