Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@shopify/[email protected]
Major Changes
The default caching strategy has been updated. The new default caching strategy provides a
max-age
value of 1 second, and astale-while-revalidate
value of 1 day. If you would keep the old caching values, update your queries to useCacheShort
: (#1336) by @benjaminsehlRemix v2 (#1289) by @frandiox
Hydrogen 2023-10 has upgraded to Remix v2 and is now a peer dependency.
Please check the Remix v2 release notes to see what needs to be changed in your app code. Common changes include:
V2_
. For example,V2_MetaFunction
is nowMetaFunction
.LoaderArgs
andActionArgs
, which are nowLoaderFunctionArgs
andActionFunctionArgs
respectively.If you were not already using v2 flags, follow the official Remix migration guide before upgrading to v2.
Update to Remix v2. Remix is now a peer dependency and its version is no longer pinned. This means that you can upgrade to newer Remix 2.x versions without upgrading Hydrogen. (#1289) by @frandiox
The Storefront API types included are now generated using
@graphql-codegen/typescript@4
(changelog). This results in a breaking change if you were importingScalars
directly from@shopify/hydrogen-react
or@shopify/hydrogen
: (#1108) by @frandioxPatch Changes
Add a client to query the Customer Account API (#1430) by @blittle
Update Storefront API version to 2023-10 (#1431) by @wizardlyhel
Custom cart methods are now stable: (#1440) by @wizardlyhel
Remove deprecated parameters and props (Remove deprecated
getBuyerIp
#1455 and Remove deprecated props #1435): (#1435) by @wizardlyhelcreateStorefrontClient
parametersbuyerIp
andrequestGroupId
<Image>
propsloaderOptions
andwidths
Add query explorer plugin to GraphiQL. Start your dev server and load
http://localhost:3000/graphiql
to use GraphiQL. (#1470) by @frandioxUpdated dependencies [
0ae7cbe2
,ad45656c
]:@shopify/[email protected]
Major Changes
The Storefront API types included are now generated using
@graphql-codegen/typescript@4
(changelog). This results in a breaking change if you were importingScalars
directly from@shopify/hydrogen-react
or@shopify/hydrogen
: (#1108) by @frandioxPatch Changes
Remove deprecated parameters and props (Remove deprecated
getBuyerIp
#1455 and Remove deprecated props #1435): (#1435) by @wizardlyhelcreateStorefrontClient
parametersbuyerIp
andrequestGroupId
<Image>
propsloaderOptions
andwidths
@shopify/[email protected]
Major Changes
getBuyerIp
, which was deprecated in 2023-07. (#1455) by @frandiox@shopify/[email protected]
Minor Changes
--codegen
flag instead of--codegen-unstable
to generate code from your GraphQL queries. (#1108) by @frandioxPatch Changes
Updated internal dependencies to improve terminal output. (#1456) by @vincentezw
Please update the
@shopify/cli
dependency in your app to avoid duplicated subdependencies:Updated dependencies [
a6f397b6
,ad45656c
,ad45656c
,58dc68de
,0ae7cbe2
,ad45656c
]:@shopify/[email protected]
Minor Changes
Removed the
patchGqlPluck
named export from the main entrypoint. (#1108) by @frandioxAdded
@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 withnode -r @shopify/hydrogen-codegen/patch node_modules/.bin/graphql-codegen
or import it in yourcodegen.ts
file before anything else:Patch Changes
Remove warning when this package is used without
@shopify/hydrogen
. (#1108) by @frandioxAdd support for codegen in JavaScript projects with JSDoc. (Add JSDocs to generated projects #1334) by @frandiox (#1464) by @wizardlyhel
@shopify/[email protected]
Patch Changes
3464ec04
,ad45656c
]:[email protected]
Major Changes
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 theprimaryDomainUrl
: by @blittleHeaderMenu
component to accept aprimaryDomainUrl
and includeit in the internal url check
FooterMenu
component to accept aprimaryDomainUrl
prop and includeit in the internal url check
Footer
component to accept ashop
propLayout.tsx
to pass theshop
propPatch Changes
If you are calling
useMatches()
in different places of your app to access the data returned by the root loader, you may want to update it to the following pattern to enhance types: (#1289) by @frandioxThis way, you can import
useRootLoaderData()
anywhere in your app and get the correct type for the data returned by the root loader.Updated dependencies [
81400439
,a6f397b6
,3464ec04
,7fc088e2
,867e0b03
,ad45656c
,f24e3424
,66a48573
,0ae7cbe2
,8198c1be
,ad45656c
]:[email protected]
Patch Changes
81400439
,a6f397b6
,3464ec04
,7fc088e2
,867e0b03
,ad45656c
,f24e3424
,66a48573
,0ae7cbe2
,8198c1be
,ad45656c
]: