efficient-storefront-blocks 0.118.2 → 0.118.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 +19 -0
- package/dist/index.js +27 -27
- package/dist/render/components/LinkedProductHero.d.ts +4 -10
- package/dist/render/components/LinkedProductHero.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/linked-hero-fetch.d.ts +8 -0
- package/dist/render/lib/document/linked-hero-fetch.js +1 -0
- package/dist/render/lib/document/linked-hero-hydrate.d.ts +25 -0
- package/dist/render/lib/document/linked-hero-hydrate.js +1 -0
- package/dist/render/lib/wheels/plp-hydrate.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.118.3 — 2026-11-18 — A linked Product Hero is filled in while the page is built
|
|
4
|
+
|
|
5
|
+
**For hosts:** after the storefront re-vendors `src/` with
|
|
6
|
+
`node scripts/sync-storefront-blocks.mjs`, every published-page route that
|
|
7
|
+
calls `hydrateWheelsListing` must, when `pageHasLinkedHero(data)`, call
|
|
8
|
+
`fetchLinkedHeroRecords(data, reads)` (`@/lib/document/linked-hero-fetch`),
|
|
9
|
+
`reads` being its request-memoised `getWheel`/`getTyre` from
|
|
10
|
+
`lib/catalog/server-reads` (so the product is read once per render), and then
|
|
11
|
+
`hydrateLinkedHeroes(data, records)` (`@/lib/document/linked-hero-hydrate`) on
|
|
12
|
+
its per-request copy before rendering. Without that step a linked hero
|
|
13
|
+
behaves as before.
|
|
14
|
+
|
|
15
|
+
- **A Product Hero linked to a product shows it in the server HTML**
|
|
16
|
+
(SG#03007): no "Loading product…" box, and search engines see the product.
|
|
17
|
+
The record is stamped on the hero as `linkedRecord` (never stored: the
|
|
18
|
+
editor's strippers remove it), and a stamped hero does not read the product
|
|
19
|
+
again in the browser, so its price is as fresh as the page. A product that
|
|
20
|
+
fails to load is left unstamped and falls back to the browser read.
|
|
21
|
+
|
|
3
22
|
## 0.118.2 — 2026-11-18 — A reloaded checkout says when it cannot check the prices, with Try again
|
|
4
23
|
|
|
5
24
|
**For hosts:** no peer change. The storefront re-vendors `src/` with
|