From 2e4afc2f88a2ed2e280c8845bef7c037d453a28e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 31 Oct 2023 17:25:28 +0000 Subject: [PATCH] [ci] release 2023-10 --- .changeset/chatty-parrots-care.md | 5 - .changeset/clean-timers-peel.md | 5 - .changeset/fast-poems-wash.md | 13 --- .changeset/forty-houses-taste.md | 5 - .changeset/four-toes-shout.md | 22 ---- .changeset/fuzzy-singers-check.md | 5 - .changeset/orange-socks-shave.md | 5 - .changeset/pink-bottles-bow.md | 25 ----- .changeset/purple-experts-sing.md | 114 -------------------- .changeset/short-taxis-call.md | 5 - .changeset/shy-jokes-flow.md | 19 ---- .changeset/smart-ways-destroy.md | 16 --- .changeset/sweet-points-walk.md | 9 -- .changeset/tender-colts-confess.md | 5 - .changeset/tender-teachers-allow.md | 15 --- .changeset/unlucky-stingrays-live.md | 23 ---- examples/customer-api/CHANGELOG.md | 10 ++ examples/customer-api/package.json | 8 +- examples/express/CHANGELOG.md | 8 ++ examples/express/package.json | 4 +- packages/cli/CHANGELOG.md | 24 +++++ packages/cli/oclif.manifest.json | 2 +- packages/cli/package.json | 8 +- packages/create-hydrogen/CHANGELOG.md | 7 ++ packages/create-hydrogen/package.json | 4 +- packages/hydrogen-codegen/CHANGELOG.md | 32 ++++++ packages/hydrogen-codegen/package.json | 2 +- packages/hydrogen-react/CHANGELOG.md | 22 ++++ packages/hydrogen-react/package.json | 2 +- packages/hydrogen/CHANGELOG.md | 79 ++++++++++++++ packages/hydrogen/package.json | 4 +- packages/hydrogen/src/version.ts | 2 +- packages/remix-oxygen/CHANGELOG.md | 6 ++ packages/remix-oxygen/package.json | 2 +- templates/demo-store/package.json | 6 +- templates/hello-world/package.json | 6 +- templates/skeleton/CHANGELOG.md | 143 +++++++++++++++++++++++++ templates/skeleton/package.json | 8 +- 38 files changed, 360 insertions(+), 320 deletions(-) delete mode 100644 .changeset/chatty-parrots-care.md delete mode 100644 .changeset/clean-timers-peel.md delete mode 100644 .changeset/fast-poems-wash.md delete mode 100644 .changeset/forty-houses-taste.md delete mode 100644 .changeset/four-toes-shout.md delete mode 100644 .changeset/fuzzy-singers-check.md delete mode 100644 .changeset/orange-socks-shave.md delete mode 100644 .changeset/pink-bottles-bow.md delete mode 100644 .changeset/purple-experts-sing.md delete mode 100644 .changeset/short-taxis-call.md delete mode 100644 .changeset/shy-jokes-flow.md delete mode 100644 .changeset/smart-ways-destroy.md delete mode 100644 .changeset/sweet-points-walk.md delete mode 100644 .changeset/tender-colts-confess.md delete mode 100644 .changeset/tender-teachers-allow.md delete mode 100644 .changeset/unlucky-stingrays-live.md create mode 100644 examples/customer-api/CHANGELOG.md create mode 100644 examples/express/CHANGELOG.md create mode 100644 templates/skeleton/CHANGELOG.md diff --git a/.changeset/chatty-parrots-care.md b/.changeset/chatty-parrots-care.md deleted file mode 100644 index f9694a8852..0000000000 --- a/.changeset/chatty-parrots-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Add a client to query the [Customer Account API](https://shopify.dev/docs/api/customer) diff --git a/.changeset/clean-timers-peel.md b/.changeset/clean-timers-peel.md deleted file mode 100644 index d22c8d7c8a..0000000000 --- a/.changeset/clean-timers-peel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/remix-oxygen': major ---- - -Remove the function export `getBuyerIp`, which was deprecated in 2023-07. diff --git a/.changeset/fast-poems-wash.md b/.changeset/fast-poems-wash.md deleted file mode 100644 index 7dbbf8ddff..0000000000 --- a/.changeset/fast-poems-wash.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@shopify/cli-hydrogen': patch ---- - -Updated internal dependencies to improve terminal output. -Please update the `@shopify/cli` dependency in your app to avoid duplicated subdependencies: - -```diff - "dependencies": { -- "@shopify/cli": "3.49.2", -+ "@shopify/cli": "3.50.0", - } -``` diff --git a/.changeset/forty-houses-taste.md b/.changeset/forty-houses-taste.md deleted file mode 100644 index 01c822da9f..0000000000 --- a/.changeset/forty-houses-taste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen': patch ---- - -Update Storefront API version to 2023-10 diff --git a/.changeset/four-toes-shout.md b/.changeset/four-toes-shout.md deleted file mode 100644 index 02ab78d485..0000000000 --- a/.changeset/four-toes-shout.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'@shopify/hydrogen': major ---- - -The default [caching strategy](https://shopify.dev/docs/custom-storefronts/hydrogen/data-fetching/cache#caching-strategies) has been updated. The new default caching strategy provides a `max-age` value of 1 second, and a `stale-while-revalidate` value of 1 day. If you would keep the old caching values, update your queries to use `CacheShort`: - -```diff - const {product} = await storefront.query( - `#graphql - query Product($handle: String!) { - product(handle: $handle) { id title } - } - `, - { - variables: {handle: params.productHandle}, -+ /** -+ * Override the default caching strategy with the old caching values -+ */ -+ cache: storefront.CacheShort(), - }, - ); -``` diff --git a/.changeset/fuzzy-singers-check.md b/.changeset/fuzzy-singers-check.md deleted file mode 100644 index 5ae5fcf058..0000000000 --- a/.changeset/fuzzy-singers-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/hydrogen-codegen': patch ---- - -Remove warning when this package is used without `@shopify/hydrogen`. diff --git a/.changeset/orange-socks-shave.md b/.changeset/orange-socks-shave.md deleted file mode 100644 index 5dae8a3846..0000000000 --- a/.changeset/orange-socks-shave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@shopify/cli-hydrogen': minor ---- - -The Codegen feature is now considered stable and related dependencies have been updated. Use `--codegen` flag instead of `--codegen-unstable` to generate code from your GraphQL queries. diff --git a/.changeset/pink-bottles-bow.md b/.changeset/pink-bottles-bow.md deleted file mode 100644 index 332ae77847..0000000000 --- a/.changeset/pink-bottles-bow.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@shopify/hydrogen-codegen': minor ---- - -Removed the `patchGqlPluck` named export from the main entrypoint. - -Added `@shopify/hydrogen-codegen/patch` entrypoint that automatically patches the necessary files. This is applied automatically by Hydrogen CLI. -If you're using the `graphql-codegen` CLI directly, you can either run it as a Node loader with `node -r @shopify/hydrogen-codegen/patch node_modules/.bin/graphql-codegen` or import it in your `codegen.ts` file before anything else: - -```js -import '@shopify/hydrogen-codegen/patch'; -import {preset, schema, pluckConfig} from '@shopify/hydrogen-codegen'; - -export default { - overwrite: true, - pluckConfig, - generates: { - 'storefrontapi.generated.d.ts': { - preset, - schema, - documents: ['...'], - }, - }, -}; -``` diff --git a/.changeset/purple-experts-sing.md b/.changeset/purple-experts-sing.md deleted file mode 100644 index 4691f56c34..0000000000 --- a/.changeset/purple-experts-sing.md +++ /dev/null @@ -1,114 +0,0 @@ ---- -'skeleton': major ---- - -The Storefront API 2023-10 now returns menu item URLs that include the `primaryDomainUrl`, instead of defaulting to the Shopify store ID URL (example.myshopify.com). The skeleton template requires changes to check for the `primaryDomainUrl`: - -1. Update the `HeaderMenu` component to accept a `primaryDomainUrl` and include - it in the internal url check - -```diff -// app/components/Header.tsx - -+ import type {HeaderQuery} from 'storefrontapi.generated'; - -export function HeaderMenu({ - menu, -+ primaryDomainUrl, - viewport, -}: { - menu: HeaderProps['header']['menu']; -+ primaryDomainUrl: HeaderQuery['shop']['primaryDomain']['url']; - viewport: Viewport; -}) { - - // ...code - - // 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; - - // ...code - -} -``` - -2. Update the `FooterMenu` component to accept a `primaryDomainUrl` prop and include - it in the internal url check - -```diff -// app/components/Footer.tsx - -- import type {FooterQuery} from 'storefrontapi.generated'; -+ import type {FooterQuery, HeaderQuery} from 'storefrontapi.generated'; - -function FooterMenu({ - menu, -+ primaryDomainUrl, -}: { - menu: FooterQuery['menu']; -+ primaryDomainUrl: HeaderQuery['shop']['primaryDomain']['url']; -}) { - // code... - - // 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; - - // ...code - - ); -} -``` - -3. Update the `Footer` component to accept a `shop` prop - -```diff -export function Footer({ - menu, -+ shop, -}: FooterQuery & {shop: HeaderQuery['shop']}) { - return ( - - ); -} -``` - -4. Update `Layout.tsx` to pass the `shop` prop - -```diff -export function Layout({ - cart, - children = null, - footer, - header, - isLoggedIn, -}: LayoutProps) { - return ( - <> - - - -
-
{children}
- - -- {(footer) =>