Skip to content

refactor(email): route Resend transport through @bitbaum/mail-kit - #449

Merged
github-actions[bot] merged 1 commit into
mainfrom
refactor/mail-kit
Sep 5, 2026
Merged

refactor(email): route Resend transport through @bitbaum/mail-kit#449
github-actions[bot] merged 1 commit into
mainfrom
refactor/mail-kit

Conversation

@catomean

@catomean catomean commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Replaces the raw-fetch Resend transport in src/lib/email/resend.ts with @bitbaum/mail-kit (sendMail/mailHealth/isMailConfigured), keeping the public helpers (sendViaResend, testResendConnection, isResendEnabled) and the throw-to-SMTP-fallback contract, so provider precedence (listmonk explicit > resend > smtp) and all call sites are untouched. No deps removed: the old code was a raw fetch (no resend SDK was ever installed), and nodemailer stays because the SMTP fallback still uses it. Adds @bitbaum/mail-kit@^0.1.0 plus its minimumReleaseAgeExclude entry in pnpm-workspace.yaml.

🤖 Generated with Claude Code

Replace the raw-fetch Resend implementation in src/lib/email/resend.ts
with @bitbaum/mail-kit calls (sendMail / mailHealth / isMailConfigured),
keeping the public helper signatures (sendViaResend, testResendConnection,
isResendEnabled) and the throw-on-failure contract that sendEmail() uses
to fall back to SMTP. Provider precedence stays intact: listmonk explicit
> resend > smtp. nodemailer stays — the SMTP fallback still uses it. No
resend SDK dep existed, so no dep removed; @bitbaum/mail-kit added (with
a minimumReleaseAgeExclude entry — the package is <24h old).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
@github-actions
github-actions Bot merged commit 99e969a into main Sep 5, 2026
8 checks passed
@github-actions
github-actions Bot deleted the refactor/mail-kit branch September 5, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant