wrangler 4.44.0 → 4.45.0

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.
@@ -248,6 +248,26 @@
248
248
  ],
249
249
  "description": "Specify the compliance region mode of the Worker.\n\nAlthough if the user does not specify a compliance region, the default is `public`, it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable."
250
250
  },
251
+ "python_modules": {
252
+ "type": "object",
253
+ "properties": {
254
+ "exclude": {
255
+ "type": "array",
256
+ "items": {
257
+ "type": "string"
258
+ },
259
+ "description": "A list of glob patterns to exclude files from the python_modules directory when bundling.\n\nPatterns are relative to the python_modules directory and use glob syntax.",
260
+ "default": [
261
+ "***.pyc"
262
+ ]
263
+ }
264
+ },
265
+ "required": [
266
+ "exclude"
267
+ ],
268
+ "additionalProperties": false,
269
+ "description": "Configuration for Python modules."
270
+ },
251
271
  "define": {
252
272
  "type": "object",
253
273
  "additionalProperties": {
@@ -1415,6 +1435,26 @@
1415
1435
  ],
1416
1436
  "description": "Specify the compliance region mode of the Worker.\n\nAlthough if the user does not specify a compliance region, the default is `public`, it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable."
1417
1437
  },
1438
+ "python_modules": {
1439
+ "type": "object",
1440
+ "properties": {
1441
+ "exclude": {
1442
+ "type": "array",
1443
+ "items": {
1444
+ "type": "string"
1445
+ },
1446
+ "description": "A list of glob patterns to exclude files from the python_modules directory when bundling.\n\nPatterns are relative to the python_modules directory and use glob syntax.",
1447
+ "default": [
1448
+ "***.pyc"
1449
+ ]
1450
+ }
1451
+ },
1452
+ "required": [
1453
+ "exclude"
1454
+ ],
1455
+ "additionalProperties": false,
1456
+ "description": "Configuration for Python modules."
1457
+ },
1418
1458
  "define": {
1419
1459
  "type": "object",
1420
1460
  "additionalProperties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.44.0",
3
+ "version": "4.45.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -56,8 +56,8 @@
56
56
  "unenv": "2.0.0-rc.21",
57
57
  "workerd": "1.20251011.0",
58
58
  "@cloudflare/kv-asset-handler": "0.4.0",
59
- "miniflare": "4.20251011.0",
60
- "@cloudflare/unenv-preset": "2.7.8"
59
+ "@cloudflare/unenv-preset": "2.7.8",
60
+ "miniflare": "4.20251011.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
@@ -141,13 +141,13 @@
141
141
  "xxhash-wasm": "^1.0.1",
142
142
  "yaml": "^2.8.1",
143
143
  "yargs": "^17.7.2",
144
- "@cloudflare/containers-shared": "0.2.13",
145
144
  "@cloudflare/cli": "1.1.3",
145
+ "@cloudflare/containers-shared": "0.2.13",
146
146
  "@cloudflare/eslint-config-shared": "1.1.0",
147
- "@cloudflare/pages-shared": "^0.13.80",
148
- "@cloudflare/workers-shared": "0.18.8",
147
+ "@cloudflare/pages-shared": "^0.13.81",
149
148
  "@cloudflare/workers-tsconfig": "0.0.0",
150
- "@cloudflare/workflows-shared": "0.3.7"
149
+ "@cloudflare/workers-shared": "0.18.8",
150
+ "@cloudflare/workflows-shared": "0.3.8"
151
151
  },
