Skip to content

Commit a1bcdef

Browse files
committed
Export a no-op function in place of wrapExpressCreateRequestHandler.
1 parent d375176 commit a1bcdef

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/remix/src/index.server.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,20 @@ export function getDefaultIntegrations(options: RemixOptions): Integration[] {
140140
];
141141
}
142142

143+
/**
144+
* Returns the given Express createRequestHandler function.
145+
* This function is no-op and only returns the given function.
146+
*
147+
* @deprecated No need to wrap the Express request handler.
148+
* @param createRequestHandlerFn The Remix Express `createRequestHandler`.
149+
* @returns `createRequestHandler` function.
150+
*/
151+
export function wrapExpressCreateRequestHandler(createRequestHandlerFn: unknown): unknown {
152+
DEBUG_BUILD && logger.warn('wrapExpressCreateRequestHandler is deprecated and no longer needed.');
153+
154+
return createRequestHandlerFn;
155+
}
156+
143157
/** Initializes Sentry Remix SDK on Node. */
144158
export function init(options: RemixOptions): void {
145159
applySdkMetadata(options, 'remix', ['remix', 'node']);

0 commit comments

Comments
 (0)