@shoppexio/storefront 1.0.97 → 1.0.99

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.99
4
+
5
+ - Variants carry `visibility` (`public`, `on_hold` or `private`) (#684). `is_private` stays for this release, true when `visibility` is `private`, and is removed in a later one: read `visibility`. A private variant (`visibility: "private"`) is listed only on `getProduct(idOrSlug, { variant })` naming it. An `on_hold` option is listed on the product page but cannot be bought: show it disabled as unavailable (not sold out) and never open the buy box on it. The server refuses it in carts and checkout with `errors.checkout.variant_on_hold`.
6
+
7
+ ## 1.0.98
8
+
9
+ - `Product.payment_methods` and `CartQuote.payment_methods` name the methods a product's options, or a cart's lines, can be paid with, in `shop.payment_methods` shape; `shop.payment_methods` narrows to what the shop's purchasable listed products allow. Both product-level fields are optional: only the shop catalog payload and the cart quote carry them (PR #3784).
10
+
3
11
  ## 1.0.97
4
12
 
5
13
  - `Shop.stock_display` (`'low_stock' | 'exact'`): the merchant's Stock Display setting (Settings › Storefront › Catalog). `'exact'` asks for the unit count at every stock level, `'low_stock'` only while stock runs low. `hide_stock_counter` (shop or product) still hides every count. Optional: the field is absent until the API that sends it is deployed, and on partial shop records.
package/dist/index.cjs CHANGED
@@ -1372,6 +1372,7 @@ function priceVariantToProductVariant(variant) {
1372
1372
  cloudflareImageId: variant.cloudflareImageId,
1373
1373
  image_url: variant.image_url,
1374
1374
  imageUrl: variant.imageUrl,
1375
+ visibility: variant.visibility,
1375
1376
  is_private: variant.is_private
1376
1377
  };
1377
1378
  }