@scayle/storefront-nuxt 8.48.0 → 8.49.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 +56 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 8.49.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
**Dependencies**
|
|
8
|
+
|
|
9
|
+
- Updated dependency to @scayle/unstorage-compression-driver@1.2.2
|
|
10
|
+
|
|
11
|
+
**@scayle/storefront-core v8.49.0**
|
|
12
|
+
|
|
13
|
+
- Minor
|
|
14
|
+
|
|
15
|
+
- Exported the `sha256` utility function as part of the public API.
|
|
16
|
+
|
|
17
|
+
This function provides a convenient way to calculate SHA256 hashes of strings using the Web Crypto API, returning hexadecimal strings.
|
|
18
|
+
Developers can now use this utility directly instead of implementing their own hashing logic or importing external cryptographic libraries.
|
|
19
|
+
|
|
20
|
+
Example:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { sha256 } from '@scayle/storefront-core'
|
|
24
|
+
|
|
25
|
+
const hash = await sha256('hello')
|
|
26
|
+
console.log(hash) // '2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824'
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 8.48.1
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
**Dependencies**
|
|
34
|
+
|
|
35
|
+
- Updated dependency to @scayle/unstorage-compression-driver@1.2.2
|
|
36
|
+
|
|
37
|
+
**@scayle/storefront-core v8.48.1**
|
|
38
|
+
|
|
39
|
+
- Patch
|
|
40
|
+
|
|
41
|
+
- Export `SmartSortingKey` constant containing all predefined smart sorting keys for intelligent product sorting. Smart sorting keys provide advanced sorting algorithms that consider multiple factors like discounts, inventory levels, sales performance, and recency to optimize product listings.
|
|
42
|
+
|
|
43
|
+
Available keys:
|
|
44
|
+
|
|
45
|
+
- `SmartSortingKey.SALES_PUSH` - Promotes items with highest discounts and oldest inventory
|
|
46
|
+
- `SmartSortingKey.NEW_ARRIVALS` - Prioritizes recently added products with good availability
|
|
47
|
+
- `SmartSortingKey.BALANCED_OFFERINGS` - Balances recency, availability, discounts, and sales data
|
|
48
|
+
- `SmartSortingKey.INVENTORY_OPTIMIZATION` - Optimizes inventory turnover for high stock products
|
|
49
|
+
- `SmartSortingKey.LUXURY_PROMOTION` - Highlights high-value luxury items with discounts
|
|
50
|
+
- `SmartSortingKey.STOCK_COVERAGE` - Ensures broad variant availability across products
|
|
51
|
+
- `SmartSortingKey.TOPSELLER` - Prioritizes products with strong sales performance
|
|
52
|
+
- `SmartSortingKey.REVENUE_MAX` - Maximizes revenue by prioritizing high revenue products
|
|
53
|
+
- `SmartSortingKey.RECENTLY_POPULAR` - Favors products with high recent sales performance
|
|
54
|
+
|
|
55
|
+
These keys can be used with the `sortingKey` parameter in product queries and are intended to be used with descending sort order to return most relevant results first.
|
|
56
|
+
|
|
57
|
+
For further information on smart product sorting and how to use smart sorting keys, visit: https://scayle.dev/en/core-documentation/the-basics/products/product-sorting
|
|
58
|
+
|
|
3
59
|
## 8.48.0
|
|
4
60
|
|
|
5
61
|
### Minor Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
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.49.0",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"utility-types": "^3.11.0",
|
|
91
91
|
"vue-router": "^4.4.0",
|
|
92
92
|
"zod": "^4.0.0",
|
|
93
|
-
"@scayle/storefront-core": "8.
|
|
93
|
+
"@scayle/storefront-core": "8.49.0",
|
|
94
94
|
"@scayle/unstorage-compression-driver": "1.2.2"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
@@ -102,14 +102,14 @@
|
|
|
102
102
|
"@nuxt/module-builder": "1.0.2",
|
|
103
103
|
"@nuxt/schema": "3.20.0",
|
|
104
104
|
"@nuxt/test-utils": "3.20.1",
|
|
105
|
-
"@types/node": "22.
|
|
105
|
+
"@types/node": "22.19.0",
|
|
106
106
|
"@vitest/coverage-v8": "3.2.4",
|
|
107
107
|
"dprint": "0.50.2",
|
|
108
108
|
"eslint-formatter-gitlab": "6.0.1",
|
|
109
|
-
"eslint": "9.
|
|
109
|
+
"eslint": "9.39.1",
|
|
110
110
|
"fishery": "2.3.1",
|
|
111
111
|
"h3": "1.15.4",
|
|
112
|
-
"nitro-test-utils": "0.
|
|
112
|
+
"nitro-test-utils": "0.10.1",
|
|
113
113
|
"nitropack": "2.12.8",
|
|
114
114
|
"node-mocks-http": "1.17.2",
|
|
115
115
|
"nuxt": "3.20.0",
|
|
@@ -117,15 +117,15 @@
|
|
|
117
117
|
"typescript": "5.9.3",
|
|
118
118
|
"unbuild": "3.6.1",
|
|
119
119
|
"vitest": "3.2.4",
|
|
120
|
-
"vue-tsc": "3.1.
|
|
120
|
+
"vue-tsc": "3.1.3",
|
|
121
121
|
"happy-dom": "20.0.10",
|
|
122
|
-
"@scayle/eslint-config-storefront": "4.7.
|
|
122
|
+
"@scayle/eslint-config-storefront": "4.7.12",
|
|
123
123
|
"@scayle/eslint-plugin-vue-composable": "0.2.2",
|
|
124
124
|
"@scayle/vitest-config-storefront": "1.0.0",
|
|
125
125
|
"@scayle/unstorage-scayle-kv-driver": "2.0.7"
|
|
126
126
|
},
|
|
127
127
|
"volta": {
|
|
128
|
-
"node": "22.21.
|
|
128
|
+
"node": "22.21.1"
|
|
129
129
|
},
|
|
130
130
|
"scripts": {
|
|
131
131
|
"build": "nuxt-module-build build",
|