* rename getLocalExplorerFromEnv() to getLocalExplorerEnabledFromEnv()
* Add resource ID to binding name map
Uses a JSON binding in the Local Explorer worker that maps binding names to namespace IDs
* Add script to filter openapi spec down
* add implementation for KV API
* changeset
* PR feedback, mroe tests and other fixups
* fix pnpm lock
* fixup
* pr feedback
* chore: use native stripVTControlCharacters
Since Node 16.x, there is a built-in function,
`stripVTControlCharacters`. This does the same job as the `strip-ansi`
package and makes it redundant going forward.
The minimum node version in these projects is at least 16, so we should
be good to switch.
* chore: remove unnecessary package-lock.json from import-npm fixture
* chore: remove private package from changeset
* chore: fix formatting
---------
Co-authored-by: Edmund Hung <edmund@cloudflare.com>
* create fixture with many bindings
* Add resource api worker to miniflare
* gate behind experimental flag
* add tests
* changeset
* fixups
* rename to local explorer and more fixups
* [miniflare] Add MessageBuilder support for Email Sending API in local mode
Implements support for the simplified MessageBuilder interface in Miniflare's
Email Sending API binding. This provides a developer-friendly alternative to
manually constructing MIME messages with the EmailMessage API.
Key changes:
- Add TypeScript types for MessageBuilder API (types.ts)
- Implement send() overload accepting MessageBuilder alongside EmailMessage
- Store email content (text, HTML, attachments) to viewable temp files
- Extract common storeTempFile() helper to reduce duplication
- Add comprehensive test coverage (12 new tests)
In local mode, content is saved to files that developers can open in their
editor/browser for inspection, with file paths logged to the console.
* Address PR review comments
- Simplify changeset description
- Shorten example subject to 'Hello'
- Remove trailing newline in changeset
- Remove extra blank line in send_email.worker.ts
* Add MessageBuilder examples to email-worker fixture
Adds comprehensive manual testing examples for the MessageBuilder API:
- /send-simple: Basic text-only email
- /send-html: Email with text and HTML content
- /send-attachment: Single text attachment
- /send-multi-attachment: Multiple attachment types (text, JSON, binary)
- /send-complex: Multiple recipients (to/cc/bcc)
- /test-bindings: Test all three binding types
Also includes:
- README with complete usage instructions
- Documentation of expected console output
- Notes about type assertions (types not yet in @cloudflare/workers-types)
Tested locally - all routes work correctly.
* Fix MessageBuilder validation to extract email from EmailAddress objects
The validateMessageBuilder function was passing EmailAddress objects
(with { name, email } structure) directly to validateRecipients, which
expected strings. This caused the error 'email to [object Object] not allowed'.
Fix: Extract email addresses from EmailAddress objects before validation
using the existing extractEmailAddress helper.
Tested with fixture routes that use EmailAddress objects:
- /send-simple (named sender)
- /send-complex (multiple recipients with names)
All tests pass.
* Fix snapshot test to handle Windows file paths
The MessageBuilder snapshot test was failing on Windows because the regex
only matched Unix-style paths (/...). Updated the regex to also match
Windows paths (C:\...) while still normalizing both to the same format.
Regex now matches:
- Unix: /var/folders/.../email-text/uuid.txt
- Windows: C:\Users\...\email-text\uuid.txt
Both normalize to: /email-text/[FILE].txt
* Add MessageBuilder support for remote mode email bindings
The proxy server previously only handled EmailMessage objects by
reconstructing them from the serialized 'EmailMessage::raw' property.
This fix adds detection for MessageBuilder objects and passes them
through directly since they're already plain serializable objects.
Changes:
- Check if the argument has 'EmailMessage::raw' property to distinguish
EmailMessage from MessageBuilder
- EmailMessage: Reconstruct with EmailMessage constructor (existing behavior)
- MessageBuilder: Pass through directly as plain object (new behavior)
Both APIs now work correctly in remote mode via wrangler dev --remote.
* chore(deps): bump the workerd-and-workers-types group with 2 updates
Bumps the workerd-and-workers-types group with 2 updates: [workerd](https://github.com/cloudflare/workerd) and [@cloudflare/workers-types](https://github.com/cloudflare/workerd).
Updates `workerd` from 1.20260115.0 to 1.20260116.0
- [Release notes](https://github.com/cloudflare/workerd/releases)
- [Changelog](https://github.com/cloudflare/workerd/blob/main/RELEASE.md)
- [Commits](https://github.com/cloudflare/workerd/compare/v1.20260115.0...v1.20260116.0)
Updates `@cloudflare/workers-types` from 4.20260115.0 to 4.20260116.0
- [Release notes](https://github.com/cloudflare/workerd/releases)
- [Changelog](https://github.com/cloudflare/workerd/blob/main/RELEASE.md)
- [Commits](https://github.com/cloudflare/workerd/commits)
---
updated-dependencies:
- dependency-name: workerd
dependency-version: 1.20260116.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: workerd-and-workers-types
- dependency-name: "@cloudflare/workers-types"
dependency-version: 4.20260116.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: workerd-and-workers-types
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: update dependencies of "miniflare", "wrangler"
The following dependency versions have been updated:
| Dependency | From | To |
| ---------- | ------------ | ------------ |
| workerd | 1.20260115.0 | 1.20260116.0 |
* Add dummy message ID
* add comments
* Update packages/miniflare/src/workers/email/send_email.worker.ts
Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wrangler automated PR updater <wrangler@cloudflare.com>
Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com>