@sentry/nuxt 9.36.0-alpha.2 → 9.37.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 (47) hide show
  1. package/build/cjs/client/piniaIntegration.js.map +1 -1
  2. package/build/cjs/client/vueIntegration.js.map +1 -1
  3. package/build/cjs/common/debug-build.js.map +1 -1
  4. package/build/cjs/module.js +25 -0
  5. package/build/cjs/module.js.map +1 -1
  6. package/build/cjs/server/sdk.js.map +1 -1
  7. package/build/cjs/vite/addServerConfig.js.map +1 -1
  8. package/build/cjs/vite/sourceMaps.js.map +1 -1
  9. package/build/cjs/vite/utils.js.map +1 -1
  10. package/build/esm/client/piniaIntegration.js.map +1 -1
  11. package/build/esm/client/vueIntegration.js.map +1 -1
  12. package/build/esm/common/debug-build.js.map +1 -1
  13. package/build/esm/module.js +26 -1
  14. package/build/esm/module.js.map +1 -1
  15. package/build/esm/package.json +1 -1
  16. package/build/esm/server/sdk.js.map +1 -1
  17. package/build/esm/vite/addServerConfig.js.map +1 -1
  18. package/build/esm/vite/sourceMaps.js.map +1 -1
  19. package/build/esm/vite/utils.js.map +1 -1
  20. package/build/module/module.json +1 -1
  21. package/build/module/module.mjs +19 -1
  22. package/build/module/runtime/hooks/captureErrorHook.d.ts +1 -1
  23. package/build/module/runtime/hooks/updateRouteBeforeResponse.d.ts +5 -0
  24. package/build/module/runtime/hooks/updateRouteBeforeResponse.js +34 -0
  25. package/build/module/runtime/plugins/route-detector.server.d.ts +2 -0
  26. package/build/module/runtime/plugins/route-detector.server.js +37 -0
  27. package/build/module/runtime/plugins/sentry-cloudflare.server.js +2 -0
  28. package/build/module/runtime/plugins/sentry.server.d.ts +1 -1
  29. package/build/module/runtime/plugins/sentry.server.js +2 -0
  30. package/build/module/runtime/utils/route-extraction.d.ts +26 -0
  31. package/build/module/runtime/utils/route-extraction.js +37 -0
  32. package/build/module/runtime/utils.d.ts +1 -1
  33. package/build/types/module.d.ts.map +1 -1
  34. package/build/types/runtime/hooks/captureErrorHook.d.ts +1 -1
  35. package/build/types/runtime/hooks/captureErrorHook.d.ts.map +1 -1
  36. package/build/types/runtime/hooks/updateRouteBeforeResponse.d.ts +6 -0
  37. package/build/types/runtime/hooks/updateRouteBeforeResponse.d.ts.map +1 -0
  38. package/build/types/runtime/plugins/route-detector.server.d.ts +3 -0
  39. package/build/types/runtime/plugins/route-detector.server.d.ts.map +1 -0
  40. package/build/types/runtime/plugins/sentry-cloudflare.server.d.ts.map +1 -1
  41. package/build/types/runtime/plugins/sentry.server.d.ts +1 -1
  42. package/build/types/runtime/plugins/sentry.server.d.ts.map +1 -1
  43. package/build/types/runtime/utils/route-extraction.d.ts +27 -0
  44. package/build/types/runtime/utils/route-extraction.d.ts.map +1 -0
  45. package/build/types/runtime/utils.d.ts +1 -1
  46. package/build/types/runtime/utils.d.ts.map +1 -1
  47. package/package.json +9 -13
@@ -1,3 +1,3 @@
1
- declare const _default: import("nitropack/runtime").NitroAppPlugin;
1
+ declare const _default: import("nitropack/dist/types").NitroAppPlugin;
2
2
  export default _default;
3
3
  //# sourceMappingURL=sentry.server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sentry.server.d.ts","sourceRoot":"","sources":["../../../../src/runtime/plugins/sentry.server.ts"],"names":[],"mappings":";AASA,wBASG"}
