@scayle/storefront-nuxt 8.28.7 → 8.29.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,41 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.29.0
4
+
5
+ ### Patch Changes
6
+
7
+ **Dependencies**
8
+
9
+ **@scayle/storefront-core v8.29.0**
10
+
11
+ - Minor
12
+
13
+ - Added an `includeProductSorting` boolean parameter to all category RPC method endpoints (`getRootCategories`, `getCategoryByPath`, `getCategoriesByPath`, `getCategoryById`, `getCategoryTree`).
14
+ This flag allows consumers to retrieve product sorting data, including the `smartSortingKey` and `customSortingKey` properties.
15
+ Developers can leverage this data to seamlessly apply smart sorting keys on the product listing page by passing those parameters when fetching products.
16
+ - Added an optional `hideEmptyCategories` parameter to `getCategoryTree`. When enabled, the product count for each category is retrieved, and categories (including their children) without any products are removed. Enabling this option may increase response times, especially for large category trees.
17
+
18
+ ```ts
19
+ import { rpcMethods } from '@scayle/storefront-core'
20
+
21
+ rpcMethods.getCategoryTree({ hideEmptyCategories: true }, rpcContext)
22
+ ```
23
+
24
+ or
25
+
26
+ ```ts
27
+ import { useCategoryTree } from '#storefront/composables'
28
+
29
+ const { data: rootCategories, status } = useCategoryTree(
30
+ {
31
+ params: {
32
+ hideEmptyCategories: true,
33
+ },
34
+ },
35
+ 'category-navigation-tree',
36
+ )
37
+ ```
38
+
3
39
  ## 8.28.7
4
40
 
5
41
  ### Patch Changes
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.28.7",
3
+ "version": "8.29.0",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -54,7 +54,7 @@ export default {
54
54
  }`;
55
55
  }
56
56
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
57
- const PACKAGE_VERSION = "8.28.7";
57
+ const PACKAGE_VERSION = "8.29.0";
58
58
  const logger = createConsola({
59
59
  fancy: true,
60
60
  formatOptions: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.28.7",
4
+ "version": "8.29.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -81,7 +81,7 @@
81
81
  "dependencies": {
82
82
  "@opentelemetry/api": "^1.9.0",
83
83
  "@scayle/h3-session": "0.6.1",
84
- "@scayle/storefront-core": "8.28.7",
84
+ "@scayle/storefront-core": "8.29.0",
85
85
  "@scayle/unstorage-compression-driver": "^1.0.0",
86
86
  "@vercel/nft": "0.29.4",
87
87
  "@vueuse/core": "13.3.0",
@@ -111,11 +111,11 @@
111
111
  "@scayle/eslint-config-storefront": "4.5.5",
112
112
  "@scayle/eslint-plugin-vue-composable": "0.2.1",
113
113
  "@scayle/unstorage-scayle-kv-driver": "1.0.1",
114
- "@types/node": "22.15.31",
114
+ "@types/node": "22.15.32",
115
115
  "@vitest/coverage-v8": "3.2.3",
116
116
  "dprint": "0.50.0",
117
117
  "eslint-formatter-gitlab": "6.0.1",
118
- "eslint": "9.28.0",
118
+ "eslint": "9.29.0",
119
119
  "fishery": "2.3.1",
120
120
  "h3": "1.15.3",
121
121
  "nitro-test-utils": "0.9.2",