wrangler 4.23.0 → 4.24.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.23.0",
3
+ "version": "4.24.1",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -55,14 +55,14 @@
55
55
  "esbuild": "0.25.4",
56
56
  "path-to-regexp": "6.3.0",
57
57
  "unenv": "2.0.0-rc.17",
58
- "workerd": "1.20250617.0",
59
- "miniflare": "4.20250617.5",
60
- "@cloudflare/kv-asset-handler": "0.4.0"
58
+ "workerd": "1.20250709.0",
59
+ "@cloudflare/kv-asset-handler": "0.4.0",
60
+ "miniflare": "4.20250709.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-s3": "^3.721.0",
64
64
  "@cloudflare/types": "6.18.4",
65
- "@cloudflare/workers-types": "^4.20250617.0",
65
+ "@cloudflare/workers-types": "^4.20250709.0",
66
66
  "@cspotcode/source-map-support": "0.8.1",
67
67
  "@iarna/toml": "^3.0.0",
68
68
  "@sentry/node": "^7.86.0",
@@ -136,14 +136,14 @@
136
136
  "xxhash-wasm": "^1.0.1",
137
137
  "yargs": "^17.7.2",
138
138
  "@cloudflare/cli": "1.1.1",
139
- "@cloudflare/containers-shared": "0.2.2",
139
+ "@cloudflare/containers-shared": "0.2.4",
140
140
  "@cloudflare/eslint-config-worker": "1.1.0",
141
- "@cloudflare/pages-shared": "^0.13.52",
142
- "@cloudflare/workers-shared": "0.18.1",
141
+ "@cloudflare/pages-shared": "^0.13.54",
142
+ "@cloudflare/workers-shared": "0.18.2",
143
143
  "@cloudflare/workers-tsconfig": "0.0.0"
144
144
  },
145
145
  "peerDependencies": {
146
- "@cloudflare/workers-types": "^4.20250617.0"
146
+ "@cloudflare/workers-types": "^4.20250709.0"
147
147
  },
148
148
  "peerDependenciesMeta": {
149
149
  "@cloudflare/workers-types": {
@@ -168,7 +168,7 @@
168
168
  "check:lint": "eslint . --max-warnings=0",
169
169
  "check:type": "tsc -p ./tsconfig.json && tsc -p ./templates/tsconfig.json",
170
170
  "clean": "rimraf wrangler-dist miniflare-dist emitted-types",
171
- "dev": "pnpm run clean && concurrently -c black,blue --kill-others-on-fail false \"pnpm tsup --watch\" \"pnpm run check:type --watch --preserveWatchOutput\"",
171
+ "dev": "pnpm run clean && concurrently -c black,blue --kill-others-on-fail false \"pnpm tsup --watch src --watch ../containers-shared/src\" \"pnpm run check:type --watch --preserveWatchOutput\"",
172
172
  "generate-json-schema": "node -r esbuild-register scripts/generate-json-schema.ts",
173
173
  "start": "pnpm run bundle && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
174
174
  "test": "dotenv -- pnpm run assert-git-version && dotenv -- vitest",
@@ -1889,7 +1889,7 @@ interface StartDevWorkerInput {
1889
1889
  * This is the `main` property of a Wrangler configuration file.
1890
1890
  */
1891
1891
  entrypoint?: string;
1892
- /** The configuration of the worker. */
1892
+ /** The configuration path of the worker. */
1893
1893
  config?: string;
1894
1894
  /** The compatibility date for the workerd runtime. */
1895
1895
  compatibilityDate?: string;
@@ -2532,8 +2532,8 @@ declare class Logger {
2532
2532
  constructor();
2533
2533
  private overrideLoggerLevel?;
2534
2534
  private onceHistory;
2535
- get loggerLevel(): "log" | "error" | "none" | "debug" | "info" | "warn";
2536
- set loggerLevel(val: "log" | "error" | "none" | "debug" | "info" | "warn");
2535
+ get loggerLevel(): "error" | "none" | "log" | "debug" | "info" | "warn";
2536
+ set loggerLevel(val: "error" | "none" | "log" | "debug" | "info" | "warn");
2537
2537
  resetLoggerLevel(): void;
2538
2538
  columns: number;
2539
2539
  debug: (...args: unknown[]) => void;
@@ -2563,7 +2563,16 @@ declare class Logger {
2563
2563
  */
2564
2564
  declare function splitSqlQuery(sql: string): string[];
2565
2565
 
2566
- declare const experimental_patchConfig: (configPath: string, patch: RawConfig, isArrayInsertion?: boolean) => string;
2566
+ declare const experimental_patchConfig: (configPath: string,
2567
+ /**
2568
+ * if you want to add something new, e.g. a binding, you can just provide that {kv_namespace:[{binding:"KV"}]}
2569
+ * and set isArrayInsertion = true
2570
+ *
2571
+ * if you want to edit or delete existing array elements, you have to provide the whole array
2572
+ * e.g. {kv_namespace:[{binding:"KV", id:"new-id"}, {binding:"KV2", id:"untouched"}]}
2573
+ * and set isArrayInsertion = false
2574
+ */
2575
+ patch: RawConfig, isArrayInsertion?: boolean) => string;
2567
2576
 
2568
2577
  interface Unstable_ASSETSBindingsOptions {
2569
2578
  log: Logger;