wrangler 4.45.0 → 4.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/wrangler-dist/cli.js +21 -12
- package/wrangler-dist/metafile-cjs.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.45.
|
|
3
|
+
"version": "4.45.1",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -145,8 +145,8 @@
|
|
|
145
145
|
"@cloudflare/containers-shared": "0.2.13",
|
|
146
146
|
"@cloudflare/eslint-config-shared": "1.1.0",
|
|
147
147
|
"@cloudflare/pages-shared": "^0.13.81",
|
|
148
|
-
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
149
148
|
"@cloudflare/workers-shared": "0.18.8",
|
|
149
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
150
150
|
"@cloudflare/workflows-shared": "0.3.8"
|
|
151
151
|
},
|
|
152
152
|
"peerDependencies": {
|
package/wrangler-dist/cli.js
CHANGED
|
@@ -43982,7 +43982,7 @@ var name, version;
|
|
|
43982
43982
|
var init_package = __esm({
|
|
43983
43983
|
"package.json"() {
|
|
43984
43984
|
name = "wrangler";
|
|
43985
|
-
version = "4.45.
|
|
43985
|
+
version = "4.45.1";
|
|
43986
43986
|
}
|
|
43987
43987
|
});
|
|
43988
43988
|
|
|
@@ -44318,12 +44318,18 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
|
44318
44318
|
if (remote) {
|
|
44319
44319
|
mode = getMode({ isSimulatedLocally: false });
|
|
44320
44320
|
} else if (context2.local && context2.registry !== null) {
|
|
44321
|
-
const
|
|
44322
|
-
|
|
44323
|
-
|
|
44321
|
+
const isSelfBinding = service === context2.name;
|
|
44322
|
+
if (isSelfBinding) {
|
|
44323
|
+
hasConnectionStatus = true;
|
|
44324
44324
|
mode = getMode({ isSimulatedLocally: true, connected: true });
|
|
44325
44325
|
} else {
|
|
44326
|
-
|
|
44326
|
+
const registryDefinition = context2.registry?.[service];
|
|
44327
|
+
hasConnectionStatus = true;
|
|
44328
|
+
if (registryDefinition && (!entrypoint || registryDefinition.entrypointAddresses?.[entrypoint])) {
|
|
44329
|
+
mode = getMode({ isSimulatedLocally: true, connected: true });
|
|
44330
|
+
} else {
|
|
44331
|
+
mode = getMode({ isSimulatedLocally: true, connected: false });
|
|
44332
|
+
}
|
|
44327
44333
|
}
|
|
44328
44334
|
}
|
|
44329
44335
|
return {
|
|
@@ -206670,7 +206676,6 @@ var init_object = __esm({
|
|
|
206670
206676
|
},
|
|
206671
206677
|
expires: {
|
|
206672
206678
|
describe: "The date and time at which the object is no longer cacheable",
|
|
206673
|
-
alias: "e",
|
|
206674
206679
|
requiresArg: true,
|
|
206675
206680
|
type: "string"
|
|
206676
206681
|
},
|
|
@@ -235744,21 +235749,21 @@ If you are trying to develop Pages and Workers together, please use \`wrangler p
|
|
|
235744
235749
|
tailConsumers: config.tail_consumers ?? []
|
|
235745
235750
|
};
|
|
235746
235751
|
if (extractBindingsOfType("analytics_engine", resolved.bindings).length && !resolved.dev.remote && resolved.build.format === "service-worker") {
|
|
235747
|
-
logger.warn(
|
|
235752
|
+
logger.once.warn(
|
|
235748
235753
|
"Analytics Engine is not supported locally when using the service-worker format. Please migrate to the module worker format: https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/"
|
|
235749
235754
|
);
|
|
235750
235755
|
}
|
|
235751
235756
|
validateAssetsArgsAndConfig(resolved);
|
|
235752
235757
|
const services = extractBindingsOfType("service", resolved.bindings);
|
|
235753
235758
|
if (services && services.length > 0 && resolved.dev?.remote) {
|
|
235754
|
-
logger.warn(
|
|
235759
|
+
logger.once.warn(
|
|
235755
235760
|
`This worker is bound to live services: ${services.map(
|
|
235756
235761
|
(service) => `${service.name} (${service.service}${service.environment ? `@${service.environment}` : ""}${service.entrypoint ? `#${service.entrypoint}` : ""})`
|
|
235757
235762
|
).join(", ")}`
|
|
235758
235763
|
);
|
|
235759
235764
|
}
|
|
235760
235765
|
if (!resolved.dev?.origin?.secure && resolved.dev?.remote) {
|
|
235761
|
-
logger.warn(
|
|
235766
|
+
logger.once.warn(
|
|
235762
235767
|
"Setting upstream-protocol to http is not currently supported for remote mode.\nIf this is required in your project, please add your use case to the following issue:\nhttps://github.com/cloudflare/workers-sdk/issues/583."
|
|
235763
235768
|
);
|
|
235764
235769
|
}
|
|
@@ -235770,11 +235775,13 @@ If you are trying to develop Pages and Workers together, please use \`wrangler p
|
|
|
235770
235775
|
}
|
|
235771
235776
|
const queues = extractBindingsOfType("queue", resolved.bindings);
|
|
235772
235777
|
if (resolved.dev.remote && (queues?.length || resolved.triggers?.some((t8) => t8.type === "queue-consumer"))) {
|
|
235773
|
-
logger.warn(
|
|
235778
|
+
logger.once.warn(
|
|
235779
|
+
"Queues are not yet supported in wrangler dev remote mode."
|
|
235780
|
+
);
|
|
235774
235781
|
}
|
|
235775
235782
|
if (resolved.dev.remote) {
|
|
235776
235783
|
if (resolved.dev.enableContainers && resolved.containers && resolved.containers.length > 0) {
|
|
235777
|
-
logger.warn(
|
|
235784
|
+
logger.once.warn(
|
|
235778
235785
|
"Containers are only supported in local mode, to suppress this warning set `dev.enable_containers` to `false` or pass `--enable-containers=false` to the `wrangler dev` command"
|
|
235779
235786
|
);
|
|
235780
235787
|
}
|
|
@@ -235782,7 +235789,9 @@ If you are trying to develop Pages and Workers together, please use \`wrangler p
|
|
|
235782
235789
|
resolved.migrations
|
|
235783
235790
|
);
|
|
235784
235791
|
if (resolved.dev.remote && Array.from(classNamesWhichUseSQLite.values()).some((v8) => v8)) {
|
|
235785
|
-
logger.warn(
|
|
235792
|
+
logger.once.warn(
|
|
235793
|
+
"SQLite in Durable Objects is only supported in local mode."
|
|
235794
|
+
);
|
|
235786
235795
|
}
|
|
235787
235796
|
}
|
|
235788
235797
|
const typesChanged = await checkTypesDiff(config, entry);
|