wrangler 3.114.13 → 3.114.15
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 +3 -15
- package/package.json +5 -5
- package/wrangler-dist/cli.d.ts +64 -3
- package/wrangler-dist/cli.js +1117 -1126
package/config-schema.json
CHANGED
|
@@ -981,12 +981,8 @@
|
|
|
981
981
|
"description": "Optionally, the entrypoint (named export) of the service to bind to.",
|
|
982
982
|
"type": "string"
|
|
983
983
|
},
|
|
984
|
-
"environment": {
|
|
985
|
-
"description": "The environment of the service (e.g. production, staging, etc).",
|
|
986
|
-
"type": "string"
|
|
987
|
-
},
|
|
988
984
|
"service": {
|
|
989
|
-
"description": "The name of the service.",
|
|
985
|
+
"description": "The name of the service. To bind to a worker in a specific environment, you should use the format `<worker_name>-<environment_name>`.",
|
|
990
986
|
"type": "string"
|
|
991
987
|
}
|
|
992
988
|
},
|
|
@@ -2029,12 +2025,8 @@
|
|
|
2029
2025
|
"description": "Optionally, the entrypoint (named export) of the service to bind to.",
|
|
2030
2026
|
"type": "string"
|
|
2031
2027
|
},
|
|
2032
|
-
"environment": {
|
|
2033
|
-
"description": "The environment of the service (e.g. production, staging, etc).",
|
|
2034
|
-
"type": "string"
|
|
2035
|
-
},
|
|
2036
2028
|
"service": {
|
|
2037
|
-
"description": "The name of the service.",
|
|
2029
|
+
"description": "The name of the service. To bind to a worker in a specific environment, you should use the format `<worker_name>-<environment_name>`.",
|
|
2038
2030
|
"type": "string"
|
|
2039
2031
|
}
|
|
2040
2032
|
},
|
|
@@ -3013,12 +3005,8 @@
|
|
|
3013
3005
|
"description": "Optionally, the entrypoint (named export) of the service to bind to.",
|
|
3014
3006
|
"type": "string"
|
|
3015
3007
|
},
|
|
3016
|
-
"environment": {
|
|
3017
|
-
"description": "The environment of the service (e.g. production, staging, etc).",
|
|
3018
|
-
"type": "string"
|
|
3019
|
-
},
|
|
3020
3008
|
"service": {
|
|
3021
|
-
"description": "The name of the service.",
|
|
3009
|
+
"description": "The name of the service. To bind to a worker in a specific environment, you should use the format `<worker_name>-<environment_name>`.",
|
|
3022
3010
|
"type": "string"
|
|
3023
3011
|
}
|
|
3024
3012
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "3.114.
|
|
3
|
+
"version": "3.114.15",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"unenv": "2.0.0-rc.14",
|
|
60
60
|
"workerd": "1.20250718.0",
|
|
61
61
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
|
62
|
-
"miniflare": "3.20250718.
|
|
62
|
+
"miniflare": "3.20250718.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
@@ -137,11 +137,11 @@
|
|
|
137
137
|
"xdg-app-paths": "^8.3.0",
|
|
138
138
|
"xxhash-wasm": "^1.0.1",
|
|
139
139
|
"yargs": "^17.7.2",
|
|
140
|
+
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
140
141
|
"@cloudflare/cli": "1.1.1",
|
|
141
|
-
"@cloudflare/pages-shared": "0.13.
|
|
142
|
+
"@cloudflare/pages-shared": "0.13.21",
|
|
142
143
|
"@cloudflare/workers-shared": "0.15.1",
|
|
143
|
-
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
144
|
-
"@cloudflare/eslint-config-worker": "1.1.0"
|
|
144
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
145
145
|
},
|
|
146
146
|
"peerDependencies": {
|
|
147
147
|
"@cloudflare/workers-types": "^4.20250408.0"
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -2255,9 +2255,18 @@ declare interface EnvironmentNonInheritable {
|
|
|
2255
2255
|
services: {
|
|
2256
2256
|
/** The binding name used to refer to the bound service. */
|
|
2257
2257
|
binding: string;
|
|
2258
|
-
/**
|
|
2258
|
+
/**
|
|
2259
|
+
* The name of the service.
|
|
2260
|
+
* To bind to a worker in a specific environment,
|
|
2261
|
+
* you should use the format `<worker_name>-<environment_name>`.
|
|
2262
|
+
*/
|
|
2259
2263
|
service: string;
|
|
2260
|
-
/**
|
|
2264
|
+
/**
|
|
2265
|
+
* @hidden
|
|
2266
|
+
* @deprecated you should use `service: <worker_name>-<environment_name>` instead.
|
|
2267
|
+
* This refers to the deprecated concept of 'service environments'.
|
|
2268
|
+
* The environment of the service (e.g. production, staging, etc).
|
|
2269
|
+
*/
|
|
2261
2270
|
environment?: string;
|
|
2262
2271
|
/** Optionally, the entrypoint (named export) of the service to bind to. */
|
|
2263
2272
|
entrypoint?: string;
|
|
@@ -2672,6 +2681,11 @@ declare type File_2<Contents = string, Path = string> = {
|
|
|
2672
2681
|
path?: Path;
|
|
2673
2682
|
};
|
|
2674
2683
|
|
|
2684
|
+
declare type File_3 = {
|
|
2685
|
+
file?: string;
|
|
2686
|
+
fileText?: string;
|
|
2687
|
+
};
|
|
2688
|
+
|
|
2675
2689
|
declare interface FilePropertyBag extends BlobPropertyBag {
|
|
2676
2690
|
/**
|
|
2677
2691
|
* The last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current date.
|
|
@@ -2938,6 +2952,14 @@ declare interface Interceptable extends Dispatcher {
|
|
|
2938
2952
|
intercept(options: MockInterceptor.Options): MockInterceptor;
|
|
2939
2953
|
}
|
|
2940
2954
|
|
|
2955
|
+
declare type Location = File_3 & {
|
|
2956
|
+
line: number;
|
|
2957
|
+
column: number;
|
|
2958
|
+
length?: number;
|
|
2959
|
+
lineText?: string;
|
|
2960
|
+
suggestion?: string;
|
|
2961
|
+
};
|
|
2962
|
+
|
|
2941
2963
|
declare class Logger {
|
|
2942
2964
|
#private;
|
|
2943
2965
|
constructor();
|
|
@@ -2952,7 +2974,8 @@ declare class Logger {
|
|
|
2952
2974
|
info: (...args: unknown[]) => void;
|
|
2953
2975
|
log: (...args: unknown[]) => void;
|
|
2954
2976
|
warn: (...args: unknown[]) => void;
|
|
2955
|
-
error
|
|
2977
|
+
error(...args: unknown[]): void;
|
|
2978
|
+
error(error: ParseError): void;
|
|
2956
2979
|
table<Keys extends string>(data: TableRow<Keys>[]): void;
|
|
2957
2980
|
console<M extends Exclude<keyof Console, "Console">>(method: M, ...args: Parameters<Console[M]>): void;
|
|
2958
2981
|
get once(): {
|
|
@@ -2984,6 +3007,13 @@ declare type LogLevel = "debug" | "info" | "log" | "warn" | "error" | "none";
|
|
|
2984
3007
|
|
|
2985
3008
|
declare type MaybePromise<T> = T | Promise<T>;
|
|
2986
3009
|
|
|
3010
|
+
declare type Message = {
|
|
3011
|
+
text: string;
|
|
3012
|
+
location?: Location;
|
|
3013
|
+
notes?: Message[];
|
|
3014
|
+
kind?: "warning" | "error";
|
|
3015
|
+
} & TelemetryMessage;
|
|
3016
|
+
|
|
2987
3017
|
declare interface MessageEvent_2<T = any> extends Event_2 {
|
|
2988
3018
|
readonly data: T
|
|
2989
3019
|
readonly lastEventId: string
|
|
@@ -3286,6 +3316,17 @@ declare interface PagesDeployOptions {
|
|
|
3286
3316
|
|
|
3287
3317
|
declare type _Params<ParamsArray extends [unknown?]> = ParamsArray extends [infer P] ? P : undefined;
|
|
3288
3318
|
|
|
3319
|
+
/**
|
|
3320
|
+
* An error that's thrown when something fails to parse.
|
|
3321
|
+
*/
|
|
3322
|
+
declare class ParseError extends UserError implements Message {
|
|
3323
|
+
readonly text: string;
|
|
3324
|
+
readonly notes: Message[];
|
|
3325
|
+
readonly location?: Location;
|
|
3326
|
+
readonly kind: "warning" | "error";
|
|
3327
|
+
constructor({ text, notes, location, kind, telemetryMessage }: Message);
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3289
3330
|
/**
|
|
3290
3331
|
* Parse a string to a {@link MIMEType} object. Returns `failure` if the string
|
|
3291
3332
|
* couldn't be parsed.
|
|
@@ -26388,6 +26429,15 @@ declare type TailConsumer = {
|
|
|
26388
26429
|
environment?: string;
|
|
26389
26430
|
};
|
|
26390
26431
|
|
|
26432
|
+
/**
|
|
26433
|
+
* This is used to provide telemetry with a sanitised error
|
|
26434
|
+
* message that could not have any user-identifying information.
|
|
26435
|
+
* Set to `true` to duplicate `message`.
|
|
26436
|
+
* */
|
|
26437
|
+
declare type TelemetryMessage = {
|
|
26438
|
+
telemetryMessage?: string | true;
|
|
26439
|
+
};
|
|
26440
|
+
|
|
26391
26441
|
declare type Trigger = {
|
|
26392
26442
|
type: "workers.dev";
|
|
26393
26443
|
} | {
|
|
@@ -26726,6 +26776,17 @@ declare type UrlOriginAndPathnameParts = Pick<URL, "protocol" | "hostname" | "po
|
|
|
26726
26776
|
|
|
26727
26777
|
declare type UrlOriginParts = Pick<URL, "protocol" | "hostname" | "port">;
|
|
26728
26778
|
|
|
26779
|
+
/**
|
|
26780
|
+
* Base class for errors where the user has done something wrong. These are not
|
|
26781
|
+
* reported to Sentry. API errors are intentionally *not* `UserError`s, and are
|
|
26782
|
+
* reported to Sentry. This will help us understand which API errors need better
|
|
26783
|
+
* messaging.
|
|
26784
|
+
*/
|
|
26785
|
+
declare class UserError extends Error {
|
|
26786
|
+
telemetryMessage: string | undefined;
|
|
26787
|
+
constructor(message?: string | undefined, options?: (ErrorOptions & TelemetryMessage) | undefined);
|
|
26788
|
+
}
|
|
26789
|
+
|
|
26729
26790
|
declare interface UserLimits {
|
|
26730
26791
|
/** Maximum allowed CPU time for a Worker's invocation in milliseconds */
|
|
26731
26792
|
cpu_ms: number;
|