wrangler 3.73.0 → 3.75.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.
package/README.md CHANGED
@@ -8,6 +8,10 @@
8
8
 
9
9
  `wrangler` is a command line tool for building [Cloudflare Workers](https://workers.cloudflare.com/).
10
10
 
11
+ > [!WARNING]
12
+ >
13
+ > Wrangler v2 is **only receiving critical security updates.** We recommend you [migrate to Wrangler v3](https://developers.cloudflare.com/workers/wrangler/migration/update-v2-to-v3/) if you can.
14
+
11
15
  ## Quick Start
12
16
 
13
17
  ```bash
@@ -489,6 +489,13 @@
489
489
  },
490
490
  "type": "array"
491
491
  },
492
+ "new_sqlite_classes": {
493
+ "description": "The new SQLite Durable Objects being defined.",
494
+ "items": {
495
+ "type": "string"
496
+ },
497
+ "type": "array"
498
+ },
492
499
  "renamed_classes": {
493
500
  "description": "The Durable Objects being renamed.",
494
501
  "items": {
@@ -939,7 +946,7 @@
939
946
  },
940
947
  "workers_dev": {
941
948
  "default": "`true` (This is a breaking change from Wrangler v1)",
942
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined",
949
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
943
950
  "type": "boolean"
944
951
  },
945
952
  "zone_id": {
@@ -1520,6 +1527,13 @@
1520
1527
  },
1521
1528
  "type": "array"
1522
1529
  },
1530
+ "new_sqlite_classes": {
1531
+ "description": "The new SQLite Durable Objects being defined.",
1532
+ "items": {
1533
+ "type": "string"
1534
+ },
1535
+ "type": "array"
1536
+ },
1523
1537
  "renamed_classes": {
1524
1538
  "description": "The Durable Objects being renamed.",
1525
1539
  "items": {
@@ -2046,7 +2060,7 @@
2046
2060
  },
2047
2061
  "workers_dev": {
2048
2062
  "default": "`true` (This is a breaking change from Wrangler v1)",
2049
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined",
2063
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
2050
2064
  "type": "boolean"
2051
2065
  },
2052
2066
  "zone_id": {
@@ -2485,6 +2499,13 @@
2485
2499
  },
2486
2500
  "type": "array"
2487
2501
  },
2502
+ "new_sqlite_classes": {
2503
+ "description": "The new SQLite Durable Objects being defined.",
2504
+ "items": {
2505
+ "type": "string"
2506
+ },
2507
+ "type": "array"
2508
+ },
2488
2509
  "renamed_classes": {
2489
2510
  "description": "The Durable Objects being renamed.",
2490
2511
  "items": {
@@ -2935,7 +2956,7 @@
2935
2956
  },
2936
2957
  "workers_dev": {
2937
2958
  "default": "`true` (This is a breaking change from Wrangler v1)",
2938
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined",
2959
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
2939
2960
  "type": "boolean"
2940
2961
  },
2941
2962
  "zone_id": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "3.73.0",
3
+ "version": "3.75.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -66,8 +66,8 @@
66
66
  "workerd": "1.20240821.1",
67
67
  "xxhash-wasm": "^1.0.1",
68
68
  "@cloudflare/kv-asset-handler": "0.3.4",
69
- "miniflare": "3.20240821.0",
70
- "@cloudflare/workers-shared": "0.4.1"
69
+ "@cloudflare/workers-shared": "0.4.1",
70
+ "miniflare": "3.20240821.1"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@cloudflare/types": "^6.18.4",
@@ -154,7 +154,7 @@
154
154
  "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
155
155
  "@cloudflare/cli": "1.1.1",
156
156
  "@cloudflare/eslint-config-worker": "1.1.0",
157
- "@cloudflare/pages-shared": "^0.11.53",
157
+ "@cloudflare/pages-shared": "^0.11.54",
158
158
  "@cloudflare/workers-tsconfig": "0.0.0"
159
159
  },
160
160
  "peerDependencies": {
@@ -975,6 +975,7 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
975
975
  modified_on: string;
976
976
  short_id: string;
977
977
  build_image_major_version: number;
978
+ kv_namespaces?: any;
978
979
  source?: {
979
980
  type: "github" | "gitlab";
980
981
  config: {
@@ -989,7 +990,6 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
989
990
  preview_branch_excludes?: string[] | undefined;
990
991
  };
991
992
  } | undefined;
992
- kv_namespaces?: any;
993
993
  env_vars?: any;
994
994
  durable_object_namespaces?: any;
995
995
  is_skipped?: boolean | undefined;
@@ -1409,8 +1409,6 @@ declare type Entry = {
1409
1409
  format: CfScriptFormat;
1410
1410
  /** The directory that contains all of a `--no-bundle` worker's modules. Usually `${directory}/src`. Defaults to path.dirname(file) */
1411
1411
  moduleRoot: string;
1412
- /** Whether this is a no-op worker that will not ultimately be uploaded e.g. for assets*/
1413
- staticAssetsOnly?: boolean;
1414
1412
  /**
1415
1413
  * A worker's name
1416
1414
  */
@@ -1501,6 +1499,7 @@ declare interface EnvironmentInheritable {
1501
1499
  * test and deploy your Worker.
1502
1500
  *
1503
1501
  * // Carmen according to our tests the default is undefined
1502
+ * // warning: you must force "workers_dev: true" in tests to match expected behavior
1504
1503
  * @default `true` (This is a breaking change from Wrangler v1)
1505
1504
  * @breaking
1506
1505
  * @inheritable
@@ -1560,6 +1559,8 @@ declare interface EnvironmentInheritable {
1560
1559
  tag: string;
1561
1560
  /** The new Durable Objects being defined. */
1562
1561
  new_classes?: string[];
1562
+ /** The new SQLite Durable Objects being defined. */
1563
+ new_sqlite_classes?: string[];
1563
1564
  /** The Durable Objects being renamed. */
1564
1565
  renamed_classes?: {
1565
1566
  from: string;
@@ -2278,6 +2279,10 @@ declare type ExperimentalAssets = {
2278
2279
  binding?: string;
2279
2280
  };
2280
2281
 
2282
+ declare interface ExperimentalAssetsOptions extends ExperimentalAssets {
2283
+ routingConfig: RoutingConfig;
2284
+ }
2285
+
2281
2286
  declare function fetch (
2282
2287
  input: RequestInfo,
2283
2288
  init?: RequestInit
@@ -25756,6 +25761,10 @@ declare namespace RetryHandler {
25756
25761
 
25757
25762
  declare type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRoute;
25758
25763
 
25764
+ declare type RoutingConfig = {
25765
+ hasUserWorker: boolean;
25766
+ };
25767
+
25759
25768
  /**
25760
25769
  * A bundling resolver rule, defining the modules type for paths that match the specified globs.
25761
25770
  */
@@ -25932,7 +25941,7 @@ declare interface StartDevWorkerInput {
25932
25941
  };
25933
25942
  unsafe?: Omit<CfUnsafe, "bindings">;
25934
25943
  experimental?: {
25935
- assets?: Omit<ExperimentalAssets, "bindings">;
25944
+ assets?: Omit<ExperimentalAssetsOptions, "bindings">;
25936
25945
  };
25937
25946
  }
25938
25947