Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/fix-cart-get-default-cartid.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/fix-image-fluid-x-descriptors.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-storefront-redirect-single-fetch.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/odd-numbers-hug.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/typed-custom-cart-fragments.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @shopify/cli-hydrogen

## 12.0.1

### Patch Changes

- Include line item children recursively in cart. ([#3753](https://github.com/Shopify/hydrogen/pull/3753)) by [@martin-pettersson](https://github.com/martin-pettersson)

- Add generic cart result typing to `createCartHandler` so custom cart fragments can use their generated fragment types. ([#3767](https://github.com/Shopify/hydrogen/pull/3767)) by [@andguy95](https://github.com/andguy95)

## 12.0.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/oclif.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1675,5 +1675,5 @@
]
}
},
"version": "12.0.0"
"version": "12.0.1"
}
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
},
"version": "12.0.0",
"version": "12.0.1",
"license": "MIT",
"type": "module",
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions packages/create-hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @shopify/create-hydrogen

## 5.0.37

### Patch Changes

- Include line item children recursively in cart. ([#3753](https://github.com/Shopify/hydrogen/pull/3753)) by [@martin-pettersson](https://github.com/martin-pettersson)

- Add generic cart result typing to `createCartHandler` so custom cart fragments can use their generated fragment types. ([#3767](https://github.com/Shopify/hydrogen/pull/3767)) by [@andguy95](https://github.com/andguy95)

## 5.0.36

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-hydrogen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@shopify:registry": "https://registry.npmjs.org"
},
"license": "MIT",
"version": "5.0.36",
"version": "5.0.37",
"type": "module",
"repository": {
"type": "git",
Expand Down
10 changes: 10 additions & 0 deletions packages/hydrogen-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @shopify/hydrogen-react

## 2026.4.3

### Patch Changes

- Fix `Image` component generating `1x/2x/3x` density descriptors instead of `w` descriptors for fluid (responsive) images whose source dimensions cap the srcset to exactly 3 entries. ([#3756](https://github.com/Shopify/hydrogen/pull/3756)) by [@z0n](https://github.com/z0n)

**What was happening:** When a product image stored in Shopify was small enough that the default srcset ladder (200px, 400px, 600px, 800px, …) was filtered down to exactly 3 entries by the source-dimension cap, the `Image` component incorrectly switched to density descriptors (`1x`/`2x`/`3x`) and silently ignored the `sizes` attribute. On a DPR-1 screen this caused the smallest srcset entry (200px) to be used regardless of the rendered image size, resulting in blurry images.

**The fix:** Descriptor type (density vs width) is now determined by whether the image is in fixed or fluid mode — not by how many srcset entries happen to survive source-dimension filtering.

## 2026.4.2

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrogen-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/hydrogen-react",
"version": "2026.4.2",
"version": "2026.4.3",
"description": "React components, hooks, and utilities for creating custom Shopify storefronts",
"homepage": "https://github.com/Shopify/hydrogen/tree/main/packages/hydrogen-react",
"license": "MIT",
Expand Down
19 changes: 19 additions & 0 deletions packages/hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @shopify/hydrogen

## 2026.4.3

### Patch Changes

- Fix `cart.get()` to use provided `cartId` before falling back to `getCartId()` ([#3664](https://github.com/Shopify/hydrogen/pull/3664)) by [@Vitalini](https://github.com/Vitalini)

- Fix `Image` component generating `1x/2x/3x` density descriptors instead of `w` descriptors for fluid (responsive) images whose source dimensions cap the srcset to exactly 3 entries. ([#3756](https://github.com/Shopify/hydrogen/pull/3756)) by [@z0n](https://github.com/z0n)

**What was happening:** When a product image stored in Shopify was small enough that the default srcset ladder (200px, 400px, 600px, 800px, …) was filtered down to exactly 3 entries by the source-dimension cap, the `Image` component incorrectly switched to density descriptors (`1x`/`2x`/`3x`) and silently ignored the `sizes` attribute. On a DPR-1 screen this caused the smallest srcset entry (200px) to be used regardless of the rendered image size, resulting in blurry images.

**The fix:** Descriptor type (density vs width) is now determined by whether the image is in fixed or fluid mode — not by how many srcset entries happen to survive source-dimension filtering.

- Fix `storefrontRedirect` not working for client-side navigations. React Router v7's Single Fetch changed how data requests work — they now use a `.data` pathname suffix instead of a `_data` query parameter. `storefrontRedirect` now correctly detects both conventions, strips the `.data` suffix before matching redirects, and returns the proper `204` status code for soft navigation redirect responses. ([#3762](https://github.com/Shopify/hydrogen/pull/3762)) by [@fredericoo](https://github.com/fredericoo)

- Add generic cart result typing to `createCartHandler` so custom cart fragments can use their generated fragment types. ([#3767](https://github.com/Shopify/hydrogen/pull/3767)) by [@andguy95](https://github.com/andguy95)

- Updated dependencies [[`a810db483c108ac8bbeaac45595b130ed95a2ec7`](https://github.com/Shopify/hydrogen/commit/a810db483c108ac8bbeaac45595b130ed95a2ec7)]:
- @shopify/hydrogen-react@2026.4.3

## 2026.4.2

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrogen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@shopify:registry": "https://registry.npmjs.org"
},
"type": "module",
"version": "2026.4.2",
"version": "2026.4.3",
"license": "MIT",
"main": "dist/index.cjs",
"module": "dist/production/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrogen/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const LIB_VERSION = '2026.4.2';
export const LIB_VERSION = '2026.4.3';
11 changes: 11 additions & 0 deletions templates/skeleton/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# skeleton

## 2026.4.3

### Patch Changes

- Include line item children recursively in cart. ([#3753](https://github.com/Shopify/hydrogen/pull/3753)) by [@martin-pettersson](https://github.com/martin-pettersson)

- Add generic cart result typing to `createCartHandler` so custom cart fragments can use their generated fragment types. ([#3767](https://github.com/Shopify/hydrogen/pull/3767)) by [@andguy95](https://github.com/andguy95)

- Updated dependencies [[`3ccc22e0a3407298e835104e29adfb036f261474`](https://github.com/Shopify/hydrogen/commit/3ccc22e0a3407298e835104e29adfb036f261474), [`a810db483c108ac8bbeaac45595b130ed95a2ec7`](https://github.com/Shopify/hydrogen/commit/a810db483c108ac8bbeaac45595b130ed95a2ec7), [`d17057eb4630710743e81b83573973100ec56d23`](https://github.com/Shopify/hydrogen/commit/d17057eb4630710743e81b83573973100ec56d23), [`995190036d99e02ba6fb559b8e3c406c90043599`](https://github.com/Shopify/hydrogen/commit/995190036d99e02ba6fb559b8e3c406c90043599)]:
- @shopify/hydrogen@2026.4.3

## 2026.4.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion templates/skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "skeleton",
"private": true,
"sideEffects": false,
"version": "2026.4.2",
"version": "2026.4.3",
"type": "module",
"scripts": {
"build": "shopify hydrogen build --codegen",
Expand Down