Skip to content

Releases: Shopify/hydrogen

demo-store@2.1.0

22 Aug 01:33
6e76f95
Compare
Choose a tag to compare

Minor Changes

  • Support Remix Hot Module Replacement (HMR) and Hot Data Revalidation (HDR). (#1187) by @frandiox

    Start using it with the following changes to your project:

    1. Upgrade to the latest Hydrogen version and Remix 1.19.1.

    2. Enable the v2 dev server in remix.config.js:

    // ...
    future: {
    + v2_dev: true,
      v2_meta: true,
      v2_headers: true,
      // ...
    }
    1. Add Remix' <LiveReload /> component if you don't have it to your root.jsx or root.tsx file:
    import {
      Outlet,
      Scripts,
    + LiveReload,
      ScrollRestoration,
    } from '@remix-run/react';
    
    // ...
    
    export default function App() {
      // ...
    
      return (
        <html>
          <head>
           {/* ...  */}
          </head>
          <body>
            <Outlet />
            <ScrollRestoration />
            <Scripts />
    +       <LiveReload />
          </body>
        </html>
      );
    }
    
    export function ErrorBoundary() {
      // ...
    
      return (
        <html>
          <head>
            {/* ... */}
          </head>
          <body>
            Error!
            <Scripts />
    +       <LiveReload />
          </body>
        </html>
      );
    }

Patch Changes

@shopify/hydrogen@2023.7.3

22 Aug 01:33
6e76f95
Compare
Choose a tag to compare

Patch Changes

@shopify/hydrogen-react@2023.7.2

22 Aug 01:33
6e76f95
Compare
Choose a tag to compare

Patch Changes

  • This change updates the implementation of the parseGid function so that it uses the builtin URL class to parse the gid. This enables the parts of the string, such as the search params, to be parsed as well (#1185) by @tatemz

  • Image component docs typo - Contributed by @MilosMosovsky (#1243) by @wizardlyhel

@shopify/create-hydrogen@4.2.2

22 Aug 01:33
6e76f95
Compare
Choose a tag to compare

Patch Changes

@shopify/cli-hydrogen@5.2.0

22 Aug 01:33
6e76f95
Compare
Choose a tag to compare

Minor Changes

  • Support Remix Hot Module Replacement (HMR) and Hot Data Revalidation (HDR). (#1187) by @frandiox

    Start using it with the following changes to your project:

    1. Upgrade to the latest Hydrogen version and Remix 1.19.1.

    2. Enable the v2 dev server in remix.config.js:

    // ...
    future: {
    + v2_dev: true,
      v2_meta: true,
      v2_headers: true,
      // ...
    }
    1. Add Remix' <LiveReload /> component if you don't have it to your root.jsx or root.tsx file:
    import {
      Outlet,
      Scripts,
    + LiveReload,
      ScrollRestoration,
    } from '@remix-run/react';
    
    // ...
    
    export default function App() {
      // ...
    
      return (
        <html>
          <head>
           {/* ...  */}
          </head>
          <body>
            <Outlet />
            <ScrollRestoration />
            <Scripts />
    +       <LiveReload />
          </body>
        </html>
      );
    }
    
    export function ErrorBoundary() {
      // ...
    
      return (
        <html>
          <head>
            {/* ... */}
          </head>
          <body>
            Error!
            <Scripts />
    +       <LiveReload />
          </body>
        </html>
      );
    }

Patch Changes

  • Avoid development server crash on unhandled promise rejection. (#1244) by @frandiox

  • Fix build command when public directory is missing. (#1224) by @frandiox

  • Use nonce from CSP header in MiniOxygen's auto-reload script. (#1251) by @frandiox

  • Add default exported route to enable the error to be caught in the root.tsx ErrorBoundary (#1215) by @josh-sanger

  • Improve error handling when failing to get remote environment variables. (#1225) by @frandiox

  • Fix GraphQL Codegen throwing error related to Git on Windows. (#1253) by @frandiox

  • Add shouldRevalidate export to limit root loaders revalidation on mutations only (#1237) by @juanpprieto

  • Removed quantityAvailable field from skeleton PDP graphql query so that it works with default Storefront API permissions. (#1236) by @abecciu

  • Updated dependencies [e9e1736a, 1a0e858d]:

    • @shopify/hydrogen-react@2023.7.2

demo-store@2.0.2

09 Aug 20:21
f6897dc
Compare
Choose a tag to compare

Patch Changes

@shopify/remix-oxygen@1.1.3

09 Aug 20:21
f6897dc
Compare
Choose a tag to compare

Patch Changes

@shopify/hydrogen@2023.7.2

09 Aug 20:20
f6897dc
Compare
Choose a tag to compare

Patch Changes

  • Surface storefront api response errors (#1205) by @wizardlyhel

  • Updated dependencies [d80c4ada]:

    • @shopify/hydrogen-react@2023.7.1

@shopify/hydrogen-react@2023.7.1

09 Aug 20:20
f6897dc
Compare
Choose a tag to compare

Patch Changes

@shopify/create-hydrogen@4.2.1

09 Aug 20:20
f6897dc
Compare
Choose a tag to compare

Patch Changes