Skip to content

Commit 3b2557a

Browse files
committed
also export deprecated APIs
1 parent 34edddb commit 3b2557a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const NODE_EXPORTS_IGNORE = [
1111
'default',
1212
// Probably generated by transpilation, no need to require it
1313
'__esModule',
14-
// this function was deprecates almost immediately after it was introduced
14+
// this function was deprecated almost immediately after it was introduced
1515
// due to a name change (startSpan). No need to re-export it IMHO.
1616
'startActiveSpan',
1717
// this was never meant for external use (and documented as such)
@@ -22,8 +22,6 @@ const NODE_EXPORTS_IGNORE = [
2222
'DebugSession',
2323
'AnrIntegrationOptions',
2424
'LocalVariablesIntegrationOptions',
25-
// deprecated
26-
'spanStatusfromHttpCode',
2725
];
2826

2927
type Dependent = {
@@ -55,9 +53,6 @@ const DEPENDENTS: Dependent[] = [
5553
package: '@sentry/serverless',
5654
exports: Object.keys(SentryServerless),
5755
ignoreExports: [
58-
// Deprecated, no need to add this now to serverless
59-
'extractTraceparentData',
60-
'getModuleFromFilename',
6156
// TODO: Should these be exported from serverless?
6257
'cron',
6358
'enableAnrDetection',

packages/serverless/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export {
3737
getGlobalScope,
3838
getIsolationScope,
3939
getHubFromCarrier,
40+
// eslint-disable-next-line deprecation/deprecation
41+
spanStatusfromHttpCode,
4042
getSpanStatusFromHttpCode,
4143
// eslint-disable-next-line deprecation/deprecation
4244
makeMain,
@@ -83,6 +85,10 @@ export {
8385
linkedErrorsIntegration,
8486
inboundFiltersIntegration,
8587
functionToStringIntegration,
88+
// eslint-disable-next-line deprecation/deprecation
89+
getModuleFromFilename,
8690
createGetModuleFromFilename,
8791
metrics,
92+
// eslint-disable-next-line deprecation/deprecation
93+
extractTraceparentData,
8894
} from '@sentry/node';

0 commit comments

Comments
 (0)