·
4008 commits
to main
since this release
Minor Changes
-
1002934: Add new v3_lineItemBilling future flag
With this future flag you can configure billing plans to have multiple line items, eg. a recurring plan and a usage based plan.
//shopify.server.ts import { shopifyApp, BillingInterval } from "@shopify/shopify-app-remix/server"; export const MONTHLY_PLAN = 'Monthly subscription'; export const ANNUAL_PLAN = 'Annual subscription'; const shopify = shopifyApp({ // ...etc billing: { [MONTHLY_PLAN]: { lineItems: [ { amount: 5, currencyCode: 'USD', interval: BillingInterval.Every30Days, } { amount: 1, currencyCode: 'USD', interval: BillingInterval.Usage terms: "1 dollar per 1000 emails", } ], }, }, future: {v3_lineItemBilling: true} }); export default shopify; export const authenticate = shopify.authenticate;
-
956f493: Allow subscribing to webhooks with sub-topics
-
6df84d2: Introduce Vercel adapter to fix deploys to Vercel.
Since v.9.0.0 of
@shopify/shopify-api
developers deploying their Remix apps to Vercel have encountered errors.Developers looking to deploy their application to Vercel should replace references to import
"@shopify/shopify-app-remix/adapters/node";
with"@shopify/shopify-app-remix/adapters/vercel";
to properly load the required global variables.