Skip to content

Workflow binding: remove dispose on void returning method#11084

Merged
Caio-Nogueira merged 1 commit intomainfrom
caio/fix-void-dispose-workflow-wrapped-binding
Oct 31, 2025
Merged

Workflow binding: remove dispose on void returning method#11084
Caio-Nogueira merged 1 commit intomainfrom
caio/fix-void-dispose-workflow-wrapped-binding

Conversation

@Caio-Nogueira
Copy link
Contributor

Fixes WOR-926.

This fix comes in sequence of #10919. sendEvent returns void and therefore doesn't need disposal.

Disposing here would make the dev output more noisy because users would see a runtime error which is a consequence of a failed disposer call.

  • Tests
    • Tests included
    • Tests not necessary because: sendEvent is already covered with existing fixture tests. The coverage wasn't enough here because the hot path will still work (i.e.: event will be sent but the disposer will throw afterwards)
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: no changes were made to public APIs
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: this is a Miniflare change

@Caio-Nogueira Caio-Nogueira requested a review from a team as a code owner October 24, 2025 12:27
@changeset-bot
Copy link

changeset-bot bot commented Oct 24, 2025

🦋 Changeset detected

Latest commit: 61fb933

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

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 24, 2025

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11084

wrangler

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

commit: 61fb933

@Caio-Nogueira Caio-Nogueira force-pushed the caio/fix-void-dispose-workflow-wrapped-binding branch from b4c93c8 to 9891634 Compare October 27, 2025 09:56
@Caio-Nogueira Caio-Nogueira force-pushed the caio/fix-void-dispose-workflow-wrapped-binding branch from 9891634 to c6c0f8b Compare October 27, 2025 10:37
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Oct 30, 2025
@Caio-Nogueira Caio-Nogueira force-pushed the caio/fix-void-dispose-workflow-wrapped-binding branch from c6c0f8b to 051b4e3 Compare October 31, 2025 12:18
@Caio-Nogueira Caio-Nogueira requested a review from a team as a code owner October 31, 2025 12:18
@Caio-Nogueira Caio-Nogueira force-pushed the caio/fix-void-dispose-workflow-wrapped-binding branch from 051b4e3 to 7c7180c Compare October 31, 2025 12:34
Copy link
Member

@dario-piotrowicz dario-piotrowicz left a comment

Choose a reason for hiding this comment

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

LGTM 🙂

@Caio-Nogueira Caio-Nogueira force-pushed the caio/fix-void-dispose-workflow-wrapped-binding branch from 7c7180c to 61fb933 Compare October 31, 2025 14:21
@Caio-Nogueira Caio-Nogueira merged commit 14f60e8 into main Oct 31, 2025
50 of 55 checks passed
@Caio-Nogueira Caio-Nogueira deleted the caio/fix-void-dispose-workflow-wrapped-binding branch October 31, 2025 16:31
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants