wrangler 3.114.13 → 3.114.14

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.
@@ -981,12 +981,8 @@
981
981
  "description": "Optionally, the entrypoint (named export) of the service to bind to.",
982
982
  "type": "string"
983
983
  },
984
- "environment": {
985
- "description": "The environment of the service (e.g. production, staging, etc).",
986
- "type": "string"
987
- },
988
984
  "service": {
989
- "description": "The name of the service.",
985
+ "description": "The name of the service. To bind to a worker in a specific environment, you should use the format `<worker_name>-<environment_name>`.",
990
986
  "type": "string"
991
987
  }
992
988
  },
@@ -2029,12 +2025,8 @@
2029
2025
  "description": "Optionally, the entrypoint (named export) of the service to bind to.",
2030
2026
  "type": "string"
2031
2027
  },
2032
- "environment": {
2033
- "description": "The environment of the service (e.g. production, staging, etc).",
2034
- "type": "string"
2035
- },
2036
2028
  "service": {
2037
- "description": "The name of the service.",
2029
+ "description": "The name of the service. To bind to a worker in a specific environment, you should use the format `<worker_name>-<environment_name>`.",
2038
2030
  "type": "string"
2039
2031
  }
2040
2032
  },
@@ -3013,12 +3005,8 @@
3013
3005
  "description": "Optionally, the entrypoint (named export) of the service to bind to.",
3014
3006
  "type": "string"
3015
3007
  },
3016
- "environment": {
3017
- "description": "The environment of the service (e.g. production, staging, etc).",
3018
- "type": "string"
3019
- },
3020
3008
  "service": {
3021
- "description": "The name of the service.",
3009
+ "description": "The name of the service. To bind to a worker in a specific environment, you should use the format `<worker_name>-<environment_name>`.",
3022
3010
  "type": "string"
3023
3011
  }
3024
3012
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "3.114.13",
3
+ "version": "3.114.14",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -137,11 +137,11 @@
137
137
  "xdg-app-paths": "^8.3.0",
138
138
  "xxhash-wasm": "^1.0.1",
139
139
  "yargs": "^17.7.2",
140
- "@cloudflare/cli": "1.1.1",
140
+ "@cloudflare/eslint-config-worker": "1.1.0",
141
141
  "@cloudflare/pages-shared": "0.13.20",
142
142
  "@cloudflare/workers-shared": "0.15.1",
143
- "@cloudflare/workers-tsconfig": "0.0.0",
144
- "@cloudflare/eslint-config-worker": "1.1.0"
143
+ "@cloudflare/cli": "1.1.1",
144
+ "@cloudflare/workers-tsconfig": "0.0.0"
145
145
  },
