Releases: resend/resend-chat-sdk
Releases · resend/resend-chat-sdk
Release list
v0.3.0
v0.2.2
Patch Changes
-
cb1a144: Forward
WebhookOptionsthroughResendAdapter.handleWebhooktochat.processMessage.processMessageis fire-and-forget, so on serverless platforms (e.g. Vercel Functions) the function would return 200 before the detached task finished — inbound emails were acknowledged but never processed. Callers can now passwaitUntilto keep the runtime alive until processing completes:import { after } from "next/server"; adapter.handleWebhook(request, { waitUntil: (p) => after(() => p) });
v0.2.1
Patch Changes
-
69ab8c9: Fix streamed email delivery and markdown rendering in
postMessage.thread.post(asyncIterable)(AI SDKtextStream/fullStream, or anyAsyncIterable<string | StreamChunk>) now buffers the full stream and sends a single final email. Previously the Chat SDK's default post+edit fallback kicked in, which sent a placeholder email immediately and then failed on edit (email is immutable, soeditMessageis not supported).- Behavior change:
postMessage(threadId, { markdown })now renders the markdown to HTML and a plain-text body. Previously the raw markdown string was sent verbatim as the email's text body with no HTML. If you were relying on the old behavior, pass a plain string (postMessage(threadId, "**literal**")) or{ raw }instead. - Streams that yield no textual content (e.g. only
task_update/plan_updatechunks) now throw instead of silently sending a blank email.
v0.2.0
Minor Changes
- 714f08d: Upgrade to
react-email@^6.0.0. Replaces@react-email/componentsand@react-email/renderwith the unifiedreact-emailpackage. Bumps minimum Node to>=20(required by react-email 6).
v0.1.1
Patch Changes
- 7a49c56: Add
channelIdFromThreadId()and align the adapter's async method signatures with the current Chat SDK contract.
v0.1.0
Changelog
0.1.0 (2025-02-27)
Initial release.
Features
- Bidirectional email adapter for the Vercel Chat SDK using Resend
- Inbound email handling via Resend webhooks with signature verification
- Outbound email sending via Resend API
- Email-native threading using
Message-ID/In-Reply-To/Referencesheaders - Card rendering via
@react-email/componentsfor styled HTML emails - DM support via
openDM(emailAddress) - Factory function
createResendAdapter()for quick setup