Skip to content

Commit b5ec424

Browse files
authored
feat(v8/astro): Remove deprecated exports from Astro SDK (#10611)
This PR removes all deprecations except for `getCurrentHub` which (unless I missed something last week) stays deprecated for now.
1 parent 19c8527 commit b5ec424

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

packages/astro/src/index.server.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import { handleRequest } from './server/middleware';
88

99
// Hence, we export everything from the Node SDK explicitly:
1010
export {
11-
// eslint-disable-next-line deprecation/deprecation
12-
addGlobalEventProcessor,
1311
addEventProcessor,
1412
addBreadcrumb,
1513
captureException,
@@ -18,10 +16,6 @@ export {
1816
captureCheckIn,
1917
withMonitor,
2018
createTransport,
21-
// eslint-disable-next-line deprecation/deprecation
22-
extractTraceparentData,
23-
// eslint-disable-next-line deprecation/deprecation
24-
getActiveTransaction,
2519
getHubFromCarrier,
2620
// eslint-disable-next-line deprecation/deprecation
2721
getCurrentHub,
@@ -31,12 +25,8 @@ export {
3125
getGlobalScope,
3226
getIsolationScope,
3327
Hub,
34-
// eslint-disable-next-line deprecation/deprecation
35-
makeMain,
3628
setCurrentClient,
3729
Scope,
38-
// eslint-disable-next-line deprecation/deprecation
39-
startTransaction,
4030
SDK_VERSION,
4131
setContext,
4232
setExtra,
@@ -46,14 +36,10 @@ export {
4636
setUser,
4737
getSpanStatusFromHttpCode,
4838
setHttpStatus,
49-
// eslint-disable-next-line deprecation/deprecation
50-
trace,
5139
withScope,
5240
withIsolationScope,
5341
autoDiscoverNodePerformanceMonitoringIntegrations,
5442
makeNodeTransport,
55-
// eslint-disable-next-line deprecation/deprecation
56-
defaultIntegrations,
5743
getDefaultIntegrations,
5844
defaultStackParser,
5945
flush,
@@ -78,8 +64,6 @@ export {
7864
setMeasurement,
7965
getActiveSpan,
8066
startSpan,
81-
// eslint-disable-next-line deprecation/deprecation
82-
startActiveSpan,
8367
startInactiveSpan,
8468
startSpanManual,
8569
continueTrace,

packages/astro/src/index.types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// We export everything from both the client part of the SDK and from the server part.
2-
// Some of the exports collide, which is not allowed, unless we redifine the colliding
2+
// Some of the exports collide, which is not allowed, unless we redefine the colliding
33
// exports in this file - which we do below.
44
export * from './index.client';
55
export * from './index.server';
@@ -13,9 +13,9 @@ import sentryAstro from './index.server';
1313
/** Initializes Sentry Astro SDK */
1414
export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): void;
1515

16-
// We export a merged Integrations object so that users can (at least typing-wise) use all integrations everywhere.
17-
// eslint-disable-next-line deprecation/deprecation
18-
export declare const Integrations: typeof clientSdk.Integrations & typeof serverSdk.Integrations;
16+
// We only export server Integrations for now, until the exports are removed from Svelte and Node SDKs.
17+
// Necessary to avoid type collision.
18+
export declare const Integrations: typeof serverSdk.Integrations;
1919

2020
export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
2121

0 commit comments

Comments
 (0)