Skip to content

Commit 8ca4b32

Browse files
authored
fix: remove deprecation warnings for wrangler init (#7097)
* remove delegation warnings for wrangler init * changeset
1 parent 71d0c66 commit 8ca4b32

File tree

4 files changed

+134
-278
lines changed

4 files changed

+134
-278
lines changed

.changeset/mighty-carrots-report.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
fix: remove deprecation warnings for `wrangler init`
6+
7+
We will not be removing `wrangler init` (it just delegates to create-cloudflare now). These warnings were causing confusion for users as it `wrangler init` is still recommended in many places.

packages/wrangler/src/__tests__/generate.test.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,7 @@ describe("generate", () => {
4646
expect(std.out).toMatchInlineSnapshot(
4747
`"✨ Created no-template/wrangler.toml"`
4848
);
49-
expect(std.warn).toMatchInlineSnapshot(`
50-
"▲ [WARNING] The \`init\` command is no longer supported. Please use \`mockpm create cloudflare/@/^2.5.0 no-template\` instead.
51-
52-
The \`init\` command will be removed in a future version.
53-
54-
"
55-
`);
49+
expect(std.warn).toMatchInlineSnapshot(`""`);
5650
});
5751

5852
it("delegates to create cloudflare if Cloudflare template path is given", async () => {

0 commit comments

Comments
 (0)