Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark wrangler versions as stable #7463

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/thick-nails-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Mark `wrangler versions` commands as stable
6 changes: 2 additions & 4 deletions packages/wrangler/e2e/versions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,7 @@ describe("versions deploy", { timeout: TIMEOUT }, () => {
);

expect(normalize(upload.output)).toMatchInlineSnapshot(`
"▲ [WARNING] 🚧 \`wrangler versions upload\` is an open-beta command. Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose
X [ERROR] Legacy assets does not support uploading versions through \`wrangler versions upload\`. You must use \`wrangler deploy\` instead.
"X [ERROR] Legacy assets does not support uploading versions through \`wrangler versions upload\`. You must use \`wrangler deploy\` instead.
🪵 Logs were written to "<LOG>""
`);
});
Expand Down Expand Up @@ -590,8 +589,7 @@ describe("versions deploy", { timeout: TIMEOUT }, () => {
const upload = await helper.run(`wrangler versions upload --x-versions`);

expect(normalize(upload.output)).toMatchInlineSnapshot(`
"▲ [WARNING] 🚧 \`wrangler versions upload\` is an open-beta command. Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose
X [ERROR] Workers Sites does not support uploading versions through \`wrangler versions upload\`. You must use \`wrangler deploy\` instead.
"X [ERROR] Workers Sites does not support uploading versions through \`wrangler versions upload\`. You must use \`wrangler deploy\` instead.
🪵 Logs were written to "<LOG>""
`);
});
Expand Down
48 changes: 24 additions & 24 deletions packages/wrangler/src/__tests__/versions/versions.help.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ describe("versions --help", () => {
🫧 List, view, upload and deploy Versions of your Worker to Cloudflare

COMMANDS
wrangler versions view <version-id> View the details of a specific version of your Worker [open-beta]
wrangler versions list List the 10 most recent Versions of your Worker [open-beta]
wrangler versions upload Uploads your Worker code and config as a new Version [open-beta]
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [open-beta]
wrangler versions view <version-id> View the details of a specific version of your Worker
wrangler versions list List the 10 most recent Versions of your Worker
wrangler versions upload Uploads your Worker code and config as a new Version
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions
wrangler versions secret Generate a secret that can be referenced in a Worker

GLOBAL FLAGS
Expand All @@ -88,10 +88,10 @@ describe("versions --help", () => {
🫧 List, view, upload and deploy Versions of your Worker to Cloudflare

COMMANDS
wrangler versions view <version-id> View the details of a specific version of your Worker [open-beta]
wrangler versions list List the 10 most recent Versions of your Worker [open-beta]
wrangler versions upload Uploads your Worker code and config as a new Version [open-beta]
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [open-beta]
wrangler versions view <version-id> View the details of a specific version of your Worker
wrangler versions list List the 10 most recent Versions of your Worker
wrangler versions upload Uploads your Worker code and config as a new Version
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions
wrangler versions secret Generate a secret that can be referenced in a Worker

GLOBAL FLAGS
Expand Down Expand Up @@ -126,10 +126,10 @@ describe("versions subhelp", () => {
🫧 List, view, upload and deploy Versions of your Worker to Cloudflare

COMMANDS
wrangler versions view <version-id> View the details of a specific version of your Worker [open-beta]
wrangler versions list List the 10 most recent Versions of your Worker [open-beta]
wrangler versions upload Uploads your Worker code and config as a new Version [open-beta]
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [open-beta]
wrangler versions view <version-id> View the details of a specific version of your Worker
wrangler versions list List the 10 most recent Versions of your Worker
wrangler versions upload Uploads your Worker code and config as a new Version
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions
wrangler versions secret Generate a secret that can be referenced in a Worker

GLOBAL FLAGS
Expand All @@ -152,10 +152,10 @@ describe("versions subhelp", () => {
🫧 List, view, upload and deploy Versions of your Worker to Cloudflare

COMMANDS
wrangler versions view <version-id> View the details of a specific version of your Worker [open-beta]
wrangler versions list List the 10 most recent Versions of your Worker [open-beta]
wrangler versions upload Uploads your Worker code and config as a new Version [open-beta]
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [open-beta]
wrangler versions view <version-id> View the details of a specific version of your Worker
wrangler versions list List the 10 most recent Versions of your Worker
wrangler versions upload Uploads your Worker code and config as a new Version
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions
wrangler versions secret Generate a secret that can be referenced in a Worker

GLOBAL FLAGS
Expand All @@ -178,10 +178,10 @@ describe("versions subhelp", () => {
🫧 List, view, upload and deploy Versions of your Worker to Cloudflare

COMMANDS
wrangler versions view <version-id> View the details of a specific version of your Worker [open-beta]
wrangler versions list List the 10 most recent Versions of your Worker [open-beta]
wrangler versions upload Uploads your Worker code and config as a new Version [open-beta]
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [open-beta]
wrangler versions view <version-id> View the details of a specific version of your Worker
wrangler versions list List the 10 most recent Versions of your Worker
wrangler versions upload Uploads your Worker code and config as a new Version
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions
wrangler versions secret Generate a secret that can be referenced in a Worker

GLOBAL FLAGS
Expand All @@ -204,10 +204,10 @@ describe("versions subhelp", () => {
🫧 List, view, upload and deploy Versions of your Worker to Cloudflare

COMMANDS
wrangler versions view <version-id> View the details of a specific version of your Worker [open-beta]
wrangler versions list List the 10 most recent Versions of your Worker [open-beta]
wrangler versions upload Uploads your Worker code and config as a new Version [open-beta]
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [open-beta]
wrangler versions view <version-id> View the details of a specific version of your Worker
wrangler versions list List the 10 most recent Versions of your Worker
wrangler versions upload Uploads your Worker code and config as a new Version
wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions
wrangler versions secret Generate a secret that can be referenced in a Worker

GLOBAL FLAGS
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const versionsDeployCommand = createCommand({
description:
"Safely roll out new Versions of your Worker by splitting traffic between multiple Versions",
owner: "Workers: Authoring and Testing",
status: "open-beta",
status: "stable",
},
args: {
name: {
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const versionsListCommand = createCommand({
metadata: {
description: "List the 10 most recent Versions of your Worker",
owner: "Workers: Authoring and Testing",
status: "open-beta",
status: "stable",
},
args: {
name: {
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const versionsUploadCommand = createCommand({
metadata: {
description: "Uploads your Worker code and config as a new Version",
owner: "Workers: Authoring and Testing",
status: "open-beta",
status: "stable",
},
args: {
script: {
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const versionsViewCommand = createCommand({
metadata: {
description: "View the details of a specific version of your Worker",
owner: "Workers: Authoring and Testing",
status: "open-beta",
status: "stable",
},
args: {
"version-id": {
Expand Down
Loading