@scayle/storefront-product-listing 2.5.1 → 2.5.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,11 @@
|
|
|
1
1
|
# @scayle/storefront-product-listing
|
|
2
2
|
|
|
3
|
+
## 2.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Narrows the `rel` field on generated hreflang and canonical `<link>` objects to its literal value instead of `string`, and removes the non-standard `key` property from canonical link objects. Fixes type errors surfaced by a stricter `@unhead/vue` `Link` union type. No runtime behavior change.
|
|
8
|
+
|
|
3
9
|
## 2.5.1
|
|
4
10
|
|
|
5
11
|
### Patch 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.5.
|
|
4
|
+
const PACKAGE_VERSION = "2.5.2";
|
|
5
5
|
const module$1 = defineNuxtModule({
|
|
6
6
|
meta: {
|
|
7
7
|
name: PACKAGE_NAME,
|
|
@@ -2,7 +2,10 @@ import type { ComputedRef, MaybeRefOrGetter } from 'vue';
|
|
|
2
2
|
import type { BreadcrumbItem } from '@scayle/storefront-nuxt';
|
|
3
3
|
import type { BreadcrumbList, WithContext } from 'schema-dts';
|
|
4
4
|
import type { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
|
|
5
|
-
|
|
5
|
+
interface CanonicalLink {
|
|
6
|
+
rel: 'canonical';
|
|
7
|
+
href: string;
|
|
8
|
+
}
|
|
6
9
|
type UrlParams = Record<'baseUrl' | 'fullPath', string>;
|
|
7
10
|
export interface UseProductListingSeoDataReturn {
|
|
8
11
|
/** A computed string that is constructed from breadcrumb values. */
|
|
@@ -12,7 +12,7 @@ type ShopCategoryHref = Pick<ShopConfig, 'locale' | 'path'> & {
|
|
|
12
12
|
* @returns An array of hreflang links.
|
|
13
13
|
*/
|
|
14
14
|
export declare const generateProductListingHreflangLinks: (_categoriesForAllShops: MaybeRefOrGetter<ShopCategoryHref[]>, defaultLocale: string) => {
|
|
15
|
-
rel:
|
|
15
|
+
rel: "alternate";
|
|
16
16
|
hreflang: string;
|
|
17
17
|
href: string;
|
|
18
18
|
}[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-product-listing",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.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",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"@nuxt/kit": "^3.21.7",
|
|
48
48
|
"@nuxt/module-builder": "1.0.2",
|
|
49
49
|
"@nuxt/schema": "^3.21.7",
|
|
50
|
-
"@nuxt/test-utils": "4.0.
|
|
50
|
+
"@nuxt/test-utils": "4.0.3",
|
|
51
51
|
"@scayle/eslint-config-storefront": "^4.8.0",
|
|
52
52
|
"@types/node": "24.12.2",
|
|
53
53
|
"@vitest/coverage-v8": "4.1.9",
|
|
54
54
|
"@vueuse/core": "14.3.0",
|
|
55
|
-
"eslint-formatter-gitlab": "7.
|
|
56
|
-
"eslint": "10.
|
|
55
|
+
"eslint-formatter-gitlab": "7.2.0",
|
|
56
|
+
"eslint": "10.7.0",
|
|
57
57
|
"fishery": "2.4.0",
|
|
58
58
|
"h3": "1.15.11",
|
|
59
59
|
"happy-dom": "20.10.6",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"schema-dts": "1.1.5",
|
|
63
63
|
"typescript": "6.0.3",
|
|
64
64
|
"unbuild": "3.6.1",
|
|
65
|
-
"vitest": "4.1.
|
|
65
|
+
"vitest": "4.1.10",
|
|
66
66
|
"vue-router": "4.6.4",
|
|
67
|
-
"vue-tsc": "3.3.
|
|
68
|
-
"vue": "3.5.
|
|
69
|
-
"@scayle/storefront-nuxt": "8.62.
|
|
67
|
+
"vue-tsc": "3.3.7",
|
|
68
|
+
"vue": "3.5.39",
|
|
69
|
+
"@scayle/storefront-nuxt": "8.62.4",
|
|
70
70
|
"@scayle/vitest-config-storefront": "1.0.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|