@sentry/ember 7.44.1 → 7.45.0

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.
@@ -386,7 +386,7 @@ export async function instrumentForPerformance(appInstance: ApplicationInstance)
386
386
  // Maintaining backwards compatibility with config.browserTracingOptions, but passing it with Sentry options is preferred.
387
387
  const browserTracingOptions = config.browserTracingOptions || config.sentry.browserTracingOptions || {};
388
388
 
389
- const tracing = await import('@sentry/tracing');
389
+ const { BrowserTracing } = await import('@sentry/browser');
390
390
 
391
391
  const idleTimeout = config.transitionTimeout || 5000;
392
392
 
@@ -394,7 +394,7 @@ export async function instrumentForPerformance(appInstance: ApplicationInstance)
394
394
 
395
395
  sentryConfig['integrations'] = [
396
396
  ...existingIntegrations,
397
- new tracing.Integrations.BrowserTracing({
397
+ new BrowserTracing({
398
398
  routingInstrumentation: (customStartTransaction, startTransactionOnPageLoad) => {
399
399
  const routerMain = appInstance.lookup('router:main');
400
400
  let routerService = appInstance.lookup('service:router') as
@@ -421,7 +421,7 @@ export async function instrumentForPerformance(appInstance: ApplicationInstance)
421
421
  ];
422
422
 
423
423
  class FakeBrowserTracingClass {
424
- static id = tracing.BROWSER_TRACING_INTEGRATION_ID;
424
+ static id = 'BrowserTracing';
425
425
  public name = FakeBrowserTracingClass.id;
426
426
  setupOnce() {
427
427
  // noop - We're just faking this class for a lookup
package/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
+ import * as Sentry from '@sentry/browser';
1
2
  import { BrowserOptions } from '@sentry/browser';
2
3
  export declare function InitSentryForEmber(_runtimeConfig?: BrowserOptions): void;
3
- export declare const getActiveTransaction: () => import("@sentry/types").Transaction | undefined;
4
+ export declare const getActiveTransaction: () => Sentry.Transaction | undefined;
4
5
  export declare const instrumentRoutePerformance: (BaseRoute: any) => {
5
6
  new (): {
6
7
  [x: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/ember",
3
- "version": "7.44.1",
3
+ "version": "7.45.0",
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",
@@ -29,10 +29,9 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@embroider/macros": "^1.9.0",
32
- "@sentry/browser": "7.44.1",
33
- "@sentry/tracing": "7.44.1",
34
- "@sentry/types": "7.44.1",
35
- "@sentry/utils": "7.44.1",
32
+ "@sentry/browser": "7.45.0",
33
+ "@sentry/types": "7.45.0",
34
+ "@sentry/utils": "7.45.0",
36
35
  "ember-auto-import": "^1.12.1 || ^2.4.3",
37
36
  "ember-cli-babel": "^7.26.11",
38
37
  "ember-cli-htmlbars": "^6.1.1",