@shoppexio/storefront 1.0.99 → 1.0.101

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.101
4
+
5
+ - Supplier sourcing is retired (PR #3825): `Product.supplier_backed` and `ProductVariant.supplier_backed` are gone, and `orderable` no longer turns an empty local stock into unlimited stock. Stock helpers read local units only; `orderable` stays the buy/sold-out gate.
6
+
7
+ ## 1.0.100
8
+
9
+ - `shoppex.client()` (the typed API client) is keyed on the active config: after `shoppex.init()` with a different `apiBaseUrl`, the next `shoppex.client().GET(...)` goes to the new host instead of the first one (#3863).
10
+
3
11
  ## 1.0.99
4
12
 
5
13
  - 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`.
package/dist/customer.cjs CHANGED
@@ -20381,7 +20381,6 @@ var customerResellerCatalogVariantSchema = external_exports.object({
20381
20381
  variant_id: external_exports.string(),
20382
20382
  title: external_exports.string(),
20383
20383
  stock: external_exports.number(),
20384
- supplier_backed: external_exports.boolean(),
20385
20384
  orderable: external_exports.boolean(),
20386
20385
  base_price: external_exports.string(),
20387
20386
  unit_price: external_exports.string(),
@@ -20413,15 +20412,12 @@ var customerResellerCatalogSchema = external_exports.object({
20413
20412
  title: external_exports.string(),
20414
20413
  type: external_exports.string(),
20415
20414
  stock: external_exports.number(),
20416
- supplier_backed: external_exports.boolean(),
20417
20415
  orderable: external_exports.boolean(),
20418
20416
  volume_discount_enabled: external_exports.boolean(),
20419
20417
  base_price: external_exports.string(),
20420
20418
  unit_price: external_exports.string(),
20421
20419
  discount_percent: external_exports.number(),
20422
20420
  applied_override: customerResellerAppliedOverrideSchema,
20423
- /** The supplier's maximum price for reselling this product (and each variant); null = no limit. */
20424
- max_unit_price: external_exports.string().nullable(),
20425
20421
  /** Optional: a backend released before reseller custom fields does not send it. */
20426
20422
  custom_fields: external_exports.array(customerResellerCustomFieldSchema).optional(),
20427
20423
  variants: external_exports.array(customerResellerCatalogVariantSchema)