@scayle/storefront-nuxt 7.87.1 → 7.88.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,26 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.88.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add `useNavigationTreeByName` and `useNavigationTreeById` composables.
8
+ Deprecate `useNavigationTree` composable in favor of `useNavigationTreeById`.
9
+
10
+ ### Patch Changes
11
+
12
+ **Dependencies**
13
+
14
+ - Updated dependency to @scayle/storefront-core@7.66.0
15
+
16
+ ## 7.87.2
17
+
18
+ ### Patch Changes
19
+
20
+ **Dependencies**
21
+
22
+ - Updated dependency to @scayle/storefront-core@7.65.11
23
+
3
24
  ## 7.87.1
4
25
 
5
26
  ### Patch Changes
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "7.87.1",
3
+ "version": "7.88.0",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -48,7 +48,7 @@ export default {
48
48
  }`;
49
49
  }
50
50
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
51
- const PACKAGE_VERSION = "7.87.1";
51
+ const PACKAGE_VERSION = "7.88.0";
52
52
  const logger = createConsola({
53
53
  fancy: true,
54
54
  formatOptions: {
@@ -1,9 +1,19 @@
1
1
  import type { RpcMethodParameters } from '@scayle/storefront-core';
2
2
  import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc.js';
3
3
  import type { MaybeRefOrGetter } from '#imports';
4
- export declare function useNavigationTree<DataT = NormalizedRpcResponse<'fetchNavigationTreeById'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
4
+ export declare function useNavigationTreeById<DataT = NormalizedRpcResponse<'fetchNavigationTreeById'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
5
5
  params: MaybeRefOrGetter<RpcMethodParameters<'fetchNavigationTreeById'>>;
6
6
  options: UseRpcOptions<'fetchNavigationTreeById', DataT, PickKeys, DefaultT>;
7
7
  /** @deprecated use the second argument of the composable to define the key */
8
8
  key: string;
9
9
  }>, key?: string): UseRpcReturn<'fetchNavigationTreeById', DataT, PickKeys, DefaultT>;
10
+ /**
11
+ * @deprecated This composable was renamed to {@link useNavigationTreeById}.
12
+ */
13
+ export declare const useNavigationTree: typeof useNavigationTreeById;
14
+ export declare function useNavigationTreeByName<DataT = NormalizedRpcResponse<'fetchNavigationTreeById'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
15
+ params: MaybeRefOrGetter<RpcMethodParameters<'fetchNavigationTreeByName'>>;
16
+ options: UseRpcOptions<'fetchNavigationTreeById', DataT, PickKeys, DefaultT>;
17
+ /** @deprecated use the second argument of the composable to define the key */
18
+ key: string;
19
+ }>, key?: string): UseRpcReturn<'fetchNavigationTreeByName', DataT, PickKeys, DefaultT>;
@@ -1,12 +1,25 @@
1
1
  import { useRpc } from "../core/useRpc.js";
2
- export function useNavigationTree({
2
+ export function useNavigationTreeById({
3
3
  params,
4
4
  options,
5
5
  key: _key
6
6
  } = {}, key) {
7
7
  return useRpc(
8
8
  "fetchNavigationTreeById",
9
- _key ?? key ?? "useNavigationTree",
9
+ _key ?? key ?? "useNavigationTreeById",
10
+ params,
11
+ options
12
+ );
13
+ }
14
+ export const useNavigationTree = useNavigationTreeById;
15
+ export function useNavigationTreeByName({
16
+ params,
17
+ options,
18
+ key: _key
19
+ } = {}, key) {
20
+ return useRpc(
21
+ "fetchNavigationTreeByName",
22
+ _key ?? key ?? "useNavigationTreeByName",
10
23
  params,
11
24
  options
12
25
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.87.1",
4
+ "version": "7.88.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -65,7 +65,7 @@
65
65
  "@nuxt/kit": "^3.12.2",
66
66
  "@opentelemetry/api": "^1.9.0",
67
67
  "@scayle/h3-session": "^0.4.1",
68
- "@scayle/storefront-core": "7.65.10",
68
+ "@scayle/storefront-core": "7.66.0",
69
69
  "@scayle/unstorage-compression-driver": "^0.1.4",
70
70
  "@vueuse/core": "11.1.0",
71
71
  "consola": "^3.2.3",
@@ -89,7 +89,7 @@
89
89
  "@nuxt/test-utils": "3.14.4",
90
90
  "@scayle/eslint-config-storefront": "4.3.2",
91
91
  "@scayle/eslint-plugin-vue-composable": "0.2.1",
92
- "@types/node": "20.17.1",
92
+ "@types/node": "22.8.4",
93
93
  "dprint": "0.47.5",
94
94
  "eslint": "9.13.0",
95
95
  "eslint-formatter-gitlab": "5.1.0",
@@ -99,7 +99,7 @@
99
99
  "nuxi": "3.15.0",
100
100
  "nuxt": "3.13.2",
101
101
  "publint": "0.2.12",
102
- "vitest": "2.1.3",
102
+ "vitest": "2.1.4",
103
103
  "vue-tsc": "2.1.8"
104
104
  },
105
105
  "peerDependencies": {
@@ -115,6 +115,6 @@
115
115
  "@nuxt/schema": "3.13.2"
116
116
  },
117
117
  "volta": {
118
- "node": "20.18.0"
118
+ "node": "22.10.0"
119
119
  }
120
120
  }