-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bump resend to latest #2930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump resend to latest #2930
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughDependency declarations in the email package were reordered and adjusted in package.json. In code, explicit CreateBatchResponse typings were removed from sendBatchEmail and sendBatchEmailViaResend. The resend guard now returns a concrete { data: null, error: null } object when the client is unavailable. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Caller
participant EmailAPI as index.ts
participant ResendFlow as send-via-resend.ts
participant Resend as Resend API
Caller->>EmailAPI: sendBatchEmail(payload)
EmailAPI->>ResendFlow: sendBatchEmailViaResend(opts)
alt Resend client unavailable
note over ResendFlow: Guard path
ResendFlow-->>EmailAPI: { data: null, error: null }
else Resend client available
ResendFlow->>Resend: createBatch(opts)
Resend-->>ResendFlow: response
ResendFlow-->>EmailAPI: response
end
EmailAPI-->>Caller: Promise resolving to response
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (2)packages/email/src/index.ts (1)
packages/email/src/send-via-resend.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Summary by CodeRabbit
Bug Fixes
Refactor
Chores