-
Notifications
You must be signed in to change notification settings - Fork 373
[2025-10] Update Storefront and Customer Account APIs to 2025-10 #3282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Updated both APIs from version 2025-07 to 2025-10. Changes: - Updated version constants in all packages - Regenerated GraphQL types and schemas - Updated documentation and examples - Updated test fixtures - Created 11 tracking issues for API changes Related: #3281
- Updated LIB_VERSION in version.ts - Updated React Router preset name and version - Updated preset tests - Added Step 3c to API update guide for future updates Note: upgrade.test.ts kept at 2025.7.0 until changelog.json update
|
Oxygen deployed a preview of your
Learn more about Hydrogen's GitHub integration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the Storefront API and Customer Account API from version 2025-07 to 2025-10, aligning with Shopify's latest quarterly API release. The update establishes the foundation for new features including nested cart lines, gift card operations, and delivery address management.
Key Changes:
- API version constants updated from 2025-07 to 2025-10 across all packages
- Package versions updated from 2025.7.0 to 2025.10.0 following the YYYY.MM.PATCH pattern
- Generated GraphQL types and schemas regenerated from 2025-10 API definitions
Reviewed Changes
Copilot reviewed 47 out of 53 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
packages/hydrogen/src/version.ts |
Updated package version constant to 2025.10.0 |
packages/hydrogen/src/storefront.ts |
Updated API version references in documentation links |
packages/hydrogen/src/react-router-preset.ts |
Updated preset name and error messages to reference 2025.10.0 |
packages/hydrogen/src/react-router-preset.test.ts |
Updated test expectations for new preset version |
packages/hydrogen/src/product/getSelectedProductOptions.doc.ts |
Updated Storefront API documentation link |
packages/hydrogen/src/product/VariantSelector.ts |
Updated deprecation notices and API documentation links |
packages/hydrogen/src/exports.test.ts |
Updated test expectation for preset name |
packages/hydrogen/src/customer/customer-account-helper.test.ts |
Updated Customer Account API version in tests |
packages/hydrogen/src/customer/constants.ts |
Updated default Customer Account API version constant |
packages/hydrogen/src/createStorefrontClient.doc.ts |
Updated documentation link reference |
packages/hydrogen/src/context-keys.doc.ts |
Updated internal documentation link |
packages/hydrogen/src/cart/queries/*.doc.ts |
Updated Storefront API object documentation links (8 files) |
packages/hydrogen/src/cart/queries/cartMetafieldDeleteDefault.ts |
Updated API mutation reference in code comment |
packages/hydrogen-react/src/useMoney.tsx |
Updated API version references in JSDoc comments |
packages/hydrogen-react/src/useMoney.test.tsx |
Updated test configuration API version |
packages/hydrogen-react/src/useCartActions.tsx |
Updated Cart API documentation links |
packages/hydrogen-react/src/useCartAPIStateMachine.tsx |
Updated Cart object documentation references |
packages/hydrogen-react/src/storefront-client.test.ts |
Updated test expectations for SDK version headers |
packages/hydrogen-react/src/storefront-client.example.js |
Updated example API version |
packages/hydrogen-react/src/storefront-api-constants.ts |
Updated SFAPI_VERSION constant to 2025-10 |
packages/hydrogen-react/src/optionValueDecoder.ts |
Updated encoded variant field documentation links |
packages/hydrogen-react/src/codegen.helpers.ts |
Updated GraphQL scalars documentation references |
packages/hydrogen-react/src/Video.tsx |
Updated Video object documentation link |
packages/hydrogen-react/src/ShopifyProvider.test.tsx |
Updated test configuration and expectations |
packages/hydrogen-react/src/ShopifyProvider.stories.tsx |
Updated Storybook example version |
packages/hydrogen-react/src/ShopPayButton2.example.* |
Updated example configurations (2 files) |
packages/hydrogen-react/src/Money.tsx |
Updated MoneyV2 object documentation references |
packages/hydrogen-react/src/ModelViewer.tsx |
Updated Model3D object documentation link |
packages/hydrogen-react/src/Image.tsx |
Updated Image object documentation reference |
packages/hydrogen-react/src/CartProvider.tsx |
Updated Cart object documentation links |
packages/hydrogen-react/src/CartProvider.stories.tsx |
Updated Storybook configuration and comments |
packages/hydrogen-react/src/CartLineProvider.tsx |
Updated CartLine object documentation link |
packages/hydrogen-react/docs/staticPages/hydrogenReact.doc.ts |
Updated API client documentation link |
packages/hydrogen-react/codegen.ts |
Updated SF_API_VERSION and CA_API_VERSION constants |
packages/cli/src/commands/hydrogen/upgrade.test.ts |
Updated test fixture date |
.claude/commands/apis-version-update.md |
Enhanced documentation with package version update instructions |
.changeset/api-update-2025-10.md |
Added changeset documenting version bumps |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
hello cart for example: to lines map need to add I haven't dug deeper yet, this is actually what I stumbled upon in the new project =D |
WHY are these changes introduced?
Fixes #3281
Updates Storefront API and Customer Account API from version 2025-07 to 2025-10 to support the latest quarterly API release. This update enables new features including nested cart lines, gift card addition, delivery address operations, and privacy-compliant checkout flows.
WHAT is this pull request doing?
Version Updates
Changes Made
Version Constants (3 files)
packages/hydrogen-react/src/storefront-api-constants.ts- SFAPI_VERSIONpackages/hydrogen/src/customer/constants.ts- DEFAULT_CUSTOMER_API_VERSIONpackages/hydrogen-react/codegen.ts- SF_API_VERSION and CA_API_VERSIONPackage Version References (4 files)
packages/hydrogen/src/version.ts- LIB_VERSIONpackages/hydrogen/src/react-router-preset.ts- preset name and error messagespackages/hydrogen/src/react-router-preset.test.ts- test expectationspackages/hydrogen/src/exports.test.ts- test expectationsGenerated Types and Schemas (4 files)
storefront-api-types.d.ts- Added 113 new lines (nested cart lines, gift card operations)customer-account-api-types.d.ts- Updated with new fieldsDocumentation and Examples (38 files)
Changeset
Version bumps:
@shopify/hydrogen: major@shopify/hydrogen-react: major@shopify/cli-hydrogen: patchskeleton: majorAPI Changes Overview
Status Key
Breaking Changes
cartDeliveryAddressesUpdate Behavior Change (#3273)
Validation Status
All Validation Passing
HOW to test your changes?
Verify Type Generation
Verify Builds
Verify Tests
npm test npm run typecheck npm run lintVerify Skeleton
Post-merge steps
After merging:
h2 upgradecommandChecklist
Related Links
Files Changed
53 files changed: +293 insertions, -117 deletions
Commits
e610200b5- API version update (48 files)199a5db80- Package version updates + guide enhancement (5 files)