Skip to content

Commit 425b114

Browse files
authored
feat(v8/browser): Remove class export for linked errors (#11129)
ref #8844
1 parent 799dab0 commit 425b114

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

packages/browser/src/integrations/linkederrors.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { convertIntegrationFnToClass, defineIntegration } from '@sentry/core';
2-
import type { Client, Event, EventHint, Integration, IntegrationClass, IntegrationFn } from '@sentry/types';
1+
import { defineIntegration } from '@sentry/core';
2+
import type { IntegrationFn } from '@sentry/types';
33
import { applyAggregateErrorsToEvent } from '@sentry/utils';
44
import { exceptionFromError } from '../eventbuilder';
55

@@ -36,13 +36,7 @@ const _linkedErrorsIntegration = ((options: LinkedErrorsOptions = {}) => {
3636
};
3737
}) satisfies IntegrationFn;
3838

39-
export const linkedErrorsIntegration = defineIntegration(_linkedErrorsIntegration);
40-
4139
/**
4240
* Aggregrate linked errors in an event.
43-
* @deprecated Use `linkedErrorsIntegration()` instead.
4441
*/
45-
// eslint-disable-next-line deprecation/deprecation
46-
export const LinkedErrors = convertIntegrationFnToClass(INTEGRATION_NAME, linkedErrorsIntegration) as IntegrationClass<
47-
Integration & { preprocessEvent: (event: Event, hint: EventHint, client: Client) => void }
48-
> & { new (options?: { key?: string; limit?: number }): Integration };
42+
export const linkedErrorsIntegration = defineIntegration(_linkedErrorsIntegration);

0 commit comments

Comments
 (0)