@scayle/storefront-nuxt 8.22.0 → 8.23.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,22 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.23.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix an issue where the `runtimeConfig` caching plugin returned a [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) `runtimeConfig` object. The behavior should now match that of the `runtimeConfig` which is generated for each request and should ensure compatibility with any code which depends on modifying the `runtimeConfig` during a request.
8
+
9
+ **Dependencies**
10
+
11
+ **@scayle/storefront-core v8.23.0**
12
+
13
+ - Minor
14
+
15
+ - Deprecated attribute group specific utilities `getFlattenedVariantCrosssellings` and
16
+ `getFlattenedMaterialComposition`.
17
+
18
+ These functions should be a part of the Storefront application.
19
+
3
20
  ## 8.22.0
4
21
 
5
22
  ### Minor Changes
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.22.0",
3
+ "version": "8.23.0",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -53,7 +53,7 @@ export default {
53
53
  }`;
54
54
  }
55
55
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
56
- const PACKAGE_VERSION = "8.22.0";
56
+ const PACKAGE_VERSION = "8.23.0";
57
57
  const logger = createConsola({
58
58
  fancy: true,
59
59
  formatOptions: {
@@ -1,9 +1,13 @@
1
1
  import { defineNitroPlugin } from "nitropack/runtime/plugin";
2
2
  import { useRuntimeConfig } from "#imports";
3
3
  export default defineNitroPlugin((nitroApp) => {
4
- const runtimeConfig = useRuntimeConfig();
4
+ let runtimeConfig;
5
5
  nitroApp.hooks.hook("request", (event) => {
6
- event.context.nitro = event.context.nitro ?? {};
7
- event.context.nitro.runtimeConfig = runtimeConfig;
6
+ if (runtimeConfig) {
7
+ event.context.nitro = event.context.nitro ?? {};
8
+ event.context.nitro.runtimeConfig = runtimeConfig;
9
+ } else {
10
+ runtimeConfig = useRuntimeConfig(event);
11
+ }
8
12
  });
9
13
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.22.0",
4
+ "version": "8.23.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -82,7 +82,7 @@
82
82
  "dependencies": {
83
83
  "@opentelemetry/api": "^1.9.0",
84
84
  "@scayle/h3-session": "0.6.0",
85
- "@scayle/storefront-core": "8.22.0",
85
+ "@scayle/storefront-core": "8.23.0",
86
86
  "@scayle/unstorage-compression-driver": "^0.2.6",
87
87
  "@vercel/nft": "0.29.2",
88
88
  "@vueuse/core": "13.1.0",