wrangler 4.55.0 → 4.57.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/config-schema.json +30 -2
- package/package.json +12 -12
- package/wrangler-dist/cli.d.ts +31 -15
- package/wrangler-dist/cli.js +6166 -4584
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -108,7 +108,9 @@
|
|
|
108
108
|
},
|
|
109
109
|
"additionalProperties": false,
|
|
110
110
|
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers",
|
|
111
|
-
"default":
|
|
111
|
+
"default": {
|
|
112
|
+
"crons": []
|
|
113
|
+
}
|
|
112
114
|
},
|
|
113
115
|
"limits": {
|
|
114
116
|
"$ref": "#/definitions/UserLimits",
|
|
@@ -1355,7 +1357,9 @@
|
|
|
1355
1357
|
},
|
|
1356
1358
|
"additionalProperties": false,
|
|
1357
1359
|
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers",
|
|
1358
|
-
"default":
|
|
1360
|
+
"default": {
|
|
1361
|
+
"crons": []
|
|
1362
|
+
}
|
|
1359
1363
|
},
|
|
1360
1364
|
"limits": {
|
|
1361
1365
|
"$ref": "#/definitions/UserLimits",
|
|
@@ -2971,6 +2975,25 @@
|
|
|
2971
2975
|
},
|
|
2972
2976
|
"description": "SSH public keys to put in the container's authorized_keys file."
|
|
2973
2977
|
},
|
|
2978
|
+
"trusted_user_ca_keys": {
|
|
2979
|
+
"type": "array",
|
|
2980
|
+
"items": {
|
|
2981
|
+
"type": "object",
|
|
2982
|
+
"properties": {
|
|
2983
|
+
"name": {
|
|
2984
|
+
"type": "string"
|
|
2985
|
+
},
|
|
2986
|
+
"public_key": {
|
|
2987
|
+
"type": "string"
|
|
2988
|
+
}
|
|
2989
|
+
},
|
|
2990
|
+
"required": [
|
|
2991
|
+
"public_key"
|
|
2992
|
+
],
|
|
2993
|
+
"additionalProperties": false
|
|
2994
|
+
},
|
|
2995
|
+
"description": "Trusted user CA keys to put in the container's trusted_user_ca_keys file."
|
|
2996
|
+
},
|
|
2974
2997
|
"rollout_step_percentage": {
|
|
2975
2998
|
"anyOf": [
|
|
2976
2999
|
{
|
|
@@ -3104,6 +3127,11 @@
|
|
|
3104
3127
|
"container_engine": {
|
|
3105
3128
|
"$ref": "#/definitions/ContainerEngine",
|
|
3106
3129
|
"description": "Either the Docker unix socket i.e. `unix:///var/run/docker.sock` or a full configuration. Note that windows is only supported via WSL at the moment"
|
|
3130
|
+
},
|
|
3131
|
+
"generate_types": {
|
|
3132
|
+
"type": "boolean",
|
|
3133
|
+
"description": "Re-generate your worker types when your Wrangler configuration file changes.",
|
|
3134
|
+
"default": false
|
|
3107
3135
|
}
|
|
3108
3136
|
},
|
|
3109
3137
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.57.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -54,17 +54,17 @@
|
|
|
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.
|
|
57
|
+
"workerd": "1.20260103.0",
|
|
58
58
|
"@cloudflare/kv-asset-handler": "0.4.1",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
59
|
+
"@cloudflare/unenv-preset": "2.8.0",
|
|
60
|
+
"miniflare": "4.20260103.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.
|
|
65
|
+
"@cloudflare/workers-types": "^4.20260103.0",
|
|
66
66
|
"@cspotcode/source-map-support": "0.8.1",
|
|
67
|
-
"@netlify/build-info": "^10.0
|
|
67
|
+
"@netlify/build-info": "^10.2.0",
|
|
68
68
|
"@sentry/node": "^7.86.0",
|
|
69
69
|
"@sentry/types": "^7.86.0",
|
|
70
70
|
"@sentry/utils": "^7.86.0",
|
|
@@ -148,16 +148,16 @@
|
|
|
148
148
|
"yaml": "^2.8.1",
|
|
149
149
|
"yargs": "^17.7.2",
|
|
150
150
|
"@cloudflare/cli": "1.2.0",
|
|
151
|
-
"@cloudflare/containers-shared": "0.
|
|
152
|
-
"@cloudflare/
|
|
151
|
+
"@cloudflare/containers-shared": "0.7.0",
|
|
152
|
+
"@cloudflare/eslint-config-shared": "1.1.0",
|
|
153
153
|
"@cloudflare/workers-shared": "0.18.9",
|
|
154
|
+
"@cloudflare/pages-shared": "^0.13.96",
|
|
155
|
+
"@cloudflare/workers-utils": "0.6.0",
|
|
154
156
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
155
|
-
"@cloudflare/
|
|
156
|
-
"@cloudflare/eslint-config-shared": "1.1.0",
|
|
157
|
-
"@cloudflare/workflows-shared": "0.3.9"
|
|
157
|
+
"@cloudflare/workflows-shared": "0.4.0"
|
|
158
158
|
},
|
|
159
159
|
"peerDependencies": {
|
|
160
|
-
"@cloudflare/workers-types": "^4.
|
|
160
|
+
"@cloudflare/workers-types": "^4.20260103.0"
|
|
161
161
|
},
|
|
162
162
|
"peerDependenciesMeta": {
|
|
163
163
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -477,6 +477,8 @@ interface StartDevWorkerInput {
|
|
|
477
477
|
dockerPath?: string;
|
|
478
478
|
/** Options for the container engine */
|
|
479
479
|
containerEngine?: ContainerEngine$1;
|
|
480
|
+
/** Re-generate your worker types when your Wrangler configuration file changes */
|
|
481
|
+
generateTypes?: boolean;
|
|
480
482
|
};
|
|
481
483
|
legacy?: {
|
|
482
484
|
site?: Hook<Config$1["site"], [Config$1]>;
|
|
@@ -1052,6 +1054,13 @@ type ContainerApp = {
|
|
|
1052
1054
|
name: string;
|
|
1053
1055
|
public_key: string;
|
|
1054
1056
|
}[];
|
|
1057
|
+
/**
|
|
1058
|
+
* Trusted user CA keys to put in the container's trusted_user_ca_keys file.
|
|
1059
|
+
*/
|
|
1060
|
+
trusted_user_ca_keys?: {
|
|
1061
|
+
name?: string;
|
|
1062
|
+
public_key: string;
|
|
1063
|
+
}[];
|
|
1055
1064
|
/**
|
|
1056
1065
|
* @deprecated Use top level `containers` fields instead.
|
|
1057
1066
|
* `configuration.image` should be `image`
|
|
@@ -1306,7 +1315,7 @@ interface EnvironmentInheritable {
|
|
|
1306
1315
|
*
|
|
1307
1316
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
|
|
1308
1317
|
*
|
|
1309
|
-
* @default {crons:
|
|
1318
|
+
* @default {crons:[]}
|
|
1310
1319
|
* @inheritable
|
|
1311
1320
|
*/
|
|
1312
1321
|
triggers: {
|
|
@@ -2388,6 +2397,12 @@ interface DevConfig {
|
|
|
2388
2397
|
* Note that windows is only supported via WSL at the moment
|
|
2389
2398
|
*/
|
|
2390
2399
|
container_engine: ContainerEngine | undefined;
|
|
2400
|
+
/**
|
|
2401
|
+
* Re-generate your worker types when your Wrangler configuration file changes.
|
|
2402
|
+
*
|
|
2403
|
+
* @default false
|
|
2404
|
+
*/
|
|
2405
|
+
generate_types: boolean;
|
|
2391
2406
|
}
|
|
2392
2407
|
type RawDevConfig = Partial<DevConfig>;
|
|
2393
2408
|
interface EnvironmentMap {
|
|
@@ -2438,17 +2453,6 @@ interface EnvironmentMap {
|
|
|
2438
2453
|
*/
|
|
2439
2454
|
declare function getVarsForDev(configPath: string | undefined, envFiles: string[] | undefined, vars: Config$1["vars"], env: string | undefined, silent?: boolean): Config$1["vars"];
|
|
2440
2455
|
|
|
2441
|
-
/**
|
|
2442
|
-
* Returns the compatibility date to use in development.
|
|
2443
|
-
*
|
|
2444
|
-
* When no compatibility date is configured, uses the installed Workers runtime's latest supported date.
|
|
2445
|
-
*
|
|
2446
|
-
* @param config wrangler configuration
|
|
2447
|
-
* @param compatibilityDate configured compatibility date
|
|
2448
|
-
* @returns the compatibility date to use in development
|
|
2449
|
-
*/
|
|
2450
|
-
declare function getDevCompatibilityDate(config: Config$1 | undefined, compatibilityDate?: string | undefined): string;
|
|
2451
|
-
|
|
2452
2456
|
type ConfigurationOptions = {
|
|
2453
2457
|
outputDir: string;
|
|
2454
2458
|
projectPath: string;
|
|
@@ -2471,6 +2475,7 @@ declare abstract class Framework {
|
|
|
2471
2475
|
isConfigured(_projectPath: string): boolean;
|
|
2472
2476
|
abstract configure(options: ConfigurationOptions): Promise<ConfigurationResults> | ConfigurationResults;
|
|
2473
2477
|
configurationDescription?: string;
|
|
2478
|
+
autoConfigSupported: boolean;
|
|
2474
2479
|
}
|
|
2475
2480
|
|
|
2476
2481
|
type AutoConfigDetails = {
|
|
@@ -2504,6 +2509,10 @@ type AutoConfigOptions = {
|
|
|
2504
2509
|
* Note: When `dryRun` is `true` the the confirmation prompts are always skipped.
|
|
2505
2510
|
*/
|
|
2506
2511
|
skipConfirmations?: boolean;
|
|
2512
|
+
/**
|
|
2513
|
+
* Whether to install Wrangler during autoconfig
|
|
2514
|
+
*/
|
|
2515
|
+
enableWranglerInstallation?: boolean;
|
|
2507
2516
|
};
|
|
2508
2517
|
type AutoConfigSummary = {
|
|
2509
2518
|
scripts: Record<string, string>;
|
|
@@ -2532,6 +2541,13 @@ declare function getDetailsForAutoConfig({ projectPath, wranglerConfig, }?: {
|
|
|
2532
2541
|
wranglerConfig?: Config$1;
|
|
2533
2542
|
}): Promise<AutoConfigDetails>;
|
|
2534
2543
|
|
|
2544
|
+
/**
|
|
2545
|
+
* @deprecated use `getLocalWorkerdCompatibilityDate` from "@cloudflare/workers-utils" instead.
|
|
2546
|
+
*
|
|
2547
|
+
* We're keeping this function only not to break the vite plugin that relies on it, we should remove it as soon as possible.
|
|
2548
|
+
*/
|
|
2549
|
+
declare function unstable_getDevCompatibilityDate(): `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
|
|
2550
|
+
|
|
2535
2551
|
/**
|
|
2536
2552
|
* Options for the `getPlatformProxy` utility
|
|
2537
2553
|
*/
|
|
@@ -2702,8 +2718,8 @@ declare class Logger {
|
|
|
2702
2718
|
constructor();
|
|
2703
2719
|
private overrideLoggerLevel?;
|
|
2704
2720
|
private onceHistory;
|
|
2705
|
-
get loggerLevel(): "debug" | "
|
|
2706
|
-
set loggerLevel(val: "debug" | "
|
|
2721
|
+
get loggerLevel(): "debug" | "none" | "error" | "info" | "log" | "warn";
|
|
2722
|
+
set loggerLevel(val: "debug" | "none" | "error" | "info" | "log" | "warn");
|
|
2707
2723
|
resetLoggerLevel(): void;
|
|
2708
2724
|
columns: number;
|
|
2709
2725
|
json: (data: unknown) => void;
|
|
@@ -3071,4 +3087,4 @@ interface Unstable_ASSETSBindingsOptions {
|
|
|
3071
3087
|
}
|
|
3072
3088
|
declare const generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request) => Promise<Response$1>;
|
|
3073
3089
|
|
|
3074
|
-
export { type Binding, type GetPlatformProxyOptions, type PlatformProxy, type RemoteProxySession, type SourcelessWorkerOptions, type StartRemoteProxySessionOptions, type Unstable_ASSETSBindingsOptions, type Config as Unstable_Config, type Unstable_DevOptions, type Unstable_DevWorker, type Unstable_MiniflareWorkerOptions, type RawConfig as Unstable_RawConfig, type RawEnvironment as Unstable_RawEnvironment, Framework as experimental_AutoConfigFramework, getDetailsForAutoConfig as experimental_getDetailsForAutoConfig, experimental_getWranglerCommands, runAutoConfig as experimental_runAutoConfig, getPlatformProxy, maybeStartOrUpdateRemoteProxySession, startRemoteProxySession, DevEnv as unstable_DevEnv, convertConfigBindingsToStartWorkerBindings as unstable_convertConfigBindingsToStartWorkerBindings, unstable_dev, generateASSETSBinding as unstable_generateASSETSBinding,
|
|
3090
|
+
export { type Binding, type GetPlatformProxyOptions, type PlatformProxy, type RemoteProxySession, type SourcelessWorkerOptions, type StartRemoteProxySessionOptions, type Unstable_ASSETSBindingsOptions, type Config as Unstable_Config, type Unstable_DevOptions, type Unstable_DevWorker, type Unstable_MiniflareWorkerOptions, type RawConfig as Unstable_RawConfig, type RawEnvironment as Unstable_RawEnvironment, Framework as experimental_AutoConfigFramework, getDetailsForAutoConfig as experimental_getDetailsForAutoConfig, experimental_getWranglerCommands, runAutoConfig as experimental_runAutoConfig, getPlatformProxy, maybeStartOrUpdateRemoteProxySession, startRemoteProxySession, DevEnv as unstable_DevEnv, convertConfigBindingsToStartWorkerBindings as unstable_convertConfigBindingsToStartWorkerBindings, unstable_dev, generateASSETSBinding as unstable_generateASSETSBinding, unstable_getDevCompatibilityDate, getDurableObjectClassNameToUseSQLiteMap as unstable_getDurableObjectClassNameToUseSQLiteMap, unstable_getMiniflareWorkerOptions, getVarsForDev as unstable_getVarsForDev, getWorkerNameFromProject as unstable_getWorkerNameFromProject, unstable_pages, printBindings as unstable_printBindings, readConfig as unstable_readConfig, splitSqlQuery as unstable_splitSqlQuery, startWorker as unstable_startWorker };
|