1
+ {"version":3,"file":"sentry.server.d.ts","sourceRoot":"","sources":["../../../../src/runtime/plugins/sentry.server.ts"],"names":[],"mappings":";AAUA,wBAWG"}
@@ -0,0 +1,27 @@
1
+ import type { NuxtSSRContext } from 'nuxt/app';
2
+ import type { NuxtPage } from 'nuxt/schema';
3
+ export type NuxtPageSubset = {
4
+ path: NuxtPage['path'];
5
+ file: NuxtPage['file'];
6
+ };
7
+ /**
8
+ * Extracts route information from the SSR context modules and URL.
9
+ *
10
+ * The function matches the requested URL against the build-time pages data. The build-time pages data
11
+ * contains the routes that were generated during the build process, which allows us to set the parametrized route.
12
+ *
13
+ * @param ssrContextModules - The modules from the SSR context.
14
+ * This is a Set of module paths that were used when loading one specific page.
15
+ * Example: `Set(['app.vue', 'components/Button.vue', 'pages/user/[userId].vue'])`
16
+ *
17
+ * @param requestedUrl - The requested URL string
18
+ * Example: `/user/123`
19
+ *
20
+ * @param buildTimePagesData
21
+ * An array of NuxtPage objects representing the build-time pages data.
22
+ * Example: [{ file: '/a/file/pages/some/path', path: '/some/path' }, { file: '/a/file/pages/user/[userId].vue', path: '/user/:userId()' }]
23
+ */
24
+ export declare function extractParametrizedRouteFromContext(ssrContextModules?: NuxtSSRContext['modules'], requestedUrl?: NuxtSSRContext['url'], buildTimePagesData?: NuxtPageSubset[]): null | {
25
+ parametrizedRoute: string;
26
+ };
27
+ //# sourceMappingURL=route-extraction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route-extraction.d.ts","sourceRoot":"","sources":["../../../../src/runtime/utils/route-extraction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC;AAIhF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mCAAmC,CACjD,iBAAiB,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,EAC7C,YAAY,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,EACpC,kBAAkB,GAAE,cAAc,EAAO,GACxC,IAAI,GAAG;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,CA+CtC"}
@@ -1,5 +1,5 @@
1
1
  import type { Context, SerializedTraceData } from '@sentry/core';
2
- import type { CapturedErrorContext } from 'nitropack';
2
+ import type { CapturedErrorContext } from 'nitropack/types';
3
3
  import type { NuxtRenderHTMLContext } from 'nuxt/app';
4
4
  import type { ComponentPublicInstance } from 'vue';
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/runtime/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAWhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,KAAK,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,oBAAoB,GAAG,SAAS,GAAG,OAAO,CAiB3F;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAcnH;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE;IACvC,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAyBP;AAYD;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAcvD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/runtime/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAWhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,KAAK,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,oBAAoB,GAAG,SAAS,GAAG,OAAO,CAiB3F;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAcnH;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE;IACvC,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAyBP;AAYD;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAcvD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/nuxt",
3
- "version": "9.36.0-alpha.2",
3
+ "version": "9.37.0",
4
4
  "description": "Official Sentry SDK for Nuxt (EXPERIMENTAL)",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/nuxt",
@@ -43,27 +43,23 @@
43
43
  "access": "public"
44
44
  },
45
45
  "peerDependencies": {
46
- "@sentry/cloudflare": ">=9.34.0",
47
46
  "nuxt": ">=3.7.0 || 4.x"
48
47
  },
49
- "peerDependenciesMeta": {
50
- "@sentry/cloudflare": {
51
- "optional": true
52
- }
53
- },
54
48
  "dependencies": {
55
49
  "@nuxt/kit": "^3.13.2",
56
- "@sentry/browser": "9.36.0-alpha.2",
57
- "@sentry/core": "9.36.0-alpha.2",
58
- "@sentry/node": "9.36.0-alpha.2",
50
+ "@sentry/browser": "9.37.0",
51
+ "@sentry/cloudflare": "9.37.0",
52
+ "@sentry/core": "9.37.0",
53
+ "@sentry/node": "9.37.0",
59
54
  "@sentry/rollup-plugin": "^3.5.0",
60
55
  "@sentry/vite-plugin": "^3.5.0",
61
- "@sentry/vue": "9.36.0-alpha.2"
56
+ "@sentry/vue": "9.37.0"
62
57
  },
63
58
  "devDependencies": {
64
59
  "@nuxt/module-builder": "^0.8.4",
65
- "@sentry/cloudflare": "9.36.0-alpha.2",
66
- "nuxt": "^3.13.2"
60
+ "nuxi": "^3.25.1",
61
+ "nuxt": "^3.13.2",
62
+ "vite": "^5.4.11"
67
63
  },
68
64
  "scripts": {
69
65
  "build": "run-s build:types build:transpile",