@scayle/storefront-nuxt 8.59.1 → 8.59.2
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 +48 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 8.59.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependency `@vercel/nft@1.2.0` to `@vercel/nft@1.3.0`
|
|
8
|
+
|
|
9
|
+
**Dependencies**
|
|
10
|
+
|
|
11
|
+
**@scayle/storefront-core v8.59.2**
|
|
12
|
+
|
|
13
|
+
- Patch
|
|
14
|
+
|
|
15
|
+
- Deprecated the `slugify` and `getProductPath` functions in `productHelpers.ts` due to compatibility issues with Nuxt 4.
|
|
16
|
+
|
|
17
|
+
To maintain compatibility with Nuxt 4, these functions have been deprecated. Developers should migrate to using `useRouteHelpers().slugify()` instead. Additionally, the `slugify` package must be added as a direct dependency in your Storefront Application.
|
|
18
|
+
|
|
19
|
+
**Migration:**
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import baseSlugify from 'slugify'
|
|
23
|
+
|
|
24
|
+
const slugify = (url: string | undefined): string => {
|
|
25
|
+
return baseSlugify(url ?? '', {
|
|
26
|
+
lower: true,
|
|
27
|
+
remove: /[*+~.()'"!:@/#?]/g,
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const localePath = useLocalePath()
|
|
32
|
+
|
|
33
|
+
const getProductDetailRoute = (
|
|
34
|
+
id: number,
|
|
35
|
+
name?: string,
|
|
36
|
+
locale?: Locale,
|
|
37
|
+
): string => {
|
|
38
|
+
return localePath(
|
|
39
|
+
{
|
|
40
|
+
name: 'p-productName-id',
|
|
41
|
+
params: {
|
|
42
|
+
productName: slugify(name),
|
|
43
|
+
id: `${id}`,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
locale,
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
3
51
|
## 8.59.1
|
|
4
52
|
|
|
5
53
|
### Patch 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.59.
|
|
4
|
+
"version": "8.59.2",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@opentelemetry/api": "^1.9.0",
|
|
76
|
-
"@vercel/nft": "1.
|
|
76
|
+
"@vercel/nft": "1.3.0",
|
|
77
77
|
"@vueuse/core": "14.1.0",
|
|
78
78
|
"consola": "^3.4.2",
|
|
79
79
|
"core-js": "^3.37.1",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"zod": "^4.0.0",
|
|
92
92
|
"@scayle/h3-session": "0.6.3",
|
|
93
93
|
"@scayle/unstorage-compression-driver": "1.2.5",
|
|
94
|
-
"@scayle/storefront-core": "8.59.
|
|
94
|
+
"@scayle/storefront-core": "8.59.2"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@arethetypeswrong/cli": "0.18.2",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"nitropack": "2.13.1",
|
|
113
113
|
"node-mocks-http": "1.17.2",
|
|
114
114
|
"nuxt": "3.20.2",
|
|
115
|
-
"publint": "0.3.
|
|
115
|
+
"publint": "0.3.17",
|
|
116
116
|
"typescript": "5.9.3",
|
|
117
117
|
"unbuild": "3.6.1",
|
|
118
118
|
"vitest": "4.0.17",
|