wrangler 4.57.0 → 4.59.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.57.0",
3
+ "version": "4.59.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -54,15 +54,15 @@
54
54
  "esbuild": "0.27.0",
55
55
  "path-to-regexp": "6.3.0",
56
56
  "unenv": "2.0.0-rc.24",
57
- "workerd": "1.20260103.0",
57
+ "workerd": "1.20260111.0",
58
58
  "@cloudflare/kv-asset-handler": "0.4.1",
59
- "@cloudflare/unenv-preset": "2.8.0",
60
- "miniflare": "4.20260103.0"
59
+ "miniflare": "4.20260111.0",
60
+ "@cloudflare/unenv-preset": "2.9.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.20260103.0",
65
+ "@cloudflare/workers-types": "^4.20260111.0",
66
66
  "@cspotcode/source-map-support": "0.8.1",
67
67
  "@netlify/build-info": "^10.2.0",
68
68
  "@sentry/node": "^7.86.0",
@@ -88,6 +88,7 @@
88
88
  "@types/yargs": "^17.0.22",
89
89
  "@vitest/ui": "~3.2.0",
90
90
  "@webcontainer/env": "^1.1.0",
91
+ "am-i-vibing": "^0.1.0",
91
92
  "capnweb": "^0.1.0",
92
93
  "chalk": "^5.2.0",
93
94
  "chokidar": "^4.0.1",
@@ -148,16 +149,16 @@
148
149
  "yaml": "^2.8.1",
149
150
  "yargs": "^17.7.2",
150
151
  "@cloudflare/cli": "1.2.0",
151
- "@cloudflare/containers-shared": "0.7.0",
152
+ "@cloudflare/containers-shared": "0.8.0",
152
153
  "@cloudflare/eslint-config-shared": "1.1.0",
153
154
  "@cloudflare/workers-shared": "0.18.9",
154
- "@cloudflare/pages-shared": "^0.13.96",
155
- "@cloudflare/workers-utils": "0.6.0",
156
155
  "@cloudflare/workers-tsconfig": "0.0.0",
157
- "@cloudflare/workflows-shared": "0.4.0"
156
+ "@cloudflare/workflows-shared": "0.4.0",
157
+ "@cloudflare/workers-utils": "0.7.0",
158
+ "@cloudflare/pages-shared": "^0.13.98"
158
159
  },
159
160
  "peerDependencies": {
160
- "@cloudflare/workers-types": "^4.20260103.0"
161
+ "@cloudflare/workers-types": "^4.20260111.0"
161
162
  },
162
163
  "peerDependenciesMeta": {
163
164
  "@cloudflare/workers-types": {
@@ -185,8 +186,8 @@
185
186
  "dev": "pnpm run clean && concurrently -c black,blue --kill-others-on-fail false \"pnpm tsup --watch src --watch ../containers-shared/src --watch ../cli\" \"pnpm run check:type --watch --preserveWatchOutput\"",
186
187
  "generate-json-schema": "node -r esbuild-register scripts/generate-json-schema.ts",
187
188
  "start": "pnpm run build && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
188
- "test": "dotenv -- pnpm run assert-git-version && dotenv -- vitest",
189
- "test:ci": "pnpm run test run",
189
+ "test": "dotenv -- pnpm run assert-git-version && cross-env NODE_OPTIONS=\"$(node scripts/node-options-for-tests.js)\" dotenv -- vitest",
190
+ "test:ci": "cross-env NODE_OPTIONS=\"$(node scripts/node-options-for-tests.js)\" pnpm run test run",
190
191
  "test:debug": "pnpm run test --silent=false --verbose=true",
191
192
  "test:e2e": "dotenv -- vitest run -c ./e2e/vitest.config.mts",
192
193
  "test:watch": "pnpm run test --testTimeout=50000 --watch",
@@ -1091,7 +1091,11 @@ type ContainerApp = {
1091
1091
  constraints?: {
1092
1092
  regions?: string[];
1093
1093
  cities?: string[];
1094
+ /**
1095
+ * @deprecated Use `tiers` instead
1096
+ */
1094
1097
  tier?: number;
1098
+ tiers?: number[];
1095
1099
  };
1096
1100
  /**
1097
1101
  * Scheduling affinities
@@ -2836,6 +2840,7 @@ type StringKeyOf<T> = Extract<keyof T, string>;
2836
2840
  type DeepFlatten<T> = T extends object ? {
2837
2841
  [K in keyof T]: DeepFlatten<T[K]>;
2838
2842
  } : T;
2843
+ type MetadataCategory = "Account" | "Compute & AI" | "Storage & databases" | "Networking & security";
2839
2844
  type Command = `wrangler${string}`;
2840
2845
  type Metadata = {
2841
2846
  description: string;
@@ -2852,6 +2857,12 @@ type Metadata = {
2852
2857
  description: string;
2853
2858
  }[];
2854
2859
  hideGlobalFlags?: string[];
2860
+ /**
2861
+ * Optional category for grouping commands in the help output.
2862
+ * Commands with the same category will be grouped together under a shared heading.
2863
+ * Commands without a category will appear under the default "COMMANDS" group.
2864
+ */
2865
+ category?: MetadataCategory;
2855
2866
  };
2856
2867
  type ArgDefinition = Omit<PositionalOptions, "type"> & Pick<Options, "hidden" | "requiresArg" | "deprecated" | "type">;
2857
2868
  type NamedArgDefinitions = {
@@ -2987,6 +2998,11 @@ type CreateCommandResult<NamedArgDefs extends NamedArgDefinitions> = DeepFlatten
2987
2998
  args: HandlerArgs<NamedArgDefs>;
2988
2999
  }>;
2989
3000
 
3001
+ /**
3002
+ * Map of category names to the top-level command segments that belong to them.
3003
+ * Used for grouping commands in the help output.
3004
+ */
3005
+ type CategoryMap = Map<MetadataCategory, Array<string>>;
2990
3006
  /**
2991
3007
  * Class responsible for registering and managing commands within a command registry.
2992
3008
  */
@@ -3014,6 +3030,17 @@ declare class CommandRegistry {
3014
3030
  * See https://github.com/cloudflare/workers-sdk/pull/7357#discussion_r1862138470 for more details.
3015
3031
  */
3016
3032
  registerNamespace(namespace: string): void;
3033
+ /**
3034
+ * Returns the map of categories to command segments, ordered according to
3035
+ * the category order. Commands within each category are sorted alphabetically.
3036
+ * Used for grouping commands in the help output.
3037
+ */
3038
+ get orderedCategories(): CategoryMap;
3039
+ /**
3040
+ * Registers a category for a legacy command that doesn't use the CommandRegistry.
3041
+ * This is used for commands like `containers`, `pubsub`, etc, that use the old yargs pattern.
3042
+ */
3043
+ registerLegacyCommandCategory(command: string, category: MetadataCategory): void;
3017
3044
  }
3018
3045
  /**
3019
3046
  * Type for the function used to register commands.
@@ -3067,6 +3094,7 @@ declare function createCLIParser(argv: string[]): {
3067
3094
  readonly alias: "x-auto-create";
3068
3095
  };
3069
3096
  };
3097
+ showHelpWithCategories: () => Promise<void>;
3070
3098
  };
3071
3099
 
3072
3100
  /**