From 8d21adc05ecb2d07a26632a8baae086519e3c0f7 Mon Sep 17 00:00:00 2001 From: "shopify-github-actions-access[bot]" <109624739+shopify-github-actions-access[bot]@users.noreply.github.com> Date: Tue, 16 May 2023 09:19:31 -0600 Subject: [PATCH] [ci] release 2023-04 (#817) Co-authored-by: github-actions[bot] --- .changeset/clean-dancers-exercise.md | 5 ----- .changeset/cuddly-numbers-admire.md | 5 ----- .changeset/eleven-pandas-train.md | 20 -------------------- .changeset/funny-comics-lay.md | 5 ----- .changeset/happy-pets-hide.md | 5 ----- .changeset/hungry-ducks-wonder.md | 5 ----- .changeset/nervous-bears-look.md | 15 --------------- .changeset/polite-deers-build.md | 6 ------ .changeset/quiet-terms-unite.md | 5 ----- .changeset/three-news-retire.md | 5 ----- .changeset/tricky-insects-crash.md | 5 ----- .changeset/wicked-pens-live.md | 5 ----- packages/cli/CHANGELOG.md | 20 ++++++++++++++++++++ packages/cli/oclif.manifest.json | 2 +- packages/cli/package.json | 6 +++--- packages/create-hydrogen/package.json | 2 +- packages/hydrogen-react/CHANGELOG.md | 15 +++++++++++++++ packages/hydrogen-react/package.json | 2 +- packages/hydrogen/CHANGELOG.md | 20 ++++++++++++++++++++ packages/hydrogen/package.json | 4 ++-- packages/hydrogen/src/version.ts | 2 +- packages/remix-oxygen/CHANGELOG.md | 21 +++++++++++++++++++++ packages/remix-oxygen/package.json | 2 +- templates/demo-store/CHANGELOG.md | 19 +++++++++++++++++++ templates/demo-store/package.json | 8 ++++---- templates/hello-world/package.json | 6 +++--- templates/skeleton/package.json | 6 +++--- 27 files changed, 115 insertions(+), 106 deletions(-) delete mode 100644 .changeset/clean-dancers-exercise.md delete mode 100644 .changeset/cuddly-numbers-admire.md delete mode 100644 .changeset/eleven-pandas-train.md delete mode 100644 .changeset/funny-comics-lay.md delete mode 100644 .changeset/happy-pets-hide.md delete mode 100644 .changeset/hungry-ducks-wonder.md delete mode 100644 .changeset/nervous-bears-look.md delete mode 100644 .changeset/polite-deers-build.md delete mode 100644 .changeset/quiet-terms-unite.md delete mode 100644 .changeset/three-news-retire.md delete mode 100644 .changeset/tricky-insects-crash.md delete mode 100644 .changeset/wicked-pens-live.md diff --git a/.changeset/clean-dancers-exercise.md b/.changeset/clean-dancers-exercise.md deleted file mode 100644 index 1ce25d5b40..0000000000 --- a/.changeset/clean-dancers-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'demo-store': patch ---- - -Add `.shopify` to the .gitignore file to support upcoming CLI changes diff --git a/.changeset/cuddly-numbers-admire.md b/.changeset/cuddly-numbers-admire.md deleted file mode 100644 index 05e7c89779..0000000000 --- a/.changeset/cuddly-numbers-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -Add command to pull environment variables from a Hydrogen storefront defined in the Shopify Admin diff --git a/.changeset/eleven-pandas-train.md b/.changeset/eleven-pandas-train.md deleted file mode 100644 index 249c4780ff..0000000000 --- a/.changeset/eleven-pandas-train.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@shopify/remix-oxygen': patch ---- - -Add a default `Powered-By: Shopify-Hydrogen` header. It can be disabled by passing `poweredByHeader: false` in the configuration object of `createRequestHandler`: - -```ts -import {createRequestHandler} from '@shopify/remix-oxygen'; - -export default { - async fetch(request) { - // ... - const handleRequest = createRequestHandler({ - // ... other properties included - poweredByHeader: false, - }); - // ... - }, -}; -``` diff --git a/.changeset/funny-comics-lay.md b/.changeset/funny-comics-lay.md deleted file mode 100644 index 596de3b2ab..0000000000 --- a/.changeset/funny-comics-lay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -Update docs links on successful project creation diff --git a/.changeset/happy-pets-hide.md b/.changeset/happy-pets-hide.md deleted file mode 100644 index 8eee556f5e..0000000000 --- a/.changeset/happy-pets-hide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'demo-store': patch ---- - -Move GraphQL fragments from the beginning of the template literal to the end of it, so that we don't get the EOF error in VSCode. diff --git a/.changeset/hungry-ducks-wonder.md b/.changeset/hungry-ducks-wonder.md deleted file mode 100644 index 431da25998..0000000000 --- a/.changeset/hungry-ducks-wonder.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -New `--debug` flag for the `dev` command that attaches a Node inspector to the development server. diff --git a/.changeset/nervous-bears-look.md b/.changeset/nervous-bears-look.md deleted file mode 100644 index 05341061e9..0000000000 --- a/.changeset/nervous-bears-look.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@shopify/hydrogen-react': patch -'@shopify/hydrogen': patch ---- - -Adds `parseGid()` which is a helper function that takes in a [Shopify GID](https://shopify.dev/docs/api/usage/gids) and returns the `resource` and `id` from it. For example: - -```js -import {parseGid} from '@shopify/hydrogen-react'; - -const {id, resource} = parseGid('gid://shopify/Order/123'); - -console.log(id); // 123 -console.log(resource); // Order -``` diff --git a/.changeset/polite-deers-build.md b/.changeset/polite-deers-build.md deleted file mode 100644 index d992493c7f..0000000000 --- a/.changeset/polite-deers-build.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -Ensure request logs are shown in MiniOxygen during development. -Provide [custom Oxygen headers](https://shopify.dev/docs/custom-storefronts/oxygen/worker-runtime-apis#custom-headers) in local MiniOxygen. diff --git a/.changeset/quiet-terms-unite.md b/.changeset/quiet-terms-unite.md deleted file mode 100644 index c453a1477e..0000000000 --- a/.changeset/quiet-terms-unite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'demo-store': patch ---- - -Updated Tailwind configuration file with a new dynamic opacity placeholder for colors diff --git a/.changeset/three-news-retire.md b/.changeset/three-news-retire.md deleted file mode 100644 index dec8e51c50..0000000000 --- a/.changeset/three-news-retire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'demo-store': major ---- - -All routes were changed from having a `$lang` path parameter to having a `$locale` path parameter. See #860 for more details. diff --git a/.changeset/tricky-insects-crash.md b/.changeset/tricky-insects-crash.md deleted file mode 100644 index cbf548bd4d..0000000000 --- a/.changeset/tricky-insects-crash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Avoid warning about missing `buyerIp` when using private access tokens in development. diff --git a/.changeset/wicked-pens-live.md b/.changeset/wicked-pens-live.md deleted file mode 100644 index 53dd9d811a..0000000000 --- a/.changeset/wicked-pens-live.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -Add new commands for merchants to be able to list and link Hydrogen storefronts on Shopify diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index c1861f1e5c..5633e7b18c 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,25 @@ # @shopify/cli-hydrogen +## 4.1.2 + +### Patch Changes + +- Add command to pull environment variables from a Hydrogen storefront defined in the Shopify Admin ([#809](https://github.com/Shopify/hydrogen/pull/809)) by [@graygilmore](https://github.com/graygilmore) + +- Update docs links on successful project creation ([#810](https://github.com/Shopify/hydrogen/pull/810)) by [@gfscott](https://github.com/gfscott) + +- New `--debug` flag for the `dev` command that attaches a Node inspector to the development server. ([#869](https://github.com/Shopify/hydrogen/pull/869)) by [@frandiox](https://github.com/frandiox) + +- Ensure request logs are shown in MiniOxygen during development. ([#836](https://github.com/Shopify/hydrogen/pull/836)) by [@frandiox](https://github.com/frandiox) + + Provide [custom Oxygen headers](https://shopify.dev/docs/custom-storefronts/oxygen/worker-runtime-apis#custom-headers) in local MiniOxygen. + +- Add new commands for merchants to be able to list and link Hydrogen storefronts on Shopify ([#784](https://github.com/Shopify/hydrogen/pull/784)) by [@graygilmore](https://github.com/graygilmore) + +- Updated dependencies [[`025385b6`](https://github.com/Shopify/hydrogen/commit/025385b6f9f58a76ffb15d9f505dfbf2b5e21427), [`0a009a3b`](https://github.com/Shopify/hydrogen/commit/0a009a3ba06dadd8f9d799575d7f88590f82a966)]: + - @shopify/remix-oxygen@1.0.6 + - @shopify/hydrogen-react@2023.4.1 + ## 4.1.1 ### Patch Changes diff --git a/packages/cli/oclif.manifest.json b/packages/cli/oclif.manifest.json index 3ca7a771cd..0c11ee158c 100644 --- a/packages/cli/oclif.manifest.json +++ b/packages/cli/oclif.manifest.json @@ -1 +1 @@ -{"version":"4.1.1","commands":{"hydrogen:build":{"id":"hydrogen:build","description":"Builds a Hydrogen storefront for production.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"sourcemap":{"name":"sourcemap","type":"boolean","description":"Generate sourcemaps for the build.","allowNo":false},"disable-route-warning":{"name":"disable-route-warning","type":"boolean","description":"Disable warning about missing standard routes.","allowNo":false},"base":{"name":"base","type":"option","hidden":true,"multiple":false},"entry":{"name":"entry","type":"option","hidden":true,"multiple":false},"target":{"name":"target","type":"option","hidden":true,"multiple":false}},"args":[]},"hydrogen:check":{"id":"hydrogen:check","description":"Returns diagnostic information about a Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[{"name":"resource","description":"The resource to check. Currently only 'routes' is supported.","required":true,"options":["routes"]}]},"hydrogen:dev":{"id":"hydrogen:dev","description":"Runs Hydrogen storefront in an Oxygen worker for development.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"port":{"name":"port","type":"option","description":"Port to run the server on.","multiple":false,"default":3000},"disable-virtual-routes":{"name":"disable-virtual-routes","type":"boolean","description":"Disable rendering fallback routes when a route file doesn't exist","allowNo":false},"debug":{"name":"debug","type":"boolean","description":"Attaches a Node inspector","allowNo":false},"host":{"name":"host","type":"option","hidden":true,"multiple":false}},"args":[]},"hydrogen:g":{"id":"hydrogen:g","description":"Shortcut for `hydrogen generate`. See `hydrogen generate --help` for more information.","strict":false,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"hydrogen:init":{"id":"hydrogen:init","description":"Creates a new Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the new Hydrogen storefront.","multiple":false},"language":{"name":"language","type":"option","description":"Sets the template language to use. One of `js` or `ts`.","multiple":false},"template":{"name":"template","type":"option","description":"Sets the template to use. One of `demo-store` or `hello-world`.","multiple":false},"install-deps":{"name":"install-deps","type":"boolean","description":"Auto install dependencies using the active package manager","allowNo":true}},"args":[]},"hydrogen:link":{"id":"hydrogen:link","description":"Link a local project to one of your shop's Hydrogen storefronts.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","description":"Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).","multiple":false},"storefront":{"name":"storefront","type":"option","char":"h","description":"The name of a Hydrogen Storefront (e.g. \"Jane's Apparel\")","multiple":false}},"args":[]},"hydrogen:list":{"id":"hydrogen:list","description":"Returns a list of Hydrogen storefronts available on a given shop.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","description":"Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).","multiple":false}},"args":[]},"hydrogen:preview":{"id":"hydrogen:preview","description":"Runs a Hydrogen storefront in an Oxygen worker for production.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"port":{"name":"port","type":"option","description":"Port to run the server on.","multiple":false,"default":3000}},"args":[]},"hydrogen:shortcut":{"id":"hydrogen:shortcut","description":"Creates a global `h2` shortcut for the Hydrogen CLI","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{},"args":[]},"hydrogen:unlink":{"id":"hydrogen:unlink","description":"Unlink a local project from a Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[]},"hydrogen:env:pull":{"id":"hydrogen:env:pull","description":"Populate your .env with variables from your Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","description":"Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).","multiple":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false}},"args":[]},"hydrogen:generate:route":{"id":"hydrogen:generate:route","description":"Generates a standard Shopify route.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"adapter":{"name":"adapter","type":"option","description":"Remix adapter used in the route. The default is `@shopify/remix-oxygen`.","multiple":false},"typescript":{"name":"typescript","type":"boolean","description":"Generate TypeScript files","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[{"name":"route","description":"The route to generate. One of home,page,cart,products,collections,policies,robots,sitemap,account,all.","required":true,"options":["home","page","cart","products","collections","policies","robots","sitemap","account","all"]}]},"hydrogen:generate:routes":{"id":"hydrogen:generate:routes","description":"Generates all supported standard shopify routes.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"adapter":{"name":"adapter","type":"option","description":"Remix adapter used in the route. The default is `@shopify/remix-oxygen`.","multiple":false},"typescript":{"name":"typescript","type":"boolean","description":"Generate TypeScript files","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[]}}} \ No newline at end of file +{"version":"4.1.2","commands":{"hydrogen:build":{"id":"hydrogen:build","description":"Builds a Hydrogen storefront for production.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"sourcemap":{"name":"sourcemap","type":"boolean","description":"Generate sourcemaps for the build.","allowNo":false},"disable-route-warning":{"name":"disable-route-warning","type":"boolean","description":"Disable warning about missing standard routes.","allowNo":false},"base":{"name":"base","type":"option","hidden":true,"multiple":false},"entry":{"name":"entry","type":"option","hidden":true,"multiple":false},"target":{"name":"target","type":"option","hidden":true,"multiple":false}},"args":[]},"hydrogen:check":{"id":"hydrogen:check","description":"Returns diagnostic information about a Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[{"name":"resource","description":"The resource to check. Currently only 'routes' is supported.","required":true,"options":["routes"]}]},"hydrogen:dev":{"id":"hydrogen:dev","description":"Runs Hydrogen storefront in an Oxygen worker for development.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"port":{"name":"port","type":"option","description":"Port to run the server on.","multiple":false,"default":3000},"disable-virtual-routes":{"name":"disable-virtual-routes","type":"boolean","description":"Disable rendering fallback routes when a route file doesn't exist","allowNo":false},"debug":{"name":"debug","type":"boolean","description":"Attaches a Node inspector","allowNo":false},"host":{"name":"host","type":"option","hidden":true,"multiple":false}},"args":[]},"hydrogen:g":{"id":"hydrogen:g","description":"Shortcut for `hydrogen generate`. See `hydrogen generate --help` for more information.","strict":false,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"hydrogen:init":{"id":"hydrogen:init","description":"Creates a new Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the new Hydrogen storefront.","multiple":false},"language":{"name":"language","type":"option","description":"Sets the template language to use. One of `js` or `ts`.","multiple":false},"template":{"name":"template","type":"option","description":"Sets the template to use. One of `demo-store` or `hello-world`.","multiple":false},"install-deps":{"name":"install-deps","type":"boolean","description":"Auto install dependencies using the active package manager","allowNo":true}},"args":[]},"hydrogen:link":{"id":"hydrogen:link","description":"Link a local project to one of your shop's Hydrogen storefronts.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","description":"Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).","multiple":false},"storefront":{"name":"storefront","type":"option","char":"h","description":"The name of a Hydrogen Storefront (e.g. \"Jane's Apparel\")","multiple":false}},"args":[]},"hydrogen:list":{"id":"hydrogen:list","description":"Returns a list of Hydrogen storefronts available on a given shop.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","description":"Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).","multiple":false}},"args":[]},"hydrogen:preview":{"id":"hydrogen:preview","description":"Runs a Hydrogen storefront in an Oxygen worker for production.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"port":{"name":"port","type":"option","description":"Port to run the server on.","multiple":false,"default":3000}},"args":[]},"hydrogen:shortcut":{"id":"hydrogen:shortcut","description":"Creates a global `h2` shortcut for the Hydrogen CLI","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{},"args":[]},"hydrogen:unlink":{"id":"hydrogen:unlink","description":"Unlink a local project from a Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[]},"hydrogen:env:pull":{"id":"hydrogen:env:pull","description":"Populate your .env with variables from your Hydrogen storefront.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","hidden":true,"aliases":[],"flags":{"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false},"shop":{"name":"shop","type":"option","char":"s","description":"Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).","multiple":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false}},"args":[]},"hydrogen:generate:route":{"id":"hydrogen:generate:route","description":"Generates a standard Shopify route.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"adapter":{"name":"adapter","type":"option","description":"Remix adapter used in the route. The default is `@shopify/remix-oxygen`.","multiple":false},"typescript":{"name":"typescript","type":"boolean","description":"Generate TypeScript files","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[{"name":"route","description":"The route to generate. One of home,page,cart,products,collections,policies,robots,sitemap,account,all.","required":true,"options":["home","page","cart","products","collections","policies","robots","sitemap","account","all"]}]},"hydrogen:generate:routes":{"id":"hydrogen:generate:routes","description":"Generates all supported standard shopify routes.","strict":true,"pluginName":"@shopify/cli-hydrogen","pluginAlias":"@shopify/cli-hydrogen","pluginType":"core","aliases":[],"flags":{"adapter":{"name":"adapter","type":"option","description":"Remix adapter used in the route. The default is `@shopify/remix-oxygen`.","multiple":false},"typescript":{"name":"typescript","type":"boolean","description":"Generate TypeScript files","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Overwrite the destination directory and files if they already exist.","allowNo":false},"path":{"name":"path","type":"option","description":"The path to the directory of the Hydrogen storefront. The default is the current directory.","multiple":false}},"args":[]}}} \ No newline at end of file diff --git a/packages/cli/package.json b/packages/cli/package.json index 26df443dc8..0c1ed4bec5 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -4,7 +4,7 @@ "access": "public", "@shopify:registry": "https://registry.npmjs.org" }, - "version": "4.1.1", + "version": "4.1.2", "license": "SEE LICENSE IN LICENSE.md", "type": "module", "scripts": { @@ -27,8 +27,8 @@ }, "peerDependencies": { "@remix-run/react": "^1.15.0", - "@shopify/hydrogen-react": "^2023.4.0", - "@shopify/remix-oxygen": "^1.0.5" + "@shopify/hydrogen-react": "^2023.4.1", + "@shopify/remix-oxygen": "^1.0.6" }, "dependencies": { "@oclif/core": "2.1.4", diff --git a/packages/create-hydrogen/package.json b/packages/create-hydrogen/package.json index 93acfb04c2..a1e77c3a53 100644 --- a/packages/create-hydrogen/package.json +++ b/packages/create-hydrogen/package.json @@ -13,7 +13,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@shopify/cli-hydrogen": "^4.1.1" + "@shopify/cli-hydrogen": "^4.1.2" }, "bin": "dist/create-app.js", "files": [ diff --git a/packages/hydrogen-react/CHANGELOG.md b/packages/hydrogen-react/CHANGELOG.md index 25173974b8..3439e7b3de 100644 --- a/packages/hydrogen-react/CHANGELOG.md +++ b/packages/hydrogen-react/CHANGELOG.md @@ -1,5 +1,20 @@ # @shopify/hydrogen-react +## 2023.4.1 + +### Patch Changes + +- Adds `parseGid()` which is a helper function that takes in a [Shopify GID](https://shopify.dev/docs/api/usage/gids) and returns the `resource` and `id` from it. For example: ([#845](https://github.com/Shopify/hydrogen/pull/845)) by [@frehner](https://github.com/frehner) + + ```js + import {parseGid} from '@shopify/hydrogen-react'; + + const {id, resource} = parseGid('gid://shopify/Order/123'); + + console.log(id); // 123 + console.log(resource); // Order + ``` + ## 2023.4.0 ### Major Changes diff --git a/packages/hydrogen-react/package.json b/packages/hydrogen-react/package.json index 070cc31f5f..11169f07ca 100644 --- a/packages/hydrogen-react/package.json +++ b/packages/hydrogen-react/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/hydrogen-react", - "version": "2023.4.0", + "version": "2023.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 d1267b2906..72c32a9bc8 100644 --- a/packages/hydrogen/CHANGELOG.md +++ b/packages/hydrogen/CHANGELOG.md @@ -1,5 +1,25 @@ # @shopify/hydrogen +## 2023.4.1 + +### Patch Changes + +- Adds `parseGid()` which is a helper function that takes in a [Shopify GID](https://shopify.dev/docs/api/usage/gids) and returns the `resource` and `id` from it. For example: ([#845](https://github.com/Shopify/hydrogen/pull/845)) by [@frehner](https://github.com/frehner) + + ```js + import {parseGid} from '@shopify/hydrogen-react'; + + const {id, resource} = parseGid('gid://shopify/Order/123'); + + console.log(id); // 123 + console.log(resource); // Order + ``` + +- Avoid warning about missing `buyerIp` when using private access tokens in development. ([#836](https://github.com/Shopify/hydrogen/pull/836)) by [@frandiox](https://github.com/frandiox) + +- Updated dependencies [[`0a009a3b`](https://github.com/Shopify/hydrogen/commit/0a009a3ba06dadd8f9d799575d7f88590f82a966)]: + - @shopify/hydrogen-react@2023.4.1 + ## 2023.4.0 ### Major Changes diff --git a/packages/hydrogen/package.json b/packages/hydrogen/package.json index ca3a1656a2..16b1baed5e 100644 --- a/packages/hydrogen/package.json +++ b/packages/hydrogen/package.json @@ -5,7 +5,7 @@ "@shopify:registry": "https://registry.npmjs.org" }, "type": "module", - "version": "2023.4.0", + "version": "2023.4.1", "license": "SEE LICENSE IN LICENSE.md", "main": "dist/index.cjs", "module": "dist/production/index.js", @@ -54,7 +54,7 @@ "dist" ], "dependencies": { - "@shopify/hydrogen-react": "2023.4.0", + "@shopify/hydrogen-react": "2023.4.1", "react": "^18.2.0" }, "peerDependencies": { diff --git a/packages/hydrogen/src/version.ts b/packages/hydrogen/src/version.ts index f7d7ae5cb7..1a0b269566 100644 --- a/packages/hydrogen/src/version.ts +++ b/packages/hydrogen/src/version.ts @@ -1 +1 @@ -export const LIB_VERSION = '2023.4.0'; +export const LIB_VERSION = '2023.4.1'; diff --git a/packages/remix-oxygen/CHANGELOG.md b/packages/remix-oxygen/CHANGELOG.md index 010801abcc..7c600ea42a 100644 --- a/packages/remix-oxygen/CHANGELOG.md +++ b/packages/remix-oxygen/CHANGELOG.md @@ -1,5 +1,26 @@ # @shopify/remix-oxygen +## 1.0.6 + +### Patch Changes + +- Add a default `Powered-By: Shopify-Hydrogen` header. It can be disabled by passing `poweredByHeader: false` in the configuration object of `createRequestHandler`: ([#872](https://github.com/Shopify/hydrogen/pull/872)) by [@blittle](https://github.com/blittle) + + ```ts + import {createRequestHandler} from '@shopify/remix-oxygen'; + + export default { + async fetch(request) { + // ... + const handleRequest = createRequestHandler({ + // ... other properties included + poweredByHeader: false, + }); + // ... + }, + }; + ``` + ## 1.0.5 ### Patch Changes diff --git a/packages/remix-oxygen/package.json b/packages/remix-oxygen/package.json index 5d319cb9d7..73cefecd86 100644 --- a/packages/remix-oxygen/package.json +++ b/packages/remix-oxygen/package.json @@ -5,7 +5,7 @@ "@shopify:registry": "https://registry.npmjs.org" }, "type": "module", - "version": "1.0.5", + "version": "1.0.6", "license": "SEE LICENSE IN LICENSE.md", "main": "dist/index.cjs", "module": "dist/production/index.js", diff --git a/templates/demo-store/CHANGELOG.md b/templates/demo-store/CHANGELOG.md index adfd9e550d..cd0fa79e8b 100644 --- a/templates/demo-store/CHANGELOG.md +++ b/templates/demo-store/CHANGELOG.md @@ -1,5 +1,24 @@ # demo-store +## 1.0.0 + +### Major Changes + +- All routes were changed from having a `$lang` path parameter to having a `$locale` path parameter. See #860 for more details. ([#864](https://github.com/Shopify/hydrogen/pull/864)) by [@frehner](https://github.com/frehner) + +### Patch Changes + +- Add `.shopify` to the .gitignore file to support upcoming CLI changes ([#784](https://github.com/Shopify/hydrogen/pull/784)) by [@graygilmore](https://github.com/graygilmore) + +- Move GraphQL fragments from the beginning of the template literal to the end of it, so that we don't get the EOF error in VSCode. ([#833](https://github.com/Shopify/hydrogen/pull/833)) by [@frehner](https://github.com/frehner) + +- Updated Tailwind configuration file with a new dynamic opacity placeholder for colors ([#851](https://github.com/Shopify/hydrogen/pull/851)) by [@blanklob](https://github.com/blanklob) + +- Updated dependencies [[`685bb696`](https://github.com/Shopify/hydrogen/commit/685bb696a9bd03b8a7fe8bcefa3630d6ba0c99c8), [`025385b6`](https://github.com/Shopify/hydrogen/commit/025385b6f9f58a76ffb15d9f505dfbf2b5e21427), [`35a87107`](https://github.com/Shopify/hydrogen/commit/35a871073941e008e104e9c491719d4cade8b49a), [`33f33edd`](https://github.com/Shopify/hydrogen/commit/33f33edd205bbc113047533c71c71ad53bc91b3e), [`0a009a3b`](https://github.com/Shopify/hydrogen/commit/0a009a3ba06dadd8f9d799575d7f88590f82a966), [`9c2e67c5`](https://github.com/Shopify/hydrogen/commit/9c2e67c52ec1c77062cb667505560afb757372a9), [`9c2e67c5`](https://github.com/Shopify/hydrogen/commit/9c2e67c52ec1c77062cb667505560afb757372a9), [`3d458e2b`](https://github.com/Shopify/hydrogen/commit/3d458e2b3c66a4daac798598cadba38b9ecd8a1e)]: + - @shopify/cli-hydrogen@4.1.2 + - @shopify/remix-oxygen@1.0.6 + - @shopify/hydrogen@2023.4.1 + ## 0.2.1 ### Patch Changes diff --git a/templates/demo-store/package.json b/templates/demo-store/package.json index 1717a1128b..064ebe2cfc 100644 --- a/templates/demo-store/package.json +++ b/templates/demo-store/package.json @@ -2,7 +2,7 @@ "name": "demo-store", "private": true, "sideEffects": false, - "version": "0.2.1", + "version": "1.0.0", "scripts": { "dev": "shopify hydrogen dev", "build": "shopify hydrogen build", @@ -20,9 +20,9 @@ "@headlessui/react": "^1.7.2", "@remix-run/react": "1.15.0", "@shopify/cli": "3.45.0", - "@shopify/cli-hydrogen": "^4.1.1", - "@shopify/hydrogen": "^2023.4.0", - "@shopify/remix-oxygen": "^1.0.5", + "@shopify/cli-hydrogen": "^4.1.2", + "@shopify/hydrogen": "^2023.4.1", + "@shopify/remix-oxygen": "^1.0.6", "clsx": "^1.2.1", "cross-env": "^7.0.3", "graphql": "^16.6.0", diff --git a/templates/hello-world/package.json b/templates/hello-world/package.json index b93b62aa28..517f82e9d1 100644 --- a/templates/hello-world/package.json +++ b/templates/hello-world/package.json @@ -15,9 +15,9 @@ "dependencies": { "@remix-run/react": "1.15.0", "@shopify/cli": "3.45.0", - "@shopify/cli-hydrogen": "^4.1.1", - "@shopify/hydrogen": "^2023.4.0", - "@shopify/remix-oxygen": "^1.0.5", + "@shopify/cli-hydrogen": "^4.1.2", + "@shopify/hydrogen": "^2023.4.1", + "@shopify/remix-oxygen": "^1.0.6", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", "isbot": "^3.6.6", diff --git a/templates/skeleton/package.json b/templates/skeleton/package.json index 9ab5cb4db7..d4766642ab 100644 --- a/templates/skeleton/package.json +++ b/templates/skeleton/package.json @@ -14,9 +14,9 @@ "dependencies": { "@remix-run/react": "1.15.0", "@shopify/cli": "3.45.0", - "@shopify/cli-hydrogen": "^4.1.1", - "@shopify/hydrogen": "^2023.4.0", - "@shopify/remix-oxygen": "^1.0.5", + "@shopify/cli-hydrogen": "^4.1.2", + "@shopify/hydrogen": "^2023.4.1", + "@shopify/remix-oxygen": "^1.0.6", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", "isbot": "^3.6.6",