@sentry/tanstackstart-react 10.54.0 → 10.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +3 -2
  2. package/build/cjs/client/sdk.js +10 -0
  3. package/build/cjs/client/sdk.js.map +1 -1
  4. package/build/cjs/index.server.js +1 -0
  5. package/build/cjs/index.server.js.map +1 -1
  6. package/build/cjs/server/globalMiddleware.js +32 -2
  7. package/build/cjs/server/globalMiddleware.js.map +1 -1
  8. package/build/cjs/server/index.js +8 -0
  9. package/build/cjs/server/index.js.map +1 -1
  10. package/build/cjs/server/routeParametrization.js +47 -0
  11. package/build/cjs/server/routeParametrization.js.map +1 -0
  12. package/build/cjs/server/sdk.js +7 -0
  13. package/build/cjs/server/sdk.js.map +1 -1
  14. package/build/cjs/server/utils.js +0 -5
  15. package/build/cjs/server/utils.js.map +1 -1
  16. package/build/cjs/server/wrapFetchWithSentry.js +82 -9
  17. package/build/cjs/server/wrapFetchWithSentry.js.map +1 -1
  18. package/build/cjs/vite/routePatterns.js +60 -0
  19. package/build/cjs/vite/routePatterns.js.map +1 -0
  20. package/build/cjs/vite/sentryTanstackStart.js +7 -6
  21. package/build/cjs/vite/sentryTanstackStart.js.map +1 -1
  22. package/build/cjs/vite/sourceMaps.js +6 -1
  23. package/build/cjs/vite/sourceMaps.js.map +1 -1
  24. package/build/esm/client/sdk.js +10 -0
  25. package/build/esm/client/sdk.js.map +1 -1
  26. package/build/esm/index.server.js +1 -1
  27. package/build/esm/package.json +1 -1
  28. package/build/esm/server/globalMiddleware.js +33 -3
  29. package/build/esm/server/globalMiddleware.js.map +1 -1
  30. package/build/esm/server/index.js +8 -1
  31. package/build/esm/server/index.js.map +1 -1
  32. package/build/esm/server/routeParametrization.js +44 -0
  33. package/build/esm/server/routeParametrization.js.map +1 -0
  34. package/build/esm/server/sdk.js +7 -0
  35. package/build/esm/server/sdk.js.map +1 -1
  36. package/build/esm/server/utils.js +1 -5
  37. package/build/esm/server/utils.js.map +1 -1
  38. package/build/esm/server/wrapFetchWithSentry.js +84 -11
  39. package/build/esm/server/wrapFetchWithSentry.js.map +1 -1
  40. package/build/esm/vite/routePatterns.js +57 -0
  41. package/build/esm/vite/routePatterns.js.map +1 -0
  42. package/build/esm/vite/sentryTanstackStart.js +7 -6
  43. package/build/esm/vite/sentryTanstackStart.js.map +1 -1
  44. package/build/esm/vite/sourceMaps.js +6 -1
  45. package/build/esm/vite/sourceMaps.js.map +1 -1
  46. package/build/types/client/sdk.d.ts.map +1 -1
  47. package/build/types/index.types.d.ts +1 -0
  48. package/build/types/index.types.d.ts.map +1 -1
  49. package/build/types/server/globalMiddleware.d.ts.map +1 -1
  50. package/build/types/server/index.d.ts +5 -0
  51. package/build/types/server/index.d.ts.map +1 -1
  52. package/build/types/server/routeParametrization.d.ts +12 -0
  53. package/build/types/server/routeParametrization.d.ts.map +1 -0
  54. package/build/types/server/sdk.d.ts.map +1 -1
  55. package/build/types/server/utils.d.ts +0 -9
  56. package/build/types/server/utils.d.ts.map +1 -1
  57. package/build/types/server/wrapFetchWithSentry.d.ts.map +1 -1
  58. package/build/types/vite/routePatterns.d.ts +18 -0
  59. package/build/types/vite/routePatterns.d.ts.map +1 -0
  60. package/build/types/vite/sentryTanstackStart.d.ts +17 -0
  61. package/build/types/vite/sentryTanstackStart.d.ts.map +1 -1
  62. package/build/types/vite/sourceMaps.d.ts +4 -4
  63. package/build/types/vite/sourceMaps.d.ts.map +1 -1
  64. package/build/types-ts3.8/index.types.d.ts +1 -0
  65. package/build/types-ts3.8/server/index.d.ts +5 -0
  66. package/build/types-ts3.8/server/routeParametrization.d.ts +12 -0
  67. package/build/types-ts3.8/server/utils.d.ts +0 -9
  68. package/build/types-ts3.8/vite/routePatterns.d.ts +18 -0
  69. package/build/types-ts3.8/vite/sentryTanstackStart.d.ts +17 -0
  70. package/build/types-ts3.8/vite/sourceMaps.d.ts +4 -4
  71. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"sourceMaps.js","sources":["../../../src/vite/sourceMaps.ts"],"sourcesContent":["import type { BuildTimeOptionsBase } from '@sentry/core';\nimport { sentryVitePlugin } from '@sentry/vite-plugin';\nimport type { Plugin, UserConfig } from 'vite';\n\ntype FilesToDeleteAfterUpload = string | string[] | undefined;\n\n/**\n * A Sentry plugin for adding the @sentry/vite-plugin to automatically upload source maps to Sentry.\n */\nexport function makeAddSentryVitePlugin(options: BuildTimeOptionsBase): Plugin[] {\n const {\n applicationKey,\n authToken,\n bundleSizeOptimizations,\n debug,\n errorHandler,\n headers,\n org,\n project,\n release,\n sentryUrl,\n silent,\n sourcemaps,\n telemetry,\n } = options;\n\n // defer resolving the filesToDeleteAfterUpload until we got access to the Vite config\n let resolveFilesToDeleteAfterUpload: ((value: FilesToDeleteAfterUpload) => void) | undefined;\n const filesToDeleteAfterUploadPromise = new Promise<FilesToDeleteAfterUpload>(resolve => {\n resolveFilesToDeleteAfterUpload = resolve;\n });\n\n const configPlugin: Plugin = {\n name: 'sentry-tanstackstart-files-to-delete-after-upload-plugin',\n apply: 'build',\n enforce: 'post',\n config(config) {\n const userFilesToDelete = sourcemaps?.filesToDeleteAfterUpload;\n\n // Only auto-delete source maps if the user didn't configure sourcemaps at all\n if (typeof userFilesToDelete === 'undefined' && typeof config.build?.sourcemap === 'undefined') {\n if (debug) {\n // eslint-disable-next-line no-console\n console.log(\n '[Sentry] Automatically setting `sourcemaps.filesToDeleteAfterUpload: [\"./**/*.map\"]` to delete generated source maps after they were uploaded to Sentry.',\n );\n }\n resolveFilesToDeleteAfterUpload?.(['./**/*.map']);\n } else {\n resolveFilesToDeleteAfterUpload?.(userFilesToDelete);\n }\n },\n };\n\n const sentryPlugins = sentryVitePlugin({\n applicationKey,\n authToken: authToken ?? process.env.SENTRY_AUTH_TOKEN,\n bundleSizeOptimizations: bundleSizeOptimizations ?? undefined,\n debug: debug ?? false,\n errorHandler,\n headers,\n org: org ?? process.env.SENTRY_ORG,\n project: project ?? process.env.SENTRY_PROJECT,\n release,\n silent,\n sourcemaps: {\n assets: sourcemaps?.assets,\n disable: sourcemaps?.disable,\n ignore: sourcemaps?.ignore,\n // BuildTimeOptionsBase types can lag behind bundler plugin options in some local setups.\n // Keep runtime support while staying resilient to type version skew.\n rewriteSources: (sourcemaps as unknown as { rewriteSources?: unknown } | undefined)?.rewriteSources as never,\n filesToDeleteAfterUpload: filesToDeleteAfterUploadPromise,\n },\n telemetry: telemetry ?? true,\n url: sentryUrl,\n _metaOptions: {\n telemetry: {\n metaFramework: 'tanstackstart-react',\n },\n },\n });\n\n return [configPlugin, ...sentryPlugins];\n}\n\n/**\n * A Sentry plugin for TanStack Start React to enable \"hidden\" source maps if they are unset.\n */\nexport function makeEnableSourceMapsVitePlugin(options: BuildTimeOptionsBase): Plugin[] {\n return [\n {\n name: 'sentry-tanstackstart-react-source-maps',\n apply: 'build',\n enforce: 'post',\n config(viteConfig) {\n return {\n ...viteConfig,\n build: {\n ...viteConfig.build,\n sourcemap: getUpdatedSourceMapSettings(viteConfig, options),\n },\n };\n },\n },\n ];\n}\n\n/** There are 3 ways to set up source map generation (https://github.com/getsentry/sentry-javascript/issues/13993)\n *\n * 1. User explicitly disabled source maps\n * - keep this setting (emit a warning that errors won't be unminified in Sentry)\n * - We won't upload anything\n *\n * 2. Users enabled source map generation (true, 'hidden', 'inline').\n * - keep this setting (don't do anything - like deletion - besides uploading)\n *\n * 3. Users didn't set source maps generation\n * - we enable 'hidden' source maps generation\n * - configure `filesToDeleteAfterUpload` to delete all .map files (we emit a log about this)\n *\n * --> only exported for testing\n */\nexport function getUpdatedSourceMapSettings(\n viteConfig: UserConfig,\n sentryPluginOptions?: BuildTimeOptionsBase,\n): boolean | 'inline' | 'hidden' {\n viteConfig.build = viteConfig.build || {};\n\n const viteUserSourceMapSetting = viteConfig.build?.sourcemap;\n const settingKey = 'vite.build.sourcemap';\n const debug = sentryPluginOptions?.debug;\n\n // Respect user source map setting if it is explicitly set\n if (viteUserSourceMapSetting === false) {\n if (debug) {\n // eslint-disable-next-line no-console\n console.warn(\n `[Sentry] Source map generation is currently disabled in your TanStack Start configuration (\\`${settingKey}: false\\`). Sentry won't override this setting. Without source maps, code snippets on the Sentry Issues page will remain minified.`,\n );\n } else {\n // eslint-disable-next-line no-console\n console.warn('[Sentry] Source map generation is disabled in your TanStack Start configuration.');\n }\n\n return viteUserSourceMapSetting;\n } else if (viteUserSourceMapSetting && ['hidden', 'inline', true].includes(viteUserSourceMapSetting)) {\n if (debug) {\n // eslint-disable-next-line no-console\n console.log(\n `[Sentry] We discovered \\`${settingKey}\\` is set to \\`${viteUserSourceMapSetting.toString()}\\`. Sentry will keep this source map setting.`,\n );\n }\n\n return viteUserSourceMapSetting;\n }\n\n // If the user did not specify a source map setting, we enable 'hidden' by default\n if (debug) {\n // eslint-disable-next-line no-console\n console.log(\n `[Sentry] Enabled source map generation in the build options with \\`${settingKey}: 'hidden'\\`. The source maps will be deleted after they were uploaded to Sentry.`,\n );\n }\n\n return 'hidden';\n}\n"],"names":[],"mappings":";;AASO,SAAS,wBAAwB,OAAA,EAAyC;AAC/E,EAAA,MAAM;AAAA,IACJ,cAAA;AAAA,IACA,SAAA;AAAA,IACA,uBAAA;AAAA,IACA,KAAA;AAAA,IACA,YAAA;AAAA,IACA,OAAA;AAAA,IACA,GAAA;AAAA,IACA,OAAA;AAAA,IACA,OAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF,GAAI,OAAA;AAGJ,EAAA,IAAI,+BAAA;AACJ,EAAA,MAAM,+BAAA,GAAkC,IAAI,OAAA,CAAkC,CAAA,OAAA,KAAW;AACvF,IAAA,+BAAA,GAAkC,OAAA;AAAA,EACpC,CAAC,CAAA;AAED,EAAA,MAAM,YAAA,GAAuB;AAAA,IAC3B,IAAA,EAAM,0DAAA;AAAA,IACN,KAAA,EAAO,OAAA;AAAA,IACP,OAAA,EAAS,MAAA;AAAA,I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;AAAA,EACT;AAGA,EAAA,IAAI,KAAA,EAAO;AAET,IAAA,OAAA,CAAQ,GAAA;AAAA,MACN,sEAAsE,UAAU,CAAA,iFAAA;AAAA,KAClF;AAAA,EACF;AAEA,EAAA,OAAO,QAAA;AACT;;;;"}