152
152
  "peerDependencies": {
153
153
  "@cloudflare/workers-types": "^4.20251011.0"
@@ -532,6 +532,21 @@ interface EnvironmentInheritable {
532
532
  * it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable.
533
533
  */
534
534
  compliance_region: "public" | "fedramp_high" | undefined;
535
+ /**
536
+ * Configuration for Python modules.
537
+ *
538
+ * @inheritable
539
+ */
540
+ python_modules: {
541
+ /**
542
+ * A list of glob patterns to exclude files from the python_modules directory when bundling.
543
+ *
544
+ * Patterns are relative to the python_modules directory and use glob syntax.
545
+ *
546
+ * @default ["**\*.pyc"]
547
+ */
548
+ exclude: string[];
549
+ };
535
550
  }
536
551
  type DurableObjectBindings = {
537
552
  /** The name of the binding used to refer to the Durable Object */
@@ -1768,7 +1783,6 @@ interface CommonYargsOptions {
1768
1783
  env: string | undefined;
1769
1784
  "env-file": string[] | undefined;
1770
1785
  "experimental-provision": boolean | undefined;
1771
- "experimental-remote-bindings": boolean | undefined;
1772
1786
  "experimental-auto-create": boolean;
1773
1787
  }
1774
1788
  type CommonYargsArgv = Argv<CommonYargsOptions>;
@@ -1888,8 +1902,6 @@ interface Unstable_DevOptions {
1888
1902
  watch?: boolean;
1889
1903
  devEnv?: boolean;
1890
1904
  fileBasedRegistry?: boolean;
1891
- vectorizeBindToProd?: boolean;
1892
- imagesLocalMode?: boolean;
1893
1905
  enableIpc?: boolean;
1894
1906
  enableContainers?: boolean;
1895
1907
  dockerPath?: string;
@@ -2190,6 +2202,11 @@ interface StartDevWorkerInput {
2190
2202
  compatibilityFlags?: string[];
2191
2203
  /** Specify the compliance region mode of the Worker. */
2192
2204
  complianceRegion?: Config["compliance_region"];
2205
+ /** Configuration for Python modules. */
2206
+ pythonModules?: {
2207
+ /** A list of glob patterns to exclude files from the python_modules directory when bundling. */
2208
+ exclude?: string[];
2209
+ };
2193
2210
  env?: string;
2194
2211
  /**
2195
2212
  * An array of paths to the .env files to load for this worker, relative to the project directory.
@@ -2252,7 +2269,11 @@ interface StartDevWorkerInput {
2252
2269
  port?: number;
2253
2270
  secure?: boolean;
2254
2271
  } | false;
2255
- /** Whether the worker runs on the edge or locally. Can also be set to "minimal" for minimal mode. */
2272
+ /** Whether the worker runs on the edge or locally. This has several options:
2273
+ * - true | "minimal": Run your Worker's code & bindings in a remote preview session, optionally using minimal mode as an internal detail
2274
+ * - false: Run your Worker's code & bindings in a local simulator
2275
+ * - undefined (default): Run your Worker's code locally, and any configured remote bindings remotely
2276
+ */
2256
2277
  remote?: boolean | "minimal";
2257
2278
  /** Cloudflare Account credentials. Can be provided upfront or as a function which will be called only when required. */
2258
2279
  auth?: AsyncHook<CfAccount, [Pick<Config, "account_id">]>;
@@ -2282,14 +2303,8 @@ interface StartDevWorkerInput {
2282
2303
  /** An undici MockAgent to declaratively mock fetch calls to particular resources. */
2283
2304
  mockFetch?: undici.MockAgent;
2284
2305
  testScheduled?: boolean;
2285
- /** Whether to use Vectorize as a remote binding -- the worker is run locally but accesses to Vectorize are made remotely */
2286
- bindVectorizeToProd?: boolean;
2287
- /** Whether to use Images local mode -- this is lower fidelity, but doesn't require network access */
2288
- imagesLocalMode?: boolean;
2289
2306
  /** Treat this as the primary worker in a multiworker setup (i.e. the first Worker in Miniflare's options) */
2290
2307
  multiworkerPrimary?: boolean;
2291
- /** Whether the experimental remote bindings feature should be enabled */
2292
- experimentalRemoteBindings?: boolean;
2293
2308
  containerBuildId?: string;
2294
2309
  /** Whether to build and connect to containers during local dev. Requires Docker daemon to be running. Defaults to true. */
2295
2310
  enableContainers?: boolean;
@@ -2302,7 +2317,7 @@ interface StartDevWorkerInput {
2302
2317
  };
2303
2318
  legacy?: {
2304
2319
  site?: Hook<Config["site"], [Config]>;
2305
- enableServiceEnvironments?: boolean;
2320
+ useServiceEnvironments?: boolean;
2306
2321
  };
2307
2322
  unsafe?: Omit<CfUnsafe, "bindings">;
2308
2323
  assets?: string;
@@ -2774,13 +2789,6 @@ type GetPlatformProxyOptions = {
2774
2789
  persist?: boolean | {
2775
2790
  path: string;
2776
2791
  };
2777
- /**
2778
- * Experimental flags (note: these can change at any time and are not version-controlled use at your own risk)
2779
- */
2780
- experimental?: {
2781
- /** whether access to remove bindings should be enabled */
2782
- remoteBindings?: boolean;
2783
- };
2784
2792
  };
2785
2793
  /**
2786
2794
  * Result of the `getPlatformProxy` utility
@@ -2826,9 +2834,7 @@ interface Unstable_MiniflareWorkerOptions {
2826
2834
  externalWorkers: WorkerOptions[];
2827
2835
  }
2828
2836
  declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string, options?: {
2829
- imagesLocalMode?: boolean;
2830
2837
  remoteProxyConnectionString?: RemoteProxyConnectionString;
2831
- remoteBindingsEnabled?: boolean;
2832
2838
  overrides?: {
2833
2839
  assets?: Partial<AssetsOptions>;
2834
2840
  enableContainers?: boolean;
@@ -2836,9 +2842,7 @@ declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: st
2836
2842
  containerBuildId?: string;
2837
2843
  }): Unstable_MiniflareWorkerOptions;
2838
2844
  declare function unstable_getMiniflareWorkerOptions(config: Config, env?: string, options?: {
2839
- imagesLocalMode?: boolean;
2840
2845
  remoteProxyConnectionString?: RemoteProxyConnectionString;
2841
- remoteBindingsEnabled?: boolean;
2842
2846
  overrides?: {
2843
2847
  assets?: Partial<AssetsOptions>;
2844
2848
  enableContainers?: boolean;
@@ -2990,7 +2994,6 @@ declare function fetchResult<ResponseType>(complianceConfig: ComplianceConfig, r
2990
2994
  type ExperimentalFlags = {
2991
2995
  MULTIWORKER: boolean;
2992
2996
  RESOURCES_PROVISION: boolean;
2993
- REMOTE_BINDINGS: boolean;
2994
2997
  DEPLOY_REMOTE_DIFF_CHECK: boolean;
2995
2998
  AUTOCREATE_RESOURCES: boolean;
2996
2999
  };
@@ -3236,16 +3239,10 @@ declare function createCLIParser(argv: string[]): {
3236
3239
  readonly array: true;
3237
3240
  readonly requiresArg: true;
3238
3241
  };
3239
- readonly "experimental-remote-bindings": {
3240
- readonly describe: "Experimental: Enable Remote Bindings";
3241
- readonly type: "boolean";
3242
- readonly hidden: true;
3243
- readonly default: true;
3244
- readonly alias: readonly ["x-remote-bindings"];
3245
- };
3246
3242
  readonly "experimental-provision": {
3247
3243
  readonly describe: "Experimental: Enable automatic resource provisioning";
3248
3244
  readonly type: "boolean";
3245
+ readonly default: true;
3249
3246
  readonly hidden: true;
3250
3247
  readonly alias: readonly ["x-provision"];
3251
3248
  };