@scayle/storefront-product-detail 1.9.2 → 1.9.3

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-detail
2
2
 
3
+ ## 1.9.3
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
  ## 1.9.2
4
10
 
5
11
  ### Patch Changes
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-product-detail",
3
3
  "configKey": "product-detail",
4
- "version": "1.9.2",
4
+ "version": "1.9.3",
5
5
  "compatibility": {
6
6
  "bridge": false,
7
7
  "nuxt": ">=3.13"
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-detail";
4
- const PACKAGE_VERSION = "1.9.2";
4
+ const PACKAGE_VERSION = "1.9.3";
5
5
  const module$1 = defineNuxtModule({
6
6
  meta: {
7
7
  name: PACKAGE_NAME,
@@ -1,7 +1,10 @@
1
1
  import type { ComputedRef, MaybeRefOrGetter } from 'vue';
2
2
  import type { BreadcrumbItem } from '@scayle/storefront-nuxt';
3
3
  import type { WithContext, BreadcrumbList, ProductGroup, Product } from 'schema-dts';
4
- type CanonicalLink = Record<'rel' | 'key' | 'href', string>;
4
+ interface CanonicalLink {
5
+ rel: 'canonical';
6
+ href: string;
7
+ }
5
8
  type UrlParams = Record<'baseUrl' | 'fullPath', string>;
6
9
  interface ProductInfo {
7
10
  /** The id of the product. */
@@ -10,7 +10,7 @@ export function useProductSeoData(breadcrumbs, urlParams, productInfo) {
10
10
  return sanitizeCanonicalURL(url, []);
11
11
  });
12
12
  const canonicalLink = computed(() => {
13
- return [{ rel: "canonical", key: "canonical", href: canonicalUrl.value }];
13
+ return [{ rel: "canonical", href: canonicalUrl.value }];
14
14
  });
15
15
  const robots = "index, follow";
16
16
  const productJsonLd = computed(() => {
@@ -58,7 +58,7 @@ export declare const generateProductGroupSchema: ({ productId, name, description
58
58
  * @returns An array of hreflang links.
59
59
  */
60
60
  export declare const generateProductHreflangLinks: (_productsForAllShops: MaybeRefOrGetter<ShopProductHref[]>, defaultLocale: string) => {
61
- rel: string;
61
+ rel: "alternate";
62
62
  hreflang: string;
63
63
  href: string;
64
64
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-product-detail",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "Collection of essential composables and utilities to work with product detail",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  "@nuxt/kit": "^3.21.7",
44
44
  "@nuxt/module-builder": "1.0.2",
45
45
  "@nuxt/schema": "^3.21.7",
46
- "@nuxt/test-utils": "4.0.0",
46
+ "@nuxt/test-utils": "4.0.3",
47
47
  "@scayle/eslint-config-storefront": "^4.8.0",
48
48
  "@types/node": "24.12.2",
49
49
  "@vitest/coverage-v8": "4.1.9",
@@ -60,7 +60,7 @@
60
60
  "vue-router": "4.6.4",
61
61
  "vue-tsc": "3.3.7",
62
62
  "vue": "3.5.39",
63
- "@scayle/storefront-nuxt": "8.62.3",
63
+ "@scayle/storefront-nuxt": "8.62.4",
64
64
  "@scayle/vitest-config-storefront": "1.0.0"
65
65
  },
66
66
  "scripts": {