@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
22 lines (20 loc) • 1.19 kB
JavaScript
function logDisabledFutureFlags(config, logger) {
if (!config._logDisabledFutureFlags) {
return;
}
const logFlag = (flag, message) => logger.info(`Future flag ${flag} is disabled.\n\n ${message}\n`);
if (!config.future?.lineItemBilling) {
logFlag('lineItemBilling', 'Enable this flag to use the new billing API, that supports multiple line items per plan.');
}
if (config.future?.v10_lineItemBilling) {
logger.deprecated('12.0.0', 'v10_lineItemBilling will become enabled in v11. Use flag lineItemBilling instead');
}
if (!config.future?.customerAddressDefaultFix) {
logFlag('customerAddressDefaultFix', "Enable this flag to change the CustomerAddress classes to expose a 'is_default' property instead of 'default' when fetching data.");
}
if (!config.future?.unstable_managedPricingSupport) {
logFlag('unstable_managedPricingSupport', 'Enable this flag to support managed pricing, so apps can check for payments without needing a billing config. Learn more at https://shopify.dev/docs/apps/launch/billing/managed-pricing');
}
}
export { logDisabledFutureFlags };
//# sourceMappingURL=flags.mjs.map