Skip to content

fix: reject --no-bindings with a runtime other than node - #136

Merged
yusukebe merged 2 commits into
nextfrom
fix/no-bindings-runtime
Sep 20, 2026
Merged

yusukebe merged 2 commits into
nextfrom
fix/no-bindings-runtime

Conversation

@yusukebe

Copy link
Copy Markdown
Member

`--no-bindings` was accepted with `--runtime workerd` and did nothing: the bindings proxy is a Node.js thing, and workerd has the real bindings from the wrangler config. The Agent DX team saw `--no-bindings --runtime workerd` return D1 rows and could not tell from the flag name why. The same held for `bun` and `deno` in `request`.

Now `request`, `batch`, and `snapshot` reject `--no-bindings` with any runtime other than `node`, with an `INVALID_OPTION` that says which flag to drop. README updated.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run format:fix && pnpm run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit 8e4da44 into next Sep 20, 2026
4 checks passed
@yusukebe
yusukebe deleted the fix/no-bindings-runtime branch September 20, 2026 07:43
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