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@5.3.0
Minor Changes
Add
--worker-unstable
flag toh2 dev
andh2 preview
commands. This flag enables the use of the new experimental worker runtime for local development, which is closer to Oxygen production than the current Node.js sandbox. Please report any issues you encounter with this flag. (#1184) by @frandioxAdd deploy command (disabled by default) (#1019) by @vincentezw
Patch Changes
Add magic cart and discount routes to skeleton template (#1309) by @juanpprieto
Updates placeholder page to suggest the
h2 setup
command, instead ofh2 generate route home
(#1347) by @benjaminsehlAdjust behavior of
h2 preview
command around environment variables to be more consistent withh2 dev
command. (#1184) by @frandioxWe've added a tool for analyzing bundle sizes. You should try to keep your worker bundle small. The larger it gets effects the cold startup time of your app. We now include
client-bundle-analyzer.html
andworker-bundle-analyzer.html
files in the build output. Open these in your browser to view an interactive analysis of your bundles. The CLI output also includes links to each file. Hydrogen also fails to build if your bundle size is over 10 MB. This is because Oxygen only supports worker bundles less than 10 MB. (#1306) by @blittleRaise the subrequest limit to 100 for development. (#1348) by @frandiox
Fix
--routes
and--markets
flag when creating new projects. (#1342) by @frandioxMake sourcemaps to default be turned on. They were off to prevent sourcemaps leaking server code to the client. Oxygen now makes sure to not serve the sourcemaps, so it's okay to generate them. Also, when sourcemaps are present, we hope to enable sourcemapped stack traces in error logs on Oxygen. (#1339) by @blittle
@shopify/create-hydrogen@4.2.5
Patch Changes
Add magic cart and discount routes to skeleton template (#1309) by @juanpprieto
Filter out
fbclid
from the URL params on the product detail page (#1353) by @blittleFix
--routes
and--markets
flag when creating new projects. (#1342) by @frandioxImproved types of
HydrogenSession
when accessingsession.get('customerAccessToken')
. (#1341) by @frandioxUpdated dependencies [
33ae6ab6
,d8dc1acf
,e62a4db1
,305862ff
,33258210
,be4994fe
,e62a4db1
,384a4267
,113821e5
]:@shopify/hydrogen@2023.7.8
Patch Changes
The
error.cause
property throw from the Storefront client is now stringified. (#1184) by @frandioxFix Hydrogen's Storefront API client to not throw unhandled promise exceptions. This is because Remix is guaranteed to handle exceptions from the loader and fixing it prevents Hydrogen from crashing when deployed to some runtimes on unhandled promise exceptions. (#1318) by @blittle
Relax prop validation on the
getSelectedProductOptions
andgetSelectedProductOptions
utilities to look for member props instead of checking withinstanceof
. (#1327) by @blittledemo-store@2.1.2
Patch Changes
Improved types of
HydrogenSession
when accessingsession.get('customerAccessToken')
. (#1341) by @frandioxUpdated dependencies [
33ae6ab6
,d8dc1acf
,e62a4db1
,305862ff
,33258210
,e62a4db1
,be4994fe
,87918e31
,2ce3861e
,e62a4db1
,384a4267
,113821e5
]: