Skip to content

Commit d26b25d

Browse files
authored
ref(node): Remove class based export for local variable integration (#11128)
I think we missed this from removing the other class-based exports.
1 parent b8c75f4 commit d26b25d

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

packages/node-experimental/src/integrations/local-variables/local-variables-sync.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { convertIntegrationFnToClass, defineIntegration, getClient } from '@sentry/core';
2-
import type { Event, Exception, Integration, IntegrationClass, IntegrationFn, StackParser } from '@sentry/types';
1+
import { defineIntegration, getClient } from '@sentry/core';
2+
import type { Event, Exception, IntegrationFn, StackParser } from '@sentry/types';
33
import { LRUMap, logger } from '@sentry/utils';
44
import type { Debugger, InspectorNotification, Runtime } from 'inspector';
55
import { Session } from 'inspector';
@@ -384,19 +384,7 @@ const _localVariablesSyncIntegration = ((
384384
};
385385
}) satisfies IntegrationFn;
386386

387-
export const localVariablesSyncIntegration = defineIntegration(_localVariablesSyncIntegration);
388-
389387
/**
390388
* Adds local variables to exception frames.
391-
* @deprecated Use `localVariablesSyncIntegration()` instead.
392389
*/
393-
// eslint-disable-next-line deprecation/deprecation
394-
export const LocalVariablesSync = convertIntegrationFnToClass(
395-
INTEGRATION_NAME,
396-
localVariablesSyncIntegration,
397-
) as IntegrationClass<Integration & { processEvent: (event: Event) => Event; setup: (client: NodeClient) => void }> & {
398-
new (options?: LocalVariablesIntegrationOptions, session?: DebugSession): Integration;
399-
};
400-
401-
// eslint-disable-next-line deprecation/deprecation
402-
export type LocalVariablesSync = typeof LocalVariablesSync;
390+
export const localVariablesSyncIntegration = defineIntegration(_localVariablesSyncIntegration);

0 commit comments

Comments
 (0)