From f1f55d4444c9f36cc8c66f05b9535da6e32955e7 Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Sun, 14 Sep 2025 20:25:59 +0200 Subject: [PATCH] Remove onReady callback from plugin The onReady callback is no longer needed since the plugin no longer schedules initial processing jobs during initialization. --- src/plugin.ts | 4 ---- src/types/index.ts | 1 - 2 files changed, 5 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index f133881..c55d225 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -107,10 +107,6 @@ export const mailingPlugin = (pluginConfig: MailingPluginConfig) => (config: Con } as MailingContext - // Call onReady callback if provided - if (pluginConfig.onReady) { - await pluginConfig.onReady(payload) - } if (pluginConfig.initOrder !== 'after' && config.onInit) { await config.onInit(payload) diff --git a/src/types/index.ts b/src/types/index.ts index 4c4a86c..e74ed24 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -76,7 +76,6 @@ export interface MailingPluginConfig { templateEngine?: TemplateEngine richTextEditor?: RichTextField['editor'] beforeSend?: BeforeSendHook - onReady?: (payload: any) => Promise initOrder?: 'before' | 'after' }