Skip to content

Commit

Permalink
fix: remove deprecation warnings for wrangler init (#7097)
Browse files Browse the repository at this point in the history
* remove delegation warnings for wrangler init

* changeset
  • Loading branch information
emily-shen authored Oct 29, 2024
1 parent 71d0c66 commit 8ca4b32
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 278 deletions.
7 changes: 7 additions & 0 deletions .changeset/mighty-carrots-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

fix: remove deprecation warnings for `wrangler init`

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.
8 changes: 1 addition & 7 deletions packages/wrangler/src/__tests__/generate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@ describe("generate", () => {
expect(std.out).toMatchInlineSnapshot(
`"✨ Created no-template/wrangler.toml"`
);
expect(std.warn).toMatchInlineSnapshot(`
"▲ [WARNING] The \`init\` command is no longer supported. Please use \`mockpm create cloudflare/@/^2.5.0 no-template\` instead.
The \`init\` command will be removed in a future version.
"
`);
expect(std.warn).toMatchInlineSnapshot(`""`);
});

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

0 comments on commit 8ca4b32

Please sign in to comment.