wrangler 4.102.0 → 4.103.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 +10 -9
- package/wrangler-dist/cli.d.ts +2 -162
- package/wrangler-dist/cli.js +53596 -45843
- 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.103.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"unenv": "2.0.0-rc.24",
|
|
69
69
|
"workerd": "1.20260617.1",
|
|
70
70
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
71
|
+
"@cloudflare/unenv-preset": "2.16.1",
|
|
72
|
+
"miniflare": "4.20260617.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
@@ -156,16 +156,17 @@
|
|
|
156
156
|
"yaml": "^2.8.1",
|
|
157
157
|
"yargs": "^17.7.2",
|
|
158
158
|
"zod": "^4.4.3",
|
|
159
|
-
"@cloudflare/
|
|
159
|
+
"@cloudflare/autoconfig": "0.1.0",
|
|
160
|
+
"@cloudflare/cli-shared-helpers": "0.1.10",
|
|
160
161
|
"@cloudflare/codemod": "1.1.0",
|
|
161
|
-
"@cloudflare/containers-shared": "0.15.1",
|
|
162
162
|
"@cloudflare/config": "0.0.0",
|
|
163
|
-
"@cloudflare/
|
|
164
|
-
"@cloudflare/
|
|
165
|
-
"@cloudflare/workers-auth": "0.3.
|
|
163
|
+
"@cloudflare/containers-shared": "0.15.1",
|
|
164
|
+
"@cloudflare/deploy-helpers": "0.2.2",
|
|
165
|
+
"@cloudflare/workers-auth": "0.3.2",
|
|
166
|
+
"@cloudflare/pages-shared": "^0.13.148",
|
|
166
167
|
"@cloudflare/workers-shared": "0.19.7",
|
|
167
168
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
168
|
-
"@cloudflare/workers-utils": "0.
|
|
169
|
+
"@cloudflare/workers-utils": "0.24.0",
|
|
169
170
|
"@cloudflare/workflows-shared": "0.11.2"
|
|
170
171
|
},
|
|
171
172
|
"peerDependencies": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, StartDevWorkerInput, NodeJSCompatMode, CfScriptFormat, Config as Config$1, AsyncHook, CfAccount as CfAccount$1, AssetsOptions as AssetsOptions$1, Binding, ConfigBindingFieldName, RawConfig as RawConfig$1, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions,
|
|
1
|
+
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, StartDevWorkerInput, NodeJSCompatMode, CfScriptFormat, Config as Config$1, AsyncHook, CfAccount as CfAccount$1, AssetsOptions as AssetsOptions$1, Binding, ConfigBindingFieldName, RawConfig as RawConfig$1, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, ApiCredentials, ParseError, LoggerLevel, ComplianceConfig, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
2
2
|
export { Binding, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig } from '@cloudflare/workers-utils';
|
|
3
3
|
import { Json as Json$1, WorkerdStructuredLog, DispatchFetch, Miniflare, WorkerRegistry, MiniflareOptions, Mutex, Response as Response$1, RemoteProxyConnectionString, WorkerOptions, ModuleRule, Request } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
@@ -2848,164 +2848,6 @@ type VarBinding = Extract<Binding, {
|
|
|
2848
2848
|
*/
|
|
2849
2849
|
declare function getVarsForDev(configPath: string | undefined, envFiles: string[] | undefined, vars: Config$1["vars"], env: string | undefined, silent?: boolean, secrets?: Config$1["secrets"]): Record<string, VarBinding>;
|
|
2850
2850
|
|
|
2851
|
-
interface PackageManager {
|
|
2852
|
-
type: "npm" | "yarn" | "pnpm" | "bun";
|
|
2853
|
-
npx: string;
|
|
2854
|
-
dlx: string[];
|
|
2855
|
-
lockFiles: string[];
|
|
2856
|
-
}
|
|
2857
|
-
|
|
2858
|
-
/** Makes a subset of properties in a type optional
|
|
2859
|
-
*
|
|
2860
|
-
* @example
|
|
2861
|
-
* - type A = { s: string, b: boolean, n: number }
|
|
2862
|
-
* - Optional<A, 'b'|'n'> = { s: string, b?: boolean, n?: number }
|
|
2863
|
-
*/
|
|
2864
|
-
type Optional<T, K extends keyof T> = Omit<T, K> & Pick<Partial<T>, K>;
|
|
2865
|
-
|
|
2866
|
-
type FrameworkInfo = {
|
|
2867
|
-
id: string;
|
|
2868
|
-
name: string;
|
|
2869
|
-
} & ({
|
|
2870
|
-
supported: false;
|
|
2871
|
-
} | {
|
|
2872
|
-
supported: true;
|
|
2873
|
-
class: typeof Framework;
|
|
2874
|
-
frameworkPackageInfo: AutoConfigFrameworkPackageInfo;
|
|
2875
|
-
});
|
|
2876
|
-
/**
|
|
2877
|
-
* AutoConfig information for a package that defines a framework.
|
|
2878
|
-
*/
|
|
2879
|
-
type AutoConfigFrameworkPackageInfo = {
|
|
2880
|
-
/** The package name (e.g. "astro" for the Astro framework and "@solidjs/start" for the SolidStart framework) */
|
|
2881
|
-
name: string;
|
|
2882
|
-
/** The minimum version (if any) of the package/framework that autoconfig supports */
|
|
2883
|
-
minimumVersion: string;
|
|
2884
|
-
/** The latest major version of the package/framework that autoconfig supports */
|
|
2885
|
-
maximumKnownMajorVersion: string;
|
|
2886
|
-
};
|
|
2887
|
-
|
|
2888
|
-
declare abstract class Framework {
|
|
2889
|
-
#private;
|
|
2890
|
-
readonly id: FrameworkInfo["id"];
|
|
2891
|
-
readonly name: FrameworkInfo["name"];
|
|
2892
|
-
get frameworkVersion(): string;
|
|
2893
|
-
constructor(frameworkInfo: Pick<FrameworkInfo, "id" | "name">);
|
|
2894
|
-
isConfigured(_projectPath: string): boolean;
|
|
2895
|
-
abstract configure(options: ConfigurationOptions): Promise<ConfigurationResults> | ConfigurationResults;
|
|
2896
|
-
configurationDescription?: string;
|
|
2897
|
-
/**
|
|
2898
|
-
* Validates the installed framework version against the supported range and
|
|
2899
|
-
* stores it for later access via the `frameworkVersion` getter.
|
|
2900
|
-
* Warns via `logger` if the version exceeds `maximumKnownMajorVersion`.
|
|
2901
|
-
*
|
|
2902
|
-
* @param projectPath - Path to the project root used to resolve the installed version.
|
|
2903
|
-
* @param frameworkPackageInfo - Package metadata including name and version bounds.
|
|
2904
|
-
* @throws {AssertionError} If the installed version cannot be determined.
|
|
2905
|
-
* @throws {AutoConfigFrameworkConfigurationError} If the version is below `minimumVersion`.
|
|
2906
|
-
*/
|
|
2907
|
-
validateFrameworkVersion(projectPath: string, frameworkPackageInfo: AutoConfigFrameworkPackageInfo): void;
|
|
2908
|
-
}
|
|
2909
|
-
type ConfigurationOptions = {
|
|
2910
|
-
outputDir: string;
|
|
2911
|
-
projectPath: string;
|
|
2912
|
-
workerName: string;
|
|
2913
|
-
dryRun: boolean;
|
|
2914
|
-
packageManager: PackageManager;
|
|
2915
|
-
isWorkspaceRoot: boolean;
|
|
2916
|
-
};
|
|
2917
|
-
type PackageJsonScriptsOverrides = {
|
|
2918
|
-
preview?: string;
|
|
2919
|
-
deploy?: string;
|
|
2920
|
-
typegen?: string;
|
|
2921
|
-
};
|
|
2922
|
-
type ConfigurationResults = {
|
|
2923
|
-
/** The wrangler configuration that the framework's `configure()` hook should generate. `null` if autoconfig should not create the wrangler file (in case an external tool already does that) */
|
|
2924
|
-
wranglerConfig: RawConfig$1 | null;
|
|
2925
|
-
packageJsonScriptsOverrides?: PackageJsonScriptsOverrides;
|
|
2926
|
-
buildCommandOverride?: string;
|
|
2927
|
-
deployCommandOverride?: string;
|
|
2928
|
-
versionCommandOverride?: string;
|
|
2929
|
-
};
|
|
2930
|
-
|
|
2931
|
-
type AutoConfigDetailsBase = {
|
|
2932
|
-
/** The name of the worker */
|
|
2933
|
-
workerName: string;
|
|
2934
|
-
/** The path to the project (defaults to cwd) */
|
|
2935
|
-
projectPath: string;
|
|
2936
|
-
/** The content of the project's package.json file (if any) */
|
|
2937
|
-
packageJson?: PackageJSON;
|
|
2938
|
-
/** Whether the project is already configured (no autoconfig required) */
|
|
2939
|
-
configured: boolean;
|
|
2940
|
-
/** Details about the detected framework. It can be a JS framework or 'Static' if no actual JS framework is used. */
|
|
2941
|
-
framework: Framework;
|
|
2942
|
-
/** The build command used to build the project (if any) */
|
|
2943
|
-
buildCommand?: string;
|
|
2944
|
-
/** The output directory (if no framework is used, points to the raw asset files) */
|
|
2945
|
-
outputDir: string;
|
|
2946
|
-
/** The detected package manager for the project */
|
|
2947
|
-
packageManager: PackageManager;
|
|
2948
|
-
/** Whether the current path is at the root of a workspace */
|
|
2949
|
-
isWorkspaceRoot?: boolean;
|
|
2950
|
-
};
|
|
2951
|
-
type AutoConfigDetailsForConfiguredProject = Optional<AutoConfigDetailsBase, "framework" | "outputDir"> & {
|
|
2952
|
-
configured: true;
|
|
2953
|
-
};
|
|
2954
|
-
type AutoConfigDetailsForNonConfiguredProject = AutoConfigDetailsBase & {
|
|
2955
|
-
configured: false;
|
|
2956
|
-
};
|
|
2957
|
-
type AutoConfigDetails = AutoConfigDetailsForConfiguredProject | AutoConfigDetailsForNonConfiguredProject;
|
|
2958
|
-
type AutoConfigOptions = {
|
|
2959
|
-
/** Whether to run autoconfig without actually applying any filesystem modification (default: false) */
|
|
2960
|
-
dryRun?: boolean;
|
|
2961
|
-
/**
|
|
2962
|
-
* Whether the build command should be run (default: true)
|
|
2963
|
-
*
|
|
2964
|
-
* Note: When `dryRun` is `true` the build command is never run.
|
|
2965
|
-
*/
|
|
2966
|
-
runBuild?: boolean;
|
|
2967
|
-
/**
|
|
2968
|
-
* Whether the confirmation prompts should be skipped (default: false)
|
|
2969
|
-
*
|
|
2970
|
-
* Note: When `dryRun` is `true` the the confirmation prompts are always skipped.
|
|
2971
|
-
*/
|
|
2972
|
-
skipConfirmations?: boolean;
|
|
2973
|
-
/**
|
|
2974
|
-
* Whether to install Wrangler during autoconfig
|
|
2975
|
-
*/
|
|
2976
|
-
enableWranglerInstallation?: boolean;
|
|
2977
|
-
};
|
|
2978
|
-
type AutoConfigSummary = {
|
|
2979
|
-
scripts: Record<string, string>;
|
|
2980
|
-
wranglerInstall: boolean;
|
|
2981
|
-
wranglerConfig?: RawConfig$1;
|
|
2982
|
-
frameworkConfiguration?: string;
|
|
2983
|
-
outputDir: string;
|
|
2984
|
-
frameworkId?: string;
|
|
2985
|
-
buildCommand?: string;
|
|
2986
|
-
deployCommand?: string;
|
|
2987
|
-
versionCommand?: string;
|
|
2988
|
-
};
|
|
2989
|
-
|
|
2990
|
-
/**
|
|
2991
|
-
* Derives a valid worker name from a project directory.
|
|
2992
|
-
*
|
|
2993
|
-
* The name is determined by (in order of precedence):
|
|
2994
|
-
* 1. The WRANGLER_CI_OVERRIDE_NAME environment variable (for CI environments)
|
|
2995
|
-
* 2. The `name` field from package.json in the project directory
|
|
2996
|
-
* 3. The directory basename
|
|
2997
|
-
*
|
|
2998
|
-
* The resulting name is sanitized to be a valid worker name.
|
|
2999
|
-
*
|
|
3000
|
-
* @param projectPath The path to the project directory
|
|
3001
|
-
* @returns A valid worker name
|
|
3002
|
-
*/
|
|
3003
|
-
declare function getWorkerNameFromProject(projectPath: string): string;
|
|
3004
|
-
declare function getDetailsForAutoConfig({ projectPath, wranglerConfig, }?: {
|
|
3005
|
-
projectPath?: string;
|
|
3006
|
-
wranglerConfig?: Config$1;
|
|
3007
|
-
}): Promise<AutoConfigDetails>;
|
|
3008
|
-
|
|
3009
2851
|
/**
|
|
3010
2852
|
* @deprecated Use today's date as the compatibility date instead.
|
|
3011
2853
|
*/
|
|
@@ -3266,8 +3108,6 @@ declare function runCfWranglerDev(options: StartDevOptions): Promise<number>;
|
|
|
3266
3108
|
*/
|
|
3267
3109
|
declare function splitSqlQuery(sql: string): string[];
|
|
3268
3110
|
|
|
3269
|
-
declare function runAutoConfig(autoConfigDetails: AutoConfigDetails, autoConfigOptions?: AutoConfigOptions): Promise<AutoConfigSummary>;
|
|
3270
|
-
|
|
3271
3111
|
/**
|
|
3272
3112
|
* The implementation for fetching a kv value from the cloudflare API.
|
|
3273
3113
|
* We special-case this one call, because it's the only API call that
|
|
@@ -3725,4 +3565,4 @@ interface Unstable_ASSETSBindingsOptions {
|
|
|
3725
3565
|
}
|
|
3726
3566
|
declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request) => Promise<Response$1>;
|
|
3727
3567
|
|
|
3728
|
-
export { ArgParseError, type Experimental_GenerateTypesOptions, type Experimental_GenerateTypesResult, type GetPlatformProxyOptions, type PlatformProxy, type RemoteProxySession, type SourcelessWorkerOptions, type StartRemoteProxySessionOptions, type TestHarness, type TestHarnessOptions, 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, type WorkerHandle, createTestHarness,
|
|
3568
|
+
export { ArgParseError, type Experimental_GenerateTypesOptions, type Experimental_GenerateTypesResult, type GetPlatformProxyOptions, type PlatformProxy, type RemoteProxySession, type SourcelessWorkerOptions, type StartRemoteProxySessionOptions, type TestHarness, type TestHarnessOptions, 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, type WorkerHandle, createTestHarness, generateTypes as experimental_generateTypes, experimental_getWranglerCommands, getPlatformProxy, maybeStartOrUpdateRemoteProxySession, parseArgs as parseCfWranglerArgs, parseBuildArgs as parseCfWranglerBuildArgs, runCfWranglerBuild, runCfWranglerDev, startRemoteProxySession, DevEnv as unstable_DevEnv, convertConfigBindingsToStartWorkerBindings as unstable_convertConfigBindingsToStartWorkerBindings, unstable_dev, unstable_generateASSETSBinding, unstable_getDevCompatibilityDate, getDurableObjectClassNameToUseSQLiteMap as unstable_getDurableObjectClassNameToUseSQLiteMap, unstable_getMiniflareWorkerOptions, getVarsForDev as unstable_getVarsForDev, unstable_pages, readConfig as unstable_readConfig, resolveNamedTunnel as unstable_resolveNamedTunnel, splitSqlQuery as unstable_splitSqlQuery, startWorker as unstable_startWorker };
|