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
- selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions) { + selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions, ignoreUnknownOptions: true, caseInsensitiveMatch: true) { ...ProductVariant }
-
Update the GraphQL config in
.graphqlrc.yml
to use the more modernprojects
structure: (#1577) by @frandiox-schema: node_modules/@shopify/hydrogen/storefront.schema.json +projects: + default: + schema: 'node_modules/@shopify/hydrogen/storefront.schema.json'
This 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:
projects: default: schema: 'node_modules/@shopify/hydrogen/storefront.schema.json' documents: - '!*.d.ts' - '*.{ts,tsx,js,jsx}' - 'app/**/*.{ts,tsx,js,jsx}'
-
Update
@shopify/cli
dependency inpackage.json
: (#1579) by @frandiox- "@shopify/cli": "3.51.0", + "@shopify/cli": "3.52.0",
-
-
Update example and template Remix versions to
^2.5.1
(#1639) by @wizardlyhel -
Enable Remix future flags:
-
-
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
]:- @Shopify/hydrogen@2024.1.0
- @shopify/[email protected]
- @shopify/[email protected]