Skip to content

Fix: pass an unnamed mailbox as a string - #1905

Merged
neuromechanist merged 1 commit into
devfrom
fix/issue-1894-mailbox-name
Oct 24, 2026
Merged

neuromechanist merged 1 commit into
devfrom
fix/issue-1894-mailbox-name

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Staging sign-in failed after Phase 1 deployed: the dev Worker logged Incorrect type for the 'name' field on 'EmailAddress': the provided value is not of type 'string'. The live send_email runtime requires name to be a string whenever the object form is used, and parseMailbox returned { email } for the bare reply-to address [email protected]. Miniflare accepted that shape, so the Phase 1 tests did not catch it.

parseMailbox now returns the address as a string when there is no display name, and CloudflareMailbox.name is required.

Targets dev directly because the epic branch was removed on merge of #1903. Part of #1894 (epic #1893).

Test plan

  • bun test for email-provider, broadcast-cloudflare, email-send-binding, inbound-mail (61 pass)
  • bun run typecheck, biome
  • After merge: staging sign-in code arrives

🤖 Generated with Claude Code

The live send_email runtime refuses an EmailAddress object whose name is not a string, so a bare reply-to address made every staging send fail. Miniflare accepted it. Tested: email provider, broadcast, binding and inbound suites; typecheck; biome.
@github-actions

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR1905

Version: 0.10.24-PR1905.790e260
Commit: 790e260


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 0e5e375 into dev Oct 24, 2026
14 checks passed
@neuromechanist
neuromechanist deleted the fix/issue-1894-mailbox-name branch October 24, 2026 04:48

This branch was previously deployed

1 inactive deployment
npm — 790e2601 Deployed Oct 24, 2026 by neuromechanist via publish #3817
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