Browse Source

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
Andrew Liu 3 months ago
parent
commit
524f5ca6a7

+ 1 - 1
build-utils/sentry-instrumentation.ts

@@ -1,6 +1,6 @@
 /* eslint-env node */
+import type {Span} from '@sentry/core';
 import type * as Sentry from '@sentry/node';
-import type {Span} from '@sentry/types';
 import crypto from 'node:crypto';
 import https from 'node:https';
 import os from 'node:os';

+ 6 - 6
package.json

@@ -56,13 +56,13 @@
     "@sentry-internal/rrweb": "2.26.0",
     "@sentry-internal/rrweb-player": "2.26.0",
     "@sentry-internal/rrweb-snapshot": "2.26.0",
-    "@sentry/core": "8.39.0-beta.0",
-    "@sentry/node": "8.39.0-beta.0",
-    "@sentry/react": "8.39.0-beta.0",
+    "@sentry/core": "8.43.0",
+    "@sentry/node": "8.43.0",
+    "@sentry/react": "8.43.0",
     "@sentry/release-parser": "^1.3.1",
     "@sentry/status-page-list": "^0.3.0",
-    "@sentry/types": "8.39.0-beta.0",
-    "@sentry/utils": "8.39.0-beta.0",
+    "@sentry/types": "8.43.0",
+    "@sentry/utils": "8.43.0",
     "@sentry/webpack-plugin": "^2.22.4",
     "@spotlightjs/spotlight": "^2.0.0-alpha.1",
     "@tanstack/react-query": "^5.56.2",
@@ -179,7 +179,7 @@
     "@emotion/eslint-plugin": "^11.12.0",
     "@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
     "@sentry/jest-environment": "6.0.0",
-    "@sentry/profiling-node": "8.39.0-beta.0",
+    "@sentry/profiling-node": "8.43.0",
     "@styled/typescript-styled-plugin": "^1.0.1",
     "@testing-library/dom": "10.1.0",
     "@testing-library/jest-dom": "6.4.5",

+ 1 - 2
static/app/bootstrap/initializeSdk.tsx

@@ -1,7 +1,6 @@
 // eslint-disable-next-line simple-import-sort/imports
 import * as Sentry from '@sentry/react';
-import {_browserPerformanceTimeOriginMode} from '@sentry/utils';
-import type {Event} from '@sentry/types';
+import {type Event, _browserPerformanceTimeOriginMode} from '@sentry/core';
 
 import {SENTRY_RELEASE_VERSION, SPA_DSN} from 'sentry/constants';
 import type {Config} from 'sentry/types/system';

+ 1 - 1
static/app/components/badge/featureBadge.tsx

@@ -1,8 +1,8 @@
 import {Fragment, type ReactNode} from 'react';
 import {useTheme} from '@emotion/react';
 import styled from '@emotion/styled';
+import type {SeverityLevel} from '@sentry/core';
 import {captureException, withScope} from '@sentry/react';
-import type {SeverityLevel} from '@sentry/types';
 
 import Badge from 'sentry/components/badge/badge';
 import CircleIndicator from 'sentry/components/circleIndicator';

+ 1 - 1
static/app/components/devtoolbar/hooks/useReplayRecorder.tsx

@@ -1,6 +1,6 @@
 import {useCallback, useEffect, useState} from 'react';
+import type {ReplayRecordingMode} from '@sentry/core';
 import type {replayIntegration} from '@sentry/react';
-import type {ReplayRecordingMode} from '@sentry/types';
 
 import useConfiguration from 'sentry/components/devtoolbar/hooks/useConfiguration';
 import {useSessionStorage} from 'sentry/utils/useSessionStorage';

+ 1 - 1
static/app/components/devtoolbar/hooks/useSentryClientAndScope.tsx

@@ -1,4 +1,4 @@
-import type {Client, Scope} from '@sentry/types';
+import type {Client, Scope} from '@sentry/core';
 
 type V8Carrier = {
   stack: {

+ 1 - 1
static/app/components/events/featureFlags/useIssueEvents.tsx

@@ -1,4 +1,4 @@
-import type {Event} from '@sentry/types';
+import type {Event} from '@sentry/core';
 
 import {useApiQuery} from 'sentry/utils/queryClient';
 import useOrganization from 'sentry/utils/useOrganization';

+ 1 - 1
static/app/components/featureFeedback/feedbackModal.tsx

@@ -1,6 +1,7 @@
 import {Fragment, useCallback, useMemo, useState} from 'react';
 import {css, useTheme} from '@emotion/react';
 import styled from '@emotion/styled';
+import type {Event} from '@sentry/core';
 import {
   BrowserClient,
   captureFeedback,
@@ -8,7 +9,6 @@ import {
   getDefaultIntegrations,
   makeFetchTransport,
 } from '@sentry/react';
-import type {Event} from '@sentry/types';
 import cloneDeep from 'lodash/cloneDeep';
 
 import {addSuccessMessage} from 'sentry/actionCreators/indicator';

+ 1 - 1
static/app/components/feedback/widget/types.ts

@@ -1,4 +1,4 @@
-import type {Event} from '@sentry/types';
+import type {Event} from '@sentry/core';
 
 /**
  * NOTE: These types are still considered Beta and subject to change.

+ 1 - 1
static/app/components/group/externalIssueForm.tsx

@@ -1,5 +1,5 @@
+import type {Span} from '@sentry/core';
 import * as Sentry from '@sentry/react';
-import type {Span} from '@sentry/types';
 
 import {addSuccessMessage} from 'sentry/actionCreators/indicator';
 import type DeprecatedAsyncComponent from 'sentry/components/deprecatedAsyncComponent';

Some files were not shown because too many files changed in this diff