@scayle/storefront-product-listing 1.3.1 → 1.4.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/index.d.mts +2 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/composables/useProductListingSeoData.js +8 -1
- package/dist/types.d.mts +2 -2
- package/package.json +19 -18
- package/dist/index.d.ts +0 -11
- 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-listing
|
|
2
2
|
|
|
3
|
+
## 1.4.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.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Use absolute URL's in category breadcrumbs JSONLD returned by `useProductListingSeoData`
|
|
14
|
+
|
|
3
15
|
## 1.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -8,4 +8,5 @@ declare const breadcrumbsFactory: Factory<BreadcrumbItem[], any, BreadcrumbItem[
|
|
|
8
8
|
|
|
9
9
|
declare const filtersFactory: Factory<FilterItemWithValues[], any, FilterItemWithValues[]>;
|
|
10
10
|
|
|
11
|
-
export {
|
|
11
|
+
export { breadcrumbsFactory, filtersFactory };
|
|
12
|
+
export type { RangeTuple };
|
package/dist/module.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-product-listing",
|
|
3
3
|
"configKey": "product-listing",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.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-listing";
|
|
4
|
-
const PACKAGE_VERSION = "1.
|
|
4
|
+
const PACKAGE_VERSION = "1.4.0";
|
|
5
5
|
const module = defineNuxtModule({
|
|
6
6
|
meta: {
|
|
7
7
|
name: PACKAGE_NAME,
|
|
@@ -22,7 +22,14 @@ export function useProductListingSeoData(breadcrumbs, route, { baseUrl, fullPath
|
|
|
22
22
|
return toValue(breadcrumbs).map(({ value }) => value).join(" - ");
|
|
23
23
|
});
|
|
24
24
|
const categoryBreadcrumbSchema = computed(
|
|
25
|
-
() => generateCategoryBreadcrumbSchema(
|
|
25
|
+
() => generateCategoryBreadcrumbSchema(
|
|
26
|
+
toValue(breadcrumbs).map(({ to, value }) => {
|
|
27
|
+
return {
|
|
28
|
+
value,
|
|
29
|
+
to: new URL(to, baseUrl).href
|
|
30
|
+
};
|
|
31
|
+
})
|
|
32
|
+
)
|
|
26
33
|
);
|
|
27
34
|
return {
|
|
28
35
|
title,
|
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-listing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Collection of essential composables and utilities to work with product listing",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,12 +11,11 @@
|
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types": "./dist/index.d.
|
|
14
|
+
"types": "./dist/index.d.mts",
|
|
15
15
|
"default": "./dist/index.mjs"
|
|
16
16
|
},
|
|
17
17
|
"./module": {
|
|
18
|
-
"types": "./dist/module.d.
|
|
19
|
-
"require": "./dist/module.cjs",
|
|
18
|
+
"types": "./dist/module.d.mts",
|
|
20
19
|
"import": "./dist/module.mjs"
|
|
21
20
|
},
|
|
22
21
|
"./composables": {
|
|
@@ -25,7 +24,6 @@
|
|
|
25
24
|
}
|
|
26
25
|
},
|
|
27
26
|
"main": "./dist/index.mjs",
|
|
28
|
-
"types": "./dist/index.d.ts",
|
|
29
27
|
"files": [
|
|
30
28
|
"CHANGELOG.md",
|
|
31
29
|
"dist"
|
|
@@ -38,7 +36,8 @@
|
|
|
38
36
|
"dev": "nuxi dev playground",
|
|
39
37
|
"dev:build": "nuxi build playground",
|
|
40
38
|
"prep": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
41
|
-
"lint": "eslint .
|
|
39
|
+
"lint": "eslint .",
|
|
40
|
+
"lint:ci": "eslint . --format gitlab",
|
|
42
41
|
"lint:fix": "eslint . --fix",
|
|
43
42
|
"format": "dprint check",
|
|
44
43
|
"format:fix": "dprint fmt",
|
|
@@ -46,7 +45,8 @@
|
|
|
46
45
|
"test:watch": "vitest --passWithNoTests",
|
|
47
46
|
"test:ci": "vitest --run --passWithNoTests --coverage --reporter=default --reporter=junit --outputFile=./coverage/junit.xml",
|
|
48
47
|
"typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
49
|
-
"package:lint": "publint"
|
|
48
|
+
"package:lint": "publint",
|
|
49
|
+
"verify-packaging": "attw --pack . --profile esm-only"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@nuxt/kit": ">=3.13.0",
|
|
@@ -59,27 +59,28 @@
|
|
|
59
59
|
"vue": "^3.5.13"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
+
"@arethetypeswrong/cli": "0.17.4",
|
|
62
63
|
"@nuxt/kit": "3.15.4",
|
|
63
|
-
"@nuxt/module-builder": "0.
|
|
64
|
+
"@nuxt/module-builder": "1.0.1",
|
|
64
65
|
"@nuxt/schema": "3.15.4",
|
|
65
66
|
"@nuxt/test-utils": "3.17.2",
|
|
66
|
-
"@scayle/eslint-config-storefront": "4.
|
|
67
|
-
"@scayle/storefront-api": "18.
|
|
68
|
-
"@scayle/storefront-nuxt": "8.
|
|
69
|
-
"@types/node": "22.
|
|
67
|
+
"@scayle/eslint-config-storefront": "4.5.0",
|
|
68
|
+
"@scayle/storefront-api": "18.3.0",
|
|
69
|
+
"@scayle/storefront-nuxt": "8.24.0",
|
|
70
|
+
"@types/node": "22.14.1",
|
|
70
71
|
"@vue/test-utils": "2.4.6",
|
|
71
|
-
"@vueuse/core": "13.
|
|
72
|
-
"dprint": "0.49.
|
|
72
|
+
"@vueuse/core": "13.1.0",
|
|
73
|
+
"dprint": "0.49.1",
|
|
73
74
|
"eslint-formatter-gitlab": "5.1.0",
|
|
74
|
-
"eslint": "9.
|
|
75
|
+
"eslint": "9.24.0",
|
|
75
76
|
"fishery": "2.2.3",
|
|
76
|
-
"happy-dom": "17.4.
|
|
77
|
+
"happy-dom": "17.4.4",
|
|
77
78
|
"nuxt": "3.15.4",
|
|
78
79
|
"publint": "0.2.12",
|
|
79
80
|
"schema-dts": "1.1.5",
|
|
80
|
-
"typescript": "5.8.
|
|
81
|
+
"typescript": "5.8.3",
|
|
81
82
|
"unbuild": "2.0.0",
|
|
82
|
-
"vitest": "
|
|
83
|
+
"vitest": "3.1.1",
|
|
83
84
|
"vue-router": "4.5.0",
|
|
84
85
|
"vue-tsc": "2.2.8",
|
|
85
86
|
"vue": "3.5.13"
|
package/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BreadcrumbItem } from '@scayle/storefront-nuxt';
|
|
2
|
-
import { Factory } from 'fishery';
|
|
3
|
-
import { FilterItemWithValues } from '@scayle/storefront-api';
|
|
4
|
-
|
|
5
|
-
type RangeTuple = [start: number, end: number];
|
|
6
|
-
|
|
7
|
-
declare const breadcrumbsFactory: Factory<BreadcrumbItem[], any, BreadcrumbItem[]>;
|
|
8
|
-
|
|
9
|
-
declare const filtersFactory: Factory<FilterItemWithValues[], any, FilterItemWithValues[]>;
|
|
10
|
-
|
|
11
|
-
export { type RangeTuple, breadcrumbsFactory, filtersFactory };
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
package/dist/types.d.ts
DELETED