wrangler 4.51.0 → 4.52.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 +16 -14
- package/wrangler-dist/cli.d.ts +89 -59
- package/wrangler-dist/cli.js +98356 -87190
- 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.1",
|
|
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.
|
|
57
|
+
"workerd": "1.20251202.0",
|
|
58
58
|
"@cloudflare/kv-asset-handler": "0.4.1",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
59
|
+
"miniflare": "4.20251202.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.20251202.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",
|
|
@@ -145,17 +147,17 @@
|
|
|
145
147
|
"xxhash-wasm": "^1.0.1",
|
|
146
148
|
"yaml": "^2.8.1",
|
|
147
149
|
"yargs": "^17.7.2",
|
|
148
|
-
"@cloudflare/cli": "1.1.
|
|
149
|
-
"@cloudflare/containers-shared": "0.
|
|
150
|
+
"@cloudflare/cli": "1.1.4",
|
|
151
|
+
"@cloudflare/containers-shared": "0.4.0",
|
|
150
152
|
"@cloudflare/eslint-config-shared": "1.1.0",
|
|
151
|
-
"@cloudflare/pages-shared": "^0.13.
|
|
152
|
-
"@cloudflare/workers-shared": "0.18.8",
|
|
153
|
+
"@cloudflare/pages-shared": "^0.13.91",
|
|
153
154
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
155
|
+
"@cloudflare/workers-shared": "0.18.9",
|
|
154
156
|
"@cloudflare/workers-utils": "0.3.0",
|
|
155
|
-
"@cloudflare/workflows-shared": "0.3.
|
|
157
|
+
"@cloudflare/workflows-shared": "0.3.9"
|
|
156
158
|
},
|
|
157
159
|
"peerDependencies": {
|
|
158
|
-
"@cloudflare/workers-types": "^4.
|
|
160
|
+
"@cloudflare/workers-types": "^4.20251202.0"
|
|
159
161
|
},
|
|
160
162
|
"peerDependenciesMeta": {
|
|
161
163
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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,
|
|
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';
|
|
@@ -919,6 +919,90 @@ declare class ExecutionContext {
|
|
|
919
919
|
*/
|
|
920
920
|
declare function getVarsForDev(configPath: string | undefined, envFiles: string[] | undefined, vars: Config["vars"], env: string | undefined, silent?: boolean): Config["vars"];
|
|
921
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
|
+
|
|
922
1006
|
/**
|
|
923
1007
|
* Options for the `getPlatformProxy` utility
|
|
924
1008
|
*/
|
|
@@ -1051,6 +1135,8 @@ type WorkerConfigObject = {
|
|
|
1051
1135
|
bindings: NonNullable<StartDevWorkerInput["bindings"]>;
|
|
1052
1136
|
/** If running in a non-public compliance region, set this here. */
|
|
1053
1137
|
complianceRegion?: Config["compliance_region"];
|
|
1138
|
+
/** Id of the account owning the worker */
|
|
1139
|
+
account_id?: Config["account_id"];
|
|
1054
1140
|
};
|
|
1055
1141
|
/**
|
|
1056
1142
|
* Utility for potentially starting or updating a remote proxy session.
|
|
@@ -1123,61 +1209,6 @@ declare class Logger {
|
|
|
1123
1209
|
*/
|
|
1124
1210
|
declare function splitSqlQuery(sql: string): string[];
|
|
1125
1211
|
|
|
1126
|
-
type ConfigurationOptions = {
|
|
1127
|
-
outputDir: string;
|
|
1128
|
-
projectPath: string;
|
|
1129
|
-
workerName: string;
|
|
1130
|
-
dryRun: boolean;
|
|
1131
|
-
};
|
|
1132
|
-
declare abstract class Framework {
|
|
1133
|
-
abstract name: string;
|
|
1134
|
-
preview?: string;
|
|
1135
|
-
deploy?: string;
|
|
1136
|
-
typegen?: string;
|
|
1137
|
-
/** Some frameworks (i.e. Nuxt) don't need additional configuration */
|
|
1138
|
-
get configured(): boolean;
|
|
1139
|
-
abstract configure(options: ConfigurationOptions): Promise<RawConfig> | RawConfig;
|
|
1140
|
-
configurationDescription?: string;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
type AutoConfigDetails = {
|
|
1144
|
-
/** The name of the worker */
|
|
1145
|
-
workerName: string;
|
|
1146
|
-
/** The path to the project (defaults to cwd) */
|
|
1147
|
-
projectPath: string;
|
|
1148
|
-
/** The content of the project's package.json file (if any) */
|
|
1149
|
-
packageJson?: PackageJSON;
|
|
1150
|
-
/** Whether the project is already configured (no autoconfig required) */
|
|
1151
|
-
configured: boolean;
|
|
1152
|
-
/** Details about the detected framework (if any) */
|
|
1153
|
-
framework?: Framework;
|
|
1154
|
-
/** The build command used to build the project (if any) */
|
|
1155
|
-
buildCommand?: string;
|
|
1156
|
-
/** The output directory (if no framework is used, points to the raw asset files) */
|
|
1157
|
-
outputDir?: string;
|
|
1158
|
-
};
|
|
1159
|
-
type AutoConfigOptions = {
|
|
1160
|
-
/** Whether to run autoconfig without actually applying any filesystem modification (default: false) */
|
|
1161
|
-
dryRun?: boolean;
|
|
1162
|
-
/**
|
|
1163
|
-
* Whether the build command should be run (default: true)
|
|
1164
|
-
*
|
|
1165
|
-
* Note: When `dryRun` is `true` the build command is never run.
|
|
1166
|
-
*/
|
|
1167
|
-
runBuild?: boolean;
|
|
1168
|
-
/**
|
|
1169
|
-
* Whether the confirmation prompts should be skipped (default: false)
|
|
1170
|
-
*
|
|
1171
|
-
* Note: When `dryRun` is `true` the the confirmation prompts are always skipped.
|
|
1172
|
-
*/
|
|
1173
|
-
skipConfirmations?: boolean;
|
|
1174
|
-
};
|
|
1175
|
-
|
|
1176
|
-
declare function getDetailsForAutoConfig({ projectPath, wranglerConfig, }?: {
|
|
1177
|
-
projectPath?: string;
|
|
1178
|
-
wranglerConfig?: Config;
|
|
1179
|
-
}): Promise<AutoConfigDetails>;
|
|
1180
|
-
|
|
1181
1212
|
declare function runAutoConfig(autoConfigDetails: AutoConfigDetails, autoConfigOptions?: AutoConfigOptions): Promise<void>;
|
|
1182
1213
|
|
|
1183
1214
|
/**
|
|
@@ -1188,7 +1219,6 @@ declare function fetchResult<ResponseType>(complianceConfig: ComplianceConfig, r
|
|
|
1188
1219
|
type ExperimentalFlags = {
|
|
1189
1220
|
MULTIWORKER: boolean;
|
|
1190
1221
|
RESOURCES_PROVISION: boolean;
|
|
1191
|
-
DEPLOY_REMOTE_DIFF_CHECK: boolean;
|
|
1192
1222
|
AUTOCREATE_RESOURCES: boolean;
|
|
1193
1223
|
};
|
|
1194
1224
|
|
|
@@ -1498,4 +1528,4 @@ interface Unstable_ASSETSBindingsOptions {
|
|
|
1498
1528
|
}
|
|
1499
1529
|
declare const generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request) => Promise<Response$1>;
|
|
1500
1530
|
|
|
1501
|
-
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 };
|