@scayle/storefront-product-listing 2.3.0 → 2.3.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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @scayle/storefront-product-listing
|
|
2
2
|
|
|
3
|
+
## 2.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- This is an internal change only. The packages now use the PNPM catalog feature to ensure dependencies use the identical version across packages.
|
|
8
|
+
|
|
9
|
+
## 2.3.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Reverted `key` generation in `useRpc`-based composables from reactive getters back to string template literals.
|
|
14
|
+
|
|
15
|
+
This addresses a [Nuxt regression](https://github.com/nuxt/nuxt/issues/33777) where reactive keys caused `useAsyncData` to return stale data after client-side navigation. Affected composables include `useProductsForListing`, `useFiltersForListing`, and `usePromotionGifts`.
|
|
16
|
+
|
|
3
17
|
## 2.3.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addImportsDir } from '@nuxt/kit';
|
|
2
2
|
|
|
3
3
|
const PACKAGE_NAME = "@scayle/storefront-product-listing";
|
|
4
|
-
const PACKAGE_VERSION = "2.3.
|
|
4
|
+
const PACKAGE_VERSION = "2.3.2";
|
|
5
5
|
const module$1 = defineNuxtModule({
|
|
6
6
|
meta: {
|
|
7
7
|
name: PACKAGE_NAME,
|
|
@@ -14,7 +14,7 @@ export function useFiltersForListing({
|
|
|
14
14
|
params,
|
|
15
15
|
options: fetchingOptions
|
|
16
16
|
},
|
|
17
|
-
fetchingKey ?? params?.value.categoryId ?
|
|
17
|
+
fetchingKey ?? params?.value.categoryId ? `${params?.value.categoryId}-filters` : "search-filters"
|
|
18
18
|
);
|
|
19
19
|
const {
|
|
20
20
|
data,
|
|
@@ -21,7 +21,7 @@ export function useProductsForListing({
|
|
|
21
21
|
...params.value
|
|
22
22
|
}),
|
|
23
23
|
options: fetchingOptions
|
|
24
|
-
}, fetchingKey ??
|
|
24
|
+
}, fetchingKey ?? `${params?.value?.categoryId ?? 0}-products`);
|
|
25
25
|
const products = computed(() => {
|
|
26
26
|
return productsData.data.value?.products ?? [];
|
|
27
27
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-product-listing",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Collection of essential composables and utilities to work with product listing",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@nuxt/kit": ">=3.13.0",
|
|
36
36
|
"@scayle/storefront-nuxt": "^8.0.0",
|
|
37
|
-
"@vueuse/core": "^12.8.2 || ^13.0.0",
|
|
37
|
+
"@vueuse/core": "^12.8.2 || ^13.0.0 || ^14.0.0",
|
|
38
38
|
"fishery": "^2.2.3",
|
|
39
39
|
"vue-router": "^4.5.0",
|
|
40
40
|
"vue": "^3.5.13"
|
|
@@ -44,27 +44,27 @@
|
|
|
44
44
|
"@nuxt/kit": "3.20.0",
|
|
45
45
|
"@nuxt/module-builder": "1.0.2",
|
|
46
46
|
"@nuxt/schema": "3.20.0",
|
|
47
|
-
"@nuxt/test-utils": "3.
|
|
48
|
-
"@types/node": "22.19.
|
|
49
|
-
"@vitest/coverage-v8": "4.0.
|
|
50
|
-
"@vueuse/core": "
|
|
47
|
+
"@nuxt/test-utils": "3.21.0",
|
|
48
|
+
"@types/node": "22.19.3",
|
|
49
|
+
"@vitest/coverage-v8": "4.0.16",
|
|
50
|
+
"@vueuse/core": "14.1.0",
|
|
51
51
|
"dprint": "0.50.2",
|
|
52
|
-
"eslint-formatter-gitlab": "
|
|
53
|
-
"eslint": "9.39.
|
|
54
|
-
"fishery": "2.
|
|
55
|
-
"happy-dom": "20.0.
|
|
52
|
+
"eslint-formatter-gitlab": "7.0.1",
|
|
53
|
+
"eslint": "9.39.2",
|
|
54
|
+
"fishery": "2.4.0",
|
|
55
|
+
"happy-dom": "20.0.11",
|
|
56
56
|
"nuxt": "3.20.0",
|
|
57
|
-
"publint": "0.3.
|
|
57
|
+
"publint": "0.3.16",
|
|
58
58
|
"schema-dts": "1.1.5",
|
|
59
59
|
"typescript": "5.9.3",
|
|
60
60
|
"unbuild": "3.6.1",
|
|
61
|
-
"vitest": "4.0.
|
|
62
|
-
"vue-router": "4.6.
|
|
63
|
-
"vue-tsc": "3.1.
|
|
64
|
-
"vue": "3.5.
|
|
65
|
-
"@scayle/eslint-config-storefront": "4.7.
|
|
66
|
-
"@scayle/storefront
|
|
67
|
-
"@scayle/
|
|
61
|
+
"vitest": "4.0.16",
|
|
62
|
+
"vue-router": "4.6.4",
|
|
63
|
+
"vue-tsc": "3.1.8",
|
|
64
|
+
"vue": "3.5.26",
|
|
65
|
+
"@scayle/eslint-config-storefront": "4.7.18",
|
|
66
|
+
"@scayle/vitest-config-storefront": "1.0.0",
|
|
67
|
+
"@scayle/storefront-nuxt": "8.57.2"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "nuxt-module-build build",
|