Skip to content
Compare
Choose a tag to compare
@shopify-github-actions-access shopify-github-actions-access released this 25 Apr 19:05
· 1643 commits to main since this release
c6c8e9d

Major Changes

Note

For more details on migrating to v10, please follow see the migration guide.

  • 379206c: Webhook validation will now return a different reason value when the HMAC value is missing from the request. Instead of returning WebhookValidationErrorReason.MissingHeaders as it does for the other headers it validates, it will now return a new WebhookValidationErrorReason.MissingHmac error so this check matches other HMAC validations.

    If your app doesn't explicitly check for the error after calling webhook.validate(), you don't need to make any changes.

  • 637c6c3: This scopes field on the API config object is now optional. If your app is using the new managed install flow, it is now recommended you omit the scopes property from the config object.

  • 61576be: Changed the package's build process to produce both ESM and CJS outputs.

    While this should have no effect on most apps, if you're directly importing a file from the package, its path will have changed.
    Regular imports for package files remain unchanged.

    Before:

    import 'node_modules/@shopify/shopify-api/lib/clients/admin/graphql/client';
    import '@shopify/shopify-api/adapters/node';

    After:

    // Add `dist/esm|cjs/` before the file
    import 'node_modules/@shopify/shopify-api/dist/esm/lib/clients/admin/graphql/client';
    // Unchanged
    import '@shopify/shopify-api/adapters/node';

Patch Changes

  • 65325b8: Change v10_lineItemBilling flag to lineItemBilling
  • 6f1a98e: Fixing REST resource find() methods to fail when missing all ids, instead of defaulting to the same behaviour as all().
  • 379206c: Postponed deprecating the GraphQL clients' query method because they haven't been deprecated for long enough. They'll be removed when v11 is released instead.
  • Updated dependencies [715a120]