@amboras-dev/storefront-core 2026.11.8-rc.4 → 2026.11.8
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 +30 -3
- package/core-manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 2026.11.8
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
7
|
- Hosted checkout (`/edge`): with `AMBORAS_CHECKOUT_URL` and `AMBORAS_CHECKOUT_KEY` set, the proxy rewrites `/checkout/*` to the platform's
|
|
8
|
-
checkout app with a per-store signed `x-amboras-store` token, before any A/B routing.
|
|
9
|
-
|
|
8
|
+
checkout app with a per-store signed `x-amboras-store` token, before any A/B routing. The token carries the store, its Medusa URL and
|
|
9
|
+
publishable key, the shopper-facing host and the shopper's IP (for the checkout's per-IP limits), and names the master key with
|
|
10
|
+
`AMBORAS_CHECKOUT_KEY_ID` when set. `AMBORAS_CHECKOUT_HEALTH_URL` is the circuit breaker: unhealthy (fleet-wide or for this store) falls
|
|
11
|
+
through to the store's own checkout. Inert without the env.
|
|
12
|
+
- Hosted checkout serves the Authorize.Net relay: the root relay path Medusa registers (`/authorize-net-communicator.html`) rewrites to the
|
|
13
|
+
hosted app's copy while hosted checkout is up and falls back to the store's public copy when it is not; both relay paths get the
|
|
14
|
+
Accept Hosted `frame-ancestors` and `no-store`. The Apple Pay domain association file stays served by the store.
|
|
15
|
+
- `<HostedExpressCheckout />` (`/client`): places the hosted accelerated checkout buttons (Apple Pay, Google Pay, Link, PayPal) on product
|
|
16
|
+
and cart pages, framed from `/checkout/embed/express` on the store's own origin. Props: `variantId`, `quantity`, `unitAmount`,
|
|
17
|
+
`currency`, `requiresShipping`, `disabled`, `className`; selection changes are posted to the frame, never a reload. The frame loads
|
|
18
|
+
lazily, so an off-screen placement (a closed cart drawer) costs nothing until it is near view.
|
|
10
19
|
- `<CheckoutSpeculation />` (`/client`): render it on the cart and product pages. Chrome prerenders `/checkout` (Speculation Rules,
|
|
11
20
|
`eagerness` default `'moderate'`, `'eager'` on the cart page) with a prefetch rule beside it; other browsers get
|
|
12
21
|
`<link rel="prefetch">`. Preconnects to Medusa, js.stripe.com and the hosted checkout's CDN (`assetOrigin`).
|
|
22
|
+
- Order view token: when Medusa's cart completion returns `order_view_token`, `useCheckout().completeCheckout()` and
|
|
23
|
+
`useExpressCheckout().completeOrder()` return it on the order (`PlacedOrder`), and the express success path carries it as
|
|
24
|
+
`/checkout/success?order=<id>&t=<token>`. `useOrder(orderId, orderToken?)` sends it as `order_token` (falling back to `t` in the URL
|
|
25
|
+
for the same order), so the shopper's own success page reads the full order while Medusa redacts it for anyone else. New helpers in
|
|
26
|
+
`lib/utils/order-ref`: `PlacedOrder`, `ORDER_TOKEN_PARAM`, `orderViewTokenOf`, `placedOrderOf`, `orderSuccessPath`,
|
|
27
|
+
`orderViewTokenFromUrl`, `stripOrderToken`. Without a token (an older Medusa, a recovered order) everything behaves as before.
|
|
13
28
|
- Checkout copy in the shopper's language (en, vi, fr, de, pt-BR, pt-PT). `checkoutMessages(locale?)` (`lib/l10n/checkout-messages`)
|
|
14
29
|
returns every shopper-facing string core produces on the checkout path: Pay-now and address hints, payment and post-authorisation
|
|
15
30
|
notices, shipping-rate and price-change notices, the express sheet, cart, promo, store credit, Cash on Delivery, PayPal and card
|
|
@@ -20,8 +35,20 @@
|
|
|
20
35
|
decline code. Unset, everything stays English, word for word, and the English constants (`POST_AUTH_FAILURE_MESSAGE`,
|
|
21
36
|
`PAYMENT_PROCESSING_MESSAGE`, `CART_PRICES_CHANGED_MESSAGE`...) keep their value.
|
|
22
37
|
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- Stripe Payment Element billing defaults carry the cart's shipping country, so the element stops guessing the country from the
|
|
41
|
+
shopper's IP.
|
|
42
|
+
- The order view token is stripped from the URLs core reports (PostHog URL and referrer, `page_view`, `session_start`, the element
|
|
43
|
+
picker's path), so it never reaches analytics.
|
|
44
|
+
|
|
23
45
|
### Fixed
|
|
24
46
|
|
|
47
|
+
- A store-page `<Link>` (e.g. the cart drawer's Checkout button) to `/checkout` on a hosted-checkout store did nothing: the store's router
|
|
48
|
+
dropped the hosted app's RSC payload. A navigation from outside `/checkout` now gets an empty 204, so the router loads the hosted
|
|
49
|
+
checkout in full; the hosted app's own navigations still rewrite.
|
|
50
|
+
- `useOrder` normalises a redacted order (Medusa keeps redacted keys but empties them): a missing email becomes `''`, missing items `[]`,
|
|
51
|
+
and an address with no values `undefined`, so pages never crash or render an empty address block.
|
|
25
52
|
- The success page saves the order view token (`t`) in local storage and removes it from the address bar before tags run, so shared
|
|
26
53
|
links and third-party tags (Meta, GA4, TikTok) don't carry it. `useOrder` and `CoreProvider` (on `/checkout/success`) capture it;
|
|
27
54
|
`useOrder(orderId, orderToken?)` resolves the token from the param, then the URL's `t` for the same order, then the saved one until
|
package/core-manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amboras-dev/storefront-core",
|
|
3
|
-
"version": "2026.11.8
|
|
3
|
+
"version": "2026.11.8",
|
|
4
4
|
"description": "The platform half of every Amboras storefront: cart, checkout, payments, auth, orders, subscriptions, catalogue data, analytics, consent, plugin slots, edge proxy and the Next config. Stores keep only design; they import this. ESM, React 19, Next 16.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|