$ the-wire · showcase
Hydrogen's account widget now collects marketing consent
By RepoJournal · Filed · About Shopify · Composed from the cited sources · methodology
Hydrogen shipped the two halves of its headless `<shopify-account>` account sheet, sign-in marketing consent and a data route that keeps the customer access token out of the browser, plus a memory fix that unbreaks macOS CI builds.
feat(hydrogen): collect marketing consent in the account sheet's sign-in form Shopify/hydrogen
The `<shopify-account>` sign-in form can now collect marketing consent on Hydrogen storefronts: when `marketingConsentSigninEnabled` is true the component renders a checkbox and the login route forwards the customer's choice to Shopify, appending `marketing_consent=true|false`. This builds directly on the widget-data route that had both consent settings hard-coded to `false` because the login r...
feat(hydrogen): render <shopify-account> with ShopifyAccount and serve its data from /account/widget-data Shopify/hydrogen
`ShopifyAccount` lands in the React and Vue bindings alongside a `GET /account/widget-data` route on `createCustomerAccountServerHandlers`. Liquid storefronts fed `<shopify-account>` through a `shopify-customer-account-data` script tag; headless storefronts only had `customer-access-token`, and this route is what lets the avatar and account sheet render without sending that token to the browser.
fix(hydrogen): stop the package build running out of memory on macOS CI Shopify/hydrogen
`@shopify/hydrogen`'s build was running two full TypeScript programs simultaneously, one per `dts: true` tsdown config, and with gql.tada's types each took roughly 1.2 GB, peaking around 2.5 GB against macOS runners' approximately 2 GB Node heap cap. Dropping the second program brings the build to roughly 1.2 GB and clears the `Local HTTPS (macos-latest)` "JavaScript heap out of memory" failure.
fix(templates): stop the quantity stepper exposing a fake range to screen readers (#4035) Shopify/hydrogen
The product page quantity stepper was a `type=number` input with `min=1 max=99`, so assistive tech exposed it as a ranged control and VoiceOver could announce the value as a percentage; it is now a text input with `inputMode=numeric`, a plain textbox with no range. The author notes that just dropping min/max made Chromium expose a 0 to 0 range instead.
Update from World Shopify/cli
The World mirror rolled through `Shopify/cli` with 4 files added, 10 changed, and 2 deleted, including the changeset `app-logs-historical.md` and `packages/cli/src/cli/logs-help.test.ts`; the next update replaces the branch, so don't push to it.