1
+ {"version":3,"file":"sourceMaps.js","sources":["../../../src/vite/sourceMaps.ts"],"sourcesContent":["import { sentryVitePlugin } from '@sentry/vite-plugin';\nimport type { Plugin, UserConfig } from 'vite';\nimport type { SentryTanstackStartOptions } from './sentryTanstackStart';\n\ntype FilesToDeleteAfterUpload = string | string[] | undefined;\n\n/**\n * A Sentry plugin for adding the @sentry/vite-plugin to automatically upload source maps to Sentry.\n */\nexport function makeAddSentryVitePlugin(options: SentryTanstackStartOptions): Plugin[] {\n const {\n applicationKey,\n authToken,\n bundleSizeOptimizations,\n debug,\n errorHandler,\n headers,\n org,\n project,\n release,\n sentryUrl,\n silent,\n sourcemaps,\n telemetry,\n reactComponentAnnotation,\n } = options;\n\n // defer resolving the filesToDeleteAfterUpload until we got access to the Vite config\n let resolveFilesToDeleteAfterUpload: ((value: FilesToDeleteAfterUpload) => void) | undefined;\n const filesToDeleteAfterUploadPromise = new Promise<FilesToDeleteAfterUpload>(resolve => {\n resolveFilesToDeleteAfterUpload = resolve;\n });\n\n const configPlugin: Plugin = {\n name: 'sentry-tanstackstart-files-to-delete-after-upload-plugin',\n apply: 'build',\n enforce: 'post',\n config(config) {\n const userFilesToDelete = sourcemaps?.filesToDeleteAfterUpload;\n\n // Only auto-delete source maps if the user didn't configure sourcemaps at all\n if (typeof userFilesToDelete === 'undefined' && typeof config.build?.sourcemap === 'undefined') {\n if (debug) {\n // eslint-disable-next-line no-console\n console.log(\n '[Sentry] Automatically setting `sourcemaps.filesToDeleteAfterUpload: [\"./**/*.map\"]` to delete generated source maps after they were uploaded to Sentry.',\n );\n }\n resolveFilesToDeleteAfterUpload?.(['./**/*.map']);\n } else {\n resolveFilesToDeleteAfterUpload?.(userFilesToDelete);\n }\n },\n };\n\n const sentryPlugins = sentryVitePlugin({\n applicationKey,\n authToken: authToken ?? process.env.SENTRY_AUTH_TOKEN,\n bundleSizeOptimizations: bundleSizeOptimizations ?? undefined,\n debug: debug ?? false,\n errorHandler,\n headers,\n org: org ?? process.env.SENTRY_ORG,\n project: project ?? process.env.SENTRY_PROJECT,\n release,\n silent,\n sourcemaps: {\n assets: sourcemaps?.assets,\n disable: sourcemaps?.disable,\n ignore: sourcemaps?.ignore,\n // BuildTimeOptionsBase types can lag behind bundler plugin options in some local setups.\n // Keep runtime support while staying resilient to type version skew.\n rewriteSources: (sourcemaps as unknown as { rewriteSources?: unknown } | undefined)?.rewriteSources as never,\n filesToDeleteAfterUpload: filesToDeleteAfterUploadPromise,\n },\n reactComponentAnnotation: {\n enabled: reactComponentAnnotation?.enabled ?? undefined,\n ignoredComponents: reactComponentAnnotation?.ignoredComponents ?? undefined,\n },\n telemetry: telemetry ?? true,\n url: sentryUrl,\n _metaOptions: {\n telemetry: {\n metaFramework: 'tanstackstart-react',\n },\n },\n });\n\n return [configPlugin, ...sentryPlugins];\n}\n\n/**\n * A Sentry plugin for TanStack Start React to enable \"hidden\" source maps if they are unset.\n */\nexport function makeEnableSourceMapsVitePlugin(options: SentryTanstackStartOptions): Plugin[] {\n return [\n {\n name: 'sentry-tanstackstart-react-source-maps',\n apply: 'build',\n enforce: 'post',\n config(viteConfig) {\n return {\n ...viteConfig,\n build: {\n ...viteConfig.build,\n sourcemap: getUpdatedSourceMapSettings(viteConfig, options),\n },\n };\n },\n },\n ];\n}\n\n/** There are 3 ways to set up source map generation (https://github.com/getsentry/sentry-javascript/issues/13993)\n *\n * 1. User explicitly disabled source maps\n * - keep this setting (emit a warning that errors won't be unminified in Sentry)\n * - We won't upload anything\n *\n * 2. Users enabled source map generation (true, 'hidden', 'inline').\n * - keep this setting (don't do anything - like deletion - besides uploading)\n *\n * 3. Users didn't set source maps generation\n * - we enable 'hidden' source maps generation\n * - configure `filesToDeleteAfterUpload` to delete all .map files (we emit a log about this)\n *\n * --> only exported for testing\n */\nexport function getUpdatedSourceMapSettings(\n viteConfig: UserConfig,\n sentryPluginOptions?: SentryTanstackStartOptions,\n): boolean | 'inline' | 'hidden' {\n viteConfig.build = viteConfig.build || {};\n\n const viteUserSourceMapSetting = viteConfig.build?.sourcemap;\n const settingKey = 'vite.build.sourcemap';\n const debug = sentryPluginOptions?.debug;\n\n // Respect user source map setting if it is explicitly set\n if (viteUserSourceMapSetting === false) {\n if (debug) {\n // eslint-disable-next-line no-console\n console.warn(\n `[Sentry] Source map generation is currently disabled in your TanStack Start configuration (\\`${settingKey}: false\\`). Sentry won't override this setting. Without source maps, code snippets on the Sentry Issues page will remain minified.`,\n );\n } else {\n // eslint-disable-next-line no-console\n console.warn('[Sentry] Source map generation is disabled in your TanStack Start configuration.');\n }\n\n return viteUserSourceMapSetting;\n } else if (viteUserSourceMapSetting && ['hidden', 'inline', true].includes(viteUserSourceMapSetting)) {\n if (debug) {\n // eslint-disable-next-line no-console\n console.log(\n `[Sentry] We discovered \\`${settingKey}\\` is set to \\`${viteUserSourceMapSetting.toString()}\\`. Sentry will keep this source map setting.`,\n );\n }\n\n return viteUserSourceMapSetting;\n }\n\n // If the user did not specify a source map setting, we enable 'hidden' by default\n if (debug) {\n // eslint-disable-next-line no-console\n console.log(\n `[Sentry] Enabled source map generation in the build options with \\`${settingKey}: 'hidden'\\`. The source maps will be deleted after they were uploaded to Sentry.`,\n );\n }\n\n return 'hidden';\n}\n"],"names":[],"mappings":";;AASO,SAAS,wBAAwB,OAAA,EAA+C;AACrF,EAAA,MAAM;AAAA,IACJ,cAAA;AAAA,IACA,SAAA;AAAA,IACA,uBAAA;AAAA,IACA,KAAA;AAAA,IACA,YAAA;AAAA,IACA,OAAA;AAAA,IACA,GAAA;AAAA,IACA,OAAA;AAAA,IACA,OAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA;AAAA,IACA,UAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,GAC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AAA;AAAA,OAC5G;AAAA,IACF,CAAA,MAAO;AAEL,MAAA,OAAA,CAAQ,KAAK,kFAAkF,CAAA;AAAA,IACjG;AAEA,IAAA,OAAO,wBAAA;AAAA,EACT,CAAA,MAAA,IAAW,4BAA4B,CAAC,QAAA,EAAU,UAAU,IAAI,CAAA,CAAE,QAAA,CAAS,wBAAwB,CAAA,EAAG;AACpG,IAAA,IAAI,KAAA,EAAO;AAET,MAAA,OAAA,CAAQ,GAAA;AAAA,QACN,CAAA,yBAAA,EAA4B,UAAU,CAAA,eAAA,EAAkB,wBAAA,CAAyB,UAAU,CAAA,6CAAA;AAAA,OAC7F;AAAA,IACF;AAEA,IAAA,OAAO,wBAAA;AAAA,EACT;AAGA,EAAA,IAAI,KAAA,EAAO;AAET,IAAA,OAAA,CAAQ,GAAA;AAAA,MACN,sEAAsE,UAAU,CAAA,iFAAA;AAAA,KAClF;AAAA,EACF;AAEA,EAAA,OAAO,QAAA;AACT;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/client/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAI3E;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAUrE"}
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/client/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAI3E;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAqBrE"}
@@ -24,6 +24,7 @@ export declare const OpenFeatureIntegrationHook: typeof clientSdk.OpenFeatureInt
24
24
  export declare const statsigIntegration: typeof clientSdk.statsigIntegration;
