Skip to content

Commit a4a99c4

Browse files
committed
anr deprecation ignore
1 parent e9d0bc6 commit a4a99c4

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

packages/node/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export { localVariablesIntegration } from './integrations/local-variables';
1010
export { modulesIntegration } from './integrations/modules';
1111
export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception';
1212
export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection';
13+
// eslint-disable-next-line deprecation/deprecation
1314
export { anrIntegration, disableAnrDetectionForCallback } from './integrations/anr';
1415

1516
export { expressIntegration, expressErrorHandler, setupExpressErrorHandler } from './integrations/tracing/express';

packages/node/src/integrations/anr/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export interface AnrIntegrationOptions {
7171
appRootPath: string | undefined;
7272
}
7373

74+
// eslint-disable-next-line deprecation/deprecation
7475
export interface WorkerStartData extends AnrIntegrationOptions {
7576
debug: boolean;
7677
sdkMetadata: SdkMetadata;

packages/node/src/integrations/anr/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const INTEGRATION_NAME = 'Anr';
6666

6767
type AnrInternal = { startWorker: () => void; stopWorker: () => void };
6868

69+
// eslint-disable-next-line deprecation/deprecation
6970
const _anrIntegration = ((options: Partial<AnrIntegrationOptions> = {}) => {
7071
if (NODE_VERSION.major < 16 || (NODE_VERSION.major === 16 && NODE_VERSION.minor < 17)) {
7172
throw new Error('ANR detection requires Node 16.17.0 or later');
@@ -114,6 +115,7 @@ const _anrIntegration = ((options: Partial<AnrIntegrationOptions> = {}) => {
114115
} as Integration & AnrInternal;
115116
}) satisfies IntegrationFn;
116117

118+
// eslint-disable-next-line deprecation/deprecation
117119
type AnrReturn = (options?: Partial<AnrIntegrationOptions>) => Integration & AnrInternal;
118120

119121
/**
@@ -175,6 +177,7 @@ export const anrIntegration = defineIntegration(_anrIntegration) as AnrReturn;
175177
*/
176178
async function _startWorker(
177179
client: NodeClient,
180+
// eslint-disable-next-line deprecation/deprecation
178181
integrationOptions: Partial<AnrIntegrationOptions>,
179182
): Promise<() => void> {
180183
const dsn = client.getDsn();

0 commit comments

Comments
 (0)