chore: bump version to 2.21.9 and update dependencies across multiple packages (#420)

- Updated application version from 2.21.8 to 2.21.9 in package.json.
- Upgraded dependencies including prettier to version 3.7.4, @supabase/supabase-js to version 2.86.0, and @tanstack/react-query to version 5.90.11.
- Adjusted various package.json files to reflect updated versions for lucide-react, react-hook-form, and nodemailer.
- Enhanced pnpm-lock.yaml and pnpm-workspace.yaml for consistency in package versions.
- Refactored import statements in several components for improved readability.
This commit is contained in:
Giancarlo Buomprisco
2025-12-03 14:04:54 +08:00
committed by GitHub
parent 57d7b0f02f
commit c77c380c9c
42 changed files with 1490 additions and 1695 deletions

View File

@@ -29,10 +29,10 @@
"@supabase/supabase-js": "catalog:",
"@types/react": "catalog:",
"date-fns": "^4.1.0",
"lucide-react": "^0.554.0",
"lucide-react": "^0.555.0",
"next": "catalog:",
"react": "catalog:",
"react-hook-form": "^7.66.1",
"react-hook-form": "^7.67.0",
"react-i18next": "^16.3.5",
"zod": "catalog:"
},

View File

@@ -12,9 +12,8 @@ const StripeCheckoutLazy = lazy(async () => {
});
const LemonSqueezyCheckoutLazy = lazy(async () => {
const { LemonSqueezyEmbeddedCheckout } = await import(
'@kit/lemon-squeezy/components'
);
const { LemonSqueezyEmbeddedCheckout } =
await import('@kit/lemon-squeezy/components');
return { default: LemonSqueezyEmbeddedCheckout };
});

View File

@@ -32,9 +32,8 @@ export function createBillingEventHandlerFactoryService(
// Register the Lemon Squeezy webhook handler
billingWebhookHandlerRegistry.register('lemon-squeezy', async () => {
const { LemonSqueezyWebhookHandlerService } = await import(
'@kit/lemon-squeezy'
);
const { LemonSqueezyWebhookHandlerService } =
await import('@kit/lemon-squeezy');
return new LemonSqueezyWebhookHandlerService(planTypesMap);
});

View File

@@ -22,9 +22,8 @@ billingStrategyRegistry.register('stripe', async () => {
// Register the Lemon Squeezy billing strategy
billingStrategyRegistry.register('lemon-squeezy', async () => {
const { LemonSqueezyBillingStrategyService } = await import(
'@kit/lemon-squeezy'
);
const { LemonSqueezyBillingStrategyService } =
await import('@kit/lemon-squeezy');
return new LemonSqueezyBillingStrategyService();
});

View File

@@ -31,9 +31,7 @@ import { createLemonSqueezySubscriptionPayloadBuilderService } from './lemon-squ
* @name LemonSqueezyBillingStrategyService
* @description This class is used to create a billing strategy for Lemon Squeezy
*/
export class LemonSqueezyBillingStrategyService
implements BillingStrategyProviderService
{
export class LemonSqueezyBillingStrategyService implements BillingStrategyProviderService {
private readonly namespace = 'billing.lemon-squeezy';
/**

View File

@@ -41,9 +41,7 @@ interface LineItem {
type OrderStatus = 'pending' | 'failed' | 'paid' | 'refunded';
export class LemonSqueezyWebhookHandlerService
implements BillingWebhookHandlerService
{
export class LemonSqueezyWebhookHandlerService implements BillingWebhookHandlerService {
private readonly provider: BillingProvider = 'lemon-squeezy';
private readonly namespace = 'billing.lemon-squeezy';

View File

@@ -15,8 +15,8 @@
"./components": "./src/components/index.ts"
},
"dependencies": {
"@stripe/react-stripe-js": "^5.4.0",
"@stripe/stripe-js": "^8.5.2",
"@stripe/react-stripe-js": "^5.4.1",
"@stripe/stripe-js": "^8.5.3",
"stripe": "^20.0.0"
},
"devDependencies": {

View File

@@ -26,9 +26,7 @@ import { createStripeSubscriptionPayloadBuilderService } from './stripe-subscrip
* @class StripeBillingStrategyService
* @implements {BillingStrategyProviderService}
*/
export class StripeBillingStrategyService
implements BillingStrategyProviderService
{
export class StripeBillingStrategyService implements BillingStrategyProviderService {
private readonly namespace = 'billing.stripe';
/**

View File

@@ -31,9 +31,7 @@ type UpsertOrderParams =
type BillingProvider = Enums<'billing_provider'>;
export class StripeWebhookHandlerService
implements BillingWebhookHandlerService
{
export class StripeWebhookHandlerService implements BillingWebhookHandlerService {
private stripe: Stripe | undefined;
constructor(private readonly planTypesMap: PlanTypeMap) {}