Releases: Shopify/shopify-app-js
Releases · Shopify/shopify-app-js
@shopify/[email protected]
@shopify/[email protected]
@shopify/[email protected]
@shopify/[email protected]
@shopify/[email protected]
@shopify/[email protected]
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]
- @shopify/[email protected]
@shopify/[email protected]
Patch Changes
- Updated dependencies [cf8cc7c]
- Updated dependencies [e944c72]
- Updated dependencies [e9b4f22]
- Updated dependencies [8f92455]
- @shopify/[email protected]
- @shopify/[email protected]
- @shopify/[email protected]
@shopify/[email protected]
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]
Patch Changes
- 77aa5cc: Improved type safety of generated configurations
@shopify/[email protected]
Minor Changes
- 4101a85: Added the customer API as a codegen preset
Patch Changes
- 00b542a: Pinned
graphql-config
version to prevent a forced upgrade to Node 20+