Skip to content

Commit 622bb6b

Browse files
committed
remove out of date warning
1 parent c4fe9d6 commit 622bb6b

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,15 +1288,6 @@ describe.sequential("wrangler dev", () => {
12881288
https://developers.cloudflare.com/durable-objects/reference/durable-objects-migrations/ for more
12891289
details.
12901290
1291-
1292-
▲ [WARNING] WARNING: You have Durable Object bindings that are not defined locally in the worker being developed.
1293-
1294-
Be aware that changes to the data stored in these Durable Objects will be permanent and affect the
1295-
live instances.
1296-
Remote Durable Objects that are affected:
1297-
- {\\"name\\":\\"NAME_2\\",\\"class_name\\":\\"CLASS_2\\",\\"script_name\\":\\"SCRIPT_A\\"}
1298-
- {\\"name\\":\\"NAME_4\\",\\"class_name\\":\\"CLASS_4\\",\\"script_name\\":\\"SCRIPT_B\\"}
1299-
13001291
"
13011292
`);
13021293
});

packages/wrangler/src/deployment-bundle/entry.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,7 @@ export async function getEntry(
130130
config.tsconfig
131131
);
132132

133-
const { localBindings, remoteBindings } =
134-
partitionDurableObjectBindings(config);
135-
136-
if (command === "dev" && remoteBindings.length > 0) {
137-
logger.warn(
138-
"WARNING: You have Durable Object bindings that are not defined locally in the worker being developed.\n" +
139-
"Be aware that changes to the data stored in these Durable Objects will be permanent and affect the live instances.\n" +
140-
"Remote Durable Objects that are affected:\n" +
141-
remoteBindings.map((b) => `- ${JSON.stringify(b)}`).join("\n")
142-
);
143-
}
133+
const { localBindings } = partitionDurableObjectBindings(config);
144134

145135
if (format === "service-worker" && localBindings.length > 0) {
146136
const errorMessage =

0 commit comments

Comments
 (0)