diff --git a/.changeset/angry-planets-cover.md b/.changeset/angry-planets-cover.md deleted file mode 100644 index 87af81248d..0000000000 --- a/.changeset/angry-planets-cover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/mini-oxygen': patch ---- - -Fixed compatibility with Node 21. diff --git a/.changeset/breezy-jokes-pump.md b/.changeset/breezy-jokes-pump.md deleted file mode 100644 index 0feebbe09d..0000000000 --- a/.changeset/breezy-jokes-pump.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -Clean up messaging around unlinked storefronts when running CLI commands - -- When you run `env list`, `env pull`, or `deploy` against a storefront that isn't linked, it will show a warning message instead of an error message. -- If you don't have a storefront to link to on Admin, we will just ask you to create a storefront instead of displaying an option list of size 1. -- If you deleted a storefront on Admin, we will try to relink your storefront when running `env list`, `env pull`, or `deploy`. diff --git a/.changeset/calm-ladybugs-destroy.md b/.changeset/calm-ladybugs-destroy.md deleted file mode 100644 index 47edf3f932..0000000000 --- a/.changeset/calm-ladybugs-destroy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Warn when using the deprecated Seo component diff --git a/.changeset/curly-panthers-jam.md b/.changeset/curly-panthers-jam.md deleted file mode 100644 index ccf65b39ca..0000000000 --- a/.changeset/curly-panthers-jam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -Add `@return` JSDoc tag to functions in JavaScript projects. diff --git a/.changeset/dry-roses-wink.md b/.changeset/dry-roses-wink.md deleted file mode 100644 index c1d5209110..0000000000 --- a/.changeset/dry-roses-wink.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -Fix `--quickstart` flag to support overwritting it with other flags. Example: `h2 init --quickstart --no-install-deps`. - -Show error in `h2 debug cpu` command for Vite projects until we support it. - -Remove deprecated `--styling` flag from the `h2 init` command. diff --git a/.changeset/dull-impalas-promise.md b/.changeset/dull-impalas-promise.md deleted file mode 100644 index 081131b2ff..0000000000 --- a/.changeset/dull-impalas-promise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -Fix a warning when combining mock.shop and customer-account-push diff --git a/.changeset/honest-cups-play.md b/.changeset/honest-cups-play.md deleted file mode 100644 index 76b90634a9..0000000000 --- a/.changeset/honest-cups-play.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'skeleton': patch ---- - -Stop inlining the favicon in base64 to avoid issues with the Content-Security-Policy. In `vite.config.js`: - -```diff -export default defineConfig({ - plugins: [ - ... - ], -+ build: { -+ assetsInlineLimit: 0, -+ }, -}); -``` diff --git a/.changeset/many-cycles-invite.md b/.changeset/many-cycles-invite.md deleted file mode 100644 index 510bac770c..0000000000 --- a/.changeset/many-cycles-invite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Fix names and URLs shown for HIT/STALE items in the Subrequest Profiler. diff --git a/.changeset/slimy-pets-do.md b/.changeset/slimy-pets-do.md deleted file mode 100644 index a88623bec7..0000000000 --- a/.changeset/slimy-pets-do.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen-react': patch ---- - -Fix noteUpdate scalar to be required diff --git a/.changeset/three-windows-cough.md b/.changeset/three-windows-cough.md deleted file mode 100644 index 7959ea7091..0000000000 --- a/.changeset/three-windows-cough.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/mini-oxygen': patch ---- - -Fix an SSR HMR issue related to hanging promises during development. diff --git a/.changeset/two-geckos-fry.md b/.changeset/two-geckos-fry.md deleted file mode 100644 index abbd6f11da..0000000000 --- a/.changeset/two-geckos-fry.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'skeleton': patch ---- - -To improve HMR in Vite, move the `useRootLoaderData` function from `app/root.tsx` to a separate file like `app/lib/root-data.ts`. This change avoids circular imports: - -```tsx -// app/lib/root-data.ts -import {useMatches} from '@remix-run/react'; -import type {SerializeFrom} from '@shopify/remix-oxygen'; -import type {loader} from '~/root'; - -/** - * Access the result of the root loader from a React component. - */ -export const useRootLoaderData = () => { - const [root] = useMatches(); - return root?.data as SerializeFrom; -}; -``` - -Import this hook from `~/lib/root-data` instead of `~/root` in your components. diff --git a/examples/express/package.json b/examples/express/package.json index 1b02eacef6..4aa8ac475c 100644 --- a/examples/express/package.json +++ b/examples/express/package.json @@ -17,8 +17,8 @@ "@remix-run/react": "^2.8.0", "@remix-run/server-runtime": "^2.8.0", "@shopify/cli": "3.58.0", - "@shopify/cli-hydrogen": "^8.0.0", - "@shopify/hydrogen": "2024.4.0", + "@shopify/cli-hydrogen": "^8.0.1", + "@shopify/hydrogen": "2024.4.1", "compression": "^1.7.4", "cross-env": "^7.0.3", "express": "^4.19.2", diff --git a/examples/multipass/package.json b/examples/multipass/package.json index 75866a425f..981cc6a154 100644 --- a/examples/multipass/package.json +++ b/examples/multipass/package.json @@ -14,8 +14,8 @@ "dependencies": { "@remix-run/react": "^2.8.0", "@shopify/cli": "3.58.0", - "@shopify/cli-hydrogen": "^8.0.0", - "@shopify/hydrogen": "2024.4.0", + "@shopify/cli-hydrogen": "^8.0.1", + "@shopify/hydrogen": "2024.4.1", "@shopify/remix-oxygen": "^2.0.4", "crypto-js": "^4.2.0", "graphql": "^16.6.0", @@ -28,7 +28,7 @@ "devDependencies": { "@remix-run/dev": "^2.8.0", "@remix-run/eslint-config": "^2.8.0", - "@shopify/mini-oxygen": "^3.0.0", + "@shopify/mini-oxygen": "^3.0.1", "@shopify/oxygen-workers-types": "^4.0.0", "@shopify/prettier-config": "^1.1.2", "@total-typescript/ts-reset": "^0.4.2", diff --git a/examples/partytown/package.json b/examples/partytown/package.json index 198a0635ea..5be07e6512 100644 --- a/examples/partytown/package.json +++ b/examples/partytown/package.json @@ -17,8 +17,8 @@ "@builder.io/partytown": "^0.8.1", "@remix-run/react": "^2.8.0", "@shopify/cli": "3.58.0", - "@shopify/cli-hydrogen": "^8.0.0", - "@shopify/hydrogen": "2024.4.0", + "@shopify/cli-hydrogen": "^8.0.1", + "@shopify/hydrogen": "2024.4.1", "@shopify/remix-oxygen": "^2.0.4", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", @@ -29,7 +29,7 @@ "devDependencies": { "@remix-run/dev": "^2.8.0", "@remix-run/eslint-config": "^2.8.0", - "@shopify/mini-oxygen": "^3.0.0", + "@shopify/mini-oxygen": "^3.0.1", "@shopify/oxygen-workers-types": "^4.0.0", "@shopify/prettier-config": "^1.1.2", "@total-typescript/ts-reset": "^0.4.2", diff --git a/examples/subscriptions/package.json b/examples/subscriptions/package.json index e16f005222..707d1bbf6c 100644 --- a/examples/subscriptions/package.json +++ b/examples/subscriptions/package.json @@ -14,8 +14,8 @@ "dependencies": { "@remix-run/react": "^2.8.0", "@shopify/cli": "3.58.0", - "@shopify/cli-hydrogen": "^8.0.0", - "@shopify/hydrogen": "2024.4.0", + "@shopify/cli-hydrogen": "^8.0.1", + "@shopify/hydrogen": "2024.4.1", "@shopify/remix-oxygen": "^2.0.4", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", @@ -26,7 +26,7 @@ "devDependencies": { "@remix-run/dev": "^2.8.0", "@remix-run/eslint-config": "^2.8.0", - "@shopify/mini-oxygen": "^3.0.0", + "@shopify/mini-oxygen": "^3.0.1", "@shopify/oxygen-workers-types": "^4.0.0", "@shopify/prettier-config": "^1.1.2", "@tailwindcss/forms": "^0.5.3", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index e35d575c46..9bbfea2910 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,28 @@ # @shopify/cli-hydrogen +## 8.0.1 + +### Patch Changes + +- Clean up messaging around unlinked storefronts when running CLI commands ([#1937](https://github.com/Shopify/hydrogen/pull/1937)) by [@aswamy](https://github.com/aswamy) + + - When you run `env list`, `env pull`, or `deploy` against a storefront that isn't linked, it will show a warning message instead of an error message. + - If you don't have a storefront to link to on Admin, we will just ask you to create a storefront instead of displaying an option list of size 1. + - If you deleted a storefront on Admin, we will try to relink your storefront when running `env list`, `env pull`, or `deploy`. + +- Add `@return` JSDoc tag to functions in JavaScript projects. ([#2014](https://github.com/Shopify/hydrogen/pull/2014)) by [@frandiox](https://github.com/frandiox) + +- Fix `--quickstart` flag to support overwritting it with other flags. Example: `h2 init --quickstart --no-install-deps`. ([#2023](https://github.com/Shopify/hydrogen/pull/2023)) by [@frandiox](https://github.com/frandiox) + + Show error in `h2 debug cpu` command for Vite projects until we support it. + + Remove deprecated `--styling` flag from the `h2 init` command. + +- Fix a warning when combining mock.shop and customer-account-push ([#1992](https://github.com/Shopify/hydrogen/pull/1992)) by [@frandiox](https://github.com/frandiox) + +- Updated dependencies [[`7e8cf055`](https://github.com/Shopify/hydrogen/commit/7e8cf0558248e3bfd0f8299994e3ed2b91ee3d3b), [`a335afc1`](https://github.com/Shopify/hydrogen/commit/a335afc1026164132a618e8bcbbbf5d0fe27ae4c)]: + - @shopify/mini-oxygen@3.0.1 + ## 8.0.0 ### Major Changes diff --git a/packages/cli/oclif.manifest.json b/packages/cli/oclif.manifest.json index 2d52db72a5..15154d0e01 100644 --- a/packages/cli/oclif.manifest.json +++ b/packages/cli/oclif.manifest.json @@ -1788,5 +1788,5 @@ ] } }, - "version": "8.0.0" + "version": "8.0.1" } \ No newline at end of file diff --git a/packages/cli/package.json b/packages/cli/package.json index 7c2920e843..a08b2df8cc 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -4,7 +4,7 @@ "access": "public", "@shopify:registry": "https://registry.npmjs.org" }, - "version": "8.0.0", + "version": "8.0.1", "license": "MIT", "type": "module", "scripts": { @@ -60,7 +60,7 @@ "@graphql-codegen/cli": "^5.0.2", "@remix-run/dev": "^2.1.0", "@shopify/hydrogen-codegen": "^0.3.0", - "@shopify/mini-oxygen": "^3.0.0", + "@shopify/mini-oxygen": "^3.0.1", "graphql-config": "^5.0.3", "vite": "^5.1.0" }, diff --git a/packages/hydrogen-react/CHANGELOG.md b/packages/hydrogen-react/CHANGELOG.md index 275c2bf527..5ea7b2916c 100644 --- a/packages/hydrogen-react/CHANGELOG.md +++ b/packages/hydrogen-react/CHANGELOG.md @@ -1,5 +1,11 @@ # @shopify/hydrogen-react +## 2024.4.1 + +### Patch Changes + +- Fix noteUpdate scalar to be required ([#2008](https://github.com/Shopify/hydrogen/pull/2008)) by [@blittle](https://github.com/blittle) + ## 2024.4.0 ### Patch Changes diff --git a/packages/hydrogen-react/package.json b/packages/hydrogen-react/package.json index ee49df4bdc..e1b28633a6 100644 --- a/packages/hydrogen-react/package.json +++ b/packages/hydrogen-react/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/hydrogen-react", - "version": "2024.4.0", + "version": "2024.4.1", "description": "React components, hooks, and utilities for creating custom Shopify storefronts", "homepage": "https://github.com/Shopify/hydrogen/tree/main/packages/hydrogen-react", "license": "MIT", diff --git a/packages/hydrogen/CHANGELOG.md b/packages/hydrogen/CHANGELOG.md index e126a43406..6d149821d4 100644 --- a/packages/hydrogen/CHANGELOG.md +++ b/packages/hydrogen/CHANGELOG.md @@ -1,5 +1,16 @@ # @shopify/hydrogen +## 2024.4.1 + +### Patch Changes + +- Warn when using the deprecated Seo component ([#1983](https://github.com/Shopify/hydrogen/pull/1983)) by [@blittle](https://github.com/blittle) + +- Fix names and URLs shown for HIT/STALE items in the Subrequest Profiler. ([#2021](https://github.com/Shopify/hydrogen/pull/2021)) by [@frandiox](https://github.com/frandiox) + +- Updated dependencies [[`0f5cab00`](https://github.com/Shopify/hydrogen/commit/0f5cab00d7fbac313c0f3e9affb915638db8d5d9)]: + - @shopify/hydrogen-react@2024.4.1 + ## 2024.4.0 ### Minor Changes diff --git a/packages/hydrogen/package.json b/packages/hydrogen/package.json index 11e96533d6..1317bc7096 100644 --- a/packages/hydrogen/package.json +++ b/packages/hydrogen/package.json @@ -5,7 +5,7 @@ "@shopify:registry": "https://registry.npmjs.org" }, "type": "module", - "version": "2024.4.0", + "version": "2024.4.1", "license": "MIT", "main": "dist/index.cjs", "module": "dist/production/index.js", @@ -63,7 +63,7 @@ "dist" ], "dependencies": { - "@shopify/hydrogen-react": "2024.4.0", + "@shopify/hydrogen-react": "2024.4.1", "content-security-policy-builder": "^2.1.1", "type-fest": "^4.5.0", "source-map-support": "^0.5.21", diff --git a/packages/hydrogen/src/version.ts b/packages/hydrogen/src/version.ts index 50c788a9f4..bdad56aef5 100644 --- a/packages/hydrogen/src/version.ts +++ b/packages/hydrogen/src/version.ts @@ -1 +1 @@ -export const LIB_VERSION = '2024.4.0'; +export const LIB_VERSION = '2024.4.1'; diff --git a/packages/mini-oxygen/CHANGELOG.md b/packages/mini-oxygen/CHANGELOG.md index 167bad1963..ed8043b7a5 100644 --- a/packages/mini-oxygen/CHANGELOG.md +++ b/packages/mini-oxygen/CHANGELOG.md @@ -1,5 +1,13 @@ # @shopify/mini-oxygen +## 3.0.1 + +### Patch Changes + +- Fixed compatibility with Node 21. ([#2003](https://github.com/Shopify/hydrogen/pull/2003)) by [@frandiox](https://github.com/frandiox) + +- Fix an SSR HMR issue related to hanging promises during development. ([#2019](https://github.com/Shopify/hydrogen/pull/2019)) by [@frandiox](https://github.com/frandiox) + ## 3.0.0 ### Major Changes diff --git a/packages/mini-oxygen/package.json b/packages/mini-oxygen/package.json index de9cc30c1a..e20e115c4b 100644 --- a/packages/mini-oxygen/package.json +++ b/packages/mini-oxygen/package.json @@ -4,7 +4,7 @@ "access": "public", "@shopify:registry": "https://registry.npmjs.org" }, - "version": "3.0.0", + "version": "3.0.1", "license": "MIT", "type": "module", "description": "Development assistant for custom Shopify Oxygen hosted storefronts", diff --git a/templates/hello-world/package.json b/templates/hello-world/package.json index 83fae20809..2188d7a7bd 100644 --- a/templates/hello-world/package.json +++ b/templates/hello-world/package.json @@ -15,8 +15,8 @@ "@remix-run/react": "^2.8.0", "@remix-run/server-runtime": "^2.8.0", "@shopify/cli": "3.58.0", - "@shopify/cli-hydrogen": "^8.0.0", - "@shopify/hydrogen": "2024.4.0", + "@shopify/cli-hydrogen": "^8.0.1", + "@shopify/hydrogen": "2024.4.1", "@shopify/remix-oxygen": "^2.0.4", "@total-typescript/ts-reset": "^0.4.2", "graphql": "^16.6.0", @@ -27,7 +27,7 @@ }, "devDependencies": { "@remix-run/dev": "^2.8.0", - "@shopify/mini-oxygen": "^3.0.0", + "@shopify/mini-oxygen": "^3.0.1", "@shopify/oxygen-workers-types": "^4.0.0", "@shopify/prettier-config": "^1.1.2", "@types/eslint": "^8.4.10", diff --git a/templates/skeleton/CHANGELOG.md b/templates/skeleton/CHANGELOG.md index 4c5b1f266d..84795baff6 100644 --- a/templates/skeleton/CHANGELOG.md +++ b/templates/skeleton/CHANGELOG.md @@ -1,5 +1,45 @@ # skeleton +## 1.0.8 + +### Patch Changes + +- Stop inlining the favicon in base64 to avoid issues with the Content-Security-Policy. In `vite.config.js`: ([#2006](https://github.com/Shopify/hydrogen/pull/2006)) by [@frandiox](https://github.com/frandiox) + + ```diff + export default defineConfig({ + plugins: [ + ... + ], + + build: { + + assetsInlineLimit: 0, + + }, + }); + ``` + +- To improve HMR in Vite, move the `useRootLoaderData` function from `app/root.tsx` to a separate file like `app/lib/root-data.ts`. This change avoids circular imports: ([#2014](https://github.com/Shopify/hydrogen/pull/2014)) by [@frandiox](https://github.com/frandiox) + + ```tsx + // app/lib/root-data.ts + import {useMatches} from '@remix-run/react'; + import type {SerializeFrom} from '@shopify/remix-oxygen'; + import type {loader} from '~/root'; + + /** + * Access the result of the root loader from a React component. + */ + export const useRootLoaderData = () => { + const [root] = useMatches(); + return root?.data as SerializeFrom; + }; + ``` + + Import this hook from `~/lib/root-data` instead of `~/root` in your components. + +- Updated dependencies [[`b4dfda32`](https://github.com/Shopify/hydrogen/commit/b4dfda320ca52855b2d4493a4306d15a883ca843), [`ffa57bdb`](https://github.com/Shopify/hydrogen/commit/ffa57bdbcdf51e03d565736f9388b5bb4f46292c), [`ac4e1670`](https://github.com/Shopify/hydrogen/commit/ac4e1670f0361a2cd2c6827e4162bbbee0ca37f3), [`0af624d5`](https://github.com/Shopify/hydrogen/commit/0af624d51afc7250db889ba5e736c85a6070c8b2), [`9723eaf3`](https://github.com/Shopify/hydrogen/commit/9723eaf3e5a42c30e657d1cadb123ed775d620e4), [`e842f68c`](https://github.com/Shopify/hydrogen/commit/e842f68c8e879d4c54e0730f3cb55214a760d7f5)]: + - @shopify/cli-hydrogen@8.0.1 + - @shopify/hydrogen@2024.4.1 + ## 1.0.7 ### Patch Changes diff --git a/templates/skeleton/package.json b/templates/skeleton/package.json index d819a830ba..95258785cb 100644 --- a/templates/skeleton/package.json +++ b/templates/skeleton/package.json @@ -2,7 +2,7 @@ "name": "skeleton", "private": true, "sideEffects": false, - "version": "1.0.7", + "version": "1.0.8", "type": "module", "scripts": { "build": "shopify hydrogen build --codegen", @@ -17,8 +17,8 @@ "@remix-run/react": "^2.8.0", "@remix-run/server-runtime": "^2.8.0", "@shopify/cli": "3.58.0", - "@shopify/cli-hydrogen": "^8.0.0", - "@shopify/hydrogen": "2024.4.0", + "@shopify/cli-hydrogen": "^8.0.1", + "@shopify/hydrogen": "2024.4.1", "@shopify/remix-oxygen": "^2.0.4", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", @@ -31,7 +31,7 @@ "@remix-run/dev": "^2.8.0", "@remix-run/eslint-config": "^2.8.0", "@shopify/hydrogen-codegen": "^0.3.0", - "@shopify/mini-oxygen": "^3.0.0", + "@shopify/mini-oxygen": "^3.0.1", "@shopify/oxygen-workers-types": "^4.0.0", "@shopify/prettier-config": "^1.1.2", "@total-typescript/ts-reset": "^0.4.2",