Skip to content

Version Packages - #1529

Merged
sbolinger-godaddy merged 1 commit into
mainfrom
changeset-release/main
Nov 3, 2026
Merged

sbolinger-godaddy merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@godaddy/gd-commerce-storefront@0.11.0

Minor Changes

  • 53bbe3b: A site can show its own sample products before a store is connected. sampleProducts on Catalog and CatalogRoot takes an array as well as true. Each sample has a key, name and price, and optionally a compareAtPrice, description and imageUrl, such as a file in the site's public folder. The card parts show a sample's image, description, price and Sale badge, and the sample cart keeps each line's image. While no store is connected, CatalogRoot throws for an invalid list, such as duplicate keys, a packaged sample's key or a decimal price; once one is connected, development builds log the problem instead and the store's catalog still renders. A cart line shows the current fields of a mounted catalog's sample with the same key. CartItemImage renders nothing when its image fails to load. sampleProducts still shows samples only while the server reports unbound, and true still shows the six packaged samples without images.

    Custom parts can read the site's own sample fields. useProductCard() and useCartItem() return sample, typed with the site's sample type, such as useProductCard<MySample>(). A new useCatalog() returns the catalog's count, isSample and status for a custom product count. Card images and their loading placeholders follow a new --commerce-card-image-aspect theme property, which defaults to square. The SampleProduct and CatalogState types are exported. The default design is unchanged.

@github-actions
github-actions Bot requested a review from a team as a code owner November 3, 2026 16:03
@sbolinger-godaddy
sbolinger-godaddy merged commit 2f87e5b into main Nov 3, 2026
3 checks passed
@sbolinger-godaddy
sbolinger-godaddy deleted the changeset-release/main branch November 3, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant