From db8393847cb470f67436e6637a69a5ac28a7a63d Mon Sep 17 00:00:00 2001 From: Gabriel Miranda Date: Mon, 17 Aug 2026 17:15:57 -0300 Subject: [PATCH 1/2] fix: allow null contact first_name and last_name on webhook events first_name?: string said the key may be absent while still promising a string when present. The payload can omit the key and can send null. Co-Authored-By: Claude Opus 5 (1M context) --- src/webhooks/interfaces/webhook-event.interface.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webhooks/interfaces/webhook-event.interface.ts b/src/webhooks/interfaces/webhook-event.interface.ts index c79ef24d..ac59d9b2 100644 --- a/src/webhooks/interfaces/webhook-event.interface.ts +++ b/src/webhooks/interfaces/webhook-event.interface.ts @@ -81,8 +81,8 @@ interface ContactEventData { created_at: string; updated_at: string; email: string; - first_name?: string; - last_name?: string; + first_name?: string | null; + last_name?: string | null; unsubscribed: boolean; } From 3abf777d233943e65e3f6f98366efbf8d13d1b42 Mon Sep 17 00:00:00 2001 From: Gabriel Miranda Date: Tue, 18 Aug 2026 14:44:49 -0300 Subject: [PATCH 2/2] chore: bump version to 6.20.1 Co-Authored-By: Claude Opus 5 (1M context) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e5b43354..694a4f0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "resend", - "version": "6.20.0", + "version": "6.20.1", "description": "Node.js library for the Resend API", "main": "./dist/index.cjs", "module": "./dist/index.mjs",