25
25
  export declare const unleashIntegration: typeof clientSdk.unleashIntegration;
26
26
  export declare const wrapMiddlewaresWithSentry: typeof serverSdk.wrapMiddlewaresWithSentry;
27
+ export declare const replayIntegration: typeof clientSdk.replayIntegration;
27
28
  export declare const tanstackRouterBrowserTracingIntegration: typeof clientSdk.tanstackRouterBrowserTracingIntegration;
28
29
  export declare const sentryGlobalRequestMiddleware: typeof serverSdk.sentryGlobalRequestMiddleware;
29
30
  export declare const sentryGlobalFunctionMiddleware: typeof serverSdk.sentryGlobalFunctionMiddleware;
@@ -1 +1 @@
1
- {"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,KAAK,SAAS,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,KAAK,SAAS,MAAM,UAAU,CAAC;AAE3C,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,4CAA4C;AAC5C,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtH,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,wBAAwB,EAAE,OAAO,SAAS,CAAC,wBAAwB,CAAC;AACzF,MAAM,CAAC,OAAO,CAAC,MAAM,g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AAC,OAAO,CAAC,MAAM,8BAA8B,EAAE,OAAO,SAAS,CAAC,8BAA8B,CAAC;AACrG,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"globalMiddleware.d.ts","sourceRoot":"","sources":["../../../src/server/globalMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAgB9D;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,sBAO3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,sBAO5C,CAAC"}
1
+ {"version":3,"file":"globalMiddleware.d.ts","sourceRoot":"","sources":["../../../src/server/globalMiddleware.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAyD9D;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,sBAO3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,sBAQ5C,CAAC"}
@@ -5,6 +5,11 @@ export { wrapFetchWithSentry } from './wrapFetchWithSentry';
5
5
  export { wrapMiddlewaresWithSentry } from './middleware';
6
6
  export { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from './globalMiddleware';
7
7
  export { createSentryTunnelRoute } from './tunnelRoute';
8
+ /**
9
+ * A no-op stub of the replay integration for the server. Router setup code is shared between client and server,
10
+ * so this stub is needed to prevent build errors during SSR bundling.
11
+ */
12
+ export declare function replayIntegration(_options?: Record<string, unknown>): Integration;
8
13
  /**
9
14
  * A no-op stub of the browser tracing integration for the server. Router setup code is shared between client and server,
10
15
  * so this stub is needed to prevent build errors during SSR bundling.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EA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iB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,WAAW,CAKjF;AAED;;;GAGG;AACH,wBAAgB,uCAAuC,CACrD,OAAO,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,WAAW,CAKb;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAG,KAAK,CAAC,SAU7E,CAAC;AAEF;;;GAGG;AAEH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7D,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACvC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAEb"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Matches a URL pathname against a list of TanStack Start route patterns.
3
+ * Patterns use `$param` syntax for dynamic segments (e.g., `/users/$id`).
4
+ *
5
+ * Patterns are expected to be pre-sorted by specificity (more segments first, static before dynamic).
6
+ */
7
+ export declare function matchUrlToRoutePattern(pathname: string, patterns: string[]): string | undefined;
8
+ /**
9
+ * Updates the active root span with a parametrized route name.
10
+ */
11
+ export declare function updateSpanWithRouteParametrization(method: string, pathname: string, patterns: string[]): void;
12
+ //# sourceMappingURL=routeParametrization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routeParametrization.d.ts","sourceRoot":"","sources":["../../../src/server/routeParametrization.ts"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ/F;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAsB7G"}
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/server/sdk.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG5D;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,GAAG,SAAS,CASjE"}
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/server/sdk.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG5D;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,GAAG,SAAS,CAiBjE"}
@@ -1,13 +1,4 @@
1
1
  import type { StartSpanOptions } from '@sentry/core';
2
- /**
3
- * Extracts the SHA-256 hash from a server function pathname.
4
- * Server function pathnames are structured as `/_serverFn/<hash>`.
5
- * This function matches the pattern and returns the hash if found.
6
- *
7
- * @param pathname - the pathname of the server function
8
- * @returns the sha256 of the server function
9
- */
10
- export declare function extractServerFunctionSha256(pathname: string): string;
11
2
  /**
12
3
  * Returns span options for TanStack Start middleware spans.
13
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CASvE"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CASvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"wrapFetchWithSentry.d.ts","sourceRoot":"","sources":["../../../src/server/wrapFetchWithSentry.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;CAC3E,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAwCzE"}
1
+ {"version":3,"file":"wrapFetchWithSentry.d.ts","sourceRoot":"","sources":["../../../src/server/wrapFetchWithSentry.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;CAC3E,CAAC;AAgGF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAwCzE"}
@@ -0,0 +1,18 @@
1
+ import type { Plugin } from 'vite';
2
+ /**
3
+ * Extracts route patterns from TanStack Start's generated routeTree.gen.ts
4
+ * and replaces `__SENTRY_ROUTE_PATTERNS__` references with the extracted patterns.
5
+ *
6
+ * The route tree file is read during `transform` rather than `config` because
7
+ * TanStack Start generates it during the build.
8
+ */
9
+ export declare function makeRoutePatternPlugin(): Plugin;
10
+ /**
11
+ * Extracts full route path patterns from the content of routeTree.gen.ts.
12
+ *
13
+ * Parses the `fullPaths` type union which contains the resolved full paths
14
+ * (e.g., `fullPaths: '/' | '/page-a' | '/users/$userId'`).
15
+ * This is more reliable than `path:` properties which can be relative for nested routes.
16
+ */
17
+ export declare function extractRoutePatterns(content: string): string[];
18
+ //# sourceMappingURL=routePatterns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routePatterns.d.ts","sourceRoot":"","sources":["../../../src/vite/routePatterns.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC;;;;;;GAMG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAmC/C;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAyB9D"}
@@ -17,6 +17,23 @@ export interface SentryTanstackStartOptions extends BuildTimeOptionsBase {
17
17
  * @default true
18
18
  */
19
19
  autoInstrumentMiddleware?: boolean;
20
+ /**
21
+ * Options related to react component name annotations.
22
+ * Disabled by default, unless a value is set for this option.
23
+ * When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
24
+ * This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
25
+ * Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
26
+ */
27
+ reactComponentAnnotation?: {
28
+ /**
29
+ * Whether the component name annotate plugin should be enabled or not.
30
+ */
31
+ enabled?: boolean;
32
+ /**
33
+ * A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components.
34
+ */
35
+ ignoredComponents?: string[];
36
+ };
20
37
  /**
21
38
  * Configures a framework-managed same-origin tunnel route for Sentry envelopes.
22
39
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sentryTanstackStart.d.ts","sourceRoot":"","sources":["../../../src/vite/sentryTanstackStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAGnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGxD;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB;IACtE;;;;;;;;;;OAUG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;;;;;;;;;;;OAcG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG,MAAM,EAAE,CA0BtF"}
1
+ {"version":3,"file":"sentryTanstackStart.d.ts","sourceRoot":"","sources":["../../../src/vite/sentryTanstackStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAInC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGxD;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB;IACtE;;;;;;;;;;OAUG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE;QACzB;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC;IAEF;;;;;;;;;;;;;;OAcG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG,MAAM,EAAE,CA0BtF"}
@@ -1,13 +1,13 @@
1
- import type { BuildTimeOptionsBase } from '@sentry/core';
2
1
  import type { Plugin, UserConfig } from 'vite';
2
+ import type { SentryTanstackStartOptions } from './sentryTanstackStart';
3
3
  /**
4
4
  * A Sentry plugin for adding the @sentry/vite-plugin to automatically upload source maps to Sentry.
5
5
  */
6
- export declare function makeAddSentryVitePlugin(options: BuildTimeOptionsBase): Plugin[];
6
+ export declare function makeAddSentryVitePlugin(options: SentryTanstackStartOptions): Plugin[];
7
7
  /**
8
8
  * A Sentry plugin for TanStack Start React to enable "hidden" source maps if they are unset.
9
9
  */
10
- export declare function makeEnableSourceMapsVitePlugin(options: BuildTimeOptionsBase): Plugin[];
10
+ export declare function makeEnableSourceMapsVitePlugin(options: SentryTanstackStartOptions): Plugin[];
11
11
  /** There are 3 ways to set up source map generation (https://github.com/getsentry/sentry-javascript/issues/13993)
12
12
  *
13
13
  * 1. User explicitly disabled source maps
@@ -23,5 +23,5 @@ export declare function makeEnableSourceMapsVitePlugin(options: BuildTimeOptions
23
23
  *
24
24
  * --> only exported for testing
25
25
  */
26
- export declare function getUpdatedSourceMapSettings(viteConfig: UserConfig, sentryPluginOptions?: BuildTimeOptionsBase): boolean | 'inline' | 'hidden';
26
+ export declare function getUpdatedSourceMapSettings(viteConfig: UserConfig, sentryPluginOptions?: SentryTanstackStartOptions): boolean | 'inline' | 'hidden';
27
27
  //# sourceMappingURL=sourceMaps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sourceMaps.d.ts","sourceRoot":"","sources":["../../../src/vite/sourceMaps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI/C;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CA2E/E;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CAiBtF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,UAAU,EACtB,mBAAmB,CAAC,EAAE,oBAAoB,GACzC,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAwC/B"}
1
+ {"version":3,"file":"sourceMaps.d.ts","sourceRoot":"","sources":["../../../src/vite/sourceMaps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAIxE;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,0BAA0B,GAAG,MAAM,EAAE,CAgFrF;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,0BAA0B,GAAG,MAAM,EAAE,CAiB5F;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,UAAU,EACtB,mBAAmB,CAAC,EAAE,0BAA0B,GAC/C,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAwC/B"}
@@ -24,6 +24,7 @@ export declare const OpenFeatureIntegrationHook: typeof clientSdk.OpenFeatureInt
24
24
  export declare const statsigIntegration: typeof clientSdk.statsigIntegration;
25
25
  export declare const unleashIntegration: typeof clientSdk.unleashIntegration;
26
26
  export declare const wrapMiddlewaresWithSentry: typeof serverSdk.wrapMiddlewaresWithSentry;
27
+ export declare const replayIntegration: typeof clientSdk.replayIntegration;
27
28
  export declare const tanstackRouterBrowserTracingIntegration: typeof clientSdk.tanstackRouterBrowserTracingIntegration;
28
29
  export declare const sentryGlobalRequestMiddleware: typeof serverSdk.sentryGlobalRequestMiddleware;
29
30
  export declare const sentryGlobalFunctionMiddleware: typeof serverSdk.sentryGlobalFunctionMiddleware;
@@ -5,6 +5,11 @@ export { wrapFetchWithSentry } from './wrapFetchWithSentry';
5
5
  export { wrapMiddlewaresWithSentry } from './middleware';
6
6
  export { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from './globalMiddleware';
7
7
  export { createSentryTunnelRoute } from './tunnelRoute';
8
+ /**
9
+ * A no-op stub of the replay integration for the server. Router setup code is shared between client and server,
10
+ * so this stub is needed to prevent build errors during SSR bundling.
11
+ */
12
+ export declare function replayIntegration(_options?: Record<string, unknown>): Integration;
8
13
  /**
9
14
  * A no-op stub of the browser tracing integration for the server. Router setup code is shared between client and server,
10
15
  * so this stub is needed to prevent build errors during SSR bundling.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Matches a URL pathname against a list of TanStack Start route patterns.
3
+ * Patterns use `$param` syntax for dynamic segments (e.g., `/users/$id`).
4
+ *
5
+ * Patterns are expected to be pre-sorted by specificity (more segments first, static before dynamic).
6
+ */
7
+ export declare function matchUrlToRoutePattern(pathname: string, patterns: string[]): string | undefined;
8
+ /**
9
+ * Updates the active root span with a parametrized route name.
10
+ */
11
+ export declare function updateSpanWithRouteParametrization(method: string, pathname: string, patterns: string[]): void;
12
+ //# sourceMappingURL=routeParametrization.d.ts.map
@@ -1,13 +1,4 @@
1
1
  import { StartSpanOptions } from '@sentry/core';
2
- /**
3
- * Extracts the SHA-256 hash from a server function pathname.
4
- * Server function pathnames are structured as `/_serverFn/<hash>`.
5
- * This function matches the pattern and returns the hash if found.
6
- *
7
- * @param pathname - the pathname of the server function
8
- * @returns the sha256 of the server function
9
- */
10
- export declare function extractServerFunctionSha256(pathname: string): string;
11
2
  /**
12
3
  * Returns span options for TanStack Start middleware spans.
13
4
  */
@@ -0,0 +1,18 @@
1
+ import { Plugin } from 'vite';
2
+ /**
3
+ * Extracts route patterns from TanStack Start's generated routeTree.gen.ts
4
+ * and replaces `__SENTRY_ROUTE_PATTERNS__` references with the extracted patterns.
5
+ *
6
+ * The route tree file is read during `transform` rather than `config` because
7
+ * TanStack Start generates it during the build.
8
+ */
9
+ export declare function makeRoutePatternPlugin(): Plugin;
10
+ /**
11
+ * Extracts full route path patterns from the content of routeTree.gen.ts.
12
+ *
13
+ * Parses the `fullPaths` type union which contains the resolved full paths
14
+ * (e.g., `fullPaths: '/' | '/page-a' | '/users/$userId'`).
15
+ * This is more reliable than `path:` properties which can be relative for nested routes.
16
+ */
17
+ export declare function extractRoutePatterns(content: string): string[];
18
+ //# sourceMappingURL=routePatterns.d.ts.map
@@ -17,6 +17,23 @@ export interface SentryTanstackStartOptions extends BuildTimeOptionsBase {
17
17
  * @default true
18
18
  */
19
19
  autoInstrumentMiddleware?: boolean;
20
+ /**
21
+ * Options related to react component name annotations.
22
+ * Disabled by default, unless a value is set for this option.
23
+ * When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
24
+ * This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
25
+ * Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
26
+ */
27
+ reactComponentAnnotation?: {
28
+ /**
29
+ * Whether the component name annotate plugin should be enabled or not.
30
+ */
31
+ enabled?: boolean;
32
+ /**
33
+ * A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components.
34
+ */
35
+ ignoredComponents?: string[];
36
+ };
20
37
  /**
21
38
  * Configures a framework-managed same-origin tunnel route for Sentry envelopes.
22
39
  *
@@ -1,13 +1,13 @@
1
- import { BuildTimeOptionsBase } from '@sentry/core';
2
1
  import { Plugin, UserConfig } from 'vite';
2
+ import { SentryTanstackStartOptions } from './sentryTanstackStart';
3
3
  /**
4
4
  * A Sentry plugin for adding the @sentry/vite-plugin to automatically upload source maps to Sentry.
5
5
  */
6
- export declare function makeAddSentryVitePlugin(options: BuildTimeOptionsBase): Plugin[];
6
+ export declare function makeAddSentryVitePlugin(options: SentryTanstackStartOptions): Plugin[];
7
7
  /**
8
8
  * A Sentry plugin for TanStack Start React to enable "hidden" source maps if they are unset.
9
9
  */
10
- export declare function makeEnableSourceMapsVitePlugin(options: BuildTimeOptionsBase): Plugin[];
10
+ export declare function makeEnableSourceMapsVitePlugin(options: SentryTanstackStartOptions): Plugin[];
11
11
  /** There are 3 ways to set up source map generation (https://github.com/getsentry/sentry-javascript/issues/13993)
12
12
  *
13
13
  * 1. User explicitly disabled source maps
@@ -23,5 +23,5 @@ export declare function makeEnableSourceMapsVitePlugin(options: BuildTimeOptions
23
23
  *
24
24
  * --> only exported for testing
25
25
  */
26
- export declare function getUpdatedSourceMapSettings(viteConfig: UserConfig, sentryPluginOptions?: BuildTimeOptionsBase): boolean | 'inline' | 'hidden';
26
+ export declare function getUpdatedSourceMapSettings(viteConfig: UserConfig, sentryPluginOptions?: SentryTanstackStartOptions): boolean | 'inline' | 'hidden';
27
27
  //# sourceMappingURL=sourceMaps.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/tanstackstart-react",
3
- "version": "10.54.0",
3
+ "version": "10.55.0",
4
4
  "description": "Official Sentry SDK for TanStack Start React",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/tanstackstart-react",
@@ -65,10 +65,10 @@
65
65
  "dependencies": {
66
66
  "@opentelemetry/api": "^1.9.1",
67
67
  "@opentelemetry/semantic-conventions": "^1.40.0",
68
- "@sentry-internal/browser-utils": "10.54.0",
69
- "@sentry/core": "10.54.0",
70
- "@sentry/node": "10.54.0",
71
- "@sentry/react": "10.54.0",
68
+ "@sentry-internal/browser-utils": "10.55.0",
69
+ "@sentry/core": "10.55.0",
70
+ "@sentry/node": "10.55.0",
71
+ "@sentry/react": "10.55.0",
72
72
  "@sentry/vite-plugin": "^5.3.0"
73
73
  },
74
74
  "devDependencies": {