@graphcommerce/magento-category 4.3.0 → 4.3.1
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,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1588](https://github.com/graphcommerce-org/graphcommerce/pull/1588) [`42030e04b`](https://github.com/graphcommerce-org/graphcommerce/commit/42030e04b2ebe004379c6f052e10407c2f5df18f) Thanks [@paales](https://github.com/paales)! - Make sure the canonical of a page doesn’t contain a double forward slash
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`b6d3a3c13`](https://github.com/graphcommerce-org/graphcommerce/commit/b6d3a3c13ea63ef0f691f497507f07c0e094de5b)]:
|
|
10
|
+
- @graphcommerce/next-ui@4.19.0
|
|
11
|
+
- @graphcommerce/framer-scroller@2.1.30
|
|
12
|
+
- @graphcommerce/magento-product@4.4.23
|
|
13
|
+
- @graphcommerce/magento-store@4.2.25
|
|
14
|
+
|
|
3
15
|
## 4.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -12,13 +12,15 @@ export type CategoryMetaProps = CategoryMetaFragment &
|
|
|
12
12
|
|
|
13
13
|
export function CategoryMeta(props: CategoryMetaProps) {
|
|
14
14
|
const { meta_title, meta_description, name, params, current_page } = props
|
|
15
|
-
|
|
15
|
+
let {
|
|
16
16
|
title = meta_title ?? name ?? '',
|
|
17
17
|
metaDescription = meta_description ?? undefined,
|
|
18
18
|
metaRobots,
|
|
19
|
-
canonical
|
|
19
|
+
canonical,
|
|
20
20
|
} = props
|
|
21
21
|
|
|
22
|
+
if (params?.url && !canonical) canonical = `/${params.url}`
|
|
23
|
+
|
|
22
24
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
23
25
|
const anyFilterActive = Object.keys(params?.filters ?? {}).length > 0
|
|
24
26
|
const currentPage = params?.currentPage ?? 1
|
|
@@ -42,7 +44,7 @@ export function CategoryMeta(props: CategoryMetaProps) {
|
|
|
42
44
|
title={titleTrans}
|
|
43
45
|
metaDescription={metaDescriptionTrans}
|
|
44
46
|
metaRobots={anyFilterActive ? ['noindex'] : metaRobots}
|
|
45
|
-
canonical={isPaginated ?
|
|
47
|
+
canonical={isPaginated ? `${canonical}/q/page/${currentPage}` : canonical}
|
|
46
48
|
/>
|
|
47
49
|
)
|
|
48
50
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-category",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.3.
|
|
5
|
+
"version": "4.3.1",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"type-fest": "^2.12.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphcommerce/framer-scroller": "2.1.
|
|
22
|
+
"@graphcommerce/framer-scroller": "2.1.30",
|
|
23
23
|
"@graphcommerce/graphql": "3.4.5",
|
|
24
24
|
"@graphcommerce/image": "3.1.7",
|
|
25
|
-
"@graphcommerce/magento-product": "4.4.
|
|
26
|
-
"@graphcommerce/magento-store": "4.2.
|
|
27
|
-
"@graphcommerce/next-ui": "4.
|
|
25
|
+
"@graphcommerce/magento-product": "4.4.23",
|
|
26
|
+
"@graphcommerce/magento-store": "4.2.25",
|
|
27
|
+
"@graphcommerce/next-ui": "4.19.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@lingui/react": "^3.13.2",
|