@scayle/storefront-nuxt 8.7.2 → 8.8.1
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,17 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 8.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Deprecate `useSearchData` in favor of `useSearch` within the `@scayle/storefront-search` package.
|
|
8
|
+
|
|
9
|
+
## 8.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [Rpc] Add check for the existence of the rpc directory, in order to prevent errors when trying import custom Rpc's.
|
|
14
|
+
|
|
3
15
|
## 8.7.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { d as AdditionalShopConfig, A as AppKeys, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i 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 } from './shared/storefront-nuxt.a816664e.mjs';
|
|
2
|
+
export { ModuleHooks } from './module.mjs';
|
|
2
3
|
export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
|
|
3
4
|
export { extendPromise } from '../dist/runtime/utils/promise.js';
|
|
4
5
|
export * from '../dist/runtime/utils/seo.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { d as AdditionalShopConfig, A as AppKeys, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i 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 } from './shared/storefront-nuxt.a816664e.js';
|
|
2
|
+
export { ModuleHooks } from './module.js';
|
|
2
3
|
export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
|
|
3
4
|
export { extendPromise } from '../dist/runtime/utils/promise.js';
|
|
4
5
|
export * from '../dist/runtime/utils/seo.js';
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
1
2
|
import { defineNuxtModule, createResolver, extendViteConfig, addTypeTemplate, addPlugin, addImportsDir } from '@nuxt/kit';
|
|
2
3
|
import { rpcMethods } from '@scayle/storefront-core';
|
|
3
4
|
import { defu } from 'defu';
|
|
@@ -44,7 +45,7 @@ export default {
|
|
|
44
45
|
}`;
|
|
45
46
|
}
|
|
46
47
|
const PACKAGE_NAME = "@scayle/storefront-nuxt";
|
|
47
|
-
const PACKAGE_VERSION = "8.
|
|
48
|
+
const PACKAGE_VERSION = "8.8.1";
|
|
48
49
|
const logger = createConsola({
|
|
49
50
|
fancy: true,
|
|
50
51
|
formatOptions: {
|
|
@@ -286,10 +287,13 @@ const module = defineNuxtModule({
|
|
|
286
287
|
(name) => !storefrontRpcMethodNames.includes(name)
|
|
287
288
|
);
|
|
288
289
|
});
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
290
|
+
const rpcDir = appResolve(options.rpcDir ?? "./rpcMethods");
|
|
291
|
+
if (existsSync(rpcDir)) {
|
|
292
|
+
customRpcImports.push({
|
|
293
|
+
source: rpcDir,
|
|
294
|
+
names: storefrontRpcMethodNames
|
|
295
|
+
});
|
|
296
|
+
}
|
|
293
297
|
validateRpcMethodOverrides(
|
|
294
298
|
options.rpcMethodOverrides ?? [],
|
|
295
299
|
customRpcImports.reduce(
|
|
@@ -8,6 +8,9 @@ export type SearchOptions = Partial<{
|
|
|
8
8
|
}>;
|
|
9
9
|
key: string;
|
|
10
10
|
}>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated `useStorefrontSearch` is deprecated. Consider using `useSearch` of `@scayle/storefront-search` instead.
|
|
13
|
+
*/
|
|
11
14
|
export declare function useStorefrontSearch(searchQuery: Ref<string>, { params }?: SearchOptions, key?: string): {
|
|
12
15
|
data: Ref<SearchV2SuggestionsEndpointResponseData | undefined, SearchV2SuggestionsEndpointResponseData | undefined>;
|
|
13
16
|
status: Ref<Status, Status>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.8.1",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@scayle/eslint-plugin-vue-composable": "0.2.1",
|
|
100
100
|
"@types/node": "22.13.1",
|
|
101
101
|
"dprint": "0.49.0",
|
|
102
|
-
"eslint": "9.
|
|
102
|
+
"eslint": "9.20.0",
|
|
103
103
|
"eslint-formatter-gitlab": "5.1.0",
|
|
104
104
|
"fishery": "2.2.3",
|
|
105
105
|
"h3": "1.15.0",
|