/weaverse:hydrogen-upgradesfrom weaverse
Step-by-step migration guides for upgrading Shopify Hydrogen between versions, covering breaking changes, code diffs, and migration steps for each release.
Ships in weaverse. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Version-by-version migration guides for upgrading Shopify Hydrogen. Each guide covers breaking changes, required code updates, and step-by-step diffs.
Run these from this skill's own folder. The helpers ship inside the sibling
shopify-hydrogen skill, so ../shopify-hydrogen/scripts/ exists whenever the
whole pack is installed.
If you installed this skill on its own, that folder is absent and the commands
below fail with MODULE_NOT_FOUND. Add the helpers once:
npx skills add Weaverse/shopify-hydrogen-skills --skill shopify-hydrogen
The references/ files in this skill remain a usable offline fallback if you
would rather not install it.
For the latest upgrade information from Shopify:
node ../shopify-hydrogen/scripts/search_shopify_docs.mjs "hydrogen upgrade <version>"
node ../shopify-hydrogen/scripts/search_shopify_docs.mjs "hydrogen breaking changes"
node ../shopify-hydrogen/scripts/search_shopify_docs.mjs "hydrogen migration"
The curated guides below cover specific version jumps with detailed diffs and Weaverse-specific considerations.
| Guide | Key Changes |
|---|---|
| 2024.4.7 → 2024.7.1 | Optimistic variants, new session commit pattern, Layout component refactor, VariantSelector improvements |
| 2024.10.1 → 2025.1.0 | v3_lazyRouteDiscovery flag, stylesheet link tag fixes |
| 2025.1.0 → 2025.1.1 | v3_singleFetch flag, nonce support, json/defer deprecation, B2B stabilization |
| 2025.1.2 → 2025.1.3 | v3_routeConfig flag, Layout export moved to separate file, routes.ts config |
| 2025.1.3 → 2025.1.4 | Session logout fix, VariantSelector deprecation, product query updates, ProductForm refactor |
| 2025.5.0 → 2025.7.0 | Major — React Router 7.9.x migration, context creation, entry point updates |
| 2025.7.0 → 2026.1.0 | Major — @react-router 7.12, @shopify/hydrogen 2026.1.0, Storefront API 2026-01, new cart mutations |
| 2026.1.0 → 2026.4.7 | Major — Storefront API 2026-04, mandatory same-origin Storefront API proxy, Customer Privacy API consent migration, React Router ~7.16 |
| 2026.4.7 → 2026.10.2 | Rewrite — Hydrogen becomes a request-handler library (server.ts composes the lifecycle, no createHydrogenContext), storefront.graphql(gql()) with explicit cache, cart store at /api/cart, product form store, Customer Account handlers, ShopifyScripts analytics, @weaverse/hydrogen 6 (@weaverse/hydrogen/react-router) |
| 2026.10.2 → 2026.10.3 | createContentSecurityPolicy is back (delete the local app/utils/csp.ts port), defineShopifyI18n + storefront.locale, defineShopifyRouteTemplates, prefix-stripped handler matching, @weaverse/hydrogen 6.3 Studio CSP directives |
npx shopify hydrogen upgrade
For upgrades up to 2026.4.7, this CLI bumps and installs the required dependencies, then generates a Markdown file listing the required source changes — apply those manually (or feed the file to your agent), then verify. It does not edit your source files itself.
The move to 2026.10 is not a version bump: Hydrogen becomes a library and the app owns its request lifecycle. Follow the 2026.4.7 → 2026.10.2 guide and Shopify's packaged migration skill at node_modules/@shopify/hydrogen/skills/migrate-to-hydrogen-2026-10/SKILL.md (install @shopify/[email protected] first). Then apply 2026.10.2 → 2026.10.3. After every @shopify/hydrogen bump, refresh the project's copy of Hydrogen's packaged skills with npx @shopify/hydrogen skills sync. Weaverse themes also run the @weaverse/hydrogen 6 codemod:
npx @weaverse/cli@latest migrate v6 --dry-run # list the files it would change
npx @weaverse/cli@latest migrate v6
Classic projects that are not migrating yet should pin
@shopify/hydrogento~2026.4.xand stay on@weaverse/hydrogen5.x: a^2026.4.0range resolves to 2026.10.
Match your current version to the appropriate guide. For multi-version jumps, apply each guide in order.
npm run codegen. Never edit the generated .d.ts files directly.gql() documents through @shopify/hydrogen/ts-plugin, and npm run typecheck runs react-router typegen && tsc --noEmit && hydrogen gql check --fail-on-warn.references/upgrade-2024.10.1-to-2025.1.0.md (opens in a new tab)references/upgrade-2024.4.7-to-2024.7.1.md (opens in a new tab)references/upgrade-2025.1.0-to-2025.1.1.md (opens in a new tab)references/upgrade-2025.1.2-to-2025.1.3.md (opens in a new tab)references/upgrade-2025.1.3-to-2025.1.4.md (opens in a new tab)references/upgrade-2025.5.0-to-2025.7.0.md (opens in a new tab)references/upgrade-2025.7.0-to-2026.1.0.md (opens in a new tab)references/upgrade-2026.1.0-to-2026.4.7.md (opens in a new tab)references/upgrade-2026.10.2-to-2026.10.3.md (opens in a new tab)references/upgrade-2026.4.7-to-2026.10.2.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/cloning-websites-to-weaverseUse when recreating a reference website or brand hub in this Hydrogen plus Weaverse repo, especially when deciding whether to reuse sections, add global styles, update theme schema, or resolve conflicts between the live site and project brand guidelines./figma-to-weaverseUse when recreating a Figma design as Hydrogen + Weaverse pages in this repo — turning a Figma file, frame, or flow into reusable Weaverse sections. Triggers on a figma.com URL, "build this design", "implement this Figma", or "create the storefront from the design". The Figma counterpart of cloning-websites-to-weaverse./generating-weaverse-project-jsonUse when generating Weaverse project export JSON for import into the Weaverse editor. Triggers on requests to create, build, or produce a Weaverse project JSON file from a site migration, design spec, page layout description, or existing export. Also use when converting section plans into importable project and pages data./hydrogen-analytics-trackingEnd-to-end analytics & conversion tracking on Shopify Hydrogen — GTM, GA4 (browser + Measurement Protocol), Meta Pixel + CAPI, Google Ads, consent mode, CSP, Oxygen full-page cache. Real-world patterns from production deployments./hydrogen-cookbooksStep-by-step implementation guides for building features in a Shopify Hydrogen 2026.10 + Weaverse storefront (Pilot) — bundles, combined listings, customer accounts, 3D models, performance, variant media, and Weaverse integration./hydrogen-markets-localizationImplement or review Shopify Hydrogen market localization — use when adding markets, locale routes, translations, hreflang, RTL, or localized cart, account, and checkout behavior in Hydrogen + Weaverse.npx claudepluginhub weaverse/shopify-hydrogen-skills --plugin weaverseOther plugins' skills for the same job