From c2daf58f808d35e7f019e5ceaddaad70eec6ae82 Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Thu, 30 Jul 2026 14:31:52 +0200 Subject: [PATCH] ref(remix)!: Migrate import hook to makeOrchestrionLoader Switch the `@sentry/remix/import` loader to the orchestrion-based `makeOrchestrionLoader` and drop the obsolete `./loader` export. --- MIGRATION.md | 1 + packages/remix/package.json | 5 ----- packages/remix/rollup.npm.config.mjs | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index 04bacb15051d..195979832fad 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -418,6 +418,7 @@ Sentry.init({ - (AWS Lambda) The `@sentry/aws-serverless/loader` entry point was removed. Use `node --import @sentry/aws-serverless/import` instead. - (Google Cloud) The `@sentry/google-cloud-serverless/loader` entry point was removed. Use `node --import @sentry/google-cloud-serverless/import` instead. - (Next.js) The `@sentry/nextjs/loader` entry point was removed. Use `node --import @sentry/nextjs/import` instead. +- (Remix) The `@sentry/remix/loader` entry point was removed. Use `node --import @sentry/remix/import` instead. - (Fastify) The deprecated `setShouldHandleError` method was removed. - (AWS Lambda) The deprecated `disableAwsContextPropagation` option was removed. It no longer had any effect. - (AWS Lambda) The deprecated `startTrace` option was removed. It no longer had any effect; to disable tracing, set `tracesSampleRate` to `0`. diff --git a/packages/remix/package.json b/packages/remix/package.json index 46b8c9e349bc..26110a45d483 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -46,11 +46,6 @@ "import": { "default": "./build/import-hook.mjs" } - }, - "./loader": { - "import": { - "default": "./build/loader-hook.mjs" - } } }, "publishConfig": { diff --git a/packages/remix/rollup.npm.config.mjs b/packages/remix/rollup.npm.config.mjs index 23b3b4452816..380ec3c1bd7e 100644 --- a/packages/remix/rollup.npm.config.mjs +++ b/packages/remix/rollup.npm.config.mjs @@ -1,4 +1,4 @@ -import { makeBaseNPMConfig, makeNPMConfigVariants, makeOtelLoaders } from '@sentry-internal/rollup-utils'; +import { makeBaseNPMConfig, makeNPMConfigVariants, makeOrchestrionLoader } from '@sentry-internal/rollup-utils'; // We rely on esbuild's defaults for JSX (`jsx: 'transform'` = classic runtime, no // __self/__source attributes). React 19 prefers the new automatic transform, but switching @@ -23,5 +23,5 @@ export default [ }, }), ), - ...makeOtelLoaders('./build', 'sentry-node'), + ...makeOrchestrionLoader('./build'), ];