@sentry/solidstart 11.10.0 → 11.12.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 (37) hide show
  1. package/build/cjs/common/tunnel.js +1 -1
  2. package/build/cjs/common/tunnel.js.map +1 -1
  3. package/build/cjs/index.server.js +6 -3
  4. package/build/cjs/index.server.js.map +1 -1
  5. package/build/cjs/nitro/tunnelPlugin.js +2 -12
  6. package/build/cjs/nitro/tunnelPlugin.js.map +1 -1
  7. package/build/cjs/server/index.js +3 -0
  8. package/build/cjs/server/index.js.map +1 -1
  9. package/build/cjs/vite/index.js +2 -0
  10. package/build/cjs/vite/index.js.map +1 -1
  11. package/build/cjs/vite/sentrySolidStart.js +11 -5
  12. package/build/cjs/vite/sentrySolidStart.js.map +1 -1
  13. package/build/esm/common/tunnel.js +2 -2
  14. package/build/esm/common/tunnel.js.map +1 -1
  15. package/build/esm/index.server.js +6 -2
  16. package/build/esm/index.server.js.map +1 -1
  17. package/build/esm/nitro/tunnelPlugin.js +3 -13
  18. package/build/esm/nitro/tunnelPlugin.js.map +1 -1
  19. package/build/esm/package.json +1 -1
  20. package/build/esm/server/index.js +1 -1
  21. package/build/esm/vite/index.js +1 -0
  22. package/build/esm/vite/index.js.map +1 -1
  23. package/build/esm/vite/sentrySolidStart.js +12 -6
  24. package/build/esm/vite/sentrySolidStart.js.map +1 -1
  25. package/build/types/common/tunnel.d.ts +2 -2
  26. package/build/types/index.server.d.ts +6 -1
  27. package/build/types/index.server.d.ts.map +1 -1
  28. package/build/types/index.types.d.ts +6 -1
  29. package/build/types/index.types.d.ts.map +1 -1
  30. package/build/types/nitro/tunnelPlugin.d.ts +3 -3
  31. package/build/types/nitro/tunnelPlugin.d.ts.map +1 -1
  32. package/build/types/server/index.d.ts +1 -1
  33. package/build/types/server/index.d.ts.map +1 -1
  34. package/build/types/vite/index.d.ts +1 -0
  35. package/build/types/vite/index.d.ts.map +1 -1
  36. package/build/types/vite/sentrySolidStart.d.ts.map +1 -1
  37. package/package.json +35 -33
@@ -5,7 +5,7 @@ const core = require('@sentry/core');
5
5
  const TUNNEL_BASE_PATH_GLOBAL = "__sentry_solidstart_base_path";
6
6
  function applyTunnelBasePath(options) {
7
7
  const basePath = typeof __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ !== "undefined" ? __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ : "";
8
- options.tunnel = core._INTERNAL_applyTunnelDefaults(options.tunnel, { basePath });
8
+ options.tunnel = core._INTERNAL_applyBrowserTunnelDefaults(options.tunnel, { basePath });
9
9
  }
10
10
 
11
11
  exports.TUNNEL_BASE_PATH_GLOBAL = TUNNEL_BASE_PATH_GLOBAL;
@@ -1 +1 @@
1
- {"version":3,"file":"tunnel.js","sources":["../../../src/common/tunnel.ts"],"sourcesContent":["import type { Options } from '@sentry/core';\nimport { _INTERNAL_applyTunnelDefaults as applyTunnelDefaults } from '@sentry/core';\n\n/** Set on the server by `withSentry` to the app's `server.baseURL`. */\nexport const TUNNEL_BASE_PATH_GLOBAL = '__sentry_solidstart_base_path';\n\ndeclare const __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__: string | undefined;\n\n/**\n * Serves the browser's managed tunnel under the app's `server.baseURL`, which `withSentry` defines at build time.\n * A `basePath` the user set wins.\n */\nexport function applyTunnelBasePath(options: Pick<Options, 'tunnel'>): void {\n const basePath =\n typeof __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ !== 'undefined' ? __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ : '';\n options.tunnel = applyTunnelDefaults(options.tunnel, { basePath });\n}\n"],"names":["applyTunnelDefaults"],"mappings":";;;;AAIO,MAAM,uBAAA,GAA0B;AAQhC,SAAS,oBAAoB,OAAA,EAAwC;AAC1E,EAAA,MAAM,QAAA,GACJ,OAAO,sCAAA,KAA2C,WAAA,GAAc,sCAAA,GAAyC,EAAA;AAC3G,EAAA,OAAA,CAAQ,SAASA,kCAAA,CAAoB,OAAA,CAAQ,MAAA,EAAQ,EAAE,UAAU,CAAA;AACnE;;;;;"}
1
+ {"version":3,"file":"tunnel.js","sources":["../../../src/common/tunnel.ts"],"sourcesContent":["import type { Options } from '@sentry/core';\nimport { _INTERNAL_applyBrowserTunnelDefaults as applyBrowserTunnelDefaults } from '@sentry/core';\n\n/** Set on the server by `withSentry` to the app's `server.baseURL`. */\nexport const TUNNEL_BASE_PATH_GLOBAL = '__sentry_solidstart_base_path';\n\ndeclare const __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__: string | undefined;\n\n/**\n * Serves the browser's managed tunnel under the app's base path, which `withSentry` (SolidStart 1) or\n * `sentrySolidStart` (SolidStart 2) defines at build time. A `basePath` the user set wins.\n */\nexport function applyTunnelBasePath(options: Pick<Options, 'tunnel'>): void {\n const basePath =\n typeof __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ !== 'undefined' ? __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ : '';\n options.tunnel = applyBrowserTunnelDefaults(options.tunnel, { basePath });\n}\n"],"names":["applyBrowserTunnelDefaults"],"mappings":";;;;AAIO,MAAM,uBAAA,GAA0B;AAQhC,SAAS,oBAAoB,OAAA,EAAwC;AAC1E,EAAA,MAAM,QAAA,GACJ,OAAO,sCAAA,KAA2C,WAAA,GAAc,sCAAA,GAAyC,EAAA;AAC3G,EAAA,OAAA,CAAQ,SAASA,yCAAA,CAA2B,OAAA,CAAQ,MAAA,EAAQ,EAAE,UAAU,CAAA;AAC1E;;;;;"}
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
+ const withSentry$1 = require('./config/withSentry.js');
3
4
  const node = require('@sentry/node');
4
5
  const solid = require('@sentry/solid');
5
6
  const sdk = require('./server/sdk.js');
6
7
  const withServerActionInstrumentation = require('./server/withServerActionInstrumentation.js');
7
8
  const middleware = require('./server/middleware.js');
8
- const withSentry = require('./config/withSentry.js');
9
-
10
9
 
10
+ const withSentry = withSentry$1.withSentry;
11
11
 
12
12
  exports.NodeClient = node.NodeClient;
13
13
  exports.SDK_VERSION = node.SDK_VERSION;
@@ -38,6 +38,7 @@ exports.createGetModuleFromFilename = node.createGetModuleFromFilename;
38
38
  exports.createSentryWinstonTransport = node.createSentryWinstonTransport;
39
39
  exports.createTransport = node.createTransport;
40
40
  exports.cron = node.cron;
41
+ exports.cronJobIntegration = node.cronJobIntegration;
41
42
  exports.dedupeIntegration = node.dedupeIntegration;
42
43
  exports.defaultStackParser = node.defaultStackParser;
43
44
  exports.disableAnrDetectionForCallback = node.disableAnrDetectionForCallback;
@@ -93,6 +94,8 @@ exports.nativeNodeFetchIntegration = node.nativeNodeFetchIntegration;
93
94
  exports.neonIntegration = node.neonIntegration;
94
95
  exports.nitroIntegration = node.nitroIntegration;
95
96
  exports.nodeContextIntegration = node.nodeContextIntegration;
97
+ exports.nodeCronIntegration = node.nodeCronIntegration;
98
+ exports.nodeScheduleIntegration = node.nodeScheduleIntegration;
96
99
  exports.onUncaughtExceptionIntegration = node.onUncaughtExceptionIntegration;
97
100
  exports.onUnhandledRejectionIntegration = node.onUnhandledRejectionIntegration;
98
101
  exports.parameterize = node.parameterize;
@@ -144,7 +147,7 @@ exports.withSentryErrorBoundary = solid.withSentryErrorBoundary;
144
147
  exports.init = sdk.init;
145
148
  exports.withServerActionInstrumentation = withServerActionInstrumentation.withServerActionInstrumentation;
146
149
  exports.sentryBeforeResponseMiddleware = middleware.sentryBeforeResponseMiddleware;
147
- exports.withSentry = withSentry.withSentry;
150
+ exports.withSentry = withSentry;
148
151
  Object.prototype.hasOwnProperty.call(node, '__proto__') &&
149
152
  !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
