Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] release 2024-01 #1638

Merged
merged 2 commits into from
Jan 25, 2024
Merged

[ci] release 2024-01 #1638

merged 2 commits into from
Jan 25, 2024

Conversation

shopify-github-actions-access[bot]
Copy link
Contributor

@shopify-github-actions-access shopify-github-actions-access bot commented Jan 15, 2024

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@7.0.0

Major Changes

  • Make the worker runtime the default for the local development server when running dev and preview. To access the legacy Node.js runtime, pass the --legacy-runtime flag. The legacy runtime will be deprecated and removed in a future release. (#1625) by @frandiox

  • Remove deprecated build command flags --base, --entry, --target. Additionally, --codegen-unstable is now --codegen. (#1640) by @frandiox

Minor Changes

  • Check for local project GraphQL config files (example: .graphqlrc.yml) when running in Codegen mode (#1577) by @frandiox

  • Add deploy command to Hydrogen CLI (#1628) by @graygilmore

    You can now deploy your Hydrogen app without connecting to GitHub. Run the deploy command from your local terminal or configure your own CI/CD workflows from any platform.

    Run npx shopify hydrogen deploy --help for more details.

  • Add --diff flag to dev and build commands, used for building Hydrogen app examples. (#1549) by @frandiox

  • Add --template flag to enable scaffolding projects based on examples from the Hydrogen repo. (#1608) by @frandiox

    Example: npm create @shopify/hydrogen@latest -- --template multipass.

Patch Changes

@shopify/hydrogen@2024.1.0

Major Changes

  • Better Hydrogen error handling (#1645) by @wizardlyhel

    • Fix storefront client throwing on partial successful errors
    • Fix subrequest profiler to better display network errors with URL information for Storefront API requests

    Breaking change

    This update changes the shape of the error objects returned by the createCartHandler method.

    Previously, mutations could return an errors array that contained a userErrors array.

    With this change, these arrays are no longer nested. The response can contain both an errors array and a userErrors array. errors contains GraphQL execution errors. userErrors contains errors caused by the cart mutation itself (such as adding a product that has zero inventory).

    storefront.isApiError is deprecated.

    Updated return types for createCartHandler methods

    • cart.get() used to return a Cart type. Now it returns CartReturn type to accommodate the errors object.
    • All other cart methods (ie. cart.addLines) used to return a CartQueryData type. Now it returns CartQueryDataReturn type to accommodate the errors object.
  • Custom rules passed to createContentSecurityPolicy now extend the default Shopify and development domains, instead of overriding them (#1593) by @michenly

  • Upgrade to Storefront API v2024-01 (#1642) by @wizardlyhel

Minor Changes

Patch Changes

  • Fix a bug that allowed undesired redirect to external domains (#1629) by @wizardlyhel

  • Fix content security policy to recognize localhost asset server as a valid source when running the dev command (#1591) by @michenly

  • Fix the <Seo /> component to render canonical URLs without trailing slashes. Thanks to @joshuafredrickson for reporting (#1622) by @blittle

  • Make default HydrogenSession type extensible. (#1590) by @michenly

    Update implementation of HydrogenSession using type:

    import {
    + type HydrogenSession,
    } from '@shopify/hydrogen';
    - class HydrogenSession {
    + class AppSession implements HydrogenSession {
        ...
    }
  • Fix error stack traces thrown by API clients if promises are not awaited (#1656) by @frandiox

  • Updated dependencies [0629bc77, dc8f90de, ca1161b2]:

    • @shopify/hydrogen-react@2024.1.0

@shopify/hydrogen-react@2024.1.0

Major Changes

Patch Changes

@shopify/hydrogen-codegen@0.2.0

Minor Changes

  • Abstract type utilities so they can be reused by other GraphQL schemas (#1584) by @frandiox

@shopify/create-hydrogen@4.3.5

Patch Changes

@shopify/mini-oxygen@2.2.5

Patch Changes

  • Fix step-debugging when running in the Node.js sandbox (#1501) by @frandiox

@shopify/remix-oxygen@2.0.3

Patch Changes

skeleton@1.0.2

Patch Changes

  • Use new parameters introduced in Storefront API v2024-01 to fix redirection to the product's default variant when there are unknown query params in the URL. (#1642) by @wizardlyhel

    -   selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions) {
    +   selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions, ignoreUnknownOptions: true, caseInsensitiveMatch: true) {
          ...ProductVariant
        }
  • Update the GraphQL config in .graphqlrc.yml to use the more modern projects structure: (#1577) by @frandiox

    -schema: node_modules/@shopify/hydrogen/storefront.schema.json
    +projects:
    + default:
    +    schema: 'node_modules/@shopify/hydrogen/storefront.schema.json'

    This allows you to add additional projects to the GraphQL config, such as third party CMS schemas.

    Also, you can modify the document paths used for the Storefront API queries. This is useful if you have a large codebase and want to exclude certain files from being used for codegen or other GraphQL utilities:

    projects:
      default:
        schema: 'node_modules/@shopify/hydrogen/storefront.schema.json'
        documents:
          - '!*.d.ts'
          - '*.{ts,tsx,js,jsx}'
          - 'app/**/*.{ts,tsx,js,jsx}'
  • Improve resiliency of HydrogenSession (#1583) by @blittle

  • Update @shopify/cli dependency in package.json: (#1579) by @frandiox

    -   "@shopify/cli": "3.51.0",
    +   "@shopify/cli": "3.52.0",
  • Updated dependencies [810f48cf, 8c477cb5, 42ac4138, 0241b7d2, 6a897586, 0ff63bed, 6bc1d61c, eb0f4bcc, 400bfee6, a69c21ca, 970073e7, 772118ca, 335375a6, 335371ce, 94509b75, 36d6fa2c, 3e7b6e8a, cce65795, 9e3d88d4, ca1161b2, 92840e51, 952fedf2, 1bc053c9]:

    • @shopify/hydrogen@2024.1.0
    • @shopify/cli-hydrogen@7.0.0
    • @shopify/remix-oxygen@2.0.3

@github-actions github-actions bot force-pushed the changeset-release/main branch 27 times, most recently from a1d27ee to d6bb72f Compare January 23, 2024 18:49
@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from 442ebab to a6a567e Compare January 24, 2024 18:04
@wizardlyhel wizardlyhel merged commit aa78ac8 into main Jan 25, 2024
10 checks passed
@wizardlyhel wizardlyhel deleted the changeset-release/main branch January 25, 2024 23:35
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