Skip to content

Commit 18ce5e8

Browse files
antonisweb-flowlucas-zimerman
authored
chore: deprecates Sentry/types (#4368)
* chore: update scripts/update-javascript.sh to 8.44.0 * Deprecates sentry/types in favor of sentry/core --------- Co-authored-by: GitHub <[email protected]> Co-authored-by: LucasZF <[email protected]>
1 parent 2413691 commit 18ce5e8

File tree

106 files changed

+113
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+113
-125
lines changed

packages/core/src/js/NativeRNSentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Package } from '@sentry/types';
1+
import type { Package } from '@sentry/core';
22
import type { TurboModule } from 'react-native';
33
import { TurboModuleRegistry } from 'react-native';
44

packages/core/src/js/breadcrumb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { Breadcrumb, SeverityLevel } from '@sentry/core';
12
import { severityLevelFromString } from '@sentry/core';
2-
import type { Breadcrumb, SeverityLevel } from '@sentry/types';
33

44
export const DEFAULT_BREADCRUMB_LEVEL: SeverityLevel = 'info';
55

packages/core/src/js/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { eventFromException, eventFromMessage } from '@sentry/browser';
2-
import { BaseClient, dateTimestampInSeconds, logger, SentryError } from '@sentry/core';
32
import type {
43
ClientReportEnvelope,
54
ClientReportItem,
@@ -10,7 +9,8 @@ import type {
109
SeverityLevel,
1110
TransportMakeRequestResponse,
1211
UserFeedback,
13-
} from '@sentry/types';
12+
} from '@sentry/core';
13+
import { BaseClient, dateTimestampInSeconds, logger, SentryError } from '@sentry/core';
1414
import { Alert } from 'react-native';
1515

1616
import { getDevServer } from './integrations/debugsymbolicatorutils';

packages/core/src/js/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type {
1212
Thread,
1313
User,
1414
UserFeedback,
15-
} from '@sentry/types';
15+
} from '@sentry/core';
1616

1717
export {
1818
addBreadcrumb,

packages/core/src/js/integrations/debugsymbolicator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { Event, EventHint, Exception, Integration, StackFrame as SentryStackFrame } from '@sentry/core';
12
import { logger } from '@sentry/core';
2-
import type { Event, EventHint, Exception, Integration, StackFrame as SentryStackFrame } from '@sentry/types';
33

44
import type { ExtendedError } from '../utils/error';
55
import { getFramesToPop, isErrorLike } from '../utils/error';

packages/core/src/js/integrations/debugsymbolicatorutils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { StackFrame as SentryStackFrame } from '@sentry/core';
12
import { logger } from '@sentry/core';
2-
import type { StackFrame as SentryStackFrame } from '@sentry/types';
33

44
import { ReactNativeLibraries } from '../utils/rnlibraries';
55
import { createStealthXhr, XHR_READYSTATE_DONE } from '../utils/xhr';

packages/core/src/js/integrations/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable complexity */
2+
import type { Integration } from '@sentry/core';
23
import type { BrowserOptions } from '@sentry/react';
3-
import type { Integration } from '@sentry/types';
44

55
import type { ReactNativeClientOptions } from '../options';
66
import { reactNativeTracingIntegration } from '../tracing';

packages/core/src/js/integrations/devicecontext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable complexity */
2+
import type { Client, Event, EventHint, Integration } from '@sentry/core';
23
import { logger, severityLevelFromString } from '@sentry/core';
3-
import type { Client, Event, EventHint, Integration } from '@sentry/types';
44
import { AppState } from 'react-native';
55

66
import { breadcrumbFromObject } from '../breadcrumb';

packages/core/src/js/integrations/eventorigin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Event, Integration } from '@sentry/types';
1+
import type { Event, Integration } from '@sentry/core';
22

33
const INTEGRATION_NAME = 'EventOrigin';
44

packages/core/src/js/integrations/expocontext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { DeviceContext, Event, Integration, OsContext } from '@sentry/types';
1+
import type { DeviceContext, Event, Integration, OsContext } from '@sentry/core';
22

33
import { getExpoDevice } from '../utils/expomodules';
44

0 commit comments

Comments
 (0)