Skip to content

Releases: Shopify/hydrogen

@shopify/cli-hydrogen@5.4.1

05 Oct 11:53
50711df
Compare
Choose a tag to compare

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

28 Sep 18:12
f32c8a3
Compare
Choose a tag to compare

Patch Changes

@shopify/hydrogen@2023.7.9

28 Sep 18:12
f32c8a3
Compare
Choose a tag to compare

Patch Changes

@shopify/create-hydrogen@4.2.6

28 Sep 18:12
f32c8a3
Compare
Choose a tag to compare

Patch Changes

@shopify/cli-hydrogen@5.4.0

28 Sep 18:12
f32c8a3
Compare
Choose a tag to compare

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

21 Sep 09:04
e2868d5
Compare
Choose a tag to compare

Patch Changes

@shopify/hydrogen@2023.7.8

21 Sep 09:04
e2868d5
Compare
Choose a tag to compare

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 and getSelectedProductOptions utilities to look for member props instead of checking with instanceof. (#1327) by @blittle

@shopify/create-hydrogen@4.2.5

21 Sep 09:04
e2868d5
Compare
Choose a tag to compare

Patch Changes

@shopify/cli-hydrogen@5.3.1

21 Sep 20:30
16b57b7
Compare
Choose a tag to compare

Patch Changes

  • Make the CLI bundle analysis compatible with older Remix versions that don't output a metafile (#1357) by @blittle

@shopify/cli-hydrogen@5.3.0

21 Sep 09:04
e2868d5
Compare
Choose a tag to compare

Minor Changes

  • Add --worker-unstable flag to h2 dev and h2 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 of h2 generate route home (#1347) by @benjaminsehl

  • Adjust behavior of h2 preview command around environment variables to be more consistent with h2 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 and worker-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