Releases: Shopify/hydrogen
@shopify/cli-hydrogen@5.4.1
Patch Changes
-
Add token flag, environmentTag flag, environment selection screen, rename health check to deployment verification (#1381) by @vincentezw
-
Updated dependencies [
eb9451ed
]:- @shopify/remix-oxygen@1.1.5
demo-store@2.1.3
Patch Changes
-
Cart Optimistic UI helpers (#1366) by @wizardlyhel
-
Updated dependencies [
e148cfca
,1be1e40d
,8772903d
,bfb142e8
,06da5570
,00210faa
,425791ce
]:- @shopify/cli-hydrogen@5.4.0
- @Shopify/hydrogen@2023.7.9
@shopify/hydrogen@2023.7.9
Patch Changes
-
Allow generic inference in standalone usage of WithCache type - Contributed by @chinanderm (#1363) by @wizardlyhel
-
Cart Optimistic UI helpers (#1366) by @wizardlyhel
-
Fix storefront sub request cache key (#1375) by @wizardlyhel
-
Fix the Pagination component to use forwardRefs for the NextLink and PreviousLink render props (#1362) by @blittle
@shopify/create-hydrogen@4.2.6
Patch Changes
-
Add check to render collection images when available (#1373) by @juanpprieto
-
Updated dependencies [
e148cfca
,06da5570
,425791ce
]:- @shopify/cli-hydrogen@5.4.0
@shopify/cli-hydrogen@5.4.0
Minor Changes
-
The build command now throws errors on CI when it can't find a valid lockfile. This should prevent unforseen issues related to dependency versioning in production. (#1370) by @frandiox
This behavior can be disabled with the flag
--no-lockfile-check
, which might be useful in monorepos or other setups where the lockfile is not available in the project directory.
Patch Changes
-
Add check to render collection images when available (#1373) by @juanpprieto
-
Remove sourcemap annotations from client bundles. This prevents errors showing up in the devtools when the sourcemaps fail to load. (#1364) by @blittle
demo-store@2.1.2
Patch Changes
-
Improved types of
HydrogenSession
when accessingsession.get('customerAccessToken')
. (#1341) by @frandiox -
Updated dependencies [
33ae6ab6
,d8dc1acf
,e62a4db1
,305862ff
,33258210
,e62a4db1
,be4994fe
,87918e31
,2ce3861e
,e62a4db1
,384a4267
,113821e5
]:- @shopify/cli-hydrogen@5.3.0
- @Shopify/hydrogen@2023.7.8
@shopify/hydrogen@2023.7.8
Patch Changes
-
The
error.cause
property throw from the Storefront client is now stringified. (#1184) by @frandiox -
Fix 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 @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 @blittle -
Fix
--routes
and--markets
flag when creating new projects. (#1342) by @frandiox -
Improved types of
HydrogenSession
when accessingsession.get('customerAccessToken')
. (#1341) by @frandiox -
Updated dependencies [
33ae6ab6
,d8dc1acf
,e62a4db1
,305862ff
,33258210
,be4994fe
,e62a4db1
,384a4267
,113821e5
]:- @shopify/cli-hydrogen@5.3.0
@shopify/cli-hydrogen@5.3.1
@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 @frandiox -
Add 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 @benjaminsehl -
Adjust behavior of
h2 preview
command around environment variables to be more consistent withh2 dev
command. (#1184) by @frandiox -
We'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 @blittle -
Raise the subrequest limit to 100 for development. (#1348) by @frandiox
-
Fix
--routes
and--markets
flag when creating new projects. (#1342) by @frandiox -
Make 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