@sentry/nuxt 10.65.0 → 10.67.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 (62) hide show
  1. package/build/cjs/module.js +4 -0
  2. package/build/cjs/module.js.map +1 -1
  3. package/build/cjs/vite/orchestrion.js +27 -0
  4. package/build/cjs/vite/orchestrion.js.map +1 -0
  5. package/build/cjs/vite/sourceMaps.js +1 -3
  6. package/build/cjs/vite/sourceMaps.js.map +1 -1
  7. package/build/esm/module.js +4 -0
  8. package/build/esm/module.js.map +1 -1
  9. package/build/esm/package.json +1 -1
  10. package/build/esm/vite/orchestrion.js +25 -0
  11. package/build/esm/vite/orchestrion.js.map +1 -0
  12. package/build/esm/vite/sourceMaps.js +1 -3
  13. package/build/esm/vite/sourceMaps.js.map +1 -1
  14. package/build/module/client/vueIntegration.d.ts +12 -0
  15. package/build/module/{module.d.mts → common/types.d.ts} +38 -11
  16. package/build/module/module.d.ts +4 -232
  17. package/build/module/module.json +2 -6
  18. package/build/module/module.mjs +29 -7
  19. package/build/module/runtime/hooks/captureErrorHook.js +7 -4
  20. package/build/module/runtime/hooks/updateRouteBeforeResponse.js +5 -2
  21. package/build/module/runtime/hooks/wrapMiddlewareHandler.js +5 -14
  22. package/build/module/runtime/plugins/database-legacy.server.js +8 -5
  23. package/build/module/runtime/plugins/database.server.js +8 -5
  24. package/build/module/runtime/plugins/handler-legacy.server.js +6 -3
  25. package/build/module/runtime/plugins/handler.server.js +6 -3
  26. package/build/module/runtime/plugins/index.d.ts +1 -1
  27. package/build/module/runtime/plugins/index.js +1 -1
  28. package/build/module/runtime/plugins/route-detector-legacy.server.js +8 -5
  29. package/build/module/runtime/plugins/route-detector.server.js +8 -5
  30. package/build/module/runtime/plugins/sentry-cloudflare.server.js +10 -7
  31. package/build/module/runtime/plugins/sentry.client.js +8 -5
  32. package/build/module/runtime/plugins/sentry.server.js +8 -5
  33. package/build/module/runtime/plugins/storage-legacy.server.js +8 -5
  34. package/build/module/runtime/plugins/storage.server.js +8 -5
  35. package/build/module/runtime/plugins/update-route-name-legacy.server.js +6 -3
  36. package/build/module/runtime/plugins/update-route-name.server.js +6 -3
  37. package/build/module/runtime/utils/database-span-data.js +3 -1
  38. package/build/module/runtime/utils/event-type-check.js +6 -4
  39. package/build/module/runtime/utils/instrumentDatabase.d.ts +1 -1
  40. package/build/module/runtime/utils/instrumentDatabase.js +6 -12
  41. package/build/module/runtime/utils/instrumentStorage.js +6 -15
  42. package/build/module/runtime/utils/patchEventHandler.js +5 -8
  43. package/build/module/runtime/utils/route-extraction.js +5 -2
  44. package/build/module/runtime/utils.js +7 -4
  45. package/build/module/vendor/server-template.d.ts +7 -0
  46. package/build/module/vite/addServerConfig.d.ts +22 -0
  47. package/build/module/vite/databaseConfig.d.ts +6 -0
  48. package/build/module/vite/middlewareConfig.d.ts +11 -0
  49. package/build/module/vite/orchestrion.d.ts +6 -0
  50. package/build/module/vite/sentryVitePlugin.d.ts +11 -0
  51. package/build/module/vite/sourceMaps.d.ts +66 -0
  52. package/build/module/vite/storageConfig.d.ts +5 -0
  53. package/build/module/vite/utils.d.ts +58 -0
  54. package/build/types/common/types.d.ts +16 -0
  55. package/build/types/common/types.d.ts.map +1 -1
  56. package/build/types/module.d.ts.map +1 -1
  57. package/build/types/vite/orchestrion.d.ts +7 -0
  58. package/build/types/vite/orchestrion.d.ts.map +1 -0
  59. package/build/types/vite/sourceMaps.d.ts.map +1 -1
  60. package/package.json +11 -12
  61. package/build/module/module.cjs +0 -5
  62. package/build/module/types.d.mts +0 -1
@@ -1,7 +1,8 @@
1
- import { debug } from "@sentry/core";
2
- import { sentryCaptureErrorHook } from "../hooks/captureErrorHook.js";
3
- import { addSentryTracingMetaTags } from "../utils.js";
4
- export default (nitroApp) => {
1
+ import { debug } from '@sentry/core';
2
+ import { sentryCaptureErrorHook } from '../hooks/captureErrorHook.js';
3
+ import { addSentryTracingMetaTags } from '../utils.js';
4
+
5
+ var sentry_server = ((nitroApp) => {
5
6
  nitroApp.hooks.hook("error", sentryCaptureErrorHook);
6
7
  nitroApp.hooks.hook("render:html", (html, { event }) => {
7
8
  const nodeResHeadersH3v1 = event.node?.res?.getHeaders() || {};
@@ -23,4 +24,6 @@ export default (nitroApp) => {
23
24
  );
24
25
  }
25
26
  });
26
- };
27
+ });
28
+
29
+ export { sentry_server as default };
@@ -1,6 +1,9 @@
1
- import { useStorage } from "nitropack/runtime";
2
- import { userStorageMounts } from "#sentry/storage-config.mjs";
3
- import { createStoragePlugin } from "../utils/instrumentStorage.js";
4
- export default async (_nitroApp) => {
1
+ import { useStorage } from 'nitropack/runtime';
2
+ import { userStorageMounts } from '#sentry/storage-config.mjs';
3
+ import { createStoragePlugin } from '../utils/instrumentStorage.js';
4
+
5
+ var storageLegacy_server = (async (_nitroApp) => {
5
6
  await createStoragePlugin(useStorage, userStorageMounts);
6
- };
7
+ });
8
+
9
+ export { storageLegacy_server as default };
@@ -1,6 +1,9 @@
1
- import { useStorage } from "nitro/storage";
2
- import { userStorageMounts } from "#sentry/storage-config.mjs";
3
- import { createStoragePlugin } from "../utils/instrumentStorage.js";
4
- export default async (_nitroApp) => {
1
+ import { useStorage } from 'nitro/storage';
2
+ import { userStorageMounts } from '#sentry/storage-config.mjs';
3
+ import { createStoragePlugin } from '../utils/instrumentStorage.js';
4
+
5
+ var storage_server = (async (_nitroApp) => {
5
6
  await createStoragePlugin(useStorage, userStorageMounts);
6
- };
7
+ });
8
+
9
+ export { storage_server as default };
@@ -1,4 +1,7 @@
1
- import { updateRouteBeforeResponse } from "../hooks/updateRouteBeforeResponse.js";
2
- export default (nitroApp) => {
1
+ import { updateRouteBeforeResponse } from '../hooks/updateRouteBeforeResponse.js';
2
+
3
+ var updateRouteNameLegacy_server = ((nitroApp) => {
3
4
  nitroApp.hooks.hook("beforeResponse", updateRouteBeforeResponse);
4
- };
5
+ });
6
+
7
+ export { updateRouteNameLegacy_server as default };
@@ -1,4 +1,7 @@
1
- import { updateRouteBeforeResponse } from "../hooks/updateRouteBeforeResponse.js";
2
- export default (nitroApp) => {
1
+ import { updateRouteBeforeResponse } from '../hooks/updateRouteBeforeResponse.js';
2
+
3
+ var updateRouteName_server = ((nitroApp) => {
3
4
  nitroApp.hooks.hook("response", (_response, event) => updateRouteBeforeResponse(event));
4
- };
5
+ });
6
+
7
+ export { updateRouteName_server as default };
@@ -1,4 +1,4 @@
1
- export function getDatabaseSpanData(config) {
1
+ function getDatabaseSpanData(config) {
2
2
  try {
3
3
  if (!config?.connector) {
4
4
  return {
@@ -27,3 +27,5 @@ export function getDatabaseSpanData(config) {
27
27
  return {};
28
28
  }
29
29
  }
30
+
31
+ export { getDatabaseSpanData };
@@ -2,14 +2,14 @@ function hasCloudflareProperty(context) {
2
2
  return context !== null && typeof context === "object" && // context.cloudflare properties
3
3
  "cloudflare" in context && typeof context.cloudflare === "object" && context.cloudflare !== null && "context" in context.cloudflare;
4
4
  }
5
- export function hasCfProperty(context) {
5
+ function hasCfProperty(context) {
6
6
  return context !== null && typeof context === "object" && // context.cf properties
7
7
  "cf" in context && typeof context.cf === "object" && context.cf !== null;
8
8
  }
9
9
  function hasCfAndCloudflare(context) {
10
10
  return hasCfProperty(context) && hasCloudflareProperty(context);
11
11
  }
12
- export function isEventType(event) {
12
+ function isEventType(event) {
13
13
  if (event === null || typeof event !== "object") return false;
14
14
  return (
15
15
  // basic properties
@@ -18,15 +18,17 @@ export function isEventType(event) {
18
18
  (hasCfAndCloudflare(event.context) || "_platform" in event.context && hasCfAndCloudflare(event.context._platform))
19
19
  );
20
20
  }
21
- export function getCfProperties(event) {
21
+ function getCfProperties(event) {
22
22
  if ("cf" in event.context) {
23
23
  return event.context.cf;
24
24
  }
25
25
  return event.context._platform.cf;
26
26
  }
27
- export function getCloudflareProperties(event) {
27
+ function getCloudflareProperties(event) {
28
28
  if ("cloudflare" in event.context) {
29
29
  return event.context.cloudflare;
30
30
  }
31
31
  return event.context._platform.cloudflare;
32
32
  }
33
+
34
+ export { getCfProperties, getCloudflareProperties, hasCfProperty, isEventType };
@@ -1,5 +1,5 @@
1
1
  import type { Database } from 'db0';
2
- import { type DatabaseConnectionConfig } from './database-span-data.js';
2
+ import { type DatabaseConnectionConfig } from './database-span-data';
3
3
  /**
4
4
  * Creates the Nitro database plugin setup by instrumenting the configured database instances.
5
5
  *
@@ -1,17 +1,9 @@
1
- import {
2
- addBreadcrumb,
3
- captureException,
4
- debug,
5
- flushIfServerless,
6
- SEMANTIC_ATTRIBUTE_SENTRY_OP,
7
- SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
8
- SPAN_STATUS_ERROR,
9
- startSpan
10
- } from "@sentry/core";
11
- import { getDatabaseSpanData } from "./database-span-data.js";
1
+ import { debug, startSpan, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SPAN_STATUS_ERROR, captureException, flushIfServerless, addBreadcrumb } from '@sentry/core';
2
+ import { getDatabaseSpanData } from './database-span-data.js';
3
+
12
4
  const patchedStatement = /* @__PURE__ */ new WeakSet();
13
5
  const SENTRY_ORIGIN = "auto.db.nuxt";
14
- export function createDatabasePlugin(useDatabase, databaseConfig) {
6
+ function createDatabasePlugin(useDatabase, databaseConfig) {
15
7
  try {
16
8
  const databaseInstances = Object.keys(databaseConfig);
17
9
  debug.log("[Nitro Database Plugin]: Instrumenting databases...");
@@ -145,3 +137,5 @@ function createStartSpanOptions(query, data) {
145
137
  }
146
138
  };
147
139
  }
140
+
141
+ export { createDatabasePlugin };
@@ -1,18 +1,7 @@
1
- import {
2
- isObjectLike,
3
- captureException,
4
- debug,
5
- flushIfServerless,
6
- SEMANTIC_ATTRIBUTE_CACHE_HIT,
7
- SEMANTIC_ATTRIBUTE_CACHE_KEY,
8
- SEMANTIC_ATTRIBUTE_SENTRY_OP,
9
- SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
10
- SPAN_STATUS_ERROR,
11
- SPAN_STATUS_OK,
12
- startSpan
13
- } from "@sentry/core";
1
+ import { debug, startSpan, SPAN_STATUS_OK, SEMANTIC_ATTRIBUTE_CACHE_HIT, SPAN_STATUS_ERROR, captureException, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, flushIfServerless, SEMANTIC_ATTRIBUTE_CACHE_KEY, SEMANTIC_ATTRIBUTE_SENTRY_OP, isObjectLike } from '@sentry/core';
2
+
14
3
  const CACHE_HIT_METHODS = /* @__PURE__ */ new Set(["hasItem", "getItem", "getItemRaw"]);
15
- export async function createStoragePlugin(useStorage, userStorageMounts) {
4
+ async function createStoragePlugin(useStorage, userStorageMounts) {
16
5
  const storage = useStorage();
17
6
  const userMounts = new Set(userStorageMounts.map((m) => `${m}:`));
18
7
  debug.log("[storage] Starting to instrument storage drivers...");
@@ -149,7 +138,7 @@ function validateCacheEntry(key, entry) {
149
138
  if (Date.now() > (entry.expires || 0)) {
150
139
  return false;
151
140
  }
152
- if (isResponseCacheEntry(key, entry)) {
141
+ if (isResponseCacheEntry(key)) {
153
142
  if ((entry.value.status ?? 0) >= 400) {
154
143
  return false;
155
144
  }
@@ -165,3 +154,5 @@ function validateCacheEntry(key, entry) {
165
154
  function isResponseCacheEntry(key, _) {
166
155
  return key.startsWith("nitro:handlers:");
167
156
  }
157
+
158
+ export { createStoragePlugin };
@@ -1,11 +1,6 @@
1
- import {
2
- debug,
3
- flushIfServerless,
4
- getDefaultIsolationScope,
5
- getIsolationScope,
6
- withIsolationScope
7
- } from "@sentry/core";
8
- export function patchEventHandler(handler) {
1
+ import { getIsolationScope, getDefaultIsolationScope, debug, withIsolationScope, flushIfServerless } from '@sentry/core';
2
+
3
+ function patchEventHandler(handler) {
9
4
  return new Proxy(handler, {
10
5
  async apply(handlerTarget, handlerThisArg, handlerArgs) {
11
6
  const isolationScope = getIsolationScope();
@@ -23,3 +18,5 @@ export function patchEventHandler(handler) {
23
18
  }
24
19
  });
25
20
  }
21
+
22
+ export { patchEventHandler };
@@ -1,6 +1,7 @@
1
- import { debug } from "@sentry/core";
1
+ import { debug } from '@sentry/core';
2
+
2
3
  const extractionResultCache = /* @__PURE__ */ new Map();
3
- export function extractParametrizedRouteFromContext(ssrContextModules, requestedUrl, buildTimePagesData = []) {
4
+ function extractParametrizedRouteFromContext(ssrContextModules, requestedUrl, buildTimePagesData = []) {
4
5
  if (!ssrContextModules || !requestedUrl) {
5
6
  return null;
6
7
  }
@@ -35,3 +36,5 @@ export function extractParametrizedRouteFromContext(ssrContextModules, requested
35
36
  extractionResultCache.set(cacheKey, null);
36
37
  return null;
37
38
  }
39
+
40
+ export { extractParametrizedRouteFromContext };
@@ -1,5 +1,6 @@
1
- import { captureException, debug, getClient, getTraceMetaTags } from "@sentry/core";
2
- export function extractErrorContext(errorContext) {
1
+ import { getClient, captureException, getTraceMetaTags, debug } from '@sentry/core';
2
+
3
+ function extractErrorContext(errorContext) {
3
4
  const ctx = {};
4
5
  if (!errorContext) {
5
6
  return ctx;
@@ -13,7 +14,7 @@ export function extractErrorContext(errorContext) {
13
14
  }
14
15
  return ctx;
15
16
  }
16
- export function addSentryTracingMetaTags(head, traceData) {
17
+ function addSentryTracingMetaTags(head, traceData) {
17
18
  const metaTags = getTraceMetaTags(traceData);
18
19
  if (head.some((tag) => tag.includes("meta") && tag.includes("sentry-trace"))) {
19
20
  debug.warn(
@@ -26,7 +27,7 @@ export function addSentryTracingMetaTags(head, traceData) {
26
27
  head.push(metaTags);
27
28
  }
28
29
  }
29
- export function reportNuxtError(options) {
30
+ function reportNuxtError(options) {
30
31
  const { error, instance, info } = options;
31
32
  const metadata = {
32
33
  info
@@ -46,3 +47,5 @@ export function reportNuxtError(options) {
46
47
  });
47
48
  });
48
49
  }
50
+
51
+ export { addSentryTracingMetaTags, extractErrorContext, reportNuxtError };
@@ -0,0 +1,7 @@
1
+ import type { NuxtTemplate } from '@nuxt/schema';
2
+ /**
3
+ * Adds a virtual file that can be used within the Nuxt Nitro server build.
4
+ * Available in NuxtKit v4, so we are porting it here.
5
+ * https://github.com/nuxt/nuxt/blob/d6df732eec1a3bd442bdb325b0335beb7e10cd64/packages/kit/src/template.ts#L55-L62
6
+ */
7
+ export declare function addServerTemplate(template: NuxtTemplate): NuxtTemplate;
@@ -0,0 +1,22 @@
1
+ import type { Nitro } from 'nitropack';
2
+ import type { SentryNuxtModuleOptions } from '../common/types';
3
+ /**
4
+ * Adds the `sentry.server.config.ts` file as `sentry.server.config.mjs` to the `.output` directory to be able to reference this file in the node --import option.
5
+ *
6
+ * By adding a Rollup plugin to the Nitro Rollup options, the Sentry server config is transpiled and emitted to the server build.
7
+ */
8
+ export declare function addServerConfigToBuild(moduleOptions: SentryNuxtModuleOptions, nitro: Nitro, serverConfigFile: string): void;
9
+ /**
10
+ * Adds the Sentry server config import at the top of the server entry file to load the SDK on the server.
11
+ * This is necessary for environments where modifying the node option `--import` is not possible.
12
+ * However, only limited tracing instrumentation is supported when doing this.
13
+ */
14
+ export declare function addSentryTopImport(moduleOptions: SentryNuxtModuleOptions, nitro: Nitro): void;
15
+ /**
16
+ * This function modifies the Rollup configuration to include a plugin that wraps the entry file with a dynamic import (`import()`)
17
+ * and adds the Sentry server config with the static `import` declaration.
18
+ *
19
+ * With this, the Sentry server config can be loaded before all other modules of the application (which is needed for import-in-the-middle).
20
+ * See: https://nodejs.org/api/module.html#enabling
21
+ */
22
+ export declare function addDynamicImportEntryFileWrapper(nitro: Nitro, serverConfigFile: string, moduleOptions: Omit<SentryNuxtModuleOptions, 'experimental_entrypointWrappedFunctions'> & Required<Pick<SentryNuxtModuleOptions, 'experimental_entrypointWrappedFunctions'>>): void;
@@ -0,0 +1,6 @@
1
+ import type { NitroConfig } from 'nitropack/types';
2
+ import type { SentryNuxtModuleOptions } from '../common/types';
3
+ /**
4
+ * Sets up the database instrumentation.
5
+ */
6
+ export declare function addDatabaseInstrumentation(nitro: NitroConfig, isLegacyNitro: boolean, moduleOptions?: SentryNuxtModuleOptions): void;
@@ -0,0 +1,11 @@
1
+ import type { Nitro } from 'nitropack/types';
2
+ /**
3
+ * Adds a server import for the middleware instrumentation.
4
+ */
5
+ export declare function addMiddlewareImports(): void;
6
+ /**
7
+ * Adds middleware instrumentation to the Nitro build.
8
+ *
9
+ * @param nitro Nitro instance
10
+ */
11
+ export declare function addMiddlewareInstrumentation(nitro: Nitro): void;
@@ -0,0 +1,6 @@
1
+ import type { Nuxt } from '@nuxt/schema';
2
+ /**
3
+ * Configures Nitro to bundle and transform dependencies that publish tracing
4
+ * events through diagnostics channels.
5
+ */
6
+ export declare function setupOrchestrion(nuxt: Nuxt): void;
@@ -0,0 +1,11 @@
1
+ import type { Nuxt } from '@nuxt/schema';
2
+ import type { Plugin } from 'vite';
3
+ import type { SentryNuxtModuleOptions } from '../common/types';
4
+ /**
5
+ * Creates a Vite plugin that adds the Sentry Vite plugin and validates source map settings.
6
+ */
7
+ export declare function validateSourceMapsOptionsPlugin(options: {
8
+ nuxt: Nuxt;
9
+ moduleOptions: SentryNuxtModuleOptions;
10
+ sourceMapsEnabled: boolean;
11
+ }): Plugin;
@@ -0,0 +1,66 @@
1
+ import type { Nuxt } from '@nuxt/schema';
2
+ import { type SentryRollupPluginOptions } from '@sentry/rollup-plugin';
3
+ import { type SentryVitePluginOptions } from '@sentry/vite-plugin';
4
+ import type { NitroConfig } from 'nitropack';
5
+ import type { Plugin } from 'vite';
6
+ import type { SentryNuxtModuleOptions } from '../common/types';
7
+ /**
8
+ * Whether the user enabled (true, 'hidden', 'inline') or disabled (false) source maps
9
+ */
10
+ export type UserSourceMapSetting = 'enabled' | 'disabled' | 'unset' | undefined;
11
+ /** A valid source map setting */
12
+ export type SourceMapSetting = boolean | 'hidden' | 'inline';
13
+ /**
14
+ * Setup source maps for Sentry inside the Nuxt module during build time (in Vite for Nuxt and Rollup for Nitro).
15
+ */
16
+ export declare function setupSourceMaps(moduleOptions: SentryNuxtModuleOptions, nuxt: Nuxt, addVitePlugin: (plugin: Plugin[], options?: {
17
+ dev?: boolean;
18
+ build?: boolean;
19
+ }) => void): void;
20
+ /**
21
+ * Generates source maps upload options for the Sentry Vite and Rollup plugin.
22
+ *
23
+ * Only exported for Testing purposes.
24
+ */
25
+ export declare function getPluginOptions(moduleOptions: SentryNuxtModuleOptions, shouldDeleteFilesFallback?: {
26
+ client: boolean;
27
+ server: boolean;
28
+ }): SentryVitePluginOptions | SentryRollupPluginOptions;
29
+ /** only exported for tests */
30
+ export declare function extractNuxtSourceMapSetting(nuxt: {
31
+ options: {
32
+ sourcemap?: SourceMapSetting | {
33
+ server?: SourceMapSetting;
34
+ client?: SourceMapSetting;
35
+ };
36
+ };
37
+ }, runtime: 'client' | 'server' | undefined): SourceMapSetting | undefined;
38
+ /** only exported for testing */
39
+ export declare function changeNuxtSourceMapSettings(nuxt: Nuxt, sentryModuleOptions: SentryNuxtModuleOptions): {
40
+ client: UserSourceMapSetting;
41
+ server: UserSourceMapSetting;
42
+ };
43
+ /** Logs warnings about potentially conflicting source map settings.
44
+ * Configures `sourcemapExcludeSources` in Nitro to make source maps usable in Sentry.
45
+ *
46
+ * only exported for testing
47
+ */
48
+ export declare function validateNitroSourceMapSettings(nuxt: {
49
+ options: {
50
+ sourcemap?: SourceMapSetting | {
51
+ server?: SourceMapSetting;
52
+ };
53
+ };
54
+ }, nitroConfig: NitroConfig, sentryModuleOptions: SentryNuxtModuleOptions): void;
55
+ /**
56
+ * Validates that source map settings are consistent between Nuxt and Vite/Nitro configurations.
57
+ * Logs a warning if conflicting settings are detected.
58
+ *
59
+ * @internal Only exported for testing.
60
+ */
61
+ export declare function validateDifferentSourceMapSettings({ nuxtSettingKey, nuxtSettingValue, otherSettingKey, otherSettingValue, }: {
62
+ nuxtSettingKey: string;
63
+ nuxtSettingValue?: SourceMapSetting;
64
+ otherSettingKey: string;
65
+ otherSettingValue?: SourceMapSetting;
66
+ }): void;
@@ -0,0 +1,5 @@
1
+ import type { Nuxt } from '@nuxt/schema';
2
+ /**
3
+ * Prepares the storage config export to be used in the runtime storage instrumentation.
4
+ */
5
+ export declare function addStorageInstrumentation(nuxt: Nuxt, isLegacyNitro: boolean): void;
@@ -0,0 +1,58 @@
1
+ import type { Nuxt } from '@nuxt/schema';
2
+ import type { SentryNuxtModuleOptions } from '../common/types';
3
+ /**
4
+ * Gets the major version of the installed nitro package.
5
+ * Returns 2 as the default if nitro is not found or the version cannot be determined.
6
+ */
7
+ export declare function getNitroMajorVersion(): Promise<number>;
8
+ /**
9
+ * Find the default SDK init file for the given type (client or server).
10
+ * The sentry.server.config file is prioritized over the instrument.server file.
11
+ */
12
+ export declare function findDefaultSdkInitFile(type: 'server' | 'client', nuxt?: Nuxt, options?: SentryNuxtModuleOptions): Promise<string | undefined>;
13
+ /**
14
+ * Extracts the filename from a node command with a path.
15
+ */
16
+ export declare function getFilenameFromNodeStartCommand(nodeCommand: string): string | null;
17
+ export declare const SENTRY_WRAPPED_ENTRY = "?sentry-query-wrapped-entry";
18
+ export declare const SENTRY_WRAPPED_FUNCTIONS = "?sentry-query-wrapped-functions=";
19
+ export declare const SENTRY_REEXPORTED_FUNCTIONS = "?sentry-query-reexported-functions=";
20
+ export declare const QUERY_END_INDICATOR = "SENTRY-QUERY-END";
21
+ /**
22
+ * Strips the Sentry query part from a path.
23
+ * Example: example/path?sentry-query-wrapped-entry?sentry-query-functions-reexport=foo,SENTRY-QUERY-END -> /example/path
24
+ *
25
+ * Only exported for testing.
26
+ */
27
+ export declare function removeSentryQueryFromPath(url: string): string;
28
+ /**
29
+ * Extracts and sanitizes function re-export and function wrap query parameters from a query string.
30
+ * If it is a default export, it is not considered for re-exporting.
31
+ *
32
+ * Only exported for testing.
33
+ */
34
+ export declare function extractFunctionReexportQueryParameters(query: string): {
35
+ wrap: string[];
36
+ reexport: string[];
37
+ };
38
+ /**
39
+ * Constructs a comma-separated string with all functions that need to be re-exported later from the server entry.
40
+ * It uses Rollup's `exportedBindings` to determine the functions to re-export. Functions which should be wrapped
41
+ * (e.g. serverless handlers) are wrapped by Sentry.
42
+ */
43
+ export declare function constructWrappedFunctionExportQuery(exportedBindings: Record<string, string[]> | null, entrypointWrappedFunctions: string[], debug?: boolean): string;
44
+ /**
45
+ * Constructs a code snippet with function reexports (can be used in Rollup plugins as a return value for `load()`)
46
+ */
47
+ export declare function constructFunctionReExport(pathWithQuery: string, entryId: string): string;
48
+ /**
49
+ * Sets up alias to work around OpenTelemetry's incomplete ESM imports.
50
+ * https://github.com/getsentry/sentry-javascript/issues/15204
51
+ *
52
+ * OpenTelemetry's @opentelemetry/resources package has incomplete imports missing
53
+ * the .js file extensions (like execAsync for machine-id detection). This causes module resolution
54
+ * errors in certain Nuxt configurations, particularly when local Nuxt modules in Nuxt 4 are present.
55
+ *
56
+ * @see https://nuxt.com/docs/guide/concepts/esm#aliasing-libraries
57
+ */
58
+ export declare function addOTelCommonJSImportAlias(nuxt: Nuxt, isNitroV3?: boolean): void;
@@ -166,6 +166,22 @@ export type SentryNuxtModuleOptions = BuildTimeOptionsBase & {
166
166
  * @default true
167
167
  */
168
168
  enabled?: boolean;
169
+ /**
170
+ * Experimental build-time options that may change or be removed without notice.
171
+ */
172
+ _experimental?: {
173
+ /**
174
+ * Enables build-time diagnostics-channel instrumentation for supported dependencies bundled into the Nitro server.
175
+ *
176
+ * 1. Call `Sentry.experimentalUseDiagnosticsChannelInjection()` just before `Sentry.init()`
177
+ * 2. Remove `--import ./.output/server/sentry.server.config.mjs` from your `start`script
178
+ * 3. Add `sentry.autoInjectServerSentry: 'top-level-import'` in `nuxt.config.ts` so Sentry's server configuration is automatically imported
179
+ *
180
+ * @default false
181
+ * @experimental May change or be removed in any release.
182
+ */
183
+ useDiagnosticsChannelInjection?: boolean;
184
+ };
169
185
  /**
170
186
  * Options for the Sentry Vite plugin to customize the source maps upload process.
171
187
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ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8B,CAAC,EAAE,OAAO,CAAC;KAC1C,CAAC;IAEF;;;;;;;;OAQG;IACH,uBAAuB,CAAC,EAAE,iBAAiB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,sBAAsB,CAAC,EAAE,kBAAkB,GAAG,6BAA6B,CAAC;IAE5E;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;OAUG;IACH,uCAAuC,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnD;;;;;OAKG;IACH,mCAAmC,CAAC,EAAE,yBAAyB,GAAG,uBAAuB,CAAC;CAC3F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAQ9D,MAAM,MAAM,aAAa,GAAG,uBAAuB,CAAC;;AAGpD,wBA6NG"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAS9D,MAAM,MAAM,aAAa,GAAG,uBAAuB,CAAC;;AAGpD,wBAiOG"}
@@ -0,0 +1,7 @@
1
+ import type { Nuxt } from '@nuxt/schema';
2
+ /**
3
+ * Configures Nitro to bundle and transform dependencies that publish tracing
4
+ * events through diagnostics channels.
5
+ */
6
+ export declare function setupOrchestrion(nuxt: Nuxt): void;
7
+ //# sourceMappingURL=orchestrion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchestrion.d.ts","sourceRoot":"","sources":["../../../src/vite/orchestrion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AASzC;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAq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I,EAAE;IAAE,OAAO,EAAE;QAAE,SAAS,CAAC,EAAE,gBAAgB,GAAG;YAAE,MAAM,CAAC,EAAE,gBAAgB,CAAA;SAAE,CAAA;KAAE,CAAA;CAAE,EACnF,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,uBAAuB,GAC3C,IAAI,CAsCN;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,EACjD,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,iBAAiB,GAClB,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;CACtC,GAAG,IAAI,CAOP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/nuxt",
3
- "version": "10.65.0",
3
+ "version": "10.67.0",
4
4
  "description": "Official Sentry SDK for Nuxt",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/nuxt",
@@ -33,8 +33,7 @@
33
33
  },
34
34
  "./module": {
35
35
  "types": "./build/module/types.d.ts",
36
- "import": "./build/module/module.mjs",
37
- "require": "./build/module/module.cjs"
36
+ "import": "./build/module/module.mjs"
38
37
  },
39
38
  "./module/plugins": {
40
39
  "types": "./build/module/runtime/plugins/index.d.ts",
@@ -55,18 +54,18 @@
55
54
  },
56
55
  "dependencies": {
57
56
  "@nuxt/kit": "^3.13.2",
58
- "@sentry/browser": "10.65.0",
59
- "@sentry/cloudflare": "10.65.0",
60
- "@sentry/core": "10.65.0",
61
- "@sentry/node": "10.65.0",
62
- "@sentry/node-core": "10.65.0",
57
+ "@sentry/browser": "10.67.0",
58
+ "@sentry/cloudflare": "10.67.0",
59
+ "@sentry/core": "10.67.0",
60
+ "@sentry/node": "10.67.0",
61
+ "@sentry/node-core": "10.67.0",
63
62
  "@sentry/rollup-plugin": "^5.3.0",
63
+ "@sentry/server-utils": "10.67.0",
64
64
  "@sentry/vite-plugin": "^5.3.0",
65
- "@sentry/vue": "10.65.0",
65
+ "@sentry/vue": "10.67.0",
66
66
  "local-pkg": "^1.1.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@nuxt/module-builder": "^0.8.4",
70
69
  "@nuxt/nitro-server": "^3.21.6",
71
70
  "nitro": "^3.0.260311-beta",
72
71
  "nuxi": "^3.25.1",
@@ -76,7 +75,7 @@
76
75
  "scripts": {
77
76
  "build": "run-s build:types build:transpile",
78
77
  "build:dev": "yarn build",
79
- "build:nuxt-module": "bash ./generate-build-stubs.bash && nuxt-module-build build --outDir build/module",
78
+ "build:nuxt-module": "rollup -c rollup.module.config.mjs && tsc -p tsconfig.module.json && node scripts/build-module-meta.mjs",
80
79
  "build:transpile": "rollup -c rollup.npm.config.mjs && yarn build:nuxt-module",
81
80
  "build:types": "tsc -p tsconfig.types.json",
82
81
  "build:watch": "run-p build:transpile:watch",
@@ -87,7 +86,7 @@
87
86
  "clean": "rimraf build coverage sentry-nuxt-*.tgz",
88
87
  "lint:fix": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --fix --type-aware",
89
88
  "lint": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint . --type-aware",
90
- "lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module && es-check es2020 ./build/module/*.cjs && es-check es2020 ./build/module/*.mjs --module",
89
+ "lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module && es-check es2020 ./build/module/*.mjs --module",
91
90
  "test": "yarn test:unit",
92
91
  "test:unit": "vitest run",
93
92
  "test:watch": "vitest --watch",
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
@@ -1 +0,0 @@
1
- export { type ModuleOptions, default } from './module.js'