From 9193f71870a920249f93d7fbdc2f71b6fd8cb342 Mon Sep 17 00:00:00 2001 From: Samuel Macleod Date: Fri, 7 Mar 2025 12:02:14 +0000 Subject: [PATCH 1/3] Remove mentions of Wrangler & Miniflare v2 --- .../docs/d1/tutorials/build-a-comments-api/index.mdx | 2 +- ...use-direct-upload-with-continuous-integration.mdx | 2 +- src/content/docs/workers/wrangler/custom-builds.mdx | 2 +- .../partials/kv/tutorials-wrangler-v1-warning.mdx | 12 ------------ .../workers/tutorials-wrangler-v1-warning.mdx | 12 ------------ 5 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 src/content/partials/kv/tutorials-wrangler-v1-warning.mdx delete mode 100644 src/content/partials/workers/tutorials-wrangler-v1-warning.mdx diff --git a/src/content/docs/d1/tutorials/build-a-comments-api/index.mdx b/src/content/docs/d1/tutorials/build-a-comments-api/index.mdx index 1866de142bbd162..08bc0fceb15d349 100644 --- a/src/content/docs/d1/tutorials/build-a-comments-api/index.mdx +++ b/src/content/docs/d1/tutorials/build-a-comments-api/index.mdx @@ -82,7 +82,7 @@ export default app; ## 3. Create a database -You will now create a D1 database. In Wrangler v2, there is support for the `wrangler d1` subcommand, which allows you to create and query your D1 databases directly from the command line. Create a new database with `wrangler d1 create`: +You will now create a D1 database. In Wrangler, there is support for the `wrangler d1` subcommand, which allows you to create and query your D1 databases directly from the command line. Create a new database with `wrangler d1 create`: ```sh npx wrangler d1 create d1-example diff --git a/src/content/docs/pages/how-to/use-direct-upload-with-continuous-integration.mdx b/src/content/docs/pages/how-to/use-direct-upload-with-continuous-integration.mdx index 09e295f54437a70..e2333e4d0daa5ad 100644 --- a/src/content/docs/pages/how-to/use-direct-upload-with-continuous-integration.mdx +++ b/src/content/docs/pages/how-to/use-direct-upload-with-continuous-integration.mdx @@ -189,6 +189,6 @@ env: - CLOUDFLARE_API_TOKEN: { $CLOUDFLARE_API_TOKEN } ``` -In the code block above you have specified the language as `node_js` and listed the value as `18.0.0` because Wrangler v2 depends on this Node version or higher. You have also set branches you want your continuous integration to run on. Finally, input your `PROJECT NAME` in the script section and your CI process should work as expected. +This will set the Node.js version to 18. You have also set branches you want your continuous integration to run on. Finally, input your `PROJECT NAME` in the script section and your CI process should work as expected. You can also modify the Wrangler command with any [`wrangler pages deploy` options](/workers/wrangler/commands/#deploy-1). diff --git a/src/content/docs/workers/wrangler/custom-builds.mdx b/src/content/docs/workers/wrangler/custom-builds.mdx index 922dbf4c694b0b8..ae5c36764e37e19 100644 --- a/src/content/docs/workers/wrangler/custom-builds.mdx +++ b/src/content/docs/workers/wrangler/custom-builds.mdx @@ -12,7 +12,7 @@ Custom builds are a way for you to customize how your code is compiled, before b :::note -With the release of Wrangler v2, it is no longer necessary to use custom builds to bundle your code via webpack and similar bundlers. Wrangler runs [esbuild](https://esbuild.github.io/) by default as part of the `dev` and `publish` commands, and bundles your Worker project into a single Worker script. Refer to [Bundling](/workers/wrangler/bundling/). +Wrangler runs [esbuild](https://esbuild.github.io/) by default as part of the `dev` and `publish` commands, and bundles your Worker project into a single Worker script. Refer to [Bundling](/workers/wrangler/bundling/). ::: ## Configure custom builds diff --git a/src/content/partials/kv/tutorials-wrangler-v1-warning.mdx b/src/content/partials/kv/tutorials-wrangler-v1-warning.mdx deleted file mode 100644 index 66218f6c9bc2602..000000000000000 --- a/src/content/partials/kv/tutorials-wrangler-v1-warning.mdx +++ /dev/null @@ -1,12 +0,0 @@ ---- -{} - ---- - -:::caution - - -This tutorial was developed with Wrangler v1, which has now been deprecated. Refer to [Migration to Wrangler v2](/workers/wrangler/migration/v1-to-v2/) for instructions on how to upgrade to the latest version. - - -::: diff --git a/src/content/partials/workers/tutorials-wrangler-v1-warning.mdx b/src/content/partials/workers/tutorials-wrangler-v1-warning.mdx deleted file mode 100644 index 66218f6c9bc2602..000000000000000 --- a/src/content/partials/workers/tutorials-wrangler-v1-warning.mdx +++ /dev/null @@ -1,12 +0,0 @@ ---- -{} - ---- - -:::caution - - -This tutorial was developed with Wrangler v1, which has now been deprecated. Refer to [Migration to Wrangler v2](/workers/wrangler/migration/v1-to-v2/) for instructions on how to upgrade to the latest version. - - -::: From 6b2160ba5c6191e436903f7174321475f9c127ec Mon Sep 17 00:00:00 2001 From: Samuel Macleod Date: Fri, 7 Mar 2025 12:04:17 +0000 Subject: [PATCH 2/3] more --- .../partials/workers/wrangler-v1-deprecation.mdx | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/content/partials/workers/wrangler-v1-deprecation.mdx diff --git a/src/content/partials/workers/wrangler-v1-deprecation.mdx b/src/content/partials/workers/wrangler-v1-deprecation.mdx deleted file mode 100644 index d16920dd5b6fdb8..000000000000000 --- a/src/content/partials/workers/wrangler-v1-deprecation.mdx +++ /dev/null @@ -1,12 +0,0 @@ ---- -{} - ---- - -:::caution - - -This page is for Wrangler v1, which has been deprecated. -[Learn how to update to the latest version of Wrangler](/workers/wrangler/migration/v1-to-v2/). - -::: From f054b25cd39b29e30b67693762706d4ac34522ca Mon Sep 17 00:00:00 2001 From: Samuel Macleod Date: Mon, 10 Mar 2025 17:48:44 +0000 Subject: [PATCH 3/3] restore deprecation partial --- .../partials/workers/wrangler-v1-deprecation.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/content/partials/workers/wrangler-v1-deprecation.mdx diff --git a/src/content/partials/workers/wrangler-v1-deprecation.mdx b/src/content/partials/workers/wrangler-v1-deprecation.mdx new file mode 100644 index 000000000000000..b0c1bdb97780d06 --- /dev/null +++ b/src/content/partials/workers/wrangler-v1-deprecation.mdx @@ -0,0 +1,10 @@ +--- +{} +--- + +:::caution + +This page is for Wrangler v1, which has been deprecated. +[Learn how to update to the latest version of Wrangler](/workers/wrangler/migration/v1-to-v2/). + +:::