@scayle/storefront-nuxt 8.22.0 → 8.24.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 +31 -0
- package/dist/index.d.mts +1 -1
- package/dist/module.d.mts +2 -2
- package/dist/module.json +2 -2
- package/dist/module.mjs +2 -2
- package/dist/runtime/nitro/plugins/cacheRuntimeConfig.js +7 -3
- package/dist/runtime/plugin/shop.d.ts +4 -4
- package/dist/runtime/utils/zodSchema.d.ts +150 -150
- package/dist/shared/{storefront-nuxt.d0683fc1.d.mts → storefront-nuxt.CRtTNUi9.d.mts} +3 -3
- package/dist/test/factories.d.mts +1 -1
- package/dist/test/factories.mjs +1 -1
- package/dist/types.d.mts +9 -2
- package/package.json +9 -11
- package/dist/index.d.ts +0 -21
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -62
- package/dist/rpc.d.ts +0 -1
- package/dist/shared/storefront-nuxt.d0683fc1.d.ts +0 -268
- package/dist/test/factories.d.ts +0 -25
- package/dist/types.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 8.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update to `@nuxt/module-builder@1`. This version of Nuxt Module Builder is ESM-only, so CommonJS (`.cjs`) files will no longer be built or distributed with the package. However as of Nuxt 3, only esm is used so this should not have any impact as this module does not support Nuxt 2.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
**Dependencies**
|
|
12
|
+
|
|
13
|
+
**@scayle/storefront-core v8.24.0**
|
|
14
|
+
|
|
15
|
+
- No changes in this release.
|
|
16
|
+
|
|
17
|
+
## 8.23.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 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.
|
|
22
|
+
|
|
23
|
+
**Dependencies**
|
|
24
|
+
|
|
25
|
+
**@scayle/storefront-core v8.23.0**
|
|
26
|
+
|
|
27
|
+
- Minor
|
|
28
|
+
|
|
29
|
+
- Deprecated attribute group specific utilities `getFlattenedVariantCrosssellings` and
|
|
30
|
+
`getFlattenedMaterialComposition`.
|
|
31
|
+
|
|
32
|
+
These functions should be a part of the Storefront application.
|
|
33
|
+
|
|
3
34
|
## 8.22.0
|
|
4
35
|
|
|
5
36
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.
|
|
1
|
+
export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.CRtTNUi9.mjs';
|
|
2
2
|
export { ModuleHooks } from './module.mjs';
|
|
3
3
|
export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
|
|
4
4
|
export { extendPromise } from '../dist/runtime/utils/promise.js';
|
package/dist/module.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { HookResult } from '@nuxt/schema';
|
|
3
|
-
import { M as ModuleBaseOptions } from './shared/storefront-nuxt.
|
|
4
|
-
export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.
|
|
3
|
+
import { M as ModuleBaseOptions } from './shared/storefront-nuxt.CRtTNUi9.mjs';
|
|
4
|
+
export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.CRtTNUi9.mjs';
|
|
5
5
|
export { LogLevel } from '@scayle/storefront-core';
|
|
6
6
|
import '@scayle/unstorage-compression-driver';
|
|
7
7
|
import 'unstorage';
|
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.24.0",
|
|
4
4
|
"configKey": "storefront",
|
|
5
5
|
"compatibility": {
|
|
6
6
|
"nuxt": "^3.9.0"
|
|
7
7
|
},
|
|
8
8
|
"builder": {
|
|
9
|
-
"@nuxt/module-builder": "0.
|
|
9
|
+
"@nuxt/module-builder": "1.0.1",
|
|
10
10
|
"unbuild": "2.0.0"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { existsSync } from 'node:fs';
|
|
|
2
2
|
import { defineNuxtModule, createResolver, extendViteConfig, addTypeTemplate, addPlugin, addImportsDir } from '@nuxt/kit';
|
|
3
3
|
import { rpcMethods } from '@scayle/storefront-core';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
|
-
import { genImport, genSafeVariableName
|
|
5
|
+
import { genExport, genImport, genSafeVariableName } from 'knitwork';
|
|
6
6
|
import { builtinDrivers } from 'unstorage';
|
|
7
7
|
import { createConsola } from 'consola';
|
|
8
8
|
import { nodeFileTrace } from '@vercel/nft';
|
|
@@ -53,7 +53,7 @@ export default {
|
|
|
53
53
|
}`;
|
|
54
54
|
}
|
|
55
55
|
const PACKAGE_NAME = "@scayle/storefront-nuxt";
|
|
56
|
-
const PACKAGE_VERSION = "8.
|
|
56
|
+
const PACKAGE_VERSION = "8.24.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
|
-
|
|
4
|
+
let runtimeConfig;
|
|
5
5
|
nitroApp.hooks.hook("request", (event) => {
|
|
6
|
-
|
|
7
|
-
|
|
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
|
});
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
declare const _default: import("#app/nuxt").Plugin<{
|
|
17
|
-
currentShop: import("
|
|
18
|
-
availableShops: import("
|
|
17
|
+
currentShop: import("../../index.js").PublicShopConfig;
|
|
18
|
+
availableShops: import("../../index.js").PublicShopConfig[];
|
|
19
19
|
}> & import("#app/nuxt").ObjectPlugin<{
|
|
20
|
-
currentShop: import("
|
|
21
|
-
availableShops: import("
|
|
20
|
+
currentShop: import("../../index.js").PublicShopConfig;
|
|
21
|
+
availableShops: import("../../index.js").PublicShopConfig[];
|
|
22
22
|
}>;
|
|
23
23
|
export default _default;
|