150
153
  Object.defineProperty(exports, '__proto__', {
@@ -1 +1 @@
1
- {"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.server.js","sources":["../../src/index.server.ts"],"sourcesContent":["import { withSentry as _withSentry } from './config';\n\nexport * from './server';\n\n/**\n * @deprecated Import `withSentry` from `@sentry/solidstart/vite` instead.\n * This export will be removed in the next major version.\n */\nexport const withSentry = _withSentry;\n"],"names":["_withSentry"],"mappings":";;;;;;;;;AAQO,MAAM,UAAA,GAAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,21 +1,11 @@
1
1
  const core = require('@sentry/core');
2
2
  const server = require('@sentry/core/server');
3
- const h3 = require('h3');
4
3
  const tunnel = require('../common/tunnel.js');
5
4
 
6
- const tunnelPlugin = ((nitroApp) => {
7
- server._INTERNAL_setManagedTunnelDefaults({
5
+ const tunnelPlugin = (() => {
6
+ server._INTERNAL_setTunnelDefaults({
8
7
  basePath: core.GLOBAL_OBJ[tunnel.TUNNEL_BASE_PATH_GLOBAL]
9
8
  });
10
- nitroApp.h3App.stack.unshift({
11
- route: "",
12
- handler: h3.eventHandler((event) => {
13
- if (!server._INTERNAL_isServedTunnelRequest({ method: event.method, url: event.path })) {
14
- return void 0;
15
- }
16
- return server._INTERNAL_handleServedTunnelRequest(h3.toWebRequest(event));
17
- })
18
- });
19
9
  });
20
10
 
21
11
  module.exports = tunnelPlugin;
@@ -1 +1 @@
1
- {"version":3,"file":"tunnelPlugin.js","sources":["../../../src/nitro/tunnelPlugin.ts"],"sourcesContent":["import { GLOBAL_OBJ } from '@sentry/core';\nimport {\n _INTERNAL_handleServedTunnelRequest as handleServedTunnelRequest,\n _INTERNAL_isServedTunnelRequest as isServedTunnelRequest,\n _INTERNAL_setManagedTunnelDefaults as setManagedTunnelDefaults,\n} from '@sentry/core/server';\nimport { eventHandler, toWebRequest } from 'h3';\nimport type { NitroAppPlugin } from 'nitropack';\nimport { TUNNEL_BASE_PATH_GLOBAL } from '../common/tunnel';\n\n/**\n * Answers managed tunnel requests on SolidStart v1 (Nitro v2), from the first layer of the h3 app. That runs before\n * route rules, the app's middleware and routing. `withSentry` registers it.\n */\nexport default (nitroApp => {\n // The first layer sees the path before Nitro strips `server.baseURL`, so the tunnel is served under it. The server\n // bundle's banner sets the global before this plugin runs.\n setManagedTunnelDefaults({\n basePath: (GLOBAL_OBJ as { [TUNNEL_BASE_PATH_GLOBAL]?: string })[TUNNEL_BASE_PATH_GLOBAL],\n });\n\n // Not the `request` hook: h3 still runs the first layer after a hook answered, so route rules would act on the\n // sent response.\n nitroApp.h3App.stack.unshift({\n route: '',\n handler: eventHandler(event => {\n // Checked on the method and path first, so no other request's body gets wrapped in a web `Request`.\n if (!isServedTunnelRequest({ method: event.method, url: event.path })) {\n return undefined;\n }\n\n // `toWebRequest` also reads the body of the mock requests serverless presets pass through `localFetch`, which\n // aren't Node streams. A returned `Response` is sent and ends the request, `undefined` hands it on.\n return handleServedTunnelRequest(toWebRequest(event));\n }),\n });\n}) satisfies NitroAppPlugin;\n"],"names":["setManagedTunnelDefaults","GLOBAL_OBJ","TUNNEL_BASE_PATH_GLOBAL","eventHandler","isServedTunnelRequest","handleServedTunnelRequest","toWebRequest"],"mappings":";;;;;AAcA,qBAAA,CAAgB,CAAA,QAAA,KAAY;AAG1B,EAAAA,yCAAA,CAAyB;AAAA,IACvB,QAAA,EAAWC,gBAAsDC,8BAAuB;AAAA,GACzF,CAAA;AAID,EAAA,QAAA,CAAS,KAAA,CAAM,MAAM,OAAA,CAAQ;AAAA,IAC3B,KAAA,EAAO,EAAA;AAAA,IACP,OAAA,EAASC,gBAAa,CAAA,KAAA,KAAS;AAE7B,MAAA,IAAI,CAACC,sCAAA,CAAsB,EAAE,MAAA,EAAQ,KAAA,CAAM,QAAQ,GAAA,EAAK,KAAA,CAAM,IAAA,EAAM,CAAA,EAAG;AACrE,QAAA,OAAO,MAAA;AAAA,MACT;AAIA,MAAA,OAAOC,0CAAA,CAA0BC,eAAA,CAAa,KAAK,CAAC,CAAA;AAAA,IACtD,CAAC;AAAA,GACF,CAAA;AACH,CAAA;;;;"}
1
+ {"version":3,"file":"tunnelPlugin.js","sources":["../../../src/nitro/tunnelPlugin.ts"],"sourcesContent":["import { GLOBAL_OBJ } from '@sentry/core';\nimport { _INTERNAL_setTunnelDefaults as setTunnelDefaults } from '@sentry/core/server';\nimport type { NitroAppPlugin } from 'nitropack';\nimport { TUNNEL_BASE_PATH_GLOBAL } from '../common/tunnel';\n\n/**\n * Serves the managed tunnel under the app's base path on SolidStart v1 (Nitro v2). The runtime answers the requests.\n * `withSentry` registers it.\n */\nexport default (() => {\n // The server bundle's banner sets the global before this plugin runs.\n setTunnelDefaults({\n basePath: (GLOBAL_OBJ as { [TUNNEL_BASE_PATH_GLOBAL]?: string })[TUNNEL_BASE_PATH_GLOBAL],\n });\n}) satisfies NitroAppPlugin;\n"],"names":["setTunnelDefaults","GLOBAL_OBJ","TUNNEL_BASE_PATH_GLOBAL"],"mappings":";;;;AASA,qBAAA,CAAgB,MAAM;AAEpB,EAAAA,kCAAA,CAAkB;AAAA,IAChB,QAAA,EAAWC,gBAAsDC,8BAAuB;AAAA,GACzF,CAAA;AACH,CAAA;;;;"}
@@ -37,6 +37,7 @@ exports.createGetModuleFromFilename = node.createGetModuleFromFilename;
37
37
  exports.createSentryWinstonTransport = node.createSentryWinstonTransport;
38
38
  exports.createTransport = node.createTransport;
39
39
  exports.cron = node.cron;
40
+ exports.cronJobIntegration = node.cronJobIntegration;
40
41
  exports.dedupeIntegration = node.dedupeIntegration;
41
42
  exports.defaultStackParser = node.defaultStackParser;
42
43
  exports.disableAnrDetectionForCallback = node.disableAnrDetectionForCallback;
@@ -92,6 +93,8 @@ exports.nativeNodeFetchIntegration = node.nativeNodeFetchIntegration;
92
93
  exports.neonIntegration = node.neonIntegration;
93
94
  exports.nitroIntegration = node.nitroIntegration;
94
95
  exports.nodeContextIntegration = node.nodeContextIntegration;
96
+ exports.nodeCronIntegration = node.nodeCronIntegration;
97
+ exports.nodeScheduleIntegration = node.nodeScheduleIntegration;
95
98
  exports.onUncaughtExceptionIntegration = node.onUncaughtExceptionIntegration;
96
99
  exports.onUnhandledRejectionIntegration = node.onUnhandledRejectionIntegration;
97
100
  exports.parameterize = node.parameterize;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,8 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
3
  const sentrySolidStart = require('./sentrySolidStart.js');
4
+ const withSentry = require('../config/withSentry.js');
4
5
 
5
6
 
6
7
 
7
8
  exports.sentrySolidStart = sentrySolidStart.sentrySolidStart;
9
+ exports.withSentry = withSentry.withSentry;
8
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -23,12 +23,18 @@ function makeSentryNitroPlugin(options) {
23
23
  enforce: "pre",
24
24
  config(userConfig) {
25
25
  const userNitro = userConfig.nitro;
26
+ const tunnelBasePath = core._INTERNAL_normalizeTunnelBasePath(userConfig.server?.baseURL || userConfig.base);
26
27
  return {
27
- nitro: nitro.setupSentryNitroModule(
28
- // `sourcemap` decides whether Sentry enables its own; `tracingChannel` is left as the user set it.
29
- { sourcemap: userNitro?.sourcemap, tracingChannel: userNitro?.tracingChannel },
30
- options
31
- )
28
+ define: { __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__: JSON.stringify(tunnelBasePath) },
29
+ nitro: {
30
+ ...nitro.setupSentryNitroModule(
31
+ // `sourcemap` decides whether Sentry enables its own; `tracingChannel` is left as the user set it.
32
+ { sourcemap: userNitro?.sourcemap, tracingChannel: userNitro?.tracingChannel },
33
+ options
34
+ ),
35
+ // `@sentry/nitro` serves the tunnel under this instead of Nitro's `baseURL`.
36
+ ...tunnelBasePath && { runtimeConfig: { sentryTunnelBasePath: tunnelBasePath } }
37
+ }
32
38
  };
33
39
  }
34
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sentrySolidStart.js","sources":["../../../src/vite/sentrySolidStart.ts"],"sourcesContent":["import { type BuildTimeOptionsBase, warnOnRemovedBuildOptions } from '@sentry/core';\nimport { setupSentryNitroModule } from '@sentry/nitro';\nimport { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/vite';\nimport type { Plugin, UserConfig } from 'vite';\nimport { makeAddSentryVitePluginSolidStart2, makeEnableSourceMapsVitePlugin } from './sourceMaps';\n\n/**\n * Build-time options for the Sentry SolidStart SDK on SolidStart 2.\n */\nexport type SentrySolidStartOptions = BuildTimeOptionsBase;\n\n/**\n * Vite plugins for the Sentry SolidStart SDK. Requires SolidStart 2.\n *\n * On SolidStart 1, use `withSentry` in `app.config.ts` instead.\n *\n * @example\n * ```typescript\n * // vite.config.ts\n * import { sentrySolidStart } from '@sentry/solidstart/vite';\n * import { solidStart } from '@solidjs/start/config';\n * import { nitro } from 'nitro/vite';\n * import { defineConfig } from 'vite';\n *\n * export default defineConfig({\n * plugins: [\n * solidStart(),\n * sentrySolidStart({\n * org: 'your-org',\n * project: 'your-project',\n * }),\n * nitro(),\n * ],\n * });\n * ```\n *\n * @param options - Options to configure the Sentry Vite plugins\n * @returns An array of Vite plugins\n */\nexport function sentrySolidStart(options: SentrySolidStartOptions = {}): Plugin[] {\n warnOnRemovedBuildOptions(options, ['unstable_sentryVitePluginOptions']);\n\n const plugins: Plugin[] = [makeSentryNitroPlugin(options)];\n\n // Only the Nitro plugin is dev-safe; its module handles `dev` itself.\n if (process.env.NODE_ENV === 'development') {\n return plugins;\n }\n\n // Injects `diagnostics_channel` publishers into instrumented deps at build time, which is what\n // lets `Sentry.init()` run from a bundled Nitro plugin rather than an `--import` preload.\n plugins.push(sentryOrchestrionPlugin({ buildTimeInstrumentation: options.buildTimeInstrumentation }));\n\n if (options.sourcemaps?.disable !== true) {\n plugins.push(...makeAddSentryVitePluginSolidStart2(options), ...makeEnableSourceMapsVitePlugin(options));\n }\n\n return plugins;\n}\n\n// Nitro's `NitroConfig` only matches `@sentry/nitro`'s when both resolve the same `nitro` install,\n// which is not guaranteed, so the key stays opaque rather than coupling the two copies.\ntype ViteConfigWithNitro = UserConfig & { nitro?: Record<string, unknown> };\n\n/**\n * Delivers everything only Nitro can reach — server source maps, runtime hooks, the\n * `sourcemapMinify` opt-out — through Vite's `nitro` key.\n *\n * `setupSentryNitroModule` is handed only the keys it reads, never the user's whole config, so what\n * comes back is purely Sentry's additions. Vite concatenates arrays when merging a `config` return\n * value, so echoing the user's own `modules`/`plugins` back would duplicate every entry.\n *\n * `enforce: 'pre'` is load-bearing: Nitro creates its instance inside its own `config` hook, so a\n * normal-priority hook sorting after it would be read too late and silently ignored.\n */\nfunction makeSentryNitroPlugin(options: SentrySolidStartOptions): Plugin {\n return {\n name: 'sentry-solidstart-nitro',\n enforce: 'pre',\n config(userConfig: ViteConfigWithNitro) {\n const userNitro = userConfig.nitro;\n\n return {\n nitro: setupSentryNitroModule(\n // `sourcemap` decides whether Sentry enables its own; `tracingChannel` is left as the user set it.\n { sourcemap: userNitro?.sourcemap, tracingChannel: userNitro?.tracingChannel } as Parameters<\n typeof setupSentryNitroModule\n >[0],\n options,\n ) as Record<string, unknown>,\n } as Omit<UserConfig, 'plugins'>;\n },\n };\n}\n"],"names":["warnOnRemovedBuildOptions","sentryOrchestrionPlugin","makeAddSentryVitePluginSolidStart2","makeEnableSourceMapsVitePlugin","setupSentryNitroModule"],"mappings":";;;;;;;AAuCO,SAAS,gBAAA,CAAiB,OAAA,GAAmC,EAAC,EAAa;AAChF,EAAAA,8BAAA,CAA0B,OAAA,EAAS,CAAC,kCAAkC,CAAC,CAAA;AAEvE,EAAA,MAAM,OAAA,GAAoB,CAAC,qBAAA,CAAsB,OAAO,CAAC,CAAA;AAGzD,EAAA,IAAI,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa,aAAA,EAAe;AAC1C,IAAA,OAAO,OAAA;AAAA,EACT;AAIA,EAAA,OAAA,CAAQ,KAAKC,4BAAA,CAAwB,EAAE,0BAA0B,OAAA,CAAQ,wBAAA,EAA0B,CAAC,CAAA;AAEpG,EAAA,IAAI,OAAA,CAAQ,UAAA,EAAY,OAAA,KAAY,IAAA,EAAM;AACxC,IAAA,OAAA,CAAQ,IAAA,CAAK,GAAGC,6CAAA,CAAmC,OAAO,GAAG,GAAGC,yCAAA,CAA+B,OAAO,CAAC,CAAA;AAAA,EACzG;AAEA,EAAA,OAAO,OAAA;AACT;AAiBA,SAAS,sBAAsB,OAAA,EAA0C;AACvE,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,yBAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IACT,OAAO,UAAA,EAAiC;AACtC,MAAA,MAAM,YAAY,UAAA,CAAW,KAAA;AAE7B,MAAA,OAAO;AAAA,QACL,KAAA,EAAOC,4BAAA;AAAA;AAAA,UAEL,EAAE,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,cAAA,EAAgB,WAAW,cAAA,EAAe;AAAA,UAG7E;AAAA;AACF,OACF;AAAA,IACF;AAAA,GACF;AACF;;;;"}
1
+ {"version":3,"file":"sentrySolidStart.js","sources":["../../../src/vite/sentrySolidStart.ts"],"sourcesContent":["import {\n type BuildTimeOptionsBase,\n _INTERNAL_normalizeTunnelBasePath as normalizeTunnelBasePath,\n warnOnRemovedBuildOptions,\n} from '@sentry/core';\nimport { setupSentryNitroModule } from '@sentry/nitro';\nimport { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/vite';\nimport type { Plugin, UserConfig } from 'vite';\nimport { makeAddSentryVitePluginSolidStart2, makeEnableSourceMapsVitePlugin } from './sourceMaps';\n\n/**\n * Build-time options for the Sentry SolidStart SDK on SolidStart 2.\n */\nexport type SentrySolidStartOptions = BuildTimeOptionsBase;\n\n/**\n * Vite plugins for the Sentry SolidStart SDK. Requires SolidStart 2.\n *\n * On SolidStart 1, use `withSentry` in `app.config.ts` instead.\n *\n * @example\n * ```typescript\n * // vite.config.ts\n * import { sentrySolidStart } from '@sentry/solidstart/vite';\n * import { solidStart } from '@solidjs/start/config';\n * import { nitro } from 'nitro/vite';\n * import { defineConfig } from 'vite';\n *\n * export default defineConfig({\n * plugins: [\n * solidStart(),\n * sentrySolidStart({\n * org: 'your-org',\n * project: 'your-project',\n * }),\n * nitro(),\n * ],\n * });\n * ```\n *\n * @param options - Options to configure the Sentry Vite plugins\n * @returns An array of Vite plugins\n */\nexport function sentrySolidStart(options: SentrySolidStartOptions = {}): Plugin[] {\n warnOnRemovedBuildOptions(options, ['unstable_sentryVitePluginOptions']);\n\n const plugins: Plugin[] = [makeSentryNitroPlugin(options)];\n\n // Only the Nitro plugin is dev-safe; its module handles `dev` itself.\n if (process.env.NODE_ENV === 'development') {\n return plugins;\n }\n\n // Injects `diagnostics_channel` publishers into instrumented deps at build time, which is what\n // lets `Sentry.init()` run from a bundled Nitro plugin rather than an `--import` preload.\n plugins.push(sentryOrchestrionPlugin({ buildTimeInstrumentation: options.buildTimeInstrumentation }));\n\n if (options.sourcemaps?.disable !== true) {\n plugins.push(...makeAddSentryVitePluginSolidStart2(options), ...makeEnableSourceMapsVitePlugin(options));\n }\n\n return plugins;\n}\n\n// Nitro's `NitroConfig` only matches `@sentry/nitro`'s when both resolve the same `nitro` install,\n// which is not guaranteed, so the key stays opaque rather than coupling the two copies.\ntype ViteConfigWithNitro = UserConfig & {\n nitro?: Record<string, unknown>;\n server?: UserConfig['server'] & { baseURL?: string };\n};\n\n/**\n * Delivers everything only Nitro can reach — server source maps, runtime hooks, the\n * `sourcemapMinify` opt-out — through Vite's `nitro` key, and the app's base path to the browser SDK.\n *\n * `setupSentryNitroModule` is handed only the keys it reads, never the user's whole config, so what\n * comes back is purely Sentry's additions. Vite concatenates arrays when merging a `config` return\n * value, so echoing the user's own `modules`/`plugins` back would duplicate every entry.\n *\n * `enforce: 'pre'` is load-bearing: Nitro creates its instance inside its own `config` hook, so a\n * normal-priority hook sorting after it would be read too late and silently ignored.\n */\nfunction makeSentryNitroPlugin(options: SentrySolidStartOptions): Plugin {\n return {\n name: 'sentry-solidstart-nitro',\n enforce: 'pre',\n config(userConfig: ViteConfigWithNitro) {\n const userNitro = userConfig.nitro;\n // SolidStart serves the app under Vite's `base` (or `server.baseURL`), not Nitro's `baseURL`, so the browser\n // and the server both serve the managed tunnel under it.\n const tunnelBasePath = normalizeTunnelBasePath(userConfig.server?.baseURL || userConfig.base);\n\n return {\n define: { __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__: JSON.stringify(tunnelBasePath) },\n nitro: {\n ...(setupSentryNitroModule(\n // `sourcemap` decides whether Sentry enables its own; `tracingChannel` is left as the user set it.\n { sourcemap: userNitro?.sourcemap, tracingChannel: userNitro?.tracingChannel } as Parameters<\n typeof setupSentryNitroModule\n >[0],\n options,\n ) as Record<string, unknown>),\n // `@sentry/nitro` serves the tunnel under this instead of Nitro's `baseURL`.\n ...(tunnelBasePath && { runtimeConfig: { sentryTunnelBasePath: tunnelBasePath } }),\n },\n } as Omit<UserConfig, 'plugins'>;\n },\n };\n}\n"],"names":["warnOnRemovedBuildOptions","sentryOrchestrionPlugin","makeAddSentryVitePluginSolidStart2","makeEnableSourceMapsVitePlugin","normalizeTunnelBasePath","setupSentryNitroModule"],"mappings":";;;;;;;AA2CO,SAAS,gBAAA,CAAiB,OAAA,GAAmC,EAAC,EAAa;AAChF,EAAAA,8BAAA,CAA0B,OAAA,EAAS,CAAC,kCAAkC,CAAC,CAAA;AAEvE,EAAA,MAAM,OAAA,GAAoB,CAAC,qBAAA,CAAsB,OAAO,CAAC,CAAA;AAGzD,EAAA,IAAI,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa,aAAA,EAAe;AAC1C,IAAA,OAAO,OAAA;AAAA,EACT;AAIA,EAAA,OAAA,CAAQ,KAAKC,4BAAA,CAAwB,EAAE,0BAA0B,OAAA,CAAQ,wBAAA,EAA0B,CAAC,CAAA;AAEpG,EAAA,IAAI,OAAA,CAAQ,UAAA,EAAY,OAAA,KAAY,IAAA,EAAM;AACxC,IAAA,OAAA,CAAQ,IAAA,CAAK,GAAGC,6CAAA,CAAmC,OAAO,GAAG,GAAGC,yCAAA,CAA+B,OAAO,CAAC,CAAA;AAAA,EACzG;AAEA,EAAA,OAAO,OAAA;AACT;AAoBA,SAAS,sBAAsB,OAAA,EAA0C;AACvE,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,yBAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IACT,OAAO,UAAA,EAAiC;AACtC,MAAA,MAAM,YAAY,UAAA,CAAW,KAAA;AAG7B,MAAA,MAAM,iBAAiBC,sCAAA,CAAwB,UAAA,CAAW,MAAA,EAAQ,OAAA,IAAW,WAAW,IAAI,CAAA;AAE5F,MAAA,OAAO;AAAA,QACL,QAAQ,EAAE,sCAAA,EAAwC,IAAA,CAAK,SAAA,CAAU,cAAc,CAAA,EAAE;AAAA,QACjF,KAAA,EAAO;AAAA,UACL,GAAIC,4BAAA;AAAA;AAAA,YAEF,EAAE,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,cAAA,EAAgB,WAAW,cAAA,EAAe;AAAA,YAG7E;AAAA,WACF;AAAA;AAAA,UAEA,GAAI,cAAA,IAAkB,EAAE,eAAe,EAAE,oBAAA,EAAsB,gBAAe;AAAE;AAClF,OACF;AAAA,IACF;AAAA,GACF;AACF;;;;"}
@@ -1,9 +1,9 @@
1
- import { _INTERNAL_applyTunnelDefaults } from '@sentry/core';
1
+ import { _INTERNAL_applyBrowserTunnelDefaults } from '@sentry/core';
2
2
 
3
3
  const TUNNEL_BASE_PATH_GLOBAL = "__sentry_solidstart_base_path";
4
4
  function applyTunnelBasePath(options) {
5
5
  const basePath = typeof __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ !== "undefined" ? __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ : "";
6
- options.tunnel = _INTERNAL_applyTunnelDefaults(options.tunnel, { basePath });
6
+ options.tunnel = _INTERNAL_applyBrowserTunnelDefaults(options.tunnel, { basePath });
7
7
  }
8
8
 
9
9
  export { TUNNEL_BASE_PATH_GLOBAL, applyTunnelBasePath };
@@ -1 +1 @@
1
- {"version":3,"file":"tunnel.js","sources":["../../../src/common/tunnel.ts"],"sourcesContent":["import type { Options } from '@sentry/core';\nimport { _INTERNAL_applyTunnelDefaults as applyTunnelDefaults } from '@sentry/core';\n\n/** Set on the server by `withSentry` to the app's `server.baseURL`. */\nexport const TUNNEL_BASE_PATH_GLOBAL = '__sentry_solidstart_base_path';\n\ndeclare const __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__: string | undefined;\n\n/**\n * Serves the browser's managed tunnel under the app's `server.baseURL`, which `withSentry` defines at build time.\n * A `basePath` the user set wins.\n */\nexport function applyTunnelBasePath(options: Pick<Options, 'tunnel'>): void {\n const basePath =\n typeof __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ !== 'undefined' ? __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ : '';\n options.tunnel = applyTunnelDefaults(options.tunnel, { basePath });\n}\n"],"names":["applyTunnelDefaults"],"mappings":";;AAIO,MAAM,uBAAA,GAA0B;AAQhC,SAAS,oBAAoB,OAAA,EAAwC;AAC1E,EAAA,MAAM,QAAA,GACJ,OAAO,sCAAA,KAA2C,WAAA,GAAc,sCAAA,GAAyC,EAAA;AAC3G,EAAA,OAAA,CAAQ,SAASA,6BAAA,CAAoB,OAAA,CAAQ,MAAA,EAAQ,EAAE,UAAU,CAAA;AACnE;;;;"}
1
+ {"version":3,"file":"tunnel.js","sources":["../../../src/common/tunnel.ts"],"sourcesContent":["import type { Options } from '@sentry/core';\nimport { _INTERNAL_applyBrowserTunnelDefaults as applyBrowserTunnelDefaults } from '@sentry/core';\n\n/** Set on the server by `withSentry` to the app's `server.baseURL`. */\nexport const TUNNEL_BASE_PATH_GLOBAL = '__sentry_solidstart_base_path';\n\ndeclare const __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__: string | undefined;\n\n/**\n * Serves the browser's managed tunnel under the app's base path, which `withSentry` (SolidStart 1) or\n * `sentrySolidStart` (SolidStart 2) defines at build time. A `basePath` the user set wins.\n */\nexport function applyTunnelBasePath(options: Pick<Options, 'tunnel'>): void {\n const basePath =\n typeof __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ !== 'undefined' ? __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__ : '';\n options.tunnel = applyBrowserTunnelDefaults(options.tunnel, { basePath });\n}\n"],"names":["applyBrowserTunnelDefaults"],"mappings":";;AAIO,MAAM,uBAAA,GAA0B;AAQhC,SAAS,oBAAoB,OAAA,EAAwC;AAC1E,EAAA,MAAM,QAAA,GACJ,OAAO,sCAAA,KAA2C,WAAA,GAAc,sCAAA,GAAyC,EAAA;AAC3G,EAAA,OAAA,CAAQ,SAASA,oCAAA,CAA2B,OAAA,CAAQ,MAAA,EAAQ,EAAE,UAAU,CAAA;AAC1E;;;;"}
@@ -1,8 +1,12 @@
1
+ import { withSentry as withSentry$1 } from './config/withSentry.js';
1
2
  export * from '@sentry/node';
2
- export { NodeClient, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Scope, addBreadcrumb, addEventProcessor, addIntegration, amqplibIntegration, anrIntegration, bindScopeToEmitter, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleIntegration, consoleLoggingIntegration, contextLinesIntegration, continueTrace, createConsolaReporter, createGetModuleFromFilename, createSentryWinstonTransport, createTransport, cron, dedupeIntegration, defaultStackParser, disableAnrDetectionForCallback, endSession, eventFiltersIntegration, expressErrorHandler, expressIntegration, extraErrorDataIntegration, fastifyIntegration, flush, functionToStringIntegration, genericPoolIntegration, getActiveSpan, getAutoPerformanceIntegrations, getClient, getCurrentScope, getDefaultIntegrations, getGlobalScope, getIsolationScope, getRootSpan, getSentryRelease, getSpanDescendants, getSpanStatusFromHttpCode, getTunnelPath, graphqlIntegration, handleTunnelRequest, handleTunnelRequestIfMatched, hapiIntegration, honoIntegration, honoMiddleware, httpIntegration, httpServerIntegration, httpServerSpansIntegration, initOpenTelemetry, instrumentSupabaseClient, isEnabled, isInitialized, isTunnelRequest, kafkaIntegration, knexIntegration, koaIntegration, lastEventId, linkedErrorsIntegration, localVariablesIntegration, logger, makeNodeTransport, modulesIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, nativeNodeFetchIntegration, neonIntegration, nitroIntegration, nodeContextIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, parameterize, postgresIntegration, postgresJsIntegration, prismaIntegration, redisIntegration, requestDataIntegration, rewriteFramesIntegration, serveTunnelIntegration, setAttribute, setAttributes, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, setupExpressErrorHandler, setupHapiErrorHandler, setupKoaErrorHandler, spanStreamingIntegration, spanToBaggageHeader, spanToJSON, spanToStaticSpanJSON, spanToTraceHeader, spotlightIntegration, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, supabaseIntegration, suppressTracing, tediousIntegration, trpcMiddleware, updateSpanName, withActiveSpan, withIsolationScope, withMonitor, withScope, withStaticSpan, withStreamedSpan, zodErrorsIntegration } from '@sentry/node';
3
+ export { NodeClient, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Scope, addBreadcrumb, addEventProcessor, addIntegration, amqplibIntegration, anrIntegration, bindScopeToEmitter, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleIntegration, consoleLoggingIntegration, contextLinesIntegration, continueTrace, createConsolaReporter, createGetModuleFromFilename, createSentryWinstonTransport, createTransport, cron, cronJobIntegration, dedupeIntegration, defaultStackParser, disableAnrDetectionForCallback, endSession, eventFiltersIntegration, expressErrorHandler, expressIntegration, extraErrorDataIntegration, fastifyIntegration, flush, functionToStringIntegration, genericPoolIntegration, getActiveSpan, getAutoPerformanceIntegrations, getClient, getCurrentScope, getDefaultIntegrations, getGlobalScope, getIsolationScope, getRootSpan, getSentryRelease, getSpanDescendants, getSpanStatusFromHttpCode, getTunnelPath, graphqlIntegration, handleTunnelRequest, handleTunnelRequestIfMatched, hapiIntegration, honoIntegration, honoMiddleware, httpIntegration, httpServerIntegration, httpServerSpansIntegration, initOpenTelemetry, instrumentSupabaseClient, isEnabled, isInitialized, isTunnelRequest, kafkaIntegration, knexIntegration, koaIntegration, lastEventId, linkedErrorsIntegration, localVariablesIntegration, logger, makeNodeTransport, modulesIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, nativeNodeFetchIntegration, neonIntegration, nitroIntegration, nodeContextIntegration, nodeCronIntegration, nodeScheduleIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, parameterize, postgresIntegration, postgresJsIntegration, prismaIntegration, redisIntegration, requestDataIntegration, rewriteFramesIntegration, serveTunnelIntegration, setAttribute, setAttributes, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, setupExpressErrorHandler, setupHapiErrorHandler, setupKoaErrorHandler, spanStreamingIntegration, spanToBaggageHeader, spanToJSON, spanToStaticSpanJSON, spanToTraceHeader, spotlightIntegration, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, supabaseIntegration, suppressTracing, tediousIntegration, trpcMiddleware, updateSpanName, withActiveSpan, withIsolationScope, withMonitor, withScope, withStaticSpan, withStreamedSpan, zodErrorsIntegration } from '@sentry/node';
3
4
  export { withSentryErrorBoundary } from '@sentry/solid';
4
5
  export { init } from './server/sdk.js';
5
6
  export { withServerActionInstrumentation } from './server/withServerActionInstrumentation.js';
6
7
  export { sentryBeforeResponseMiddleware } from './server/middleware.js';
7
- export { withSentry } from './config/withSentry.js';
8
+
9
+ const withSentry = withSentry$1;
10
+
11
+ export { withSentry };
8
12
  //# sourceMappingURL=index.server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index.server.js","sources":["../../src/index.server.ts"],"sourcesContent":["import { withSentry as _withSentry } from './config';\n\nexport * from './server';\n\n/**\n * @deprecated Import `withSentry` from `@sentry/solidstart/vite` instead.\n * This export will be removed in the next major version.\n */\nexport const withSentry = _withSentry;\n"],"names":["_withSentry"],"mappings":";;;;;;;;AAQO,MAAM,UAAA,GAAaA;;;;"}
@@ -1,21 +1,11 @@
1
1
  import { GLOBAL_OBJ } from '@sentry/core';
2
- import { _INTERNAL_setManagedTunnelDefaults, _INTERNAL_isServedTunnelRequest, _INTERNAL_handleServedTunnelRequest } from '@sentry/core/server';
3
- import { eventHandler, toWebRequest } from 'h3';
2
+ import { _INTERNAL_setTunnelDefaults } from '@sentry/core/server';
4
3
  import { TUNNEL_BASE_PATH_GLOBAL } from '../common/tunnel.js';
5
4
 
6
- const tunnelPlugin = ((nitroApp) => {
7
- _INTERNAL_setManagedTunnelDefaults({
5
+ const tunnelPlugin = (() => {
6
+ _INTERNAL_setTunnelDefaults({
8
7
  basePath: GLOBAL_OBJ[TUNNEL_BASE_PATH_GLOBAL]
9
8
  });
10
- nitroApp.h3App.stack.unshift({
11
- route: "",
12
- handler: eventHandler((event) => {
13
- if (!_INTERNAL_isServedTunnelRequest({ method: event.method, url: event.path })) {
14
- return void 0;
15
- }
16
- return _INTERNAL_handleServedTunnelRequest(toWebRequest(event));
17
- })
18
- });
19
9
  });
20
10
 
21
11
  export { tunnelPlugin as default };
@@ -1 +1 @@
1
- {"version":3,"file":"tunnelPlugin.js","sources":["../../../src/nitro/tunnelPlugin.ts"],"sourcesContent":["import { GLOBAL_OBJ } from '@sentry/core';\nimport {\n _INTERNAL_handleServedTunnelRequest as handleServedTunnelRequest,\n _INTERNAL_isServedTunnelRequest as isServedTunnelRequest,\n _INTERNAL_setManagedTunnelDefaults as setManagedTunnelDefaults,\n} from '@sentry/core/server';\nimport { eventHandler, toWebRequest } from 'h3';\nimport type { NitroAppPlugin } from 'nitropack';\nimport { TUNNEL_BASE_PATH_GLOBAL } from '../common/tunnel';\n\n/**\n * Answers managed tunnel requests on SolidStart v1 (Nitro v2), from the first layer of the h3 app. That runs before\n * route rules, the app's middleware and routing. `withSentry` registers it.\n */\nexport default (nitroApp => {\n // The first layer sees the path before Nitro strips `server.baseURL`, so the tunnel is served under it. The server\n // bundle's banner sets the global before this plugin runs.\n setManagedTunnelDefaults({\n basePath: (GLOBAL_OBJ as { [TUNNEL_BASE_PATH_GLOBAL]?: string })[TUNNEL_BASE_PATH_GLOBAL],\n });\n\n // Not the `request` hook: h3 still runs the first layer after a hook answered, so route rules would act on the\n // sent response.\n nitroApp.h3App.stack.unshift({\n route: '',\n handler: eventHandler(event => {\n // Checked on the method and path first, so no other request's body gets wrapped in a web `Request`.\n if (!isServedTunnelRequest({ method: event.method, url: event.path })) {\n return undefined;\n }\n\n // `toWebRequest` also reads the body of the mock requests serverless presets pass through `localFetch`, which\n // aren't Node streams. A returned `Response` is sent and ends the request, `undefined` hands it on.\n return handleServedTunnelRequest(toWebRequest(event));\n }),\n });\n}) satisfies NitroAppPlugin;\n"],"names":["setManagedTunnelDefaults","isServedTunnelRequest","handleServedTunnelRequest"],"mappings":";;;;;AAcA,qBAAA,CAAgB,CAAA,QAAA,KAAY;AAG1B,EAAAA,kCAAA,CAAyB;AAAA,IACvB,QAAA,EAAW,WAAsD,uBAAuB;AAAA,GACzF,CAAA;AAID,EAAA,QAAA,CAAS,KAAA,CAAM,MAAM,OAAA,CAAQ;AAAA,IAC3B,KAAA,EAAO,EAAA;AAAA,IACP,OAAA,EAAS,aAAa,CAAA,KAAA,KAAS;AAE7B,MAAA,IAAI,CAACC,+BAAA,CAAsB,EAAE,MAAA,EAAQ,KAAA,CAAM,QAAQ,GAAA,EAAK,KAAA,CAAM,IAAA,EAAM,CAAA,EAAG;AACrE,QAAA,OAAO,MAAA;AAAA,MACT;AAIA,MAAA,OAAOC,mCAAA,CAA0B,YAAA,CAAa,KAAK,CAAC,CAAA;AAAA,IACtD,CAAC;AAAA,GACF,CAAA;AACH,CAAA;;;;"}
1
+ {"version":3,"file":"tunnelPlugin.js","sources":["../../../src/nitro/tunnelPlugin.ts"],"sourcesContent":["import { GLOBAL_OBJ } from '@sentry/core';\nimport { _INTERNAL_setTunnelDefaults as setTunnelDefaults } from '@sentry/core/server';\nimport type { NitroAppPlugin } from 'nitropack';\nimport { TUNNEL_BASE_PATH_GLOBAL } from '../common/tunnel';\n\n/**\n * Serves the managed tunnel under the app's base path on SolidStart v1 (Nitro v2). The runtime answers the requests.\n * `withSentry` registers it.\n */\nexport default (() => {\n // The server bundle's banner sets the global before this plugin runs.\n setTunnelDefaults({\n basePath: (GLOBAL_OBJ as { [TUNNEL_BASE_PATH_GLOBAL]?: string })[TUNNEL_BASE_PATH_GLOBAL],\n });\n}) satisfies NitroAppPlugin;\n"],"names":["setTunnelDefaults"],"mappings":";;;;AASA,qBAAA,CAAgB,MAAM;AAEpB,EAAAA,2BAAA,CAAkB;AAAA,IAChB,QAAA,EAAW,WAAsD,uBAAuB;AAAA,GACzF,CAAA;AACH,CAAA;;;;"}
@@ -1 +1 @@
1
- {"type":"module","version":"11.10.0"}
1
+ {"type":"module","version":"11.12.0"}
@@ -1,5 +1,5 @@
1
1
  export * from '@sentry/node';
2
- export { NodeClient, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Scope, addBreadcrumb, addEventProcessor, addIntegration, amqplibIntegration, anrIntegration, bindScopeToEmitter, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleIntegration, consoleLoggingIntegration, contextLinesIntegration, continueTrace, createConsolaReporter, createGetModuleFromFilename, createSentryWinstonTransport, createTransport, cron, dedupeIntegration, defaultStackParser, disableAnrDetectionForCallback, endSession, eventFiltersIntegration, expressErrorHandler, expressIntegration, extraErrorDataIntegration, fastifyIntegration, flush, functionToStringIntegration, genericPoolIntegration, getActiveSpan, getAutoPerformanceIntegrations, getClient, getCurrentScope, getDefaultIntegrations, getGlobalScope, getIsolationScope, getRootSpan, getSentryRelease, getSpanDescendants, getSpanStatusFromHttpCode, getTunnelPath, graphqlIntegration, handleTunnelRequest, handleTunnelRequestIfMatched, hapiIntegration, honoIntegration, honoMiddleware, httpIntegration, httpServerIntegration, httpServerSpansIntegration, initOpenTelemetry, instrumentSupabaseClient, isEnabled, isInitialized, isTunnelRequest, kafkaIntegration, knexIntegration, koaIntegration, lastEventId, linkedErrorsIntegration, localVariablesIntegration, logger, makeNodeTransport, modulesIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, nativeNodeFetchIntegration, neonIntegration, nitroIntegration, nodeContextIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, parameterize, postgresIntegration, postgresJsIntegration, prismaIntegration, redisIntegration, requestDataIntegration, rewriteFramesIntegration, serveTunnelIntegration, setAttribute, setAttributes, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, setupExpressErrorHandler, setupHapiErrorHandler, setupKoaErrorHandler, spanStreamingIntegration, spanToBaggageHeader, spanToJSON, spanToStaticSpanJSON, spanToTraceHeader, spotlightIntegration, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, supabaseIntegration, suppressTracing, tediousIntegration, trpcMiddleware, updateSpanName, withActiveSpan, withIsolationScope, withMonitor, withScope, withStaticSpan, withStreamedSpan, zodErrorsIntegration } from '@sentry/node';
2
+ export { NodeClient, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Scope, addBreadcrumb, addEventProcessor, addIntegration, amqplibIntegration, anrIntegration, bindScopeToEmitter, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleIntegration, consoleLoggingIntegration, contextLinesIntegration, continueTrace, createConsolaReporter, createGetModuleFromFilename, createSentryWinstonTransport, createTransport, cron, cronJobIntegration, dedupeIntegration, defaultStackParser, disableAnrDetectionForCallback, endSession, eventFiltersIntegration, expressErrorHandler, expressIntegration, extraErrorDataIntegration, fastifyIntegration, flush, functionToStringIntegration, genericPoolIntegration, getActiveSpan, getAutoPerformanceIntegrations, getClient, getCurrentScope, getDefaultIntegrations, getGlobalScope, getIsolationScope, getRootSpan, getSentryRelease, getSpanDescendants, getSpanStatusFromHttpCode, getTunnelPath, graphqlIntegration, handleTunnelRequest, handleTunnelRequestIfMatched, hapiIntegration, honoIntegration, honoMiddleware, httpIntegration, httpServerIntegration, httpServerSpansIntegration, initOpenTelemetry, instrumentSupabaseClient, isEnabled, isInitialized, isTunnelRequest, kafkaIntegration, knexIntegration, koaIntegration, lastEventId, linkedErrorsIntegration, localVariablesIntegration, logger, makeNodeTransport, modulesIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, nativeNodeFetchIntegration, neonIntegration, nitroIntegration, nodeContextIntegration, nodeCronIntegration, nodeScheduleIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, parameterize, postgresIntegration, postgresJsIntegration, prismaIntegration, redisIntegration, requestDataIntegration, rewriteFramesIntegration, serveTunnelIntegration, setAttribute, setAttributes, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, setupExpressErrorHandler, setupHapiErrorHandler, setupKoaErrorHandler, spanStreamingIntegration, spanToBaggageHeader, spanToJSON, spanToStaticSpanJSON, spanToTraceHeader, spotlightIntegration, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, supabaseIntegration, suppressTracing, tediousIntegration, trpcMiddleware, updateSpanName, withActiveSpan, withIsolationScope, withMonitor, withScope, withStaticSpan, withStreamedSpan, zodErrorsIntegration } from '@sentry/node';
3
3
  export { withSentryErrorBoundary } from '@sentry/solid';
4
4
  export { init } from './sdk.js';
5
5
  export { withServerActionInstrumentation } from './withServerActionInstrumentation.js';
@@ -1,2 +1,3 @@
1
1
  export { sentrySolidStart } from './sentrySolidStart.js';
2
+ export { withSentry } from '../config/withSentry.js';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,4 +1,4 @@
1
- import { warnOnRemovedBuildOptions } from '@sentry/core';
1
+ import { warnOnRemovedBuildOptions, _INTERNAL_normalizeTunnelBasePath } from '@sentry/core';
2
2
  import { setupSentryNitroModule } from '@sentry/nitro';
3
3
  import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/vite';
4
4
  import { makeAddSentryVitePluginSolidStart2, makeEnableSourceMapsVitePlugin } from './sourceMaps.js';
@@ -21,12 +21,18 @@ function makeSentryNitroPlugin(options) {
21
21
  enforce: "pre",
22
22
  config(userConfig) {
23
23
  const userNitro = userConfig.nitro;
24
+ const tunnelBasePath = _INTERNAL_normalizeTunnelBasePath(userConfig.server?.baseURL || userConfig.base);
24
25
  return {
25
- nitro: setupSentryNitroModule(
26
- // `sourcemap` decides whether Sentry enables its own; `tracingChannel` is left as the user set it.
27
- { sourcemap: userNitro?.sourcemap, tracingChannel: userNitro?.tracingChannel },
28
- options
29
- )
26
+ define: { __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__: JSON.stringify(tunnelBasePath) },
27
+ nitro: {
28
+ ...setupSentryNitroModule(
29
+ // `sourcemap` decides whether Sentry enables its own; `tracingChannel` is left as the user set it.
30
+ { sourcemap: userNitro?.sourcemap, tracingChannel: userNitro?.tracingChannel },
31
+ options
32
+ ),
33
+ // `@sentry/nitro` serves the tunnel under this instead of Nitro's `baseURL`.
34
+ ...tunnelBasePath && { runtimeConfig: { sentryTunnelBasePath: tunnelBasePath } }
35
+ }
30
36
  };
31
37
  }
32
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sentrySolidStart.js","sources":["../../../src/vite/sentrySolidStart.ts"],"sourcesContent":["import { type BuildTimeOptionsBase, warnOnRemovedBuildOptions } from '@sentry/core';\nimport { setupSentryNitroModule } from '@sentry/nitro';\nimport { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/vite';\nimport type { Plugin, UserConfig } from 'vite';\nimport { makeAddSentryVitePluginSolidStart2, makeEnableSourceMapsVitePlugin } from './sourceMaps';\n\n/**\n * Build-time options for the Sentry SolidStart SDK on SolidStart 2.\n */\nexport type SentrySolidStartOptions = BuildTimeOptionsBase;\n\n/**\n * Vite plugins for the Sentry SolidStart SDK. Requires SolidStart 2.\n *\n * On SolidStart 1, use `withSentry` in `app.config.ts` instead.\n *\n * @example\n * ```typescript\n * // vite.config.ts\n * import { sentrySolidStart } from '@sentry/solidstart/vite';\n * import { solidStart } from '@solidjs/start/config';\n * import { nitro } from 'nitro/vite';\n * import { defineConfig } from 'vite';\n *\n * export default defineConfig({\n * plugins: [\n * solidStart(),\n * sentrySolidStart({\n * org: 'your-org',\n * project: 'your-project',\n * }),\n * nitro(),\n * ],\n * });\n * ```\n *\n * @param options - Options to configure the Sentry Vite plugins\n * @returns An array of Vite plugins\n */\nexport function sentrySolidStart(options: SentrySolidStartOptions = {}): Plugin[] {\n warnOnRemovedBuildOptions(options, ['unstable_sentryVitePluginOptions']);\n\n const plugins: Plugin[] = [makeSentryNitroPlugin(options)];\n\n // Only the Nitro plugin is dev-safe; its module handles `dev` itself.\n if (process.env.NODE_ENV === 'development') {\n return plugins;\n }\n\n // Injects `diagnostics_channel` publishers into instrumented deps at build time, which is what\n // lets `Sentry.init()` run from a bundled Nitro plugin rather than an `--import` preload.\n plugins.push(sentryOrchestrionPlugin({ buildTimeInstrumentation: options.buildTimeInstrumentation }));\n\n if (options.sourcemaps?.disable !== true) {\n plugins.push(...makeAddSentryVitePluginSolidStart2(options), ...makeEnableSourceMapsVitePlugin(options));\n }\n\n return plugins;\n}\n\n// Nitro's `NitroConfig` only matches `@sentry/nitro`'s when both resolve the same `nitro` install,\n// which is not guaranteed, so the key stays opaque rather than coupling the two copies.\ntype ViteConfigWithNitro = UserConfig & { nitro?: Record<string, unknown> };\n\n/**\n * Delivers everything only Nitro can reach — server source maps, runtime hooks, the\n * `sourcemapMinify` opt-out — through Vite's `nitro` key.\n *\n * `setupSentryNitroModule` is handed only the keys it reads, never the user's whole config, so what\n * comes back is purely Sentry's additions. Vite concatenates arrays when merging a `config` return\n * value, so echoing the user's own `modules`/`plugins` back would duplicate every entry.\n *\n * `enforce: 'pre'` is load-bearing: Nitro creates its instance inside its own `config` hook, so a\n * normal-priority hook sorting after it would be read too late and silently ignored.\n */\nfunction makeSentryNitroPlugin(options: SentrySolidStartOptions): Plugin {\n return {\n name: 'sentry-solidstart-nitro',\n enforce: 'pre',\n config(userConfig: ViteConfigWithNitro) {\n const userNitro = userConfig.nitro;\n\n return {\n nitro: setupSentryNitroModule(\n // `sourcemap` decides whether Sentry enables its own; `tracingChannel` is left as the user set it.\n { sourcemap: userNitro?.sourcemap, tracingChannel: userNitro?.tracingChannel } as Parameters<\n typeof setupSentryNitroModule\n >[0],\n options,\n ) as Record<string, unknown>,\n } as Omit<UserConfig, 'plugins'>;\n },\n };\n}\n"],"names":[],"mappings":";;;;;AAuCO,SAAS,gBAAA,CAAiB,OAAA,GAAmC,EAAC,EAAa;AAChF,EAAA,yBAAA,CAA0B,OAAA,EAAS,CAAC,kCAAkC,CAAC,CAAA;AAEvE,EAAA,MAAM,OAAA,GAAoB,CAAC,qBAAA,CAAsB,OAAO,CAAC,CAAA;AAGzD,EAAA,IAAI,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa,aAAA,EAAe;AAC1C,IAAA,OAAO,OAAA;AAAA,EACT;AAIA,EAAA,OAAA,CAAQ,KAAK,uBAAA,CAAwB,EAAE,0BAA0B,OAAA,CAAQ,wBAAA,EAA0B,CAAC,CAAA;AAEpG,EAAA,IAAI,OAAA,CAAQ,UAAA,EAAY,OAAA,KAAY,IAAA,EAAM;AACxC,IAAA,OAAA,CAAQ,IAAA,CAAK,GAAG,kCAAA,CAAmC,OAAO,GAAG,GAAG,8BAAA,CAA+B,OAAO,CAAC,CAAA;AAAA,EACzG;AAEA,EAAA,OAAO,OAAA;AACT;AAiBA,SAAS,sBAAsB,OAAA,EAA0C;AACvE,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,yBAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IACT,OAAO,UAAA,EAAiC;AACtC,MAAA,MAAM,YAAY,UAAA,CAAW,KAAA;AAE7B,MAAA,OAAO;AAAA,QACL,KAAA,EAAO,sBAAA;AAAA;AAAA,UAEL,EAAE,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,cAAA,EAAgB,WAAW,cAAA,EAAe;AAAA,UAG7E;AAAA;AACF,OACF;AAAA,IACF;AAAA,GACF;AACF;;;;"}
1
+ {"version":3,"file":"sentrySolidStart.js","sources":["../../../src/vite/sentrySolidStart.ts"],"sourcesContent":["import {\n type BuildTimeOptionsBase,\n _INTERNAL_normalizeTunnelBasePath as normalizeTunnelBasePath,\n warnOnRemovedBuildOptions,\n} from '@sentry/core';\nimport { setupSentryNitroModule } from '@sentry/nitro';\nimport { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/vite';\nimport type { Plugin, UserConfig } from 'vite';\nimport { makeAddSentryVitePluginSolidStart2, makeEnableSourceMapsVitePlugin } from './sourceMaps';\n\n/**\n * Build-time options for the Sentry SolidStart SDK on SolidStart 2.\n */\nexport type SentrySolidStartOptions = BuildTimeOptionsBase;\n\n/**\n * Vite plugins for the Sentry SolidStart SDK. Requires SolidStart 2.\n *\n * On SolidStart 1, use `withSentry` in `app.config.ts` instead.\n *\n * @example\n * ```typescript\n * // vite.config.ts\n * import { sentrySolidStart } from '@sentry/solidstart/vite';\n * import { solidStart } from '@solidjs/start/config';\n * import { nitro } from 'nitro/vite';\n * import { defineConfig } from 'vite';\n *\n * export default defineConfig({\n * plugins: [\n * solidStart(),\n * sentrySolidStart({\n * org: 'your-org',\n * project: 'your-project',\n * }),\n * nitro(),\n * ],\n * });\n * ```\n *\n * @param options - Options to configure the Sentry Vite plugins\n * @returns An array of Vite plugins\n */\nexport function sentrySolidStart(options: SentrySolidStartOptions = {}): Plugin[] {\n warnOnRemovedBuildOptions(options, ['unstable_sentryVitePluginOptions']);\n\n const plugins: Plugin[] = [makeSentryNitroPlugin(options)];\n\n // Only the Nitro plugin is dev-safe; its module handles `dev` itself.\n if (process.env.NODE_ENV === 'development') {\n return plugins;\n }\n\n // Injects `diagnostics_channel` publishers into instrumented deps at build time, which is what\n // lets `Sentry.init()` run from a bundled Nitro plugin rather than an `--import` preload.\n plugins.push(sentryOrchestrionPlugin({ buildTimeInstrumentation: options.buildTimeInstrumentation }));\n\n if (options.sourcemaps?.disable !== true) {\n plugins.push(...makeAddSentryVitePluginSolidStart2(options), ...makeEnableSourceMapsVitePlugin(options));\n }\n\n return plugins;\n}\n\n// Nitro's `NitroConfig` only matches `@sentry/nitro`'s when both resolve the same `nitro` install,\n// which is not guaranteed, so the key stays opaque rather than coupling the two copies.\ntype ViteConfigWithNitro = UserConfig & {\n nitro?: Record<string, unknown>;\n server?: UserConfig['server'] & { baseURL?: string };\n};\n\n/**\n * Delivers everything only Nitro can reach — server source maps, runtime hooks, the\n * `sourcemapMinify` opt-out — through Vite's `nitro` key, and the app's base path to the browser SDK.\n *\n * `setupSentryNitroModule` is handed only the keys it reads, never the user's whole config, so what\n * comes back is purely Sentry's additions. Vite concatenates arrays when merging a `config` return\n * value, so echoing the user's own `modules`/`plugins` back would duplicate every entry.\n *\n * `enforce: 'pre'` is load-bearing: Nitro creates its instance inside its own `config` hook, so a\n * normal-priority hook sorting after it would be read too late and silently ignored.\n */\nfunction makeSentryNitroPlugin(options: SentrySolidStartOptions): Plugin {\n return {\n name: 'sentry-solidstart-nitro',\n enforce: 'pre',\n config(userConfig: ViteConfigWithNitro) {\n const userNitro = userConfig.nitro;\n // SolidStart serves the app under Vite's `base` (or `server.baseURL`), not Nitro's `baseURL`, so the browser\n // and the server both serve the managed tunnel under it.\n const tunnelBasePath = normalizeTunnelBasePath(userConfig.server?.baseURL || userConfig.base);\n\n return {\n define: { __SENTRY_SOLIDSTART_TUNNEL_BASE_PATH__: JSON.stringify(tunnelBasePath) },\n nitro: {\n ...(setupSentryNitroModule(\n // `sourcemap` decides whether Sentry enables its own; `tracingChannel` is left as the user set it.\n { sourcemap: userNitro?.sourcemap, tracingChannel: userNitro?.tracingChannel } as Parameters<\n typeof setupSentryNitroModule\n >[0],\n options,\n ) as Record<string, unknown>),\n // `@sentry/nitro` serves the tunnel under this instead of Nitro's `baseURL`.\n ...(tunnelBasePath && { runtimeConfig: { sentryTunnelBasePath: tunnelBasePath } }),\n },\n } as Omit<UserConfig, 'plugins'>;\n },\n };\n}\n"],"names":["normalizeTunnelBasePath"],"mappings":";;;;;AA2CO,SAAS,gBAAA,CAAiB,OAAA,GAAmC,EAAC,EAAa;AAChF,EAAA,yBAAA,CAA0B,OAAA,EAAS,CAAC,kCAAkC,CAAC,CAAA;AAEvE,EAAA,MAAM,OAAA,GAAoB,CAAC,qBAAA,CAAsB,OAAO,CAAC,CAAA;AAGzD,EAAA,IAAI,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa,aAAA,EAAe;AAC1C,IAAA,OAAO,OAAA;AAAA,EACT;AAIA,EAAA,OAAA,CAAQ,KAAK,uBAAA,CAAwB,EAAE,0BAA0B,OAAA,CAAQ,wBAAA,EAA0B,CAAC,CAAA;AAEpG,EAAA,IAAI,OAAA,CAAQ,UAAA,EAAY,OAAA,KAAY,IAAA,EAAM;AACxC,IAAA,OAAA,CAAQ,IAAA,CAAK,GAAG,kCAAA,CAAmC,OAAO,GAAG,GAAG,8BAAA,CAA+B,OAAO,CAAC,CAAA;AAAA,EACzG;AAEA,EAAA,OAAO,OAAA;AACT;AAoBA,SAAS,sBAAsB,OAAA,EAA0C;AACvE,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,yBAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IACT,OAAO,UAAA,EAAiC;AACtC,MAAA,MAAM,YAAY,UAAA,CAAW,KAAA;AAG7B,MAAA,MAAM,iBAAiBA,iCAAA,CAAwB,UAAA,CAAW,MAAA,EAAQ,OAAA,IAAW,WAAW,IAAI,CAAA;AAE5F,MAAA,OAAO;AAAA,QACL,QAAQ,EAAE,sCAAA,EAAwC,IAAA,CAAK,SAAA,CAAU,cAAc,CAAA,EAAE;AAAA,QACjF,KAAA,EAAO;AAAA,UACL,GAAI,sBAAA;AAAA;AAAA,YAEF,EAAE,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,cAAA,EAAgB,WAAW,cAAA,EAAe;AAAA,YAG7E;AAAA,WACF;AAAA;AAAA,UAEA,GAAI,cAAA,IAAkB,EAAE,eAAe,EAAE,oBAAA,EAAsB,gBAAe;AAAE;AAClF,OACF;AAAA,IACF;AAAA,GACF;AACF;;;;"}
@@ -2,8 +2,8 @@ import type { Options } from '@sentry/core';
2
2
  /** Set on the server by `withSentry` to the app's `server.baseURL`. */
3
3
  export declare const TUNNEL_BASE_PATH_GLOBAL = "__sentry_solidstart_base_path";
4
4
  /**
5
- * Serves the browser's managed tunnel under the app's `server.baseURL`, which `withSentry` defines at build time.
6
- * A `basePath` the user set wins.
5
+ * Serves the browser's managed tunnel under the app's base path, which `withSentry` (SolidStart 1) or
6
+ * `sentrySolidStart` (SolidStart 2) defines at build time. A `basePath` the user set wins.
7
7
  */
8
8
  export declare function applyTunnelBasePath(options: Pick<Options, 'tunnel'>): void;
9
9
  //# sourceMappingURL=tunnel.d.ts.map
@@ -1,3 +1,8 @@
1
+ import { withSentry as _withSentry } from './config';
1
2
  export * from './server';
2
- export * from './config';
3
+ /**
4
+ * @deprecated Import `withSentry` from `@sentry/solidstart/vite` instead.
5
+ * This export will be removed in the next major version.
6
+ */
7
+ export declare const withSentry: typeof _withSentry;
3
8
  //# sourceMappingURL=index.server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/index.server.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/index.server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,UAAU,CAAC;AAErD,cAAc,UAAU,CAAC;AAEzB;;;GAGG;AACH,eAAO,MAAM,UAAU,oBAAc,CAAC"}
@@ -1,9 +1,14 @@
1
1
  import type { Client, Integration, Options, StackParser } from '@sentry/core';
2
2
  import type * as clientSdk from './client';
3
+ import type * as configSdk from './config';
3
4
  import type * as serverSdk from './server';
4
5
  export * from './client';
5
6
  export * from './server';
6
- export * from './config';
7
+ /**
8
+ * @deprecated Import `withSentry` from `@sentry/solidstart/vite` instead.
9
+ * This export will be removed in the next major version.
10
+ */
11
+ export declare const withSentry: typeof configSdk.withSentry;
7
12
  /** Initializes Sentry Solid Start SDK */
8
13
  export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): Client | undefined;
9
14
  export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
@@ -1 +1 @@
1
- {"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAOA,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;AAEzB,yCAAyC;AACzC,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,kBAAkB,EAAE,OAAO,SAAS,CAAC,kBAAkB,CAAC;AAC7E,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,SAAS,EAAE,OAAO,SAAS,CAAC,SAAS,CAAC;AAC3D,MAAM,CAAC,OAAO,CAAC,MAAM,eAAe,EAAE,OAAO,SAAS,CAAC,eAAe,CAAC;AACvE,MAAM,CAAC,OAAO,CAAC,MAAM,iBAAiB,EAAE,OAAO,SAAS,CAAC,iBAAiB,CAAC;AAC3E,MAAM,CAAC,OAAO,CAAC,MAAM,cAAc,EAAE,OAAO,SAAS,CAAC,cAAc,CAAC;AAErE,MAAM,CAAC,OAAO,CAAC,MAAM,gBAAgB,EAAE,OAAO,SAAS,CAAC,gBAAgB,CAAC;AAEzE,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,WAAW,EAAE,CAAC;AACjF,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,WAAW,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AACtE,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AACtE,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,MAAM,GAAG,SAAS,CAAC;AAE1D,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM,EAAE,OAAO,SAAS,CAAC,MAAM,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAE/E,MAAM,CAAC,OAAO,CAAC,MAAM,qBAAqB,EAAE,OAAO,SAAS,CAAC,qBAAqB,CAAC;AACnF,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,gCAAgC,EAAE,OAAO,SAAS,CAAC,gCAAgC,CAAC;AACzG,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,OAAO,SAAS,CAAC,sBAAsB,CAAC;AACrF,MAAM,CAAC,OAAO,CAAC,MAAM,0BAA0B,EAAE,OAAO,SAAS,CAAC,0BAA0B,CAAC;AAC7F,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,OAAO,SAAS,CAAC,kBAAkB,CAAC;AAC7E,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,OAAO,SAAS,CAAC,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAOA,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;AAC3C,OAAO,KAAK,KAAK,SAAS,MAAM,UAAU,CAAC;AAE3C,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB;;;GAGG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,UAAU,EAAE,OAAO,SAAS,CAAC,UAAU,CAAC;AAE7D,yCAAyC;AACzC,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,kBAAkB,EAAE,OAAO,SAAS,CAAC,kBAAkB,CAAC;AAC7E,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,SAAS,EAAE,OAAO,SAAS,CAAC,SAAS,CAAC;AAC3D,MAAM,CAAC,OAAO,CAAC,MAAM,eAAe,EAAE,OAAO,SAAS,CAAC,eAAe,CAAC;AACvE,MAAM,CAAC,OAAO,CAAC,MAAM,iBAAiB,EAAE,OAAO,SAAS,CAAC,iBAAiB,CAAC;AAC3E,MAAM,CAAC,OAAO,CAAC,MAAM,cAAc,EAAE,OAAO,SAAS,CAAC,cAAc,CAAC;AAErE,MAAM,CAAC,OAAO,CAAC,MAAM,gBAAgB,EAAE,OAAO,SAAS,CAAC,gBAAgB,CAAC;AAEzE,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,WAAW,EAAE,CAAC;AACjF,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,WAAW,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AACtE,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AACtE,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,MAAM,GAAG,SAAS,CAAC;AAE1D,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM,EAAE,OAAO,SAAS,CAAC,MAAM,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAE/E,MAAM,CAAC,OAAO,CAAC,MAAM,qBAAqB,EAAE,OAAO,SAAS,CAAC,qBAAqB,CAAC;AACnF,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,gCAAgC,EAAE,OAAO,SAAS,CAAC,gCAAgC,CAAC;AACzG,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,OAAO,SAAS,CAAC,sBAAsB,CAAC;AACrF,MAAM,CAAC,OAAO,CAAC,MAAM,0BAA0B,EAAE,OAAO,SAAS,CAAC,0BAA0B,CAAC;AAC7F,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,OAAO,SAAS,CAAC,kBAAkB,CAAC;AAC7E,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,OAAO,SAAS,CAAC,kBAAkB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Answers managed tunnel requests on SolidStart v1 (Nitro v2), from the first layer of the h3 app. That runs before
3
- * route rules, the app's middleware and routing. `withSentry` registers it.
2
+ * Serves the managed tunnel under the app's base path on SolidStart v1 (Nitro v2). The runtime answers the requests.
3
+ * `withSentry` registers it.
4
4
  */
5
- declare const _default: (nitroApp: import("nitropack").NitroApp) => void;
5
+ declare const _default: () => void;
6
6
  export default _default;
7
7
  //# sourceMappingURL=tunnelPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tunnelPlugin.d.ts","sourceRoot":"","sources":["../../../src/nitro/tunnelPlugin.ts"],"names":[],"mappings":"AAUA;;;GAGG"}
1
+ {"version":3,"file":"tunnelPlugin.d.ts","sourceRoot":"","sources":["../../../src/nitro/tunnelPlugin.ts"],"names":[],"mappings":"AAKA;;;GAGG"}
@@ -1,4 +1,4 @@
1
- export { addBreadcrumb, addEventProcessor, addIntegration, amqplibIntegration, anrIntegration, disableAnrDetectionForCallback, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleIntegration, contextLinesIntegration, continueTrace, createGetModuleFromFilename, createTransport, cron, dedupeIntegration, defaultStackParser, endSession, expressErrorHandler, expressIntegration, extraErrorDataIntegration, fastifyIntegration, flush, functionToStringIntegration, genericPoolIntegration, getActiveSpan, getAutoPerformanceIntegrations, getClient, getCurrentScope, getDefaultIntegrations, getGlobalScope, getIsolationScope, getRootSpan, getSentryRelease, getSpanDescendants, getSpanStatusFromHttpCode, graphqlIntegration, hapiIntegration, httpIntegration, httpServerIntegration, httpServerSpansIntegration, eventFiltersIntegration, initOpenTelemetry, isInitialized, isEnabled, knexIntegration, kafkaIntegration, honoIntegration, honoMiddleware, koaIntegration, lastEventId, linkedErrorsIntegration, localVariablesIntegration, makeNodeTransport, modulesIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, nitroIntegration, mysqlIntegration, nativeNodeFetchIntegration, NodeClient, nodeContextIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, parameterize, postgresIntegration, postgresJsIntegration, neonIntegration, prismaIntegration, redisIntegration, requestDataIntegration, rewriteFramesIntegration, Scope, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setAttribute, setAttributes, setupExpressErrorHandler, setupHapiErrorHandler, setupKoaErrorHandler, setUser, spanToBaggageHeader, spanToStaticSpanJSON, spanToJSON, spanToTraceHeader, spotlightIntegration, startInactiveSpan, startNewTrace, bindScopeToEmitter, suppressTracing, startSession, startSpan, startSpanManual, tediousIntegration, trpcMiddleware, serveTunnelIntegration, getTunnelPath, handleTunnelRequest, handleTunnelRequestIfMatched, isTunnelRequest, updateSpanName, withActiveSpan, withIsolationScope, withMonitor, withScope, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, logger, consoleLoggingIntegration, createConsolaReporter, createSentryWinstonTransport, spanStreamingIntegration, withStaticSpan, withStreamedSpan, } from '@sentry/node';
1
+ export { addBreadcrumb, addEventProcessor, addIntegration, amqplibIntegration, anrIntegration, disableAnrDetectionForCallback, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleIntegration, contextLinesIntegration, continueTrace, createGetModuleFromFilename, createTransport, cron, dedupeIntegration, defaultStackParser, endSession, expressErrorHandler, expressIntegration, extraErrorDataIntegration, fastifyIntegration, flush, functionToStringIntegration, genericPoolIntegration, cronJobIntegration, nodeCronIntegration, nodeScheduleIntegration, getActiveSpan, getAutoPerformanceIntegrations, getClient, getCurrentScope, getDefaultIntegrations, getGlobalScope, getIsolationScope, getRootSpan, getSentryRelease, getSpanDescendants, getSpanStatusFromHttpCode, graphqlIntegration, hapiIntegration, httpIntegration, httpServerIntegration, httpServerSpansIntegration, eventFiltersIntegration, initOpenTelemetry, isInitialized, isEnabled, knexIntegration, kafkaIntegration, honoIntegration, honoMiddleware, koaIntegration, lastEventId, linkedErrorsIntegration, localVariablesIntegration, makeNodeTransport, modulesIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, nitroIntegration, mysqlIntegration, nativeNodeFetchIntegration, NodeClient, nodeContextIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, parameterize, postgresIntegration, postgresJsIntegration, neonIntegration, prismaIntegration, redisIntegration, requestDataIntegration, rewriteFramesIntegration, Scope, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setAttribute, setAttributes, setupExpressErrorHandler, setupHapiErrorHandler, setupKoaErrorHandler, setUser, spanToBaggageHeader, spanToStaticSpanJSON, spanToJSON, spanToTraceHeader, spotlightIntegration, startInactiveSpan, startNewTrace, bindScopeToEmitter, suppressTracing, startSession, startSpan, startSpanManual, tediousIntegration, trpcMiddleware, serveTunnelIntegration, getTunnelPath, handleTunnelRequest, handleTunnelRequestIfMatched, isTunnelRequest, updateSpanName, withActiveSpan, withIsolationScope, withMonitor, withScope, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, logger, consoleLoggingIntegration, createConsolaReporter, createSentryWinstonTransport, spanStreamingIntegration, withStaticSpan, withStreamedSpan, } from '@sentry/node';
2
2
  export * from '@sentry/node';
3
3
  export { withSentryErrorBoundary } from '@sentry/solid';
4
4
  export { init } from './sdk';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAElB,cAAc,EAEd,8BAA8B,EAC9B,cAAc,EACd,yBAAyB,EACzB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,cAAc,EACd,KAAK,EACL,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,2BAA2B,EAC3B,eAAe,EACf,IAAI,EACJ,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,KAAK,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,aAAa,EACb,8BAA8B,EAC9B,SAAS,EACT,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,cAAc,EACd,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,0BAA0B,EAC1B,UAAU,EACV,sBAAsB,EACtB,8BAA8B,EAC9B,+BAA+B,EAC/B,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,EACL,WAAW,EAEX,4BAA4B,EAE5B,gCAAgC,EAChC,qCAAqC,EACrC,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,aAAa,EACb,cAAc,EACd,MAAM,EACN,OAAO,EACP,YAAY,EACZ,aAAa,EAEb,wBAAwB,EAExB,qBAAqB,EAErB,oBAAoB,EACpB,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC5B,eAAe,EACf,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,MAAM,EACN,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,cAAc,EAEd,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAGtB,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAIxD,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,cAAc,mCAAmC,CAAC;AAClD,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAElB,cAAc,EAEd,8BAA8B,EAC9B,cAAc,EACd,yBAAyB,EACzB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,cAAc,EACd,KAAK,EACL,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,2BAA2B,EAC3B,eAAe,EACf,IAAI,EACJ,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,KAAK,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,8BAA8B,EAC9B,SAAS,EACT,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,cAAc,EACd,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,0BAA0B,EAC1B,UAAU,EACV,sBAAsB,EACtB,8BAA8B,EAC9B,+BAA+B,EAC/B,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,EACL,WAAW,EAEX,4BAA4B,EAE5B,gCAAgC,EAChC,qCAAqC,EACrC,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,aAAa,EACb,cAAc,EACd,MAAM,EACN,OAAO,EACP,YAAY,EACZ,aAAa,EAEb,wBAAwB,EAExB,qBAAqB,EAErB,oBAAoB,EACpB,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC5B,eAAe,EACf,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,MAAM,EACN,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,cAAc,EAEd,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAGtB,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAIxD,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,cAAc,mCAAmC,CAAC;AAClD,cAAc,cAAc,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { sentrySolidStart } from './sentrySolidStart';
2
2
  export type { SentrySolidStartOptions } from './sentrySolidStart';
3
+ export { withSentry } from '../config/withSentry';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vite/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sentrySolidStart.d.ts","sourceRoot":"","sources":["../../../src/vite/sentrySolidStart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAA6B,MAAM,cAAc,CAAC;AAGpF,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAC;AAG/C;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B,GAAG,MAAM,EAAE,CAmBhF"}
1
+ {"version":3,"file":"sentrySolidStart.d.ts","sourceRoot":"","sources":["../../../src/vite/sentrySolidStart.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAC;AAG/C;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B,GAAG,MAAM,EAAE,CAmBhF"}
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@sentry/solidstart",
3
- "version": "11.10.0",
3
+ "version": "11.12.0",
4
4
  "description": "Official Sentry SDK for Solid Start",
5
- "repository": "git://github.com/getsentry/sentry-javascript.git",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/getsentry/sentry-javascript.git"
8
+ },
6
9
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/solidstart",
7
10
  "author": "Sentry",
8
11
  "license": "MIT",
@@ -80,32 +83,44 @@
80
83
  }
81
84
  },
82
85
  "dependencies": {
83
- "@sentry/core": "11.10.0",
84
- "@sentry/nitro": "11.10.0",
85
- "@sentry/node": "11.10.0",
86
- "@sentry/server-runtime-injection": "11.10.0",
87
- "@sentry/server-utils": "11.10.0",
88
- "@sentry/solid": "11.10.0",
89
- "@sentry/bundler-plugins": "11.10.0",
90
- "@sentry/conventions": "0.29.0",
86
+ "@sentry/core": "11.12.0",
87
+ "@sentry/nitro": "11.12.0",
88
+ "@sentry/node": "11.12.0",
89
+ "@sentry/server-runtime-injection": "11.12.0",
90
+ "@sentry/server-utils": "11.12.0",
91
+ "@sentry/solid": "11.12.0",
92
+ "@sentry/bundler-plugins": "11.12.0",
93
+ "@sentry/conventions": "0.32.0",
91
94
  "h3": "^1.15.10"
92
95
  },
93
96
  "devDependencies": {
94
- "@sentry-internal/rollup-utils": "11.10.0",
95
- "@sentry/browser": "11.10.0",
97
+ "@sentry-internal/rollup-utils": "11.12.0",
98
+ "@sentry/browser": "11.12.0",
96
99
  "@solidjs/router": "^1.0.0",
97
100
  "@solidjs/start": "^1.3.2",
98
101
  "@solidjs/testing-library": "0.8.5",
99
102
  "@testing-library/jest-dom": "^6.9.1",
100
- "@testing-library/user-event": "^14.5.2",
103
+ "@testing-library/user-event": "^14.6.8",
101
104
  "@types/node": "^20.19.0",
102
105
  "nitropack": "^2.13.4",
103
- "node-mock-http": "^1.0.4",
104
- "solid-js": "^1.9.11",
106
+ "solid-js": "^1.9.18",
105
107
  "vinxi": "^0.5.11",
106
- "vite": "^8.3.1",
108
+ "vite": "^8.3.6",
107
109
  "vite-plugin-solid": "^2.11.6"
108
110
  },
111
+ "nx": {
112
+ "targets": {
113
+ "build:types": {
114
+ "outputs": [
115
+ "{projectRoot}/build/types",
116
+ "{projectRoot}/client",
117
+ "{projectRoot}/server",
118
+ "{projectRoot}/*.d.ts",
119
+ "{projectRoot}/*.d.ts.map"
120
+ ]
121
+ }
122
+ }
123
+ },
109
124
  "scripts": {
110
125
  "build": "run-p build:transpile build:types",
111
126
  "build:dev": "pnpm run build",
@@ -116,9 +131,9 @@
116
131
  "build:watch": "run-p build:transpile:watch",
117
132
  "build:dev:watch": "pnpm run build:watch",
118
133
  "build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
119
- "build:tarball": "npm pack",
120
- "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts && madge --circular src/solidrouter.client.ts && madge --circular src/solidrouter.server.ts && madge --circular src/solidrouter.ts",
121
- "clean": "rimraf build coverage sentry-solidstart-*.tgz ./*.d.ts ./*.d.ts.map ./client ./server",
134
+ "build:tarball": "pnpm pack",
135
+ "circularDepCheck": "madge --circular src/index.client.ts src/index.server.ts src/index.types.ts src/solidrouter.client.ts src/solidrouter.server.ts src/solidrouter.ts",
136
+ "clean": "node ../../scripts/rm.mjs build coverage sentry-solidstart-*.tgz ./*.d.ts ./*.d.ts.map ./client ./server",
122
137
  "lint:fix": "oxlint . --fix --type-aware",
123
138
  "lint": "oxlint . --type-aware",
124
139
  "lint:types": "oxlint src --type-aware --type-check",
@@ -127,18 +142,5 @@
127
142
  "test:unit": "vitest run",
128
143
  "test:watch": "vitest --watch",
129
144
  "yalc:publish": "yalc publish --push --sig"
130
- },
131
- "nx": {
132
- "targets": {
133
- "build:types": {
134
- "outputs": [
135
- "{projectRoot}/build/types",
136
- "{projectRoot}/client",
137
- "{projectRoot}/server",
138
- "{projectRoot}/*.d.ts",
139
- "{projectRoot}/*.d.ts.map"
140
- ]
141
- }
142
- }
143
145
  }
144
- }
146
+ }