wrangler 4.53.0 → 4.55.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 +38 -0
- package/package.json +13 -13
- package/wrangler-dist/cli.d.ts +44 -5
- package/wrangler-dist/cli.js +15435 -14599
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -2933,6 +2933,44 @@
|
|
|
2933
2933
|
"description": "The instance type to be used for the container. Select from one of the following named instance types: - lite: 1/16 vCPU, 256 MiB memory, and 2 GB disk - basic: 1/4 vCPU, 1 GiB memory, and 4 GB disk - standard-1: 1/2 vCPU, 4 GiB memory, and 8 GB disk - standard-2: 1 vCPU, 6 GiB memory, and 12 GB disk - standard-3: 2 vCPU, 8 GiB memory, and 16 GB disk - standard-4: 4 vCPU, 12 GiB memory, and 20 GB disk - dev: 1/16 vCPU, 256 MiB memory, and 2 GB disk (deprecated, use \"lite\" instead) - standard: 1 vCPU, 4 GiB memory, and 4 GB disk (deprecated, use \"standard-1\" instead)\n\nCustomers on an enterprise plan have the additional option to set custom limits.",
|
|
2934
2934
|
"default": "dev"
|
|
2935
2935
|
},
|
|
2936
|
+
"wrangler_ssh": {
|
|
2937
|
+
"type": "object",
|
|
2938
|
+
"properties": {
|
|
2939
|
+
"enabled": {
|
|
2940
|
+
"type": "boolean",
|
|
2941
|
+
"description": "If enabled, those with write access to a container will be able to SSH into it through Wrangler.",
|
|
2942
|
+
"default": false
|
|
2943
|
+
},
|
|
2944
|
+
"port": {
|
|
2945
|
+
"type": "number",
|
|
2946
|
+
"description": "Port that the SSH service is running on"
|
|
2947
|
+
}
|
|
2948
|
+
},
|
|
2949
|
+
"required": [
|
|
2950
|
+
"enabled"
|
|
2951
|
+
],
|
|
2952
|
+
"additionalProperties": false
|
|
2953
|
+
},
|
|
2954
|
+
"authorized_keys": {
|
|
2955
|
+
"type": "array",
|
|
2956
|
+
"items": {
|
|
2957
|
+
"type": "object",
|
|
2958
|
+
"properties": {
|
|
2959
|
+
"name": {
|
|
2960
|
+
"type": "string"
|
|
2961
|
+
},
|
|
2962
|
+
"public_key": {
|
|
2963
|
+
"type": "string"
|
|
2964
|
+
}
|
|
2965
|
+
},
|
|
2966
|
+
"required": [
|
|
2967
|
+
"name",
|
|
2968
|
+
"public_key"
|
|
2969
|
+
],
|
|
2970
|
+
"additionalProperties": false
|
|
2971
|
+
},
|
|
2972
|
+
"description": "SSH public keys to put in the container's authorized_keys file."
|
|
2973
|
+
},
|
|
2936
2974
|
"rollout_step_percentage": {
|
|
2937
2975
|
"anyOf": [
|
|
2938
2976
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.55.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.
|
|
57
|
+
"workerd": "1.20251213.0",
|
|
58
58
|
"@cloudflare/kv-asset-handler": "0.4.1",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
59
|
+
"miniflare": "4.20251213.0",
|
|
60
|
+
"@cloudflare/unenv-preset": "2.7.13"
|
|
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.20251213.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",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"ts-dedent": "^2.2.0",
|
|
139
139
|
"ts-json-schema-generator": "^1.5.0",
|
|
140
140
|
"tsup": "8.3.0",
|
|
141
|
-
"typescript": "
|
|
141
|
+
"typescript": "~5.8.3",
|
|
142
142
|
"undici": "7.14.0",
|
|
143
143
|
"update-check": "^1.5.4",
|
|
144
144
|
"vitest": "~3.2.0",
|
|
@@ -147,17 +147,17 @@
|
|
|
147
147
|
"xxhash-wasm": "^1.0.1",
|
|
148
148
|
"yaml": "^2.8.1",
|
|
149
149
|
"yargs": "^17.7.2",
|
|
150
|
-
"@cloudflare/cli": "1.
|
|
151
|
-
"@cloudflare/containers-shared": "0.
|
|
152
|
-
"@cloudflare/
|
|
153
|
-
"@cloudflare/pages-shared": "^0.13.92",
|
|
150
|
+
"@cloudflare/cli": "1.2.0",
|
|
151
|
+
"@cloudflare/containers-shared": "0.5.0",
|
|
152
|
+
"@cloudflare/pages-shared": "^0.13.94",
|
|
154
153
|
"@cloudflare/workers-shared": "0.18.9",
|
|
155
154
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
156
|
-
"@cloudflare/workers-utils": "0.
|
|
155
|
+
"@cloudflare/workers-utils": "0.5.0",
|
|
156
|
+
"@cloudflare/eslint-config-shared": "1.1.0",
|
|
157
157
|
"@cloudflare/workflows-shared": "0.3.9"
|
|
158
158
|
},
|
|
159
159
|
"peerDependencies": {
|
|
160
|
-
"@cloudflare/workers-types": "^4.
|
|
160
|
+
"@cloudflare/workers-types": "^4.20251213.0"
|
|
161
161
|
},
|
|
162
162
|
"peerDependenciesMeta": {
|
|
163
163
|
"@cloudflare/workers-types": {
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"check:lint": "eslint . --max-warnings=0",
|
|
183
183
|
"check:type": "tsc -p ./tsconfig.json && tsc -p ./templates/tsconfig.json",
|
|
184
184
|
"clean": "rimraf wrangler-dist miniflare-dist emitted-types",
|
|
185
|
-
"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\"",
|
|
185
|
+
"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
186
|
"generate-json-schema": "node -r esbuild-register scripts/generate-json-schema.ts",
|
|
187
187
|
"start": "pnpm run build && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
|
|
188
188
|
"test": "dotenv -- pnpm run assert-git-version && dotenv -- vitest",
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule as Rule$1, CfModule, Environment as Environment$1, CfScriptFormat, CfModuleType, Config as Config$1, 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 as DurableObjectMigration$1, ContainerApp as ContainerApp$1, ZoneIdRoute as ZoneIdRoute$1, ZoneNameRoute as ZoneNameRoute$1, CustomDomainRoute as CustomDomainRoute$1, CfTailConsumer, ContainerEngine as ContainerEngine$1, CfUnsafe, ConfigBindingOptions, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, RawConfig as RawConfig$1, PackageJSON, ParseError, ComplianceConfig, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
1
|
+
import { Rule as Rule$1, CfModule, Environment as Environment$1, CfScriptFormat, CfModuleType, Config as Config$1, 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 as DurableObjectMigration$1, ContainerApp as ContainerApp$1, ZoneIdRoute as ZoneIdRoute$1, ZoneNameRoute as ZoneNameRoute$1, CustomDomainRoute as CustomDomainRoute$1, CfTailConsumer, ContainerEngine as ContainerEngine$1, CfUnsafe, ConfigBindingOptions, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, RawConfig as RawConfig$1, PackageJSON, ParseError, CfWorkerInit, ComplianceConfig, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
2
2
|
export { ConfigBindingOptions as Experimental_ConfigBindingOptions, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig } from '@cloudflare/workers-utils';
|
|
3
3
|
import { Json as Json$1, Request, Response as Response$1, NodeJSCompatMode, DispatchFetch, Miniflare, WorkerRegistry, MiniflareOptions, Mutex, WorkerOptions, ModuleRule, RemoteProxyConnectionString } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
@@ -840,6 +840,12 @@ type ReadConfigOptions = ResolveConfigPathOptions & {
|
|
|
840
840
|
*/
|
|
841
841
|
declare function readConfig(args: ReadConfigCommandArgs, options?: ReadConfigOptions): Config$1;
|
|
842
842
|
|
|
843
|
+
/**
|
|
844
|
+
* Based on the migrations, infer what the current Durable Object class names are.
|
|
845
|
+
* This includes unbound (ctx.exports) and bound DOs.
|
|
846
|
+
* Returns class name mapped to whether it uses SQLite storage.
|
|
847
|
+
* This is imperfect because you can delete a migration after it has been applied.
|
|
848
|
+
*/
|
|
843
849
|
declare function getDurableObjectClassNameToUseSQLiteMap(migrations: Config$1["migrations"] | undefined): Map<string, boolean>;
|
|
844
850
|
|
|
845
851
|
/**
|
|
@@ -1027,6 +1033,25 @@ type ContainerApp = {
|
|
|
1027
1033
|
/** @defaults to 2 GB */
|
|
1028
1034
|
disk_mb?: number;
|
|
1029
1035
|
};
|
|
1036
|
+
wrangler_ssh?: {
|
|
1037
|
+
/**
|
|
1038
|
+
* If enabled, those with write access to a container will be able to SSH into it through Wrangler.
|
|
1039
|
+
* @default false
|
|
1040
|
+
*/
|
|
1041
|
+
enabled: boolean;
|
|
1042
|
+
/**
|
|
1043
|
+
* Port that the SSH service is running on
|
|
1044
|
+
* @defaults to 22
|
|
1045
|
+
*/
|
|
1046
|
+
port?: number;
|
|
1047
|
+
};
|
|
1048
|
+
/**
|
|
1049
|
+
* SSH public keys to put in the container's authorized_keys file.
|
|
1050
|
+
*/
|
|
1051
|
+
authorized_keys?: {
|
|
1052
|
+
name: string;
|
|
1053
|
+
public_key: string;
|
|
1054
|
+
}[];
|
|
1030
1055
|
/**
|
|
1031
1056
|
* @deprecated Use top level `containers` fields instead.
|
|
1032
1057
|
* `configuration.image` should be `image`
|
|
@@ -2438,12 +2463,12 @@ type PackageJsonScriptsOverrides = {
|
|
|
2438
2463
|
type ConfigurationResults = {
|
|
2439
2464
|
wranglerConfig: RawConfig$1;
|
|
2440
2465
|
packageJsonScriptsOverrides?: PackageJsonScriptsOverrides;
|
|
2466
|
+
buildCommand?: string;
|
|
2441
2467
|
};
|
|
2442
2468
|
declare abstract class Framework {
|
|
2443
2469
|
name: string;
|
|
2444
2470
|
constructor(name?: string);
|
|
2445
|
-
|
|
2446
|
-
get configured(): boolean;
|
|
2471
|
+
isConfigured(_projectPath: string): boolean;
|
|
2447
2472
|
abstract configure(options: ConfigurationOptions): Promise<ConfigurationResults> | ConfigurationResults;
|
|
2448
2473
|
configurationDescription?: string;
|
|
2449
2474
|
}
|
|
@@ -2708,6 +2733,20 @@ declare class Logger {
|
|
|
2708
2733
|
private formatMessage;
|
|
2709
2734
|
}
|
|
2710
2735
|
|
|
2736
|
+
/**
|
|
2737
|
+
* Print all the bindings a worker using a given config would have access to
|
|
2738
|
+
*/
|
|
2739
|
+
declare function printBindings(bindings: Partial<CfWorkerInit["bindings"]>, tailConsumers?: CfTailConsumer[], streamingTailConsumers?: CfTailConsumer[], containers?: ContainerApp$1[], context?: {
|
|
2740
|
+
log?: (message: string) => void;
|
|
2741
|
+
registry?: WorkerRegistry | null;
|
|
2742
|
+
local?: boolean;
|
|
2743
|
+
isMultiWorker?: boolean;
|
|
2744
|
+
remoteBindingsDisabled?: boolean;
|
|
2745
|
+
name?: string;
|
|
2746
|
+
provisioning?: boolean;
|
|
2747
|
+
warnIfNoBindings?: boolean;
|
|
2748
|
+
}): void;
|
|
2749
|
+
|
|
2711
2750
|
/**
|
|
2712
2751
|
* Split an SQLQuery into an array of statements
|
|
2713
2752
|
*/
|
|
@@ -2784,7 +2823,7 @@ type DeepFlatten<T> = T extends object ? {
|
|
|
2784
2823
|
type Command = `wrangler${string}`;
|
|
2785
2824
|
type Metadata = {
|
|
2786
2825
|
description: string;
|
|
2787
|
-
status: "experimental" | "alpha" | "private
|
|
2826
|
+
status: "experimental" | "alpha" | "private beta" | "open beta" | "stable";
|
|
2788
2827
|
statusMessage?: string;
|
|
2789
2828
|
deprecated?: boolean;
|
|
2790
2829
|
deprecatedMessage?: string;
|
|
@@ -3032,4 +3071,4 @@ interface Unstable_ASSETSBindingsOptions {
|
|
|
3032
3071
|
}
|
|
3033
3072
|
declare const generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request) => Promise<Response$1>;
|
|
3034
3073
|
|
|
3035
|
-
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, 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 };
|
|
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, getDevCompatibilityDate as 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 };
|