Skip to content

Commit f5ebb33

Browse files
Removes open-beta disclaimer from workflows commands (#8983)
* Removes open-beta disclaimer from workflows commands * Update packages/wrangler/src/__tests__/deploy.test.ts --------- Co-authored-by: Carmen Popoviciu <[email protected]>
1 parent 7744f1a commit f5ebb33

File tree

6 files changed

+7
-21
lines changed

6 files changed

+7
-21
lines changed

.changeset/eighty-knives-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Remove open-beta disclaimer from workflows commands

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12467,7 +12467,7 @@ export default{
1246712467
msw.use(handler);
1246812468
}
1246912469

12470-
it("should log open-beta warning when deploying a workflow", async () => {
12470+
it("should deploy a workflow", async () => {
1247112471
writeWranglerConfig({
1247212472
main: "index.js",
1247312473
workflows: [
@@ -12502,11 +12502,7 @@ export default{
1250212502

1250312503
await runWrangler("deploy");
1250412504

12505-
expect(std.warn).toMatchInlineSnapshot(`
12506-
"▲ [WARNING] Workflows is currently in open beta.
12507-
12508-
"
12509-
`);
12505+
expect(std.warn).toMatchInlineSnapshot(`""`);
1251012506
expect(std.out).toMatchInlineSnapshot(`
1251112507
"Total Upload: xx KiB / gzip: xx KiB
1251212508
Worker Startup Time: 100 ms

packages/wrangler/src/deploy/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,6 @@ export const deployCommand = createCommand({
235235

236236
const entry = await getEntry(args, config, "deploy");
237237

238-
if (config.workflows?.length) {
239-
logger.once.warn("Workflows is currently in open beta.");
240-
}
241-
242238
validateAssetsArgsAndConfig(args, config);
243239

244240
const assetsOptions = getAssetsOptions(args, config);

packages/wrangler/src/triggers/deploy.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,6 @@ export default async function triggersDeploy(
284284
}
285285

286286
if (config.workflows?.length) {
287-
logger.once.warn("Workflows is currently in open beta.");
288-
289287
for (const workflow of config.workflows) {
290288
// NOTE: if the user provides a script_name thats not this script (aka bounds to another worker)
291289
// we don't want to send this worker's config.

packages/wrangler/src/versions/deploy.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { fetchResult } from "../cfetch";
1111
import { createCommand } from "../core/create-command";
1212
import { UserError } from "../errors";
1313
import { isNonInteractiveOrCI } from "../is-interactive";
14-
import { logger } from "../logger";
1514
import * as metrics from "../metrics";
1615
import { writeOutput } from "../output";
1716
import { APIError } from "../parse";
@@ -119,10 +118,6 @@ export const versionsDeployCommand = createCommand({
119118
);
120119
}
121120

122-
if (config.workflows?.length) {
123-
logger.once.warn("Workflows is currently in open beta.");
124-
}
125-
126121
const versionCache: VersionCache = new Map();
127122
const optionalVersionTraffic = parseVersionSpecs(args);
128123

packages/wrangler/src/versions/upload.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,6 @@ export const versionsUploadCommand = createCommand({
281281
);
282282
}
283283

284-
if (config.workflows?.length) {
285-
logger.once.warn("Workflows is currently in open beta.");
286-
}
287-
288284
validateAssetsArgsAndConfig(
289285
{
290286
site: undefined,

0 commit comments

Comments
 (0)