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
@shopify/[email protected]
Minor Changes
Support Vite projects in
h2 setup css
command to setup Tailwind and vanilla-extract. Drop CSS setup support for classic Remix projects. (#2245) by @frandioxThe build process in Vite projects now generates a bundle analysis tool for the server files. (#2138) by @frandiox
Patch Changes
Fix Codegen config resolution when project directory contains dots. (#2293) by @frandiox
[Bug fix] Allow env-branch to be passed when running
h2 deploy
in CI (#2281) by @aswamyFix CLI upgrade notification when running from a global process. (#2184) by @frandiox
skeleton template was updated to do session commit in server call instead of routes (#2137) by @michenly
Remove
PUBLIC_STORE_DOMAIN
environment variable from.env
when creating new projects with mock.shop. (#2221) by @frandioxAdded an
--auth-bypass-token-duration
flag to thedeploy
command to allow for specified token duration between 1 to 12 hours. (#2182) by @NelsonLee-CodeUpdated dependencies [
0924410f
]:@shopify/[email protected]
Patch Changes
Breaking change by @michenly
customerAccount
no longer commit session automatically.Breaking change by @blittle
Previously the
VariantSelector
component would filter out options that only had one value. This is undesireable for some apps. We've removed that filter, if you'd like to retain the existing functionality, simply filter the options prop before it is passed to theVariantSelector
component:Fixes #1198
Fix the types for optimistic cart (#2132) by @blittle
Improve the types for
useOptimisticCart()
(#2269) by @blittleFix a small rounding issue when checking stale-while-revalidate timing. (#2220) by @frandiox
Update virtual route to use Layout component in the root file. (#2292) by @michenly
Add
sellingPlanId
support toBuyNowButton
. (#2254) by @dvisockasFix customData from Analytics.Provider not being passed to page view events (#2224) by @wizardlyhel
Auto cookie domain detection for customer privacy api and better error message for missing analytics fields (#2256) by @wizardlyhel
New Features by @blittle
Add a
useOptimisticVariant
hook for optimistically rendering product variant changes. This makes switching product variants instantaneous. Example usage:This also introduces a small breaking change to the
VariantSelector
component, which now immediately updates which variant is active. If you'd like to retain the current functionality, and have theVariantSelector
wait for the page navigation to complete before updating, use thewaitForNavigation
prop:Return
null
instead of empty object fromcart.get()
when the cart id is invalid. (#2258) by @frandioxUpdated dependencies [
54c2f7ad
]:@shopify/[email protected]
Patch Changes
sellingPlanId
support toBuyNowButton
. (#2254) by @dvisockas@shopify/[email protected]
Patch Changes
@shopify/[email protected]
Patch Changes
@shopify/oxygen-workers-types
to fix issues on Windows. (#2252) by @michenly[email protected]
Patch Changes
Update
@shopify/oxygen-workers-types
to fix issues on Windows. (#2252) by @michenlyBreaking change by @blittle
Previously the
VariantSelector
component would filter out options that only had one value. This is undesireable for some apps. We've removed that filter, if you'd like to retain the existing functionality, simply filter the options prop before it is passed to theVariantSelector
component:Fixes #1198
Update remix to v2.10.1 (#2290) by @michenly
Update root to use Remix's Layout Export pattern and eliminate the use of
useLoaderData
in root. (#2292) by @michenlyThe diff below showcase how you can make this refactor in existing application.
Refactor the cart and product form components (#2132) by @blittle
Remove manual setting of session in headers and recommend setting it in server after response is created. (#2137) by @michenly
Step 1: Add
isPending
implementation in sessionStep 2: update response header if
session.isPending
is trueStep 3: remove setting cookie with session.commit() in routes
Moved
@shopify/cli
fromdependencies
todevDependencies
. (#2312) by @frandioxThe
@shopify/cli
package now bundles the@shopify/cli-hydrogen
plugin. Therefore, you can now remove the latter from your local dependencies: (#2306) by @frandiox"@shopify/cli": "3.64.0", - "@shopify/cli-hydrogen": "^8.1.1", "@shopify/hydrogen": "2024.7.0",
Updated dependencies [
a0e84d76
,426bb390
,4337200c
,710625c7
,8b9c726d
,10a419bf
,6a6278bb
,66236ca6
,dcbd0bbf
,a5e03e2a
,c2690653
,54c2f7ad
,4337200c
,e96b332b
,f3065371
,6cd5554b
,9eb60d73
,e432533e
,de3f70be
,83cb96f4
]: