Skip to content

Commit

Permalink
chore: remove the warning about local mode flag being removed in the …
Browse files Browse the repository at this point in the history
…future (#6563)
  • Loading branch information
threepointone authored Aug 27, 2024
1 parent 0d83428 commit da48a70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-rockets-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

chore: remove the warning about local mode flag being removed in the future
7 changes: 0 additions & 7 deletions fixtures/pages-functions-app/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@ describe("Pages Functions", () => {
expect(text).toContain("<h1>An asset</h1>");
});

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(
Expand Down
6 changes: 0 additions & 6 deletions packages/wrangler/src/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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. 🎉"
Expand Down

0 comments on commit da48a70

Please sign in to comment.