Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .tegami/2026-11-05-sdk-035.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
packages:
"@samva/better-auth": minor
"@samva/email-sdk": minor
---

## Require Samva SDK 0.35

Both adapters now require `samva@^0.35.0` and validate against SDK 0.35.0.
Only the current SDK minor is supported; upgrade Samva alongside the adapter.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ webhooks, and give an agent its own mailbox. Ask questions about the code on
- `cookbooks/*.md` — documentation-first, copy-pasteable recipes.
- `plugins/*` — coding-agent plugins and public documentation.

While Samva is 0.x, the maintained integrations support only the current SDK minor: 0.34. Workspace
packages require `samva@^0.34.0` as a peer and test against `0.34.0`. Examples use
`samva@^0.34.0`; copyable external import maps pin `samva@0.34.0`.
While Samva is 0.x, the maintained integrations support only the current SDK minor: 0.35. Workspace
packages require `samva@^0.35.0` as a peer and test against `0.35.0`. Examples use
`samva@^0.35.0`; copyable external import maps pin `samva@0.35.0`.

## Package integrations

Expand Down
50 changes: 24 additions & 26 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cookbooks/effect-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The payload is the same. This cookbook covers the Effect runtime.
## Setup

```sh
bun add samva@^0.34.0 effect@4.1.2
bun add samva@^0.35.0 effect@4.1.2
```

Keep `SAMVA_API_KEY` on the server.
Expand Down
13 changes: 13 additions & 0 deletions cookbooks/inbound-email.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ unknownRecipientMailboxId })` to a mailbox that is active and has an address on
or pass `null` to drop them without a bounce. Domain reads return the current value, and a
catch-all webhook endpoint takes precedence over it.

To remove that webhook without disabling receiving, pass `endpointId: null`:

```ts
await samva.email.updateCatchAllConfig({
domainId: process.env.SAMVA_DOMAIN_ID!,
endpointId: null,
unknownRecipientMailboxId: process.env.SAMVA_MAILBOX_ID!,
});
```

Omitted settings stay unchanged. With no webhook or unknown-recipient mailbox,
unknown addresses are dropped without a bounce.

Store the signing secret securely when the endpoint is created. Read the current secret again
with `samva.webhooks.getSecret({ id: endpoint.endpoint.id })`; the response includes `secret`,
`createdAt`, and `previousExpiresAt`. Reading it requires webhook update permission, the same
Expand Down
2 changes: 1 addition & 1 deletion cookbooks/mailboxes.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The tests use fakes, so the whole flow runs without an account. Full reference:
bun add samva
```

These examples use `samva@^0.34.0`. Extension helpers are part of the SDK at
These examples use `samva@^0.35.0`. Extension helpers are part of the SDK at
`samva/mailbox`, `samva/mailbox/test`, and `samva/mailbox/webhook`; the standalone
`@samva/mailbox` package is deprecated in its favour.

Expand Down
2 changes: 1 addition & 1 deletion cookbooks/supabase-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ For a Supabase Edge Function, map those imports in `deno.json`:
"react": "npm:react@19.3.1",
"react/jsx-runtime": "npm:react@19.3.1/jsx-runtime",
"react-email": "npm:react-email@6.11.6",
"samva": "npm:samva@0.34.0",
"samva": "npm:samva@0.35.0",
"standardwebhooks": "npm:standardwebhooks@1.1.1"
}
}
Expand Down
2 changes: 1 addition & 1 deletion cookbooks/tsx-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runnable version of this page.

```sh
bun add @samva/markup@^0.22.0
bun add --dev @samva/cli@^0.29.0 @samva/vite@^0.22.0 vite typescript
bun add --dev @samva/cli@^0.30.0 @samva/vite@^0.22.0 vite typescript
```

The `samva` executable comes from `@samva/cli`; run it through your package runner so the local
Expand Down
2 changes: 1 addition & 1 deletion examples/astro-email/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/cloudflare": "^14.4.4",
"astro": "^7.4.5",
"samva": "^0.34.0"
"samva": "^0.35.0"
},
"devDependencies": {
"@astrojs/check": "^0.9.12",
Expand Down
2 changes: 1 addition & 1 deletion examples/better-auth-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"next": "^16.4.5",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"samva": "^0.34.0"
"samva": "^0.35.0"
},
"devDependencies": {
"@types/node": "^26.6.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/clerk-webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"next": "^16.4.5",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"samva": "^0.34.0",
"samva": "^0.35.0",
"server-only": "^0.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/effect-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"effect": "4.1.2",
"samva": "^0.34.0"
"samva": "^0.35.0"
},
"devDependencies": {
"@types/bun": "^1.4.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/email-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@opencoredev/email-sdk": "^3.0.1",
"@samva/email-sdk": "workspace:*",
"samva": "^0.34.0"
"samva": "^0.35.0"
},
"devDependencies": {
"@types/bun": "^1.4.4"
Expand Down
2 changes: 1 addition & 1 deletion examples/hono-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"hono": "^4.13.16",
"samva": "^0.34.0"
"samva": "^0.35.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^5.20261104.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/inbound-email-replies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"samva": "^0.34.0"
"samva": "^0.35.0"
},
"devDependencies": {
"@types/node": "^26.6.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/mailbox-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"samva": "^0.34.0"
"samva": "^0.35.0"
},
"devDependencies": {
"@types/bun": "^1.4.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-transactional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"next": "^16.4.5",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"samva": "^0.34.0",
"samva": "^0.35.0",
"server-only": "^0.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/react-email-samva/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-email": "^6.11.6",
"samva": "^0.34.0"
"samva": "^0.35.0"
},
"devDependencies": {
"@types/node": "^26.6.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/supabase-auth-hook/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"react": "npm:react@19.3.1",
"react/jsx-runtime": "npm:react@19.3.1/jsx-runtime",
"react-email": "npm:react-email@6.11.6",
"samva": "npm:samva@0.34.0",
"samva": "npm:samva@0.35.0",
"standardwebhooks": "npm:standardwebhooks@1.1.1"
},
"tasks": {
Expand Down
2 changes: 1 addition & 1 deletion examples/supabase-auth-hook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-email": "^6.11.6",
"samva": "^0.34.0",
"samva": "^0.35.0",
"standardwebhooks": "^1.1.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/sveltekit-transactional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"typecheck": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
},
"dependencies": {
"samva": "^0.34.0"
"samva": "^0.35.0"
},
"devDependencies": {
"@sveltejs/adapter-node": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/tanstack-start-transactional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@tanstack/react-start": "^1.169.4",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"samva": "^0.34.0",
"samva": "^0.35.0",
"zod": "^4.6.7"
},
"devDependencies": {
Expand Down
Loading
Loading