@scayle/storefront-nuxt 8.62.6 → 8.62.8

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,35 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.62.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependency `zod@^4.4.3` to `zod@^4.6.7`
8
+ - Raised the minimum supported versions of the `nuxt` and `@nuxt/kit` peer dependencies to `3.15.0` on the Nuxt 3 line. The module registers server templates with `addServerTemplate`, which `@nuxt/kit` provides from `3.15.0` on, so the module could not run on Nuxt 3.10 to 3.14. The ranges for Nuxt 4 stay the same.
9
+ - Raised the `zod` dependency to `^4.6.7`. Versions below `4.6.6` are affected by CVE-2023-54404.
10
+
11
+ **Dependencies**
12
+
13
+ **@scayle/storefront-core v8.62.8**
14
+
15
+ - No changes in this release.
16
+
17
+ ## 8.62.7
18
+
19
+ ### Patch Changes
20
+
21
+ - Fixed fatal errors reaching the log as one record per line when `storefront.log.json` is enabled.
22
+
23
+ Nitro reports fatal and unhandled errors with a plain `console.error`, which bypassed the Storefront logger and its JSON reporter. The stack trace, cause and data were printed across dozens of lines, and a log pipeline that treats every line as a record turned one error into about 25 unstructured records. With `storefront.log.json` enabled, the Nitro logger plugin now routes all `console` output through the JSON reporter. A fatal error is written as one JSON line with the severity `error`, and the stack trace and cause are part of its `message`. Plain console output, like `console.log('text')`, is also wrapped in JSON, with the severity matching the console method.
24
+
25
+ The `statusCode` and `data` properties of an error are no longer printed, since the JSON reporter formats only the message, the stack trace and the cause. Without `storefront.log.json`, the console output is unchanged.
26
+
27
+ **Dependencies**
28
+
29
+ **@scayle/storefront-core v8.62.7**
30
+
31
+ - No changes in this release.
32
+
3
33
  ## 8.62.6
4
34
 
5
35
  ### Patch Changes
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.62.6",
3
+ "version": "8.62.8",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.13"
package/dist/module.mjs CHANGED
@@ -57,7 +57,7 @@ export default {
57
57
  }`;
58
58
  }
59
59
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
60
- const PACKAGE_VERSION = "8.62.6";
60
+ const PACKAGE_VERSION = "8.62.8";
61
61
  const logger = createConsola({
62
62
  fancy: true,
63
63
  formatOptions: {
@@ -1,4 +1,4 @@
1
- import { createConsola } from "consola";
1
+ import { createConsola, LogLevels } from "consola";
2
2
  import { defineNitroPlugin } from "nitropack/runtime/plugin";
3
3
  import { useRuntimeConfig } from "#imports";
4
4
  import createLog from "../../createLog.js";
@@ -6,16 +6,16 @@ import { JSONReporter } from "../../JSONReporter.js";
6
6
  export default defineNitroPlugin((nitroApp) => {
7
7
  const config = useRuntimeConfig();
8
8
  const logConfig = config.public.storefront.log;
9
- const log = createLog(
10
- (opts) => createConsola({
11
- ...logConfig.json ? { reporters: [new JSONReporter()] } : void 0,
12
- stderr: logConfig.output === "stdout" ? process.stdout : process.stderr,
13
- stdout: logConfig.output === "stderr" ? process.stderr : process.stdout,
14
- ...opts
15
- }),
16
- logConfig.name,
17
- logConfig.level
18
- );
9
+ const createLogInstance = (opts) => createConsola({
10
+ ...logConfig.json ? { reporters: [new JSONReporter()] } : void 0,
11
+ stderr: logConfig.output === "stdout" ? process.stdout : process.stderr,
12
+ stdout: logConfig.output === "stderr" ? process.stderr : process.stdout,
13
+ ...opts
14
+ });
15
+ const log = createLog(createLogInstance, logConfig.name, logConfig.level);
16
+ if (logConfig.json) {
17
+ createLogInstance({ level: LogLevels.verbose }).wrapConsole();
18
+ }
19
19
  log.info(`Logger instance created. Level: ${logConfig.level}`);
20
20
  nitroApp.hooks.hook("request", (event) => {
21
21
  event.context.$log = log;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.62.6",
4
+ "version": "8.62.8",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -67,20 +67,20 @@
67
67
  "node": ">= 22.0.0"
68
68
  },
69
69
  "peerDependencies": {
70
- "@nuxt/kit": ">=3.13.0 || >=4.2.0",
70
+ "@nuxt/kit": ">=3.15.0 || >=4.2.0",
71
71
  "@scayle/storefront-api": "^19.2.1",
72
72
  "fishery": "^2.2.2",
73
73
  "h3": "^1.10.0",
74
74
  "nitropack": "^2.9.7",
75
- "nuxt": ">=3.10.0 || >=4.2.2",
75
+ "nuxt": ">=3.15.0 || >=4.2.2",
76
76
  "unstorage": "^1.10.1",
77
77
  "vue": "^3.4.0"
78
78
  },
79
79
  "dependencies": {
80
80
  "@opentelemetry/api": "^1.9.1",
81
81
  "@scayle/h3-session": "0.7.2",
82
- "@scayle/storefront-core": "8.62.6",
83
- "@scayle/unstorage-compression-driver": "1.5.0",
82
+ "@scayle/storefront-core": "8.62.8",
83
+ "@scayle/unstorage-compression-driver": "1.6.0",
84
84
  "@vercel/nft": "1.11.0",
85
85
  "@vueuse/core": "15.0.0",
86
86
  "consola": "^3.4.2",
@@ -91,13 +91,13 @@
91
91
  "jose": "^6.0.8",
92
92
  "knitwork": "^1.3.0",
93
93
  "ofetch": "^1.5.1",
94
- "schema-dts": "1.1.5",
94
+ "schema-dts": "2.1.0",
95
95
  "ufo": "^1.5.4",
96
96
  "uncrypto": "^0.1.3",
97
- "unstorage": "1.17.5",
97
+ "unstorage": "1.17.6",
98
98
  "utility-types": "^3.11.0",
99
99
  "vue-router": "4.6.4",
100
- "zod": "^4.4.3"
100
+ "zod": "^4.6.7"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@arethetypeswrong/cli": "0.18.5",
@@ -112,21 +112,21 @@
112
112
  "@scayle/unstorage-scayle-kv-driver": "^3.0.0",
113
113
  "@scayle/vitest-config-storefront": "1.0.0",
114
114
  "@types/node": "^24",
115
- "@vitest/coverage-v8": "5.0.1",
116
- "eslint": "10.10.0",
115
+ "@vitest/coverage-v8": "5.0.5",
116
+ "eslint": "10.14.0",
117
117
  "eslint-formatter-gitlab": "7.2.0",
118
118
  "fishery": "2.4.0",
119
119
  "h3": "1.15.11",
120
- "happy-dom": "20.14.5",
120
+ "happy-dom": "21.0.4",
121
121
  "nitro-test-utils": "0.11.2",
122
- "nitropack": "2.13.4",
122
+ "nitropack": "2.13.5",
123
123
  "node-mocks-http": "1.18.1",
124
124
  "nuxt": "^3.21.10",
125
- "publint": "0.3.24",
125
+ "publint": "0.3.25",
126
126
  "typescript": "6.0.3",
127
127
  "unbuild": "3.6.1",
128
- "vitest": "5.0.1",
129
- "vue-tsc": "3.3.11"
128
+ "vitest": "5.0.5",
129
+ "vue-tsc": "3.3.14"
130
130
  },
131
131
  "scripts": {
132
132
  "build": "nuxt-module-build build",