@scayle/storefront-nuxt 8.38.3 → 8.39.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.39.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [OTEL] When recording span exceptions, also include the `error.cause` if it exists.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependency `@vercel/nft@0.29.4` to `@vercel/nft@0.30.0`
12
+
13
+ **Dependencies**
14
+
15
+ **@scayle/storefront-core v8.39.0**
16
+
17
+ - Patch
18
+ - Use a custom error type for OAuth API errors to improve troubleshooting OAuth errors.
19
+
20
+ ## 8.38.4
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependency `@vueuse/core@13.5.0` to `@vueuse/core@13.6.0`
25
+
26
+ **Dependencies**
27
+
28
+ **@scayle/storefront-core v8.38.4**
29
+
30
+ - No changes in this release.
31
+
3
32
  ## 8.38.3
4
33
 
5
34
  ### Patch Changes
package/dist/module.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.38.3",
3
+ "version": "8.39.0",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
7
7
  },
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
- "unbuild": "3.5.0"
10
+ "unbuild": "3.6.0"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -54,7 +54,7 @@ export default {
54
54
  }`;
55
55
  }
56
56
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
57
- const PACKAGE_VERSION = "8.38.3";
57
+ const PACKAGE_VERSION = "8.39.0";
58
58
  const logger = createConsola({
59
59
  fancy: true,
60
60
  formatOptions: {
@@ -63,7 +63,7 @@ export default defineEventHandler(async (event) => {
63
63
  span.setStatus({ code: SpanStatusCode.OK });
64
64
  }
65
65
  } catch (e) {
66
- $rpcContext.log.space("sfc").error(`RPC Handler failed: ${method}`, e);
66
+ $rpcContext.log.space("sfc").error(`RPC Handler failed: ${method}.`, e);
67
67
  await nitroApp.hooks.callHook(
68
68
  "storefront:rpc:error",
69
69
  method,
@@ -73,6 +73,9 @@ export default defineEventHandler(async (event) => {
73
73
  result = createError(resolveError(e));
74
74
  if (e instanceof Error) {
75
75
  span.recordException(e);
76
+ if (e.cause && e.cause instanceof Error) {
77
+ span.recordException(e.cause);
78
+ }
76
79
  }
77
80
  span.setStatus({ code: SpanStatusCode.ERROR });
78
81
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.38.3",
4
+ "version": "8.39.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -74,8 +74,8 @@
74
74
  "dependencies": {
75
75
  "@opentelemetry/api": "^1.9.0",
76
76
  "@scayle/h3-session": "0.6.1",
77
- "@vercel/nft": "0.29.4",
78
- "@vueuse/core": "13.5.0",
77
+ "@vercel/nft": "0.30.0",
78
+ "@vueuse/core": "13.6.0",
79
79
  "consola": "^3.2.3",
80
80
  "core-js": "^3.37.1",
81
81
  "defu": "^6.1.4",
@@ -90,7 +90,7 @@
90
90
  "utility-types": "^3.11.0",
91
91
  "vue-router": "^4.4.0",
92
92
  "zod": "^4.0.0",
93
- "@scayle/storefront-core": "8.38.3",
93
+ "@scayle/storefront-core": "8.39.0",
94
94
  "@scayle/unstorage-compression-driver": "1.0.1"
95
95
  },
96
96
  "devDependencies": {
@@ -102,20 +102,20 @@
102
102
  "@nuxt/module-builder": "1.0.2",
103
103
  "@nuxt/schema": "3.17.7",
104
104
  "@nuxt/test-utils": "3.19.2",
105
- "@types/node": "22.16.5",
105
+ "@types/node": "22.17.0",
106
106
  "@vitest/coverage-v8": "3.2.4",
107
107
  "dprint": "0.50.1",
108
108
  "eslint-formatter-gitlab": "6.0.1",
109
109
  "eslint": "9.32.0",
110
110
  "fishery": "2.3.1",
111
- "h3": "1.15.3",
111
+ "h3": "1.15.4",
112
112
  "nitro-test-utils": "0.9.2",
113
- "nitropack": "2.11.13",
113
+ "nitropack": "2.12.4",
114
114
  "node-mocks-http": "1.17.2",
115
115
  "nuxt": "3.17.7",
116
116
  "publint": "0.3.12",
117
117
  "typescript": "5.8.3",
118
- "unbuild": "3.5.0",
118
+ "unbuild": "3.6.0",
119
119
  "vitest": "3.2.4",
120
120
  "vue-tsc": "3.0.4",
121
121
  "@scayle/eslint-config-storefront": "4.7.2",