@scayle/storefront-product-detail 1.1.3 → 1.2.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 +12 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/composables/useProductSeoData.js +8 -1
- package/dist/types.d.mts +2 -2
- package/package.json +19 -18
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -8
- package/dist/types.d.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scayle/storefront-product-detail
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update to `@nuxt/module-builder@1`. This version of Nuxt Module Builder is ESM-only, so CommonJS (`.cjs`) files will no longer be built or distributed with the package. However as of Nuxt 3, only esm is used so this should not have any impact as this module does not support Nuxt 2.
|
|
8
|
+
|
|
9
|
+
## 1.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Use absolute URL's inproduct breadcrumbs JSONLD returned by `useProductSeoData`
|
|
14
|
+
|
|
3
15
|
## 1.1.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/module.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-product-detail",
|
|
3
3
|
"configKey": "product-detail",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"compatibility": {
|
|
6
6
|
"bridge": false,
|
|
7
7
|
"nuxt": ">=3.13"
|
|
8
8
|
},
|
|
9
9
|
"builder": {
|
|
10
|
-
"@nuxt/module-builder": "0.
|
|
10
|
+
"@nuxt/module-builder": "1.0.1",
|
|
11
11
|
"unbuild": "2.0.0"
|
|
12
12
|
}
|
|
13
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.
|
|
4
|
+
const PACKAGE_VERSION = "1.2.0";
|
|
5
5
|
const module = defineNuxtModule({
|
|
6
6
|
meta: {
|
|
7
7
|
name: PACKAGE_NAME,
|
|
@@ -27,7 +27,14 @@ export function useProductSeoData(breadcrumbs, urlParams, productInfo) {
|
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
const productBreadcrumbJsonLd = computed(() => {
|
|
30
|
-
return generateCategoryBreadcrumbSchema(
|
|
30
|
+
return generateCategoryBreadcrumbSchema(
|
|
31
|
+
toValue(breadcrumbs).map(({ to, value }) => {
|
|
32
|
+
return {
|
|
33
|
+
value,
|
|
34
|
+
to: new URL(to, toValue(urlParams).baseUrl).href
|
|
35
|
+
};
|
|
36
|
+
})
|
|
37
|
+
);
|
|
31
38
|
});
|
|
32
39
|
return {
|
|
33
40
|
robots,
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NuxtModule } from '@nuxt/schema'
|
|
2
2
|
|
|
3
|
-
import type { default as Module } from './module.
|
|
3
|
+
import type { default as Module } from './module.mjs'
|
|
4
4
|
|
|
5
5
|
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
6
|
|
|
7
|
-
export { default } from './module.
|
|
7
|
+
export { default } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-product-detail",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Collection of essential composables and utilities to work with product detail",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,17 +11,15 @@
|
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types": "./dist/types.d.
|
|
15
|
-
"import": "./dist/module.mjs"
|
|
16
|
-
"require": "./dist/module.cjs"
|
|
14
|
+
"types": "./dist/types.d.mts",
|
|
15
|
+
"import": "./dist/module.mjs"
|
|
17
16
|
},
|
|
18
17
|
"./composables": {
|
|
19
18
|
"types": "./dist/runtime/composables/index.d.ts",
|
|
20
19
|
"import": "./dist/runtime/composables/index.js"
|
|
21
20
|
}
|
|
22
21
|
},
|
|
23
|
-
"main": "./dist/module.
|
|
24
|
-
"types": "./dist/types.d.ts",
|
|
22
|
+
"main": "./dist/module.mjs",
|
|
25
23
|
"files": [
|
|
26
24
|
"CHANGELOG.md",
|
|
27
25
|
"dist"
|
|
@@ -34,7 +32,8 @@
|
|
|
34
32
|
"dev": "nuxi dev playground",
|
|
35
33
|
"dev:build": "nuxi build playground",
|
|
36
34
|
"prep": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
37
|
-
"lint": "eslint .
|
|
35
|
+
"lint": "eslint .",
|
|
36
|
+
"lint:ci": "eslint . --format gitlab",
|
|
38
37
|
"lint:fix": "eslint . --fix",
|
|
39
38
|
"format": "dprint check",
|
|
40
39
|
"format:fix": "dprint fmt",
|
|
@@ -42,7 +41,8 @@
|
|
|
42
41
|
"test:watch": "vitest --passWithNoTests",
|
|
43
42
|
"test:ci": "vitest --run --passWithNoTests --coverage --reporter=default --reporter=junit --outputFile=./coverage/junit.xml",
|
|
44
43
|
"typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
45
|
-
"package:lint": "publint"
|
|
44
|
+
"package:lint": "publint",
|
|
45
|
+
"verify-packaging": "attw --pack . --profile esm-only"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@nuxt/kit": ">=3.13.0",
|
|
@@ -54,25 +54,26 @@
|
|
|
54
54
|
"vue": "^3.5.13"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
+
"@arethetypeswrong/cli": "0.17.4",
|
|
57
58
|
"@nuxt/kit": "3.15.4",
|
|
58
|
-
"@nuxt/module-builder": "0.
|
|
59
|
+
"@nuxt/module-builder": "1.0.1",
|
|
59
60
|
"@nuxt/schema": "3.15.4",
|
|
60
61
|
"@nuxt/test-utils": "3.17.2",
|
|
61
|
-
"@scayle/eslint-config-storefront": "4.
|
|
62
|
-
"@scayle/storefront-nuxt": "8.
|
|
63
|
-
"@types/node": "22.
|
|
62
|
+
"@scayle/eslint-config-storefront": "4.5.0",
|
|
63
|
+
"@scayle/storefront-nuxt": "8.24.0",
|
|
64
|
+
"@types/node": "22.14.1",
|
|
64
65
|
"@vue/test-utils": "2.4.6",
|
|
65
|
-
"@vueuse/core": "13.
|
|
66
|
-
"dprint": "0.49.
|
|
66
|
+
"@vueuse/core": "13.1.0",
|
|
67
|
+
"dprint": "0.49.1",
|
|
67
68
|
"eslint-formatter-gitlab": "5.1.0",
|
|
68
|
-
"eslint": "9.
|
|
69
|
-
"happy-dom": "17.4.
|
|
69
|
+
"eslint": "9.24.0",
|
|
70
|
+
"happy-dom": "17.4.4",
|
|
70
71
|
"nuxt": "3.15.4",
|
|
71
72
|
"publint": "0.2.12",
|
|
72
73
|
"schema-dts": "1.1.5",
|
|
73
|
-
"typescript": "5.8.
|
|
74
|
+
"typescript": "5.8.3",
|
|
74
75
|
"unbuild": "2.0.0",
|
|
75
|
-
"vitest": "
|
|
76
|
+
"vitest": "3.1.1",
|
|
76
77
|
"vue-router": "4.5.0",
|
|
77
78
|
"vue-tsc": "2.2.8",
|
|
78
79
|
"vue": "3.5.13"
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
package/dist/types.d.ts
DELETED