Skip to content

Commit 78f030c

Browse files
committed
feat(remix): Add more missing re-exports from
`@sentry/node`
1 parent 889fda5 commit 78f030c

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ const DEPENDENTS: Dependent[] = [
4848
{
4949
package: '@sentry/remix',
5050
exports: Object.keys(SentryRemix),
51-
// TODO: Fix exports in remix
52-
skip: true,
51+
ignoreExports: [
52+
// Deprecated, no need to add this now to remix
53+
'getModuleFromFilename',
54+
'enableAnrDetection',
55+
],
5356
},
5457
{
5558
package: '@sentry/serverless',
@@ -58,9 +61,9 @@ const DEPENDENTS: Dependent[] = [
5861
// Deprecated, no need to add this now to serverless
5962
'extractTraceparentData',
6063
'getModuleFromFilename',
64+
'enableAnrDetection',
6165
// TODO: Should these be exported from serverless?
6266
'cron',
63-
'enableAnrDetection',
6467
'runWithAsyncContext',
6568
'hapiErrorPlugin',
6669
],

packages/remix/src/index.server.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export {
3939
// eslint-disable-next-line deprecation/deprecation
4040
makeMain,
4141
setCurrentClient,
42+
NodeClient,
4243
Scope,
4344
// eslint-disable-next-line deprecation/deprecation
4445
startTransaction,
@@ -83,6 +84,14 @@ export {
8384
isInitialized,
8485
cron,
8586
parameterize,
87+
metrics,
88+
createGetModuleFromFilename,
89+
functionToStringIntegration,
90+
hapiErrorPlugin,
91+
inboundFiltersIntegration,
92+
linkedErrorsIntegration,
93+
requestDataIntegration,
94+
runWithAsyncContext,
8695
} from '@sentry/node';
8796

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

0 commit comments

Comments
 (0)