Skip to content

Commit 524f5ca

Browse files
authored
feat(sdk): Upgrade @sentry SDKs to v8.43.0 (#81925)
Planning to instrument the new browser `featureFlagsIntegration` to track internal flag evaluations. We need the latest release for this (https://github.com/getsentry/sentry-javascript/releases/tag/8.43.0). @sentry/types was deprecated so I've changed imports to use @sentry/core
1 parent 040076d commit 524f5ca

File tree

20 files changed

+298
-301
lines changed

20 files changed

+298
-301
lines changed

build-utils/sentry-instrumentation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-env node */
2+
import type {Span} from '@sentry/core';
23
import type * as Sentry from '@sentry/node';
3-
import type {Span} from '@sentry/types';
44
import crypto from 'node:crypto';
55
import https from 'node:https';
66
import os from 'node:os';

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@
5656
"@sentry-internal/rrweb": "2.26.0",
5757
"@sentry-internal/rrweb-player": "2.26.0",
5858
"@sentry-internal/rrweb-snapshot": "2.26.0",
59-
"@sentry/core": "8.39.0-beta.0",
60-
"@sentry/node": "8.39.0-beta.0",
61-
"@sentry/react": "8.39.0-beta.0",
59+
"@sentry/core": "8.43.0",
60+
"@sentry/node": "8.43.0",
61+
"@sentry/react": "8.43.0",
6262
"@sentry/release-parser": "^1.3.1",
6363
"@sentry/status-page-list": "^0.3.0",
64-
"@sentry/types": "8.39.0-beta.0",
65-
"@sentry/utils": "8.39.0-beta.0",
64+
"@sentry/types": "8.43.0",
65+
"@sentry/utils": "8.43.0",
6666
"@sentry/webpack-plugin": "^2.22.4",
6767
"@spotlightjs/spotlight": "^2.0.0-alpha.1",
6868
"@tanstack/react-query": "^5.56.2",
@@ -179,7 +179,7 @@
179179
"@emotion/eslint-plugin": "^11.12.0",
180180
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
181181
"@sentry/jest-environment": "6.0.0",
182-
"@sentry/profiling-node": "8.39.0-beta.0",
182+
"@sentry/profiling-node": "8.43.0",
183183
"@styled/typescript-styled-plugin": "^1.0.1",
184184
"@testing-library/dom": "10.1.0",
185185
"@testing-library/jest-dom": "6.4.5",

static/app/bootstrap/initializeSdk.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// eslint-disable-next-line simple-import-sort/imports
22
import * as Sentry from '@sentry/react';
3-
import {_browserPerformanceTimeOriginMode} from '@sentry/utils';
4-
import type {Event} from '@sentry/types';
3+
import {type Event, _browserPerformanceTimeOriginMode} from '@sentry/core';
54

65
import {SENTRY_RELEASE_VERSION, SPA_DSN} from 'sentry/constants';
76
import type {Config} from 'sentry/types/system';

static/app/components/badge/featureBadge.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {Fragment, type ReactNode} from 'react';
22
import {useTheme} from '@emotion/react';
33
import styled from '@emotion/styled';
4+
import type {SeverityLevel} from '@sentry/core';
45
import {captureException, withScope} from '@sentry/react';
5-
import type {SeverityLevel} from '@sentry/types';
66

77
import Badge from 'sentry/components/badge/badge';
88
import CircleIndicator from 'sentry/components/circleIndicator';

static/app/components/devtoolbar/hooks/useReplayRecorder.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {useCallback, useEffect, useState} from 'react';
2+
import type {ReplayRecordingMode} from '@sentry/core';
23
import type {replayIntegration} from '@sentry/react';
3-
import type {ReplayRecordingMode} from '@sentry/types';
44

55
import useConfiguration from 'sentry/components/devtoolbar/hooks/useConfiguration';
66
import {useSessionStorage} from 'sentry/utils/useSessionStorage';

static/app/components/devtoolbar/hooks/useSentryClientAndScope.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {Client, Scope} from '@sentry/types';
1+
import type {Client, Scope} from '@sentry/core';
22

33
type V8Carrier = {
44
stack: {

static/app/components/events/featureFlags/useIssueEvents.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {Event} from '@sentry/types';
1+
import type {Event} from '@sentry/core';
22

33
import {useApiQuery} from 'sentry/utils/queryClient';
44
import useOrganization from 'sentry/utils/useOrganization';

static/app/components/featureFeedback/feedbackModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import {Fragment, useCallback, useMemo, useState} from 'react';
22
import {css, useTheme} from '@emotion/react';
33
import styled from '@emotion/styled';
4+
import type {Event} from '@sentry/core';
45
import {
56
BrowserClient,
67
captureFeedback,
78
defaultStackParser,
89
getDefaultIntegrations,
910
makeFetchTransport,
1011
} from '@sentry/react';
11-
import type {Event} from '@sentry/types';
1212
import cloneDeep from 'lodash/cloneDeep';
1313

1414
import {addSuccessMessage} from 'sentry/actionCreators/indicator';

static/app/components/feedback/widget/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {Event} from '@sentry/types';
1+
import type {Event} from '@sentry/core';
22

33
/**
44
* NOTE: These types are still considered Beta and subject to change.

static/app/components/group/externalIssueForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type {Span} from '@sentry/core';
12
import * as Sentry from '@sentry/react';
2-
import type {Span} from '@sentry/types';
33

44
import {addSuccessMessage} from 'sentry/actionCreators/indicator';
55
import type DeprecatedAsyncComponent from 'sentry/components/deprecatedAsyncComponent';

static/app/types/event.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {CloudResourceContext} from '@sentry/types';
1+
import type {CloudResourceContext} from '@sentry/core';
22

33
import type {CultureContext} from 'sentry/components/events/contexts/knownContext/culture';
44
import type {MissingInstrumentationContext} from 'sentry/components/events/contexts/knownContext/missingInstrumentation';

static/app/utils/analytics.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type {Span} from '@sentry/core';
12
import * as Sentry from '@sentry/react';
2-
import type {Span} from '@sentry/types';
33

44
import HookStore from 'sentry/stores/hookStore';
55
import type {Hooks} from 'sentry/types/hooks';

static/app/utils/featureObserver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {FeatureFlagContext} from '@sentry/types/build/types/context';
1+
import type {FeatureFlagContext} from '@sentry/core/build/types/types-hoist/context';
22

33
import type {Organization} from 'sentry/types/organization';
44
import type {Project} from 'sentry/types/project';

static/app/utils/performanceForSentry/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {ProfilerOnRenderCallback, ReactNode} from 'react';
22
import {Fragment, Profiler, useEffect, useRef} from 'react';
3+
import type {MeasurementUnit, Span, TransactionEvent} from '@sentry/core';
34
import * as Sentry from '@sentry/react';
4-
import type {MeasurementUnit, Span, TransactionEvent} from '@sentry/types';
55
import {
66
_browserPerformanceTimeOriginMode,
77
browserPerformanceTimeOrigin,

static/app/utils/profiling/profile/importProfile.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type {Span} from '@sentry/core';
12
import * as Sentry from '@sentry/react';
2-
import type {Span} from '@sentry/types';
33

44
import type {Image} from 'sentry/types/debugImage';
55

static/app/utils/profiling/profile/utils.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type {Span} from '@sentry/core';
12
import * as Sentry from '@sentry/react';
2-
import type {Span} from '@sentry/types';
33

44
import {defined} from 'sentry/utils';
55
import type {FlamegraphFrame} from 'sentry/utils/profiling/flamegraphFrame';

static/app/utils/useFeedbackForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
useEffect,
77
useRef,
88
} from 'react';
9-
import type {FeedbackModalIntegration} from '@sentry/types';
9+
import type {FeedbackModalIntegration} from '@sentry/core';
1010

1111
import {
1212
useFeedback,

static/app/views/routeError.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {useEffect} from 'react';
22
import styled from '@emotion/styled';
3+
import type {Scope} from '@sentry/core';
34
import * as Sentry from '@sentry/react';
4-
import type {Scope} from '@sentry/types';
55

66
import {getLastEventId} from 'sentry/bootstrap/initializeSdk';
77
import {Alert} from 'sentry/components/alert';

static/app/views/settings/featureFlags/useUserFromId.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {User} from '@sentry/types';
1+
import type {User} from '@sentry/core';
22

33
import {useApiQuery} from 'sentry/utils/queryClient';
44
import useOrganization from 'sentry/utils/useOrganization';

0 commit comments

Comments
 (0)