@dylandepass/helix-product-pipeline 2.0.1 → 2.0.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 +7 -0
- package/package.json +1 -1
- package/src/steps/render-jsonld.js +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.0.2](https://github.com/adobe-rnd/helix-product-pipeline/compare/v2.0.1...v2.0.2) (2026-01-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* allow generated jsonld to be overridden ([47f0e92](https://github.com/adobe-rnd/helix-product-pipeline/commit/47f0e9230c6c2d47588ff4815addbecc8d3b4379))
|
|
7
|
+
|
|
1
8
|
## [2.0.1](https://github.com/adobe-rnd/helix-product-pipeline/compare/v2.0.0...v2.0.1) (2026-01-29)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -65,7 +65,14 @@ function renderOffer(state, variant, simple = false) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
function convertToJsonLD(state, product) {
|
|
68
|
+
export function convertToJsonLD(state, product) {
|
|
69
|
+
// If the product has a jsonld property, use it directly instead of generating
|
|
70
|
+
if (product.jsonld) {
|
|
71
|
+
return typeof product.jsonld === 'string'
|
|
72
|
+
? product.jsonld
|
|
73
|
+
: JSON.stringify(product.jsonld, null, 2);
|
|
74
|
+
}
|
|
75
|
+
|
|
69
76
|
const {
|
|
70
77
|
sku,
|
|
71
78
|
metaTitle,
|