Skip to content

Conversation

@dario-piotrowicz
Copy link
Member

I noticed that we're missing the experimental_remote field in the send_email wrangler config:
Screenshot 2025-09-07 at 22 45 18

Although as you can see from e2e tests this is an expected field:

send_email: [
{
name: "EMAIL",
experimental_remote: true,
},
],


  • Tests
    • Tests included
    • Tests not necessary because: the functionality using the field is already tested and we don't have type-specific tests
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: already documented
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: not a wrangler v3 feature
@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner September 7, 2025 21:51
@changeset-bot
Copy link

changeset-bot bot commented Sep 7, 2025

🦋 Changeset detected

Latest commit: e7fade7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2025

These changes have been automatically backported to Wrangler v3 🎉 You can view the automatically updated PR at v3-maintenance...v3-backport-10571. Please check that PR for correctness, and make sure it's merged after this one. Thank you for helping us keep Wrangler v3 supported!

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 7, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10571 

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10571 

miniflare

npm i https://pkg.pr.new/miniflare@10571 

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10571 

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10571 

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10571 

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@10571 

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@10571 

wrangler

npm i https://pkg.pr.new/wrangler@10571 

commit: e7fade7

@dario-piotrowicz dario-piotrowicz force-pushed the dario/email-experimental-remote-field-type branch from fea574f to e6cb7c8 Compare September 7, 2025 22:27
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Sep 8, 2025
@dario-piotrowicz dario-piotrowicz added the skip-v3-pr Skip validation of presence of a v3 backport PR label Sep 8, 2025
@dario-piotrowicz dario-piotrowicz force-pushed the dario/email-experimental-remote-field-type branch from e6cb7c8 to e7fade7 Compare September 8, 2025 10:26
/** If this binding should be restricted to a set of verified addresses */
allowed_destination_addresses?: string[];
/** Whether the binding should be remote or not (only available under `--x-remote-bindings`) */
experimental_remote?: boolean;
Copy link
Member

@edmundhung edmundhung Sep 8, 2025

Choose a reason for hiding this comment

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

I am curious why this doesn't get caught by the type checker. Didn't we use this config to infer the miniflare setup?

Copy link
Member Author

Choose a reason for hiding this comment

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

We check the remote field here:
Screenshot 2025-09-08 at 15 11 38

But as you can see the type is just object so there isn't a strong type checking here

After that we do filter the bindings that need to be remote, but we check if "experimental_remote" in binding:
Screenshot 2025-09-08 at 15 14 33

Which again would not fail if experimental_remote wasn't part of the type

So we simply miss the fact that the field wasn't defined in the type 🤔

@dario-piotrowicz dario-piotrowicz merged commit 4e49d3e into main Sep 8, 2025
40 of 41 checks passed
@dario-piotrowicz dario-piotrowicz deleted the dario/email-experimental-remote-field-type branch September 8, 2025 17:20
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-v3-pr Skip validation of presence of a v3 backport PR

3 participants