Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented May 18, 2022

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 v1.x-2022-07, this PR will be updated.

Releases

@shopify/[email protected]

Minor Changes

  • #1327 ce56311f Thanks @frehner! - Breaking Change: <Money /> updates and <UnitPrice /> Removed.

    • <UnitPrice/> has been removed
    • <Money/> has two new props: measurement and measurementSeparator which do the work that UnitPrice used to do
    • The TypeScript types for <Money/> have been improved and should provide a better typed experience now
  • #1216 771786a6 Thanks @wizardlyhel! - Fixes an issue where cached sub-requests were not revalidating properly.

  • #1304 aa196150 Thanks @frehner! - Removed <ProductTitle/> and <ProductDescription/> components. To migrate, use {product.title} and {product.description} instead.

  • #1335 0d90f92b Thanks @blittle! - Breaking Change

    The <ProductMetafield /> component has been removed. Instead, directly use the <Metafield> component.

Patch Changes

  • #1311 3e3fd72f Thanks @jplhomer! - Client components no longer need to use @shopify/hydrogen/client as the import path. All Hydrogen components can now be imported from @shopify/hydrogen regardless of their context.

  • #1259 110e9aca Thanks @blittle! - You can now easily disable streaming on any page conditionally with the enableStreaming option inside hydrogen.config.js:

    import {CookieSessionStorage} from '@shopify/hydrogen';
    import {defineConfig} from '@shopify/hydrogen/config';
    
    export default defineConfig({
      routes: import.meta.globEager('./src/routes/**/*.server.[jt](s|sx)'),
      shopify: {
        defaultLocale: 'en-us',
        storeDomain: 'hydrogen-preview.myshopify.com',
        storefrontToken: '3b580e70970c4528da70c98e097c2fa0',
        storefrontApiVersion: '2022-07',
      },
      enableStreaming: (req) => req.headers.get('user-agent') !== 'custom bot',
    });

    By default all pages are stream rendered except for SEO bots. There shouldn't be many reasons to disable streaming, unless there is a custom bot not covered by Hydrogen's bot detection.

  • #1318 668a24da Thanks @blittle! - Buffer RSC flight responses. There isn't any benefit to streaming them, because we start a transition on page navigation. Buffering also fixes caching problems on the flight response.

  • #1293 e378ed61 Thanks @jplhomer! - Reverts #1272 and properly escapes terminating script sequences

  • #1283 eea82cb0 Thanks @jplhomer! - Hydrogen has been updated to use the latest stable version of React.

    To update an existing Hydrogen app:

    yarn add react@latest react-dom@latest

[email protected]

@github-actions github-actions bot force-pushed the changeset-release/v1.x-2022-07 branch 15 times, most recently from 247d142 to 56841e6 Compare May 24, 2022 13:43
@github-actions github-actions bot force-pushed the changeset-release/v1.x-2022-07 branch from 56841e6 to 8ed77a7 Compare May 24, 2022 19:02
@cartogram cartogram merged commit 7cee7e0 into v1.x-2022-07 May 24, 2022
@cartogram cartogram deleted the changeset-release/v1.x-2022-07 branch May 24, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant