Skip to content

Releases: Shopify/shopify-app-js

@shopify/[email protected]

19 Aug 17:58
4b4be4e
Compare
Choose a tag to compare

@shopify/[email protected]

19 Aug 17:58
4b4be4e
Compare
Choose a tag to compare

@shopify/[email protected]

19 Aug 17:58
4b4be4e
Compare
Choose a tag to compare

@shopify/[email protected]

19 Aug 17:58
4b4be4e
Compare
Choose a tag to compare

Patch Changes

  • 668f1b1: Updated @aws-sdk/client-dynamodb dependencies
  • c220bdb: Updated @aws-sdk/util-dynamodb dependencies

@shopify/[email protected]

19 Aug 17:58
4b4be4e
Compare
Choose a tag to compare

@shopify/[email protected]

19 Aug 17:59
4b4be4e
Compare
Choose a tag to compare

Minor Changes

  • 8f92455: Test helpers and changes to enable automated unit and e2e testing for @shopify/shopify-app-remix

    See documentation for examples on how to use these helper methods.

    import prisma from '~/db.server';
    import { PrismaSessionStorage } from '@shopify/shopify-app-session-storage-prisma';
    import {
      RequestType,
      setUpValidRequest,
      setUpValidSession,
    } from '@shopify/shopify-api/test-helpers';
    
    // set up test Session
    const sessionStorage = new PrismaSessionStorage(prisma);
    const session = await setUpValidSession({
      shop: getShopValue('test-shop');
    });
    await sessionStorage.storeSession(session);
    
    let request: Request = ... // the request intercepted by end-to-end testing framework
    
    const authorizedRequest = setUpValidRequest(
      {
        type: RequestType.Extension,
        store: `test-shop-${process.env.TEST_PARALLEL_INDEX}`,
        apiKey: ..., // the same value as `apiKey` passed to shopifyApi()
        apiSecretKey: ..., // the same value as `apiSecretKey` passed to shopifyApi()
      },
      request
    );
    
    // use authorizedRequest to complete the request, or use the url or headers of authorizedRequest to modify the original request.
    
    ... // complete testing here
    
    // tear down test Session
    await sessionStorage.deleteSession(session.id);

Patch Changes

  • e944c72: Updated isbot dependencies
  • 446ef79: Updates the interface of the Scopes API
  • edb1515: Fixed an issue with relative URLs in the admin context redirect helper, which caused it to fail on Safari.
  • 2d5675f: Improved the error message when an empty appUrl configuration is received to remind the developer to set the environment variables.
  • Updated dependencies [cf8cc7c]
  • Updated dependencies [e944c72]
  • Updated dependencies [e9b4f22]
  • Updated dependencies [8f92455]

@shopify/[email protected]

19 Aug 17:59
4b4be4e
Compare
Choose a tag to compare

Patch Changes

@shopify/[email protected]

19 Aug 17:59
4b4be4e
Compare
Choose a tag to compare

Minor Changes

  • e9b4f22: fixes/webhook-typesafety

  • 8f92455: Test helpers and changes to enable automated unit and e2e testing for @shopify/shopify-app-remix

    See documentation for examples on how to use these helper methods.

    import prisma from '~/db.server';
    import { PrismaSessionStorage } from '@shopify/shopify-app-session-storage-prisma';
    import {
      RequestType,
      setUpValidRequest,
      setUpValidSession,
    } from '@shopify/shopify-api/test-helpers';
    
    // set up test Session
    const sessionStorage = new PrismaSessionStorage(prisma);
    const session = await setUpValidSession({
      shop: getShopValue('test-shop');
    });
    await sessionStorage.storeSession(session);
    
    let request: Request = ... // the request intercepted by end-to-end testing framework
    
    const authorizedRequest = setUpValidRequest(
      {
        type: RequestType.Extension,
        store: `test-shop-${process.env.TEST_PARALLEL_INDEX}`,
        apiKey: ..., // the same value as `apiKey` passed to shopifyApi()
        apiSecretKey: ..., // the same value as `apiSecretKey` passed to shopifyApi()
      },
      request
    );
    
    // use authorizedRequest to complete the request, or use the url or headers of authorizedRequest to modify the original request.
    
    ... // complete testing here
    
    // tear down test Session
    await sessionStorage.deleteSession(session.id);

Patch Changes

  • e944c72: Updated isbot dependencies

@shopify/[email protected]

19 Aug 20:14
2d9f9fd
Compare
Choose a tag to compare

Patch Changes

  • 77aa5cc: Improved type safety of generated configurations

@shopify/[email protected]

19 Aug 17:58
4b4be4e
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • 00b542a: Pinned graphql-config version to prevent a forced upgrade to Node 20+