From 5bb4864a2daeca5b33163b5b69668377ac1e50d8 Mon Sep 17 00:00:00 2001 From: Max Rozen <3822106+rozenmd@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:29:48 +0100 Subject: [PATCH] chore: remove --batch-size --- .changeset/major-remove-d1-deprecated-batch-size.md | 9 +++++++++ packages/wrangler/src/d1/execute.ts | 6 ------ packages/wrangler/src/d1/migrations/apply.ts | 6 +----- 3 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 .changeset/major-remove-d1-deprecated-batch-size.md diff --git a/.changeset/major-remove-d1-deprecated-batch-size.md b/.changeset/major-remove-d1-deprecated-batch-size.md new file mode 100644 index 000000000000..82309e296aa6 --- /dev/null +++ b/.changeset/major-remove-d1-deprecated-batch-size.md @@ -0,0 +1,9 @@ +--- +"wrangler": major +--- + +Remove `--batch-size` as an option for `wrangler d1 execute` and `wrangler d1 migrations apply` + +BREAKING CHANGE: This change removes the deprecated `--batch-size` flag, as it is no longer necessary to decrease the number of queries wrangler sends to D1. + +Closes #7470 diff --git a/packages/wrangler/src/d1/execute.ts b/packages/wrangler/src/d1/execute.ts index bea1bd4fe49d..a9a1e7ee1c49 100644 --- a/packages/wrangler/src/d1/execute.ts +++ b/packages/wrangler/src/d1/execute.ts @@ -81,12 +81,6 @@ export function Options(yargs: CommonYargsArgv) { describe: "Execute commands/files against a preview D1 DB", type: "boolean", default: false, - }) - .option("batch-size", { - describe: "Number of queries to send in a single batch", - type: "number", - deprecated: true, - hidden: true, }); } diff --git a/packages/wrangler/src/d1/migrations/apply.ts b/packages/wrangler/src/d1/migrations/apply.ts index 85f0ae89be94..be3148faaca9 100644 --- a/packages/wrangler/src/d1/migrations/apply.ts +++ b/packages/wrangler/src/d1/migrations/apply.ts @@ -22,11 +22,7 @@ import type { } from "../../yargs-types"; export function ApplyOptions(yargs: CommonYargsArgv) { - return MigrationOptions(yargs).option("batch-size", { - describe: "Number of queries to send in a single batch", - type: "number", - deprecated: true, - }); + return MigrationOptions(yargs); } type ApplyHandlerOptions = StrictYargsOptionsToInterface;