Skip to content

fix(docs): use usesend-js package in webhook guide#363

Merged
KMKoushik merged 1 commit intomainfrom
fix/webhooks-sdk-package-name
Feb 27, 2026
Merged

fix(docs): use usesend-js package in webhook guide#363
KMKoushik merged 1 commit intomainfrom
fix/webhooks-sdk-package-name

Conversation

@KMKoushik
Copy link
Member

@KMKoushik KMKoushik commented Feb 27, 2026

Summary

  • update webhook guide install commands to use the published JavaScript SDK package usesend-js
  • fix TypeScript import examples to reference usesend-js for both UseSend and Webhooks
  • align webhook docs with the package name used in the SDK and other Node.js docs

Summary by cubic

Update the webhook guide to use the published JavaScript SDK package usesend-js. Fix install commands and TypeScript import examples for UseSend and Webhooks to reference usesend-js.

Written for commit 9b90b0a. Summary will update on new commits.

Summary by CodeRabbit

  • Documentation
    • Updated webhook guide code examples to use the usesend-js package for installation commands and import statements across multiple package managers (npm, yarn, pnpm, bun) and frameworks (Next.js App Router, Express).

@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
unsend-marketing Ready Ready Preview, Comment Feb 27, 2026 8:10pm

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 27, 2026

Deploying usesend with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9b90b0a
Status: ✅  Deploy successful!
Preview URL: https://d168fbf1.usesend.pages.dev
Branch Preview URL: https://fix-webhooks-sdk-package-nam.usesend.pages.dev

View logs

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 27, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b2ed09e and 9b90b0a.

📒 Files selected for processing (1)
  • apps/docs/guides/webhooks.mdx

Walkthrough

The webhooks documentation file updates package references from usesend to usesend-js across all code examples. Changes include installation command examples for npm, yarn, pnpm, and bun package managers, as well as import statements in Next.js App Router and Express framework examples. The modifications are limited to documentation code samples with no changes to functional logic or runtime behavior.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: updating the webhook guide documentation to use the usesend-js package instead of usesend.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@KMKoushik KMKoushik merged commit 1c64474 into main Feb 27, 2026
6 checks passed
@KMKoushik KMKoushik deleted the fix/webhooks-sdk-package-name branch February 27, 2026 20:15
KMKoushik added a commit that referenced this pull request Feb 27, 2026
* fix: prevent premature webhook auto-disable and allow re-enable

Use persisted failure counters when deciding auto-disable status and restore dashboard re-enable flow so webhooks are not deactivated unexpectedly after reset.

* fix: count webhook failures per failed call

Only increment consecutive failure counters after a call exhausts retries, while keeping the 30-call auto-disable threshold and stale-state protection.

* fix(docs): correct webhook SDK package name (#363)

* test: isolate webhook unit suite from mailer deps

Mock limit service in webhook unit tests so Vitest does not resolve team-service and mailer paths requiring usesend-js during CI.
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