Skip to content

Release v0.2.1#3

Merged
juancobo merged 3 commits into
mainfrom
release/v0.2.1
May 29, 2026
Merged

Release v0.2.1#3
juancobo merged 3 commits into
mainfrom
release/v0.2.1

Conversation

@juancobo

Copy link
Copy Markdown
Member

Two additive changes:

  • Fail closed when email Worker secrets are unset. The unsubscribe, webhook, and send() paths now reject with a server error when their HMAC, webhook, or Resend secrets are missing, instead of operating under an empty key.
  • Export the send() RPC contract from @ampl/kit/email. SendMessage and SendResult now live in the shared kit/email types and are re-exported, so consumers type their EMAIL service binding against the published contract instead of vendoring it.

No schema changes. Consumers on v0.2.0 are unaffected (additive).

juancobo added 3 commits May 29, 2026 16:18
Reject unsubscribe, webhook, and send requests with a server error when
their HMAC, webhook, or Resend secrets are missing, instead of operating
under an empty key.
Move SendMessage and SendResult into the shared kit/email types and
re-export them so consumers type their EMAIL service binding against the
published contract; the email Worker re-exports them for its own use.
Patch release: send() RPC contract export and email secret fail-closed
guards.
Copilot AI review requested due to automatic review settings May 29, 2026 23:20
@juancobo juancobo merged commit 691200f into main May 29, 2026
2 of 3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants