Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ export function collectReplayRequests(
const replayEvents: ReplayEvent[] = [];
const replayRecordingSnapshots: RecordingSnapshot[] = [];

// eslint-disable-next-line @typescript-eslint/no-floating-promises
const promise = page.waitForResponse(res => {
const req = res.request();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app.use(cors());

app.get('/check', (req, res) => {
const appPort = getPortAppIsRunningOn(app);
// eslint-disable-next-line no-undef

fetch(`http://localhost:${appPort}/bounce`)
.then(r => r.json())
.then(bounceRes => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ app.use(cors());

app.get('/check', (req, res) => {
const appPort = getPortAppIsRunningOn(app);
// eslint-disable-next-line no-undef

fetch(`http://localhost:${appPort}/bounce`)
.then(r => r.json())
.then(bounceRes => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app.use(cors());

app.get('/check', (req, res) => {
const appPort = getPortAppIsRunningOn(app);
// eslint-disable-next-line no-undef

fetch(`http://localhost:${appPort}/bounce`)
.then(r => r.json())
.then(bounceRes => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app.use(cors());

app.get('/check', (req, res) => {
const appPort = getPortAppIsRunningOn(app);
// eslint-disable-next-line no-undef

fetch(`http://localhost:${appPort}/bounce`)
.then(r => r.json())
.then(bounceRes => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ app.get('/check', (req, res) => {
Sentry.startSpan({ name: 'check-endpoint' }, async () => {
const appPort = getPortAppIsRunningOn(app);
try {
// eslint-disable-next-line no-undef
const response = await fetch(`http://localhost:${appPort}/bounce`);
const bounceRes = await response.json();
// eslint-disable-next-line no-console
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ async function run() {
});
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ async function run() {
);
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ app.use(cors());

app.get('/check', (req, res) => {
const appPort = getPortAppIsRunningOn(app);
// eslint-disable-next-line no-undef

fetch(`http://localhost:${appPort}/bounce`)
.then(r => r.json())
.then(bounceRes => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ app.use(cors());

app.get('/check', (req, res) => {
const appPort = getPortAppIsRunningOn(app);
// eslint-disable-next-line no-undef

fetch(`http://localhost:${appPort}/bounce`)
.then(r => r.json())
.then(bounceRes => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ app.use(cors());

app.get('/check', (req, res) => {
const appPort = getPortAppIsRunningOn(app);
// eslint-disable-next-line no-undef

fetch(`http://localhost:${appPort}/bounce`)
.then(r => r.json())
.then(bounceRes => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ app.use(cors());

app.get('/check', (req, res) => {
const appPort = getPortAppIsRunningOn(app);
// eslint-disable-next-line no-undef

fetch(`http://localhost:${appPort}/bounce`)
.then(r => r.json())
.then(bounceRes => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ app.use(cors());

app.get('/check', (req, res) => {
const appPort = getPortAppIsRunningOn(app);
// eslint-disable-next-line no-undef

fetch(`http://localhost:${appPort}/bounce`)
.then(r => r.json())
.then(bounceRes => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"deepmerge": "^4.2.2",
"downlevel-dts": "~0.11.0",
"es-check": "^7.2.1",
"eslint": "7.32.0",
"eslint": "8.57.0",
"jsdom": "^21.1.2",
"lerna": "7.1.1",
"madge": "8.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/angular/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/export */
export type { ErrorHandlerOptions } from './errorhandler';

export * from '@sentry/browser';
Expand Down
1 change: 1 addition & 0 deletions packages/astro/src/index.client.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/export */
export * from '@sentry/browser';

// Override the browserTracingIntegration with the custom Astro version
Expand Down
1 change: 0 additions & 1 deletion packages/astro/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export {
// eslint-disable-next-line deprecation/deprecation
anrIntegration,
googleGenAIIntegration,
// eslint-disable-next-line deprecation/deprecation
disableAnrDetectionForCallback,
captureCheckIn,
captureConsoleIntegration,
Expand Down
1 change: 0 additions & 1 deletion packages/aws-serverless/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export {
winterCGHeadersToDict,
// eslint-disable-next-line deprecation/deprecation
anrIntegration,
// eslint-disable-next-line deprecation/deprecation
disableAnrDetectionForCallback,
consoleIntegration,
httpIntegration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ export class AwsLambdaInstrumentation extends InstrumentationBase<AwsLambdaInstr
return function patchedHandler(
this: never,
// The event can be a user type, it truly is any.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
event: any,
context: Context,
callback: Callback,
Expand Down Expand Up @@ -414,7 +413,6 @@ export class AwsLambdaInstrumentation extends InstrumentationBase<AwsLambdaInstr
private _traceForceFlush(tracerProvider: TracerProvider) {
if (!tracerProvider) return undefined;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
let currentProvider: any = tracerProvider;

if (typeof currentProvider.getDelegate === 'function') {
Expand Down Expand Up @@ -442,7 +440,6 @@ export class AwsLambdaInstrumentation extends InstrumentationBase<AwsLambdaInstr
private _metricForceFlush(meterProvider: MeterProvider) {
if (!meterProvider) return undefined;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const currentProvider: any = meterProvider;

if (typeof currentProvider.forceFlush === 'function') {
Expand Down
1 change: 0 additions & 1 deletion packages/aws-serverless/test/sdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const mockScope = {
};

vi.mock('@sentry/node', async () => {
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
const original = await vi.importActual('@sentry/node');
return {
...original,
Expand Down
1 change: 0 additions & 1 deletion packages/aws-serverless/test/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { eventContextExtractor, getAwsTraceData } from '../src/utils';

const mockExtractContext = vi.fn();
vi.mock('@opentelemetry/api', async () => {
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
const actualApi = await vi.importActual('@opentelemetry/api');
return {
...actualApi,
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-utils/src/metrics/browserMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import {
import { WINDOW } from '../types';
import { trackClsAsStandaloneSpan } from './cls';
import {
type PerformanceLongAnimationFrameTiming,
addClsInstrumentationHandler,
addLcpInstrumentationHandler,
addPerformanceInstrumentationHandler,
addTtfbInstrumentationHandler,
type PerformanceLongAnimationFrameTiming,
} from './instrument';
import { trackLcpAsStandaloneSpan } from './lcp';
import { resourceTimingToSpanAttributes } from './resourceTiming';
Expand Down
1 change: 0 additions & 1 deletion packages/browser/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export class BrowserClient extends Client<BrowserClientOptions> {

// Flush logs and metrics when page becomes hidden (e.g., tab switch, navigation)
// todo(v11): Remove the experimental flag
// eslint-disable-next-line deprecation/deprecation
if (WINDOW.document && (sendClientReports || enableLogs || enableMetrics)) {
WINDOW.document.addEventListener('visibilitychange', () => {
if (WINDOW.document.visibilityState === 'hidden') {
Expand Down
3 changes: 1 addition & 2 deletions packages/browser/src/profiling/UIProfiler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Client, ProfileChunk, Span } from '@sentry/core';
import type { Client, ProfileChunk, ProfileChunkEnvelope, Span } from '@sentry/core';
import {
type ProfileChunkEnvelope,
createEnvelope,
debug,
dsnToString,
Expand Down
3 changes: 1 addition & 2 deletions packages/browser/src/tracing/linkedTraces.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Client, PropagationContext, Span } from '@sentry/core';
import type { Client, PropagationContext, Span, SpanContextData } from '@sentry/core';
import {
type SpanContextData,
debug,
getCurrentScope,
getRootSpan,
Expand Down
1 change: 0 additions & 1 deletion packages/bun/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export {
winterCGHeadersToDict,
// eslint-disable-next-line deprecation/deprecation
anrIntegration,
// eslint-disable-next-line deprecation/deprecation
disableAnrDetectionForCallback,
consoleIntegration,
httpIntegration,
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare/src/durableobject.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable @typescript-eslint/unbound-method */
import {
type Scope,
captureException,
flush,
getClient,
isThenable,
type Scope,
SEMANTIC_ATTRIBUTE_SENTRY_OP,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
startSpan,
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare/test/copy-execution-context.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Mocked, describe, expect, it, vi } from 'vitest';
import { describe, expect, it, type Mocked, vi } from 'vitest';
import { copyExecutionContext } from '../src/utils/copyExecutionContext';

describe('Copy of the execution context', () => {
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -861,13 +861,13 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
*/
public emit(hook: 'idleSpanEnableAutoFinish', span: Span): void;

/*
/**
* Fire a hook event for envelope creation and sending. Expects to be given an envelope as the
* second argument.
*/
public emit(hook: 'beforeEnvelope', envelope: Envelope): void;

/*
/**
* Fire a hook indicating that stack frame metadata should be applied to the event passed to the hook.
*/
public emit(hook: 'applyFrameMetadata', event: Event): void;
Expand Down Expand Up @@ -897,7 +897,7 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
*/
public emit(hook: 'postprocessEvent', event: Event, hint?: EventHint): void;

/*
/**
* Fire a hook event after sending an event. Expects to be given an Event as the
* second argument.
*/
Expand Down
12 changes: 6 additions & 6 deletions packages/core/src/tracing/openai/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import {
GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,
} from '../ai/gen-ai-attributes';
import { RESPONSE_EVENT_TYPES } from './constants';
import type { OpenAIResponseObject } from './types';
import {
type ChatCompletionChunk,
type ChatCompletionToolCall,
type ResponseFunctionCall,
type ResponseStreamingEvent,
import type {
ChatCompletionChunk,
ChatCompletionToolCall,
OpenAIResponseObject,
ResponseFunctionCall,
ResponseStreamingEvent,
} from './types';
import {
isChatCompletionChunk,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/transports/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
forEachEnvelopeItem,
serializeEnvelope,
} from '../utils/envelope';
import { type PromiseBuffer, makePromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from '../utils/promisebuffer';
import { type RateLimits, isRateLimited, updateRateLimits } from '../utils/ratelimit';
import { makePromiseBuffer, type PromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from '../utils/promisebuffer';
import { isRateLimited, type RateLimits, updateRateLimits } from '../utils/ratelimit';

export const DEFAULT_TRANSPORT_BUFFER_SIZE = 64;

Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/lib/integrations/captureconsole.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/unbound-method */

import { type Mock, afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vitest';
import type { Client } from '../../../src';
import * as CurrentScopes from '../../../src/currentScopes';
import * as SentryCore from '../../../src/exports';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/lib/sdk.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Mock, beforeEach, describe, expect, it, test, vi } from 'vitest';
import { beforeEach, describe, expect, it, type Mock, test, vi } from 'vitest';
import type { Client } from '../../src/client';
import { getCurrentScope } from '../../src/currentScopes';
import { captureCheckIn } from '../../src/exports';
Expand Down
Loading
Loading