wrangler 4.50.0 → 4.52.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 +18 -17
- package/wrangler-dist/cli.d.ts +89 -64
- package/wrangler-dist/cli.js +100662 -89518
- package/wrangler-dist/metafile-cjs.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.52.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"blake3-wasm": "2.1.5",
|
|
54
|
-
"esbuild": "0.
|
|
54
|
+
"esbuild": "0.27.0",
|
|
55
55
|
"path-to-regexp": "6.3.0",
|
|
56
56
|
"unenv": "2.0.0-rc.24",
|
|
57
|
-
"workerd": "1.
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"@cloudflare/
|
|
57
|
+
"workerd": "1.20251128.0",
|
|
58
|
+
"@cloudflare/kv-asset-handler": "0.4.1",
|
|
59
|
+
"miniflare": "4.20251128.0",
|
|
60
|
+
"@cloudflare/unenv-preset": "2.7.12"
|
|
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.20251128.0",
|
|
66
66
|
"@cspotcode/source-map-support": "0.8.1",
|
|
67
67
|
"@netlify/build-info": "^10.0.9",
|
|
68
68
|
"@sentry/node": "^7.86.0",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"@sentry/utils": "^7.86.0",
|
|
71
71
|
"@types/command-exists": "^1.2.0",
|
|
72
72
|
"@types/cross-spawn": "^6.0.2",
|
|
73
|
+
"@types/esprima": "^4.0.3",
|
|
73
74
|
"@types/glob-to-regexp": "^0.4.1",
|
|
74
75
|
"@types/is-ci": "^3.0.0",
|
|
75
76
|
"@types/javascript-time-ago": "^2.0.3",
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
"dotenv": "^16.3.1",
|
|
102
103
|
"dotenv-expand": "^12.0.2",
|
|
103
104
|
"eslint": "^9.39.1",
|
|
105
|
+
"esprima": "4.0.1",
|
|
104
106
|
"execa": "^6.1.0",
|
|
105
107
|
"find-up": "^6.3.0",
|
|
106
108
|
"get-port": "^7.0.0",
|
|
@@ -115,16 +117,16 @@
|
|
|
115
117
|
"mime": "^3.0.0",
|
|
116
118
|
"minimatch": "^5.1.0",
|
|
117
119
|
"mock-socket": "^9.3.1",
|
|
118
|
-
"msw": "2.
|
|
120
|
+
"msw": "2.12.0",
|
|
119
121
|
"node-forge": "^1.3.1",
|
|
120
122
|
"open": "^8.4.0",
|
|
121
123
|
"p-queue": "^9.0.0",
|
|
122
124
|
"patch-console": "^1.0.0",
|
|
123
125
|
"pretty-bytes": "^6.0.0",
|
|
124
126
|
"prompts": "^2.4.2",
|
|
127
|
+
"recast": "0.22.0",
|
|
125
128
|
"resolve": "^1.22.8",
|
|
126
129
|
"rimraf": "^6.0.1",
|
|
127
|
-
"selfsigned": "^2.0.1",
|
|
128
130
|
"semiver": "^1.1.0",
|
|
129
131
|
"shell-quote": "^1.8.1",
|
|
130
132
|
"signal-exit": "^3.0.7",
|
|
@@ -142,21 +144,20 @@
|
|
|
142
144
|
"vitest": "~3.2.0",
|
|
143
145
|
"vitest-websocket-mock": "^0.4.0",
|
|
144
146
|
"ws": "8.18.0",
|
|
145
|
-
"xdg-app-paths": "^8.3.0",
|
|
146
147
|
"xxhash-wasm": "^1.0.1",
|
|
147
148
|
"yaml": "^2.8.1",
|
|
148
149
|
"yargs": "^17.7.2",
|
|
149
|
-
"@cloudflare/cli": "1.1.
|
|
150
|
-
"@cloudflare/containers-shared": "0.
|
|
150
|
+
"@cloudflare/cli": "1.1.4",
|
|
151
|
+
"@cloudflare/containers-shared": "0.4.0",
|
|
151
152
|
"@cloudflare/eslint-config-shared": "1.1.0",
|
|
152
|
-
"@cloudflare/pages-shared": "^0.13.
|
|
153
|
-
"@cloudflare/workers-shared": "0.18.
|
|
153
|
+
"@cloudflare/pages-shared": "^0.13.90",
|
|
154
|
+
"@cloudflare/workers-shared": "0.18.9",
|
|
154
155
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
155
|
-
"@cloudflare/workers-utils": "0.
|
|
156
|
-
"@cloudflare/workflows-shared": "0.3.
|
|
156
|
+
"@cloudflare/workers-utils": "0.3.0",
|
|
157
|
+
"@cloudflare/workflows-shared": "0.3.9"
|
|
157
158
|
},
|
|
158
159
|
"peerDependencies": {
|
|
159
|
-
"@cloudflare/workers-types": "^4.
|
|
160
|
+
"@cloudflare/workers-types": "^4.20251128.0"
|
|
160
161
|
},
|
|
161
162
|
"peerDependenciesMeta": {
|
|
162
163
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Rule, CfModule, Environment,
|
|
2
|
-
export { ConfigBindingOptions as Experimental_ConfigBindingOptions, Config as Unstable_Config, RawConfig as Unstable_RawConfig, RawEnvironment as Unstable_RawEnvironment, experimental_patchConfig, experimental_readRawConfig } from '@cloudflare/workers-utils';
|
|
1
|
+
import { Rule, CfModule, Environment, CfScriptFormat, CfModuleType, Config, CfKvNamespace, CfSendEmailBindings, CfBrowserBinding, CfAIBinding, CfImagesBinding, CfDurableObject, CfWorkflow, CfQueue, CfR2Bucket, CfD1Database, CfVectorize, CfHyperdrive, CfService, CfAnalyticsEngineDataset, CfDispatchNamespace, CfMTlsCertificate, CfPipeline, CfSecretsStoreSecrets, CfLogfwdrBinding, CfHelloWorld, CfRateLimit, CfWorkerLoader, CfVpcService, CfMediaBinding, DurableObjectMigration, ContainerApp, ZoneIdRoute, ZoneNameRoute, CustomDomainRoute, CfTailConsumer, ContainerEngine, CfUnsafe, ConfigBindingOptions, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, RawConfig, PackageJSON, ParseError, ComplianceConfig, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
2
|
+
export { ConfigBindingOptions as Experimental_ConfigBindingOptions, Config as Unstable_Config, RawConfig as Unstable_RawConfig, RawEnvironment as Unstable_RawEnvironment, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig } from '@cloudflare/workers-utils';
|
|
3
3
|
import { Json, Request, Response as Response$1, NodeJSCompatMode, DispatchFetch, Miniflare, WorkerRegistry, MiniflareOptions, Mutex, WorkerOptions, ModuleRule, RemoteProxyConnectionString } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
5
5
|
import { RequestInfo, RequestInit, Response, FormData } from 'undici';
|
|
@@ -238,11 +238,6 @@ declare const unstable_pages: {
|
|
|
238
238
|
deploy: typeof deploy;
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
-
/**
|
|
242
|
-
* The compliance region to use for the API requests.
|
|
243
|
-
*/
|
|
244
|
-
type ComplianceConfig = Partial<Pick<Config, "compliance_region">>;
|
|
245
|
-
|
|
246
241
|
type _Params<ParamsArray extends [unknown?]> = ParamsArray extends [infer P] ? P : undefined;
|
|
247
242
|
type _EventMethods = keyof Protocol.Events;
|
|
248
243
|
type DevToolsEvent<Method extends _EventMethods> = Method extends unknown ? {
|
|
@@ -924,6 +919,90 @@ declare class ExecutionContext {
|
|
|
924
919
|
*/
|
|
925
920
|
declare function getVarsForDev(configPath: string | undefined, envFiles: string[] | undefined, vars: Config["vars"], env: string | undefined, silent?: boolean): Config["vars"];
|
|
926
921
|
|
|
922
|
+
/**
|
|
923
|
+
* Returns the compatibility date to use in development.
|
|
924
|
+
*
|
|
925
|
+
* When no compatibility date is configured, uses the installed Workers runtime's latest supported date.
|
|
926
|
+
*
|
|
927
|
+
* @param config wrangler configuration
|
|
928
|
+
* @param compatibilityDate configured compatibility date
|
|
929
|
+
* @returns the compatibility date to use in development
|
|
930
|
+
*/
|
|
931
|
+
declare function getDevCompatibilityDate(config: Config | undefined, compatibilityDate?: string | undefined): string;
|
|
932
|
+
|
|
933
|
+
type ConfigurationOptions = {
|
|
934
|
+
outputDir: string;
|
|
935
|
+
projectPath: string;
|
|
936
|
+
workerName: string;
|
|
937
|
+
dryRun: boolean;
|
|
938
|
+
};
|
|
939
|
+
type ConfigurationResults = {
|
|
940
|
+
wranglerConfig: RawConfig;
|
|
941
|
+
};
|
|
942
|
+
declare abstract class Framework {
|
|
943
|
+
name: string;
|
|
944
|
+
constructor(name?: string);
|
|
945
|
+
preview?: string;
|
|
946
|
+
deploy?: string;
|
|
947
|
+
typegen?: string;
|
|
948
|
+
/** Some frameworks (i.e. Nuxt) don't need additional configuration */
|
|
949
|
+
get configured(): boolean;
|
|
950
|
+
abstract configure(options: ConfigurationOptions): Promise<ConfigurationResults> | ConfigurationResults;
|
|
951
|
+
configurationDescription?: string;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
type AutoConfigDetails = {
|
|
955
|
+
/** The name of the worker */
|
|
956
|
+
workerName: string;
|
|
957
|
+
/** The path to the project (defaults to cwd) */
|
|
958
|
+
projectPath: string;
|
|
959
|
+
/** The content of the project's package.json file (if any) */
|
|
960
|
+
packageJson?: PackageJSON;
|
|
961
|
+
/** Whether the project is already configured (no autoconfig required) */
|
|
962
|
+
configured: boolean;
|
|
963
|
+
/** Details about the detected framework (if any) */
|
|
964
|
+
framework?: Framework;
|
|
965
|
+
/** The build command used to build the project (if any) */
|
|
966
|
+
buildCommand?: string;
|
|
967
|
+
/** The output directory (if no framework is used, points to the raw asset files) */
|
|
968
|
+
outputDir?: string;
|
|
969
|
+
};
|
|
970
|
+
type AutoConfigOptions = {
|
|
971
|
+
/** Whether to run autoconfig without actually applying any filesystem modification (default: false) */
|
|
972
|
+
dryRun?: boolean;
|
|
973
|
+
/**
|
|
974
|
+
* Whether the build command should be run (default: true)
|
|
975
|
+
*
|
|
976
|
+
* Note: When `dryRun` is `true` the build command is never run.
|
|
977
|
+
*/
|
|
978
|
+
runBuild?: boolean;
|
|
979
|
+
/**
|
|
980
|
+
* Whether the confirmation prompts should be skipped (default: false)
|
|
981
|
+
*
|
|
982
|
+
* Note: When `dryRun` is `true` the the confirmation prompts are always skipped.
|
|
983
|
+
*/
|
|
984
|
+
skipConfirmations?: boolean;
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Derives a valid worker name from a project directory.
|
|
989
|
+
*
|
|
990
|
+
* The name is determined by (in order of precedence):
|
|
991
|
+
* 1. The WRANGLER_CI_OVERRIDE_NAME environment variable (for CI environments)
|
|
992
|
+
* 2. The `name` field from package.json in the project directory
|
|
993
|
+
* 3. The directory basename
|
|
994
|
+
*
|
|
995
|
+
* The resulting name is sanitized to be a valid worker name.
|
|
996
|
+
*
|
|
997
|
+
* @param projectPath The path to the project directory
|
|
998
|
+
* @returns A valid worker name
|
|
999
|
+
*/
|
|
1000
|
+
declare function getWorkerNameFromProject(projectPath: string): string;
|
|
1001
|
+
declare function getDetailsForAutoConfig({ projectPath, wranglerConfig, }?: {
|
|
1002
|
+
projectPath?: string;
|
|
1003
|
+
wranglerConfig?: Config;
|
|
1004
|
+
}): Promise<AutoConfigDetails>;
|
|
1005
|
+
|
|
927
1006
|
/**
|
|
928
1007
|
* Options for the `getPlatformProxy` utility
|
|
929
1008
|
*/
|
|
@@ -1056,6 +1135,8 @@ type WorkerConfigObject = {
|
|
|
1056
1135
|
bindings: NonNullable<StartDevWorkerInput["bindings"]>;
|
|
1057
1136
|
/** If running in a non-public compliance region, set this here. */
|
|
1058
1137
|
complianceRegion?: Config["compliance_region"];
|
|
1138
|
+
/** Id of the account owning the worker */
|
|
1139
|
+
account_id?: Config["account_id"];
|
|
1059
1140
|
};
|
|
1060
1141
|
/**
|
|
1061
1142
|
* Utility for potentially starting or updating a remote proxy session.
|
|
@@ -1128,61 +1209,6 @@ declare class Logger {
|
|
|
1128
1209
|
*/
|
|
1129
1210
|
declare function splitSqlQuery(sql: string): string[];
|
|
1130
1211
|
|
|
1131
|
-
type ConfigurationOptions = {
|
|
1132
|
-
outputDir: string;
|
|
1133
|
-
projectPath: string;
|
|
1134
|
-
workerName: string;
|
|
1135
|
-
dryRun: boolean;
|
|
1136
|
-
};
|
|
1137
|
-
declare abstract class Framework {
|
|
1138
|
-
abstract name: string;
|
|
1139
|
-
preview?: string;
|
|
1140
|
-
deploy?: string;
|
|
1141
|
-
typegen?: string;
|
|
1142
|
-
/** Some frameworks (i.e. Nuxt) don't need additional configuration */
|
|
1143
|
-
get configured(): boolean;
|
|
1144
|
-
abstract configure(options: ConfigurationOptions): Promise<RawConfig> | RawConfig;
|
|
1145
|
-
configurationDescription?: string;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
type AutoConfigDetails = {
|
|
1149
|
-
/** The name of the worker */
|
|
1150
|
-
workerName: string;
|
|
1151
|
-
/** The path to the project (defaults to cwd) */
|
|
1152
|
-
projectPath: string;
|
|
1153
|
-
/** The content of the project's package.json file (if any) */
|
|
1154
|
-
packageJson?: PackageJSON;
|
|
1155
|
-
/** Whether the project is already configured (no autoconfig required) */
|
|
1156
|
-
configured: boolean;
|
|
1157
|
-
/** Details about the detected framework (if any) */
|
|
1158
|
-
framework?: Framework;
|
|
1159
|
-
/** The build command used to build the project (if any) */
|
|
1160
|
-
buildCommand?: string;
|
|
1161
|
-
/** The output directory (if no framework is used, points to the raw asset files) */
|
|
1162
|
-
outputDir?: string;
|
|
1163
|
-
};
|
|
1164
|
-
type AutoConfigOptions = {
|
|
1165
|
-
/** Whether to run autoconfig without actually applying any filesystem modification (default: false) */
|
|
1166
|
-
dryRun?: boolean;
|
|
1167
|
-
/**
|
|
1168
|
-
* Whether the build command should be run (default: true)
|
|
1169
|
-
*
|
|
1170
|
-
* Note: When `dryRun` is `true` the build command is never run.
|
|
1171
|
-
*/
|
|
1172
|
-
runBuild?: boolean;
|
|
1173
|
-
/**
|
|
1174
|
-
* Whether the confirmation prompts should be skipped (default: false)
|
|
1175
|
-
*
|
|
1176
|
-
* Note: When `dryRun` is `true` the the confirmation prompts are always skipped.
|
|
1177
|
-
*/
|
|
1178
|
-
skipConfirmations?: boolean;
|
|
1179
|
-
};
|
|
1180
|
-
|
|
1181
|
-
declare function getDetailsForAutoConfig({ projectPath, wranglerConfig, }?: {
|
|
1182
|
-
projectPath?: string;
|
|
1183
|
-
wranglerConfig?: Config;
|
|
1184
|
-
}): Promise<AutoConfigDetails>;
|
|
1185
|
-
|
|
1186
1212
|
declare function runAutoConfig(autoConfigDetails: AutoConfigDetails, autoConfigOptions?: AutoConfigOptions): Promise<void>;
|
|
1187
1213
|
|
|
1188
1214
|
/**
|
|
@@ -1193,7 +1219,6 @@ declare function fetchResult<ResponseType>(complianceConfig: ComplianceConfig, r
|
|
|
1193
1219
|
type ExperimentalFlags = {
|
|
1194
1220
|
MULTIWORKER: boolean;
|
|
1195
1221
|
RESOURCES_PROVISION: boolean;
|
|
1196
|
-
DEPLOY_REMOTE_DIFF_CHECK: boolean;
|
|
1197
1222
|
AUTOCREATE_RESOURCES: boolean;
|
|
1198
1223
|
};
|
|
1199
1224
|
|
|
@@ -1503,4 +1528,4 @@ interface Unstable_ASSETSBindingsOptions {
|
|
|
1503
1528
|
}
|
|
1504
1529
|
declare const generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request) => Promise<Response$1>;
|
|
1505
1530
|
|
|
1506
|
-
export { type Binding, type GetPlatformProxyOptions, type PlatformProxy, type RemoteProxySession, type SourcelessWorkerOptions, type StartRemoteProxySessionOptions, type Unstable_ASSETSBindingsOptions, type Unstable_DevOptions, type Unstable_DevWorker, type Unstable_MiniflareWorkerOptions, 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, getDurableObjectClassNameToUseSQLiteMap as unstable_getDurableObjectClassNameToUseSQLiteMap, unstable_getMiniflareWorkerOptions, getVarsForDev as unstable_getVarsForDev, unstable_pages, readConfig as unstable_readConfig, splitSqlQuery as unstable_splitSqlQuery, startWorker as unstable_startWorker };
|
|
1531
|
+
export { type Binding, type GetPlatformProxyOptions, type PlatformProxy, type RemoteProxySession, type SourcelessWorkerOptions, type StartRemoteProxySessionOptions, type Unstable_ASSETSBindingsOptions, type Unstable_DevOptions, type Unstable_DevWorker, type Unstable_MiniflareWorkerOptions, 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, getDevCompatibilityDate as unstable_getDevCompatibilityDate, getDurableObjectClassNameToUseSQLiteMap as unstable_getDurableObjectClassNameToUseSQLiteMap, unstable_getMiniflareWorkerOptions, getVarsForDev as unstable_getVarsForDev, getWorkerNameFromProject as unstable_getWorkerNameFromProject, unstable_pages, readConfig as unstable_readConfig, splitSqlQuery as unstable_splitSqlQuery, startWorker as unstable_startWorker };
|