146
146
  "peerDependencies": {
147
147
  "@cloudflare/workers-types": "^4.20250408.0"
@@ -2255,9 +2255,18 @@ declare interface EnvironmentNonInheritable {
2255
2255
  services: {
2256
2256
  /** The binding name used to refer to the bound service. */
2257
2257
  binding: string;
2258
- /** The name of the service. */
2258
+ /**
2259
+ * The name of the service.
2260
+ * To bind to a worker in a specific environment,
2261
+ * you should use the format `<worker_name>-<environment_name>`.
2262
+ */
2259
2263
  service: string;
2260
- /** The environment of the service (e.g. production, staging, etc). */
2264
+ /**
2265
+ * @hidden
2266
+ * @deprecated you should use `service: <worker_name>-<environment_name>` instead.
2267
+ * This refers to the deprecated concept of 'service environments'.
2268
+ * The environment of the service (e.g. production, staging, etc).
2269
+ */
2261
2270
  environment?: string;
2262
2271
  /** Optionally, the entrypoint (named export) of the service to bind to. */
2263
2272
  entrypoint?: string;
@@ -81450,7 +81450,7 @@ var import_undici3 = __toESM(require_undici());
81450
81450
 
81451
81451
  // package.json
81452
81452
  var name = "wrangler";
81453
- var version = "3.114.13";
81453
+ var version = "3.114.14";
81454
81454
 
81455
81455
  // src/environment-variables/misc-variables.ts
81456
81456
  init_import_meta_url();
@@ -84719,19 +84719,6 @@ async function getQueueById(accountId, queueId) {
84719
84719
  return fetchResult(queuesUrl(accountId, queueId), {});
84720
84720
  }
84721
84721
  __name(getQueueById, "getQueueById");
84722
- async function putQueue(config, queueName, body) {
84723
- const queue = await getQueue(config, queueName);
84724
- return putQueueById(config, queue.queue_id, body);
84725
- }
84726
- __name(putQueue, "putQueue");
84727
- async function putQueueById(config, queueId, body) {
84728
- const accountId = await requireAuth(config);
84729
- return fetchResult(queuesUrl(accountId, queueId), {
84730
- method: "PUT",
84731
- body: JSON.stringify(body)
84732
- });
84733
- }
84734
- __name(putQueueById, "putQueueById");
84735
84722
  async function postConsumer(config, queueName, body) {
84736
84723
  const queue = await getQueue(config, queueName);
84737
84724
  return postConsumerById(config, queue.queue_id, body);
@@ -104651,12 +104638,14 @@ function handleUnsafeCapnp(capnp) {
104651
104638
  );
104652
104639
  }
104653
104640
  const srcPrefix = (0, import_node_path27.resolve)(base_path ?? ".");
104654
- const capnpProcess = (0, import_node_child_process2.spawnSync)("capnp", [
104655
- "compile",
104656
- "-o-",
104657
- `--src-prefix=${srcPrefix}`,
104658
- ...capnpSchemas
104659
- ]);
104641
+ const capnpProcess = (0, import_node_child_process2.spawnSync)(
104642
+ "capnp",
104643
+ ["compile", "-o-", `--src-prefix=${srcPrefix}`, ...capnpSchemas],
104644
+ // This number was chosen arbitrarily. If you get ENOBUFS because your compiled schema is still
104645
+ // too large, then we may need to bump this again or figure out another approach.
104646
+ // https://github.com/cloudflare/workers-sdk/pull/10217
104647
+ { maxBuffer: 3 * 1024 * 1024 }
104648
+ );
104660
104649
  if (capnpProcess.error) {
104661
104650
  throw capnpProcess.error;
104662
104651
  }
@@ -106162,8 +106151,11 @@ ${dashLink}`);
106162
106151
  );
106163
106152
  }
106164
106153
  if (config.queues.producers && config.queues.producers.length) {
106165
- const updateProducers = await updateQueueProducers(config);
106166
- deployments.push(...updateProducers);
106154
+ deployments.push(
106155
+ ...config.queues.producers.map(
106156
+ (producer) => Promise.resolve([`Producer for ${producer.queue}`])
106157
+ )
106158
+ );
106167
106159
  }
106168
106160
  if (config.queues.consumers && config.queues.consumers.length) {
106169
106161
  const updateConsumers = await updateQueueConsumers(scriptName, config);
@@ -154835,25 +154827,6 @@ function isAuthenticationError(e7) {
154835
154827
  return e7 instanceof ParseError && e7.code === 1e4;
154836
154828
  }
154837
154829
  __name(isAuthenticationError, "isAuthenticationError");
154838
- async function updateQueueProducers(config) {
154839
- const producers = config.queues.producers || [];
154840
- const updateProducers = [];
154841
- for (const producer of producers) {
154842
- const body = {
154843
- queue_name: producer.queue,
154844
- settings: {
154845
- delivery_delay: producer.delivery_delay
154846
- }
154847
- };
154848
- updateProducers.push(
154849
- putQueue(config, producer.queue, body).then(() => [
154850
- `Producer for ${producer.queue}`
154851
- ])
154852
- );
154853
- }
154854
- return updateProducers;
154855
- }
154856
- __name(updateQueueProducers, "updateQueueProducers");
154857
154830
  async function updateQueueConsumers(scriptName, config) {
154858
154831
  const consumers2 = config.queues.consumers || [];
154859
154832
  const updateConsumers = [];