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/cli-hydrogen@7.0.0
Major Changes
Make the worker runtime the default for the local development server when running
dev
andpreview
. To access the legacy Node.js runtime, pass the--legacy-runtime
flag. The legacy runtime will be deprecated and removed in a future release. (#1625) by @frandioxRemove deprecated
build
command flags--base
,--entry
,--target
. Additionally,--codegen-unstable
is now--codegen
. (#1640) by @frandioxMinor Changes
Check for local project GraphQL config files (example:
.graphqlrc.yml
) when running in Codegen mode (#1577) by @frandioxAdd
deploy
command to Hydrogen CLI (#1628) by @graygilmoreYou can now deploy your Hydrogen app without connecting to GitHub. Run the
deploy
command from your local terminal or configure your own CI/CD workflows from any platform.Run
npx shopify hydrogen deploy --help
for more details.Add
--diff
flag todev
andbuild
commands, used for building Hydrogen app examples. (#1549) by @frandioxAdd
--template
flag to enable scaffolding projects based on examples from the Hydrogen repo. (#1608) by @frandioxExample:
npm create @shopify/hydrogen@latest -- --template multipass
.Patch Changes
Reorganize starter template file and folder structure (#1612) by @frandiox
Fix step-debugging when running in the Node.js sandbox (#1501) by @frandiox
Generate sourcemaps by default when running the
deploy
command (#1623) by @blittleRemove bundle-size check from the
build
command, in favor of checking server-side withdeploy
(#1614) by @benwolframUpdate example and template Remix versions to
^2.5.1
(#1639) by @wizardlyhelEnable Remix future flags:
v3_fetcherPersist
v3_relativeSplatpath
Add the option to create a new storefront when running the
init
command (#1681) by @aswamyUpdated dependencies [
0241b7d2
,9ad7c5ef
]:@shopify/hydrogen@2024.1.0
Major Changes
Better Hydrogen error handling (#1645) by @wizardlyhel
Breaking change
This update changes the shape of the error objects returned by the
createCartHandler
method.Previously, mutations could return an
errors
array that contained auserErrors
array.With this change, these arrays are no longer nested. The response can contain both an
errors
array and auserErrors
array.errors
contains GraphQL execution errors.userErrors
contains errors caused by the cart mutation itself (such as adding a product that has zero inventory).storefront.isApiError
is deprecated.Updated return types for
createCartHandler
methodscart.get()
used to return aCart
type. Now it returnsCartReturn
type to accommodate theerrors
object.cart
methods (ie.cart.addLines
) used to return aCartQueryData
type. Now it returnsCartQueryDataReturn
type to accommodate theerrors
object.Custom rules passed to
createContentSecurityPolicy
now extend the default Shopify and development domains, instead of overriding them (#1593) by @michenlyUpgrade to Storefront API v2024-01 (#1642) by @wizardlyhel
Minor Changes
Add Subrequest Profiler developer tool to enable better observability of server-side network requests and caching behaviors (#1511) by @wizardlyhel
Introduce the new
createCustomerAccountClient
for interacting with the Customer Account API (#1606) by @michenlyPatch Changes
Fix a bug that allowed undesired redirect to external domains (#1629) by @wizardlyhel
Fix content security policy to recognize
localhost
asset server as a valid source when running thedev
command (#1591) by @michenlyFix the
<Seo />
component to render canonical URLs without trailing slashes. Thanks to @joshuafredrickson for reporting (#1622) by @blittleMake default
HydrogenSession
type extensible. (#1590) by @michenlyUpdate implementation of HydrogenSession using type:
Fix error stack traces thrown by API clients if promises are not awaited (#1656) by @frandiox
Updated dependencies [
0629bc77
,dc8f90de
,ca1161b2
]:@shopify/hydrogen-react@2024.1.0
Major Changes
Patch Changes
Fix
<model-viewer>
'sonPause
event listener, with improved readability contributed by @sanjaiyan-dev (#1669) by @wizardlyhelAdd
React.forwardRef
toVideo
andExternalVideo
components (#1415) by @andershagbard@shopify/hydrogen-codegen@0.2.0
Minor Changes
@shopify/create-hydrogen@4.3.5
Patch Changes
Update example and template Remix versions to
^2.5.1
(#1639) by @wizardlyhelEnable Remix future flags:
v3_fetcherPersist
v3_relativeSplatpath
Updated dependencies [
8c477cb5
,42ac4138
,0241b7d2
,6a897586
,0ff63bed
,6bc1d61c
,eb0f4bcc
,335375a6
,3e7b6e8a
,9e3d88d4
,92840e51
,1bc053c9
]:@shopify/mini-oxygen@2.2.5
Patch Changes
@shopify/remix-oxygen@2.0.3
Patch Changes
skeleton@1.0.2
Patch Changes
Use new parameters introduced in Storefront API v2024-01 to fix redirection to the product's default variant when there are unknown query params in the URL. (#1642) by @wizardlyhel
Update the GraphQL config in
.graphqlrc.yml
to use the more modernprojects
structure: (#1577) by @frandioxThis allows you to add additional projects to the GraphQL config, such as third party CMS schemas.
Also, you can modify the document paths used for the Storefront API queries. This is useful if you have a large codebase and want to exclude certain files from being used for codegen or other GraphQL utilities:
Improve resiliency of
HydrogenSession
(#1583) by @blittleUpdate
@shopify/cli
dependency inpackage.json
: (#1579) by @frandioxUpdate example and template Remix versions to
^2.5.1
(#1639) by @wizardlyhelEnable Remix future flags:
v3_fetcherPersist
v3_relativeSplatpath
Updated dependencies [
810f48cf
,8c477cb5
,42ac4138
,0241b7d2
,6a897586
,0ff63bed
,6bc1d61c
,eb0f4bcc
,400bfee6
,a69c21ca
,970073e7
,772118ca
,335375a6
,335371ce
,94509b75
,36d6fa2c
,3e7b6e8a
,cce65795
,9e3d88d4
,ca1161b2
,92840e51
,952fedf2
,1bc053c9
]: