Skip to content

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

Open
yusukebe wants to merge 1 commit into
nextfrom
fix/no-bindings-runtime
Open

yusukebe wants to merge 1 commit 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

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