Skip to content

Commit ab9cfbc

Browse files
committed
also add deprecated exports
1 parent c60bdb1 commit ab9cfbc

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ const NODE_EXPORTS_IGNORE = [
2222
'DebugSession',
2323
'AnrIntegrationOptions',
2424
'LocalVariablesIntegrationOptions',
25-
// deprecated
26-
'spanStatusfromHttpCode',
2725
];
2826

2927
type Dependent = {
@@ -43,16 +41,10 @@ const DEPENDENTS: Dependent[] = [
4341
// Next.js doesn't require explicit exports, so we can just merge top level and `default` exports:
4442
// @ts-expect-error: `default` is not in the type definition but it's defined
4543
exports: Object.keys({ ...SentryNextJs, ...SentryNextJs.default }),
46-
ignoreExports: ['withSentryConfig'],
4744
},
4845
{
4946
package: '@sentry/remix',
5047
exports: Object.keys(SentryRemix),
51-
ignoreExports: [
52-
// Deprecated, no need to add this now to remix
53-
'getModuleFromFilename',
54-
'enableAnrDetection',
55-
],
5648
},
5749
{
5850
package: '@sentry/serverless',

packages/remix/src/index.server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,17 @@ export {
8585
cron,
8686
parameterize,
8787
metrics,
88+
// eslint-disable-next-line deprecation/deprecation
89+
getModuleFromFilename,
8890
createGetModuleFromFilename,
8991
functionToStringIntegration,
9092
hapiErrorPlugin,
9193
inboundFiltersIntegration,
9294
linkedErrorsIntegration,
9395
requestDataIntegration,
9496
runWithAsyncContext,
97+
// eslint-disable-next-line deprecation/deprecation
98+
enableAnrDetection,
9599
} from '@sentry/node';
96100

97101
// Keeping the `*` exports for backwards compatibility and types

0 commit comments

Comments
 (0)