diff --git a/.changeset/clean-rockets-decide.md b/.changeset/clean-rockets-decide.md new file mode 100644 index 000000000000..168be37784c6 --- /dev/null +++ b/.changeset/clean-rockets-decide.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +chore: remove the warning about local mode flag being removed in the future diff --git a/fixtures/pages-functions-app/tests/index.test.ts b/fixtures/pages-functions-app/tests/index.test.ts index 51976b4ca395..2365ef3363b6 100644 --- a/fixtures/pages-functions-app/tests/index.test.ts +++ b/fixtures/pages-functions-app/tests/index.test.ts @@ -97,13 +97,6 @@ describe("Pages Functions", () => { expect(text).toContain("

An asset

"); }); - it("doesn't warn about local mode", async ({ expect }) => { - // Regression test for https://github.com/cloudflare/workers-sdk/issues/4210 - expect(getOutput()).not.toContain( - "--local is no longer required and will be removed in a future version" - ); - }); - describe("can mount a plugin", () => { it("should mount Middleware", async ({ expect }) => { const response = await fetch( diff --git a/packages/wrangler/src/dev.tsx b/packages/wrangler/src/dev.tsx index 4da5e0908a64..3de5b1107bbf 100644 --- a/packages/wrangler/src/dev.tsx +++ b/packages/wrangler/src/dev.tsx @@ -557,12 +557,6 @@ export async function startDev(args: StartDevOptions) { logger.loggerLevel = args.logLevel; } - if (args.local) { - logger.warn( - "--local is no longer required and will be removed in a future version.\n`wrangler dev` now uses the local Cloudflare Workers runtime by default. 🎉" - ); - } - if (args.experimentalLocal) { logger.warn( "--experimental-local is no longer required and will be removed in a future version.\n`wrangler dev` now uses the local Cloudflare Workers runtime by default. 🎉"