Skip to content

Commit

Permalink
[ci] release 2024-07 (#2438)
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent ccdeb42 commit 5197eef
Show file tree
Hide file tree
Showing 29 changed files with 231 additions and 153 deletions.
7 changes: 0 additions & 7 deletions .changeset/funny-wolves-try.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/large-baboons-repair.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lovely-phones-grab.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/moody-pots-juggle.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/nine-eyes-divide.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/selfish-frogs-change.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/serious-islands-double.md

This file was deleted.

74 changes: 0 additions & 74 deletions .changeset/shaggy-tables-join.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/slow-keys-fold.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smart-boats-cough.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strange-oranges-promise.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/wet-pandas-battle.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@remix-run/node": "^2.10.1",
"@remix-run/react": "^2.10.1",
"@remix-run/server-runtime": "^2.10.1",
"@shopify/hydrogen": "2024.7.4",
"@shopify/hydrogen": "2024.7.5",
"compression": "^1.7.4",
"cross-env": "^7.0.3",
"express": "^4.19.2",
Expand Down
13 changes: 13 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @shopify/cli-hydrogen

## 8.4.2

### Patch Changes

- Update Shopify CLI and cli-kit dependencies to 3.66.1 ([#2512](https://github.com/Shopify/hydrogen/pull/2512)) by [@frandiox](https://github.com/frandiox)

- Add `--force-client-sourcemap` flag. Client sourcemapping is avoided by default because it makes backend code visible in the browser. Use this flag to force enabling it. ([#2477](https://github.com/Shopify/hydrogen/pull/2477)) by [@frandiox](https://github.com/frandiox)

It is recommended to delete client sourcemaps before deploying the app to production.

- Updated dependencies [[`664a09d5`](https://github.com/Shopify/hydrogen/commit/664a09d57ef5d3c67da947a4e8546527c01e37c4), [`9dd4c615`](https://github.com/Shopify/hydrogen/commit/9dd4c615507f9f458f9d86db912d03fbefeed863)]:
- @shopify/mini-oxygen@3.0.5

## 8.4.1

### Patch 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 @@ -1758,5 +1758,5 @@
]
}
},
"version": "8.4.1"
"version": "8.4.2"
}
4 changes: 2 additions & 2 deletions 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": "8.4.1",
"version": "8.4.2",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -56,7 +56,7 @@
"@graphql-codegen/cli": "^5.0.2",
"@remix-run/dev": "^2.1.0",
"@shopify/hydrogen-codegen": "^0.3.1",
"@shopify/mini-oxygen": "^3.0.4",
"@shopify/mini-oxygen": "^3.0.5",
"graphql-config": "^5.0.3",
"vite": "^5.1.0"
},
Expand Down
78 changes: 78 additions & 0 deletions packages/create-hydrogen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,83 @@
# @shopify/create-hydrogen

## 5.0.5

### Patch Changes

- Update Shopify CLI and cli-kit dependencies to 3.66.1 ([#2512](https://github.com/Shopify/hydrogen/pull/2512)) by [@frandiox](https://github.com/frandiox)

- createCartHandler supplies updateGiftCardCodes method ([#2298](https://github.com/Shopify/hydrogen/pull/2298)) by [@wizardlyhel](https://github.com/wizardlyhel)

- Fix menu links in side panel not working on mobile devices ([#2450](https://github.com/Shopify/hydrogen/pull/2450)) by [@wizardlyhel](https://github.com/wizardlyhel)

```diff
// /app/components/Header.tsx

export function HeaderMenu({
menu,
primaryDomainUrl,
viewport,
publicStoreDomain,
}: {
menu: HeaderProps['header']['menu'];
primaryDomainUrl: HeaderProps['header']['shop']['primaryDomain']['url'];
viewport: Viewport;
publicStoreDomain: HeaderProps['publicStoreDomain'];
}) {
const className = `header-menu-${viewport}`;
+ const {close} = useAside();

- function closeAside(event: React.MouseEvent<HTMLAnchorElement>) {
- if (viewport === 'mobile') {
- event.preventDefault();
- window.location.href = event.currentTarget.href;
- }
- }

return (
<nav className={className} role="navigation">
{viewport === 'mobile' && (
<NavLink
end
- onClick={closeAside}
+ onClick={close}
prefetch="intent"
style={activeLinkStyle}
to="/"
>
Home
</NavLink>
)}
{(menu || FALLBACK_HEADER_MENU).items.map((item) => {
if (!item.url) return null;

// if the url is internal, we strip the domain
const url =
item.url.includes('myshopify.com') ||
item.url.includes(publicStoreDomain) ||
item.url.includes(primaryDomainUrl)
? new URL(item.url).pathname
: item.url;
return (
<NavLink
className="header-menu-item"
end
key={item.id}
- onClick={closeAside}
+ onClick={close}
prefetch="intent"
style={activeLinkStyle}
to={url}
>
{item.title}
</NavLink>
);
})}
</nav>
);
}
```

## 5.0.4

### 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.4",
"version": "5.0.5",
"type": "module",
"scripts": {
"build": "tsup --clean",
Expand Down
8 changes: 8 additions & 0 deletions packages/hydrogen-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @shopify/hydrogen-react

## 2024.7.3

### Patch Changes

- Update ProductPrice to use price instead of priceV2, and hide compareAt price if less than regular price ([#2461](https://github.com/Shopify/hydrogen/pull/2461)) by [@andershagbard](https://github.com/andershagbard)

- Prevent Image component from generating srcset with higher dimensions than source image ([#2469](https://github.com/Shopify/hydrogen/pull/2469)) by [@andershagbard](https://github.com/andershagbard)

## 2024.7.2

### Patch 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": "2024.7.2",
"version": "2024.7.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

## 2024.7.5

### Patch Changes

- Prevent CSP nonces from persisting between requests ([#2500](https://github.com/Shopify/hydrogen/pull/2500)) by [@juanpprieto](https://github.com/juanpprieto)

- useOptimisticCart: optimistically calculate totalQuantity ([#2459](https://github.com/Shopify/hydrogen/pull/2459)) by [@scottdixon](https://github.com/scottdixon)

- createCartHandler supplies updateGiftCardCodes method ([#2298](https://github.com/Shopify/hydrogen/pull/2298)) by [@wizardlyhel](https://github.com/wizardlyhel)

- Introduce a new abstraction for generating sitemap index and child sitemaps. ([#2478](https://github.com/Shopify/hydrogen/pull/2478)) by [@blittle](https://github.com/blittle)

See the [sitemap example](https://github.com/Shopify/hydrogen/tree/main/examples/sitemap) for how to use it and read the [docs](https://shopify.dev/docs/api/hydrogen/utilities/getSitemapIndex) for more information.

- Add localization support to consent privacy banner ([#2457](https://github.com/Shopify/hydrogen/pull/2457)) by [@juanpprieto](https://github.com/juanpprieto)

- Updated dependencies [[`ca0c7692`](https://github.com/Shopify/hydrogen/commit/ca0c76921ee873920d58112849cd0709bb990858), [`81f2b540`](https://github.com/Shopify/hydrogen/commit/81f2b540c42c55f36c70c63bce34a3e1626d9965)]:
- @shopify/hydrogen-react@2024.7.3

## 2024.7.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions 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": "2024.7.4",
"version": "2024.7.5",
"license": "MIT",
"main": "dist/index.cjs",
"module": "dist/production/index.js",
Expand Down Expand Up @@ -63,7 +63,7 @@
"dist"
],
"dependencies": {
"@shopify/hydrogen-react": "2024.7.2",
"@shopify/hydrogen-react": "2024.7.3",
"content-security-policy-builder": "^2.2.0",
"source-map-support": "^0.5.21",
"type-fest": "^4.5.0",
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 = '2024.7.4';
export const LIB_VERSION = '2024.7.5';
8 changes: 8 additions & 0 deletions packages/mini-oxygen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @shopify/mini-oxygen

## 3.0.5

### Patch Changes

- Prevent infinite redirects when a double slash exists in the URL ([#2449](https://github.com/Shopify/hydrogen/pull/2449)) by [@blittle](https://github.com/blittle)

- Add oxygen-buyer-postal-code and oxygen-buyer-metro-code headers ([#2429](https://github.com/Shopify/hydrogen/pull/2429)) by [@jgodson](https://github.com/jgodson)

## 3.0.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/mini-oxygen/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": "3.0.4",
"version": "3.0.5",
"license": "MIT",
"type": "module",
"description": "Development assistant for custom Shopify Oxygen hosted storefronts",
Expand Down
6 changes: 6 additions & 0 deletions packages/remix-oxygen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @shopify/remix-oxygen

## 2.0.7

### Patch Changes

- Prevent infinite redirects when a double slash exists in the URL ([#2449](https://github.com/Shopify/hydrogen/pull/2449)) by [@blittle](https://github.com/blittle)

## 2.0.6

### Patch Changes
Expand Down
Loading

0 comments on commit 5197eef

Please sign in to comment.