$ the-wire · showcase
Typed JSON across CLI commands, cart hydration fix in Hydrogen
By RepoJournal · Filed · About Shopify · Composed from the cited sources · methodology
The Shopify CLI's automation surface gets real types today, with --json landing on theme pull, theme push, and three app function subcommands, while Hydrogen repairs a cart hydration mismatch that breaks direct /cart loads.
Add typed JSON output to theme pull Shopify/cli
theme pull now emits a strict JSON theme resource with an absolute project directory and explicit outcomes, keeping cancellation and safety skips visible in the result. Complements the push-side change, so scripts can round-trip downloads and uploads through one consistent schema.
Add typed JSON output to theme push Shopify/cli
theme push JSON switches to project string IDs, camelCase links, and absolute-path upload issues, and reports partial uploads with a nonzero exit instead of a silent success. Skipped and cancelled outcomes plus every requested environment are retained, so automation reading the old field names will need to follow the rename.
Add typed JSON output to app function typegen Shopify/cli
app function typegen gains --json and a discoverable FunctionTypegenResult schema that returns the completed Function's identity, with generator diagnostics routed through shared JSON events. Text output, the success banner, and built-in and custom generator paths are unchanged.
Add typed JSON output to app function schema Shopify/cli
app function schema gains --json and FunctionSchemaResult: the default writes the native SDL and returns an absolute file receipt, while --stdout --json returns {schema} without touching disk. Fetching is now separated from file and terminal presentation.
fix: cart hydration warnings when promises resolve before hydration Shopify/hydrogen
When the cart promise resolved before React hydrated, server HTML showed the loading state while the client read the loaded cart, producing a hydration error on direct /cart loads with either an empty or a populated cart. The fix also makes the initial cart_viewed event in CartViewedTracker wait for the loaded cart.
Update PerfKit script attributes in production builds Shopify/hydrogen
The long tail: build gets FunctionBuildResult returning the selected Function and built Wasm path (or null when the build completes without a file), PerfKit adds two script attributes to production-only ShopifyScripts output, and loadScript now sets attributes before src and DOM insertion so the browser sees crossorigin on first processing.