wrangler 4.125.0 → 4.126.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 +29 -5
- package/package.json +16 -16
- package/wrangler-dist/cli.d.ts +13 -23
- package/wrangler-dist/cli.js +2780 -2245
- package/wrangler-dist/experimental-config.d.mts +85 -65
- package/wrangler-dist/experimental-config.d.mts.map +1 -1
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -4100,16 +4100,16 @@
|
|
|
4100
4100
|
"additionalProperties": false,
|
|
4101
4101
|
"properties": {
|
|
4102
4102
|
"logpush": {
|
|
4103
|
-
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-
|
|
4103
|
+
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-564522004818536"
|
|
4104
4104
|
},
|
|
4105
4105
|
"observability": {
|
|
4106
|
-
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-
|
|
4106
|
+
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-564522004818536"
|
|
4107
4107
|
},
|
|
4108
4108
|
"limits": {
|
|
4109
|
-
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-
|
|
4109
|
+
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-564522004818536"
|
|
4110
4110
|
},
|
|
4111
4111
|
"cache": {
|
|
4112
|
-
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-
|
|
4112
|
+
"$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-564522004818536"
|
|
4113
4113
|
},
|
|
4114
4114
|
"define": {
|
|
4115
4115
|
"type": "object",
|
|
@@ -5413,7 +5413,7 @@
|
|
|
5413
5413
|
"description": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments. Previews are branches of your Worker's main instance used to test features during feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`",
|
|
5414
5414
|
"markdownDescription": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments.\nPreviews are branches of your Worker's main instance used to test features\nduring feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`"
|
|
5415
5415
|
},
|
|
5416
|
-
"interface-769040647-11843-22205-769040647-0-
|
|
5416
|
+
"interface-769040647-11843-22205-769040647-0-564522004818536": {
|
|
5417
5417
|
"type": "object",
|
|
5418
5418
|
"properties": {
|
|
5419
5419
|
"name": {
|
|
@@ -5914,6 +5914,30 @@
|
|
|
5914
5914
|
],
|
|
5915
5915
|
"description": "Optional cron schedule(s) for automatically triggering workflow instances",
|
|
5916
5916
|
"markdownDescription": "Optional cron schedule(s) for automatically triggering workflow instances"
|
|
5917
|
+
},
|
|
5918
|
+
"default_retention": {
|
|
5919
|
+
"type": "object",
|
|
5920
|
+
"properties": {
|
|
5921
|
+
"success_retention": {
|
|
5922
|
+
"type": [
|
|
5923
|
+
"number",
|
|
5924
|
+
"string"
|
|
5925
|
+
],
|
|
5926
|
+
"description": "How long to retain instances that completed successfully or were terminated",
|
|
5927
|
+
"markdownDescription": "How long to retain instances that completed successfully or were terminated"
|
|
5928
|
+
},
|
|
5929
|
+
"error_retention": {
|
|
5930
|
+
"type": [
|
|
5931
|
+
"number",
|
|
5932
|
+
"string"
|
|
5933
|
+
],
|
|
5934
|
+
"description": "How long to retain errored instances",
|
|
5935
|
+
"markdownDescription": "How long to retain errored instances"
|
|
5936
|
+
}
|
|
5937
|
+
},
|
|
5938
|
+
"additionalProperties": false,
|
|
5939
|
+
"description": "Optional default retention for instances of this Workflow, applied when an instance does not set its own retention. Accepts milliseconds or a duration string such as `\"3 days\"`, and is validated by the Workflows API at deploy time.",
|
|
5940
|
+
"markdownDescription": "Optional default retention for instances of this Workflow, applied when an instance does not\nset its own retention. Accepts milliseconds or a duration string such as `\"3 days\"`, and is\nvalidated by the Workflows API at deploy time."
|
|
5917
5941
|
}
|
|
5918
5942
|
},
|
|
5919
5943
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.126.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"esbuild": "0.28.1",
|
|
67
67
|
"path-to-regexp": "6.3.0",
|
|
68
68
|
"unenv": "2.0.0-rc.24",
|
|
69
|
-
"workerd": "1.
|
|
69
|
+
"workerd": "1.20260825.1",
|
|
70
70
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
71
|
+
"@cloudflare/unenv-preset": "2.16.1",
|
|
72
|
+
"miniflare": "5.20260825.0-alpha"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
76
76
|
"@aws-sdk/s3-request-presigner": "^3.721.0",
|
|
77
77
|
"@bomb.sh/tab": "^0.0.12",
|
|
78
78
|
"@cloudflare/types": "6.18.4",
|
|
79
|
-
"@cloudflare/workers-types": "^5.
|
|
79
|
+
"@cloudflare/workers-types": "^5.20260825.1",
|
|
80
80
|
"@cspotcode/source-map-support": "0.8.1",
|
|
81
81
|
"@netlify/build-info": "^10.5.1",
|
|
82
82
|
"@sentry/node": "^7.86.0",
|
|
@@ -156,25 +156,25 @@
|
|
|
156
156
|
"yaml": "^2.8.1",
|
|
157
157
|
"yargs": "^17.7.2",
|
|
158
158
|
"zod": "4.4.3",
|
|
159
|
-
"@cloudflare/autoconfig": "0.
|
|
160
|
-
"@cloudflare/build-output-utils": "0.
|
|
159
|
+
"@cloudflare/autoconfig": "0.3.0",
|
|
160
|
+
"@cloudflare/build-output-utils": "0.2.0",
|
|
161
|
+
"@cloudflare/config": "0.8.0",
|
|
162
|
+
"@cloudflare/deploy-helpers": "0.9.0",
|
|
161
163
|
"@cloudflare/cli-shared-helpers": "0.1.25",
|
|
162
164
|
"@cloudflare/containers-shared": "0.16.0",
|
|
163
|
-
"@cloudflare/
|
|
164
|
-
"@cloudflare/
|
|
165
|
+
"@cloudflare/remote-bindings": "0.0.15",
|
|
166
|
+
"@cloudflare/pages-shared": "^0.13.172",
|
|
165
167
|
"@cloudflare/pages-functions": "0.1.0",
|
|
166
|
-
"@cloudflare/
|
|
167
|
-
"@cloudflare/
|
|
168
|
-
"@cloudflare/runtime-types": "0.0.16",
|
|
168
|
+
"@cloudflare/runtime-types": "0.0.17",
|
|
169
|
+
"@cloudflare/workers-auth": "0.6.6",
|
|
169
170
|
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
170
|
-
"@cloudflare/workers-auth": "0.6.5",
|
|
171
171
|
"@cloudflare/workers-shared": "0.19.9",
|
|
172
172
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
173
|
-
"@cloudflare/
|
|
174
|
-
"@cloudflare/
|
|
173
|
+
"@cloudflare/workflows-shared": "0.13.0",
|
|
174
|
+
"@cloudflare/workers-utils": "0.34.0"
|
|
175
175
|
},
|
|
176
176
|
"peerDependencies": {
|
|
177
|
-
"@cloudflare/workers-types": "^5.
|
|
177
|
+
"@cloudflare/workers-types": "^5.20260825.1"
|
|
178
178
|
},
|
|
179
179
|
"peerDependenciesMeta": {
|
|
180
180
|
"@cloudflare/workers-types": {
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, Config as Config$1, StartDevWorkerInput, NodeJSCompatMode, CfScriptFormat, AsyncHook, CfAccount, AssetsOptions as AssetsOptions$1, Binding, ConfigBindingFieldName, RawConfig as RawConfig$1, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, ParseError, LoggerLevel, ComplianceConfig, ApiCredentials, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
2
2
|
export { Binding, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig } from '@cloudflare/workers-utils';
|
|
3
|
-
import { Json as Json$1, WorkerdStructuredLog, DispatchFetch, Miniflare, WorkerRegistry, V4MiniflareOptions, Mutex, Response as Response$1, DurableObjectStorageOptions, DurableObjectStorageHandle, V4WorkerOptions, V4ModuleRule, RemoteProxyConnectionString, Request } from 'miniflare';
|
|
3
|
+
import { Json as Json$1, WorkerdStructuredLog, DispatchFetch, Miniflare, WorkerRegistry, V4MiniflareOptions, Mutex, Response as Response$1, EmailHandlerResult, DurableObjectStorageOptions, DurableObjectStorageHandle, V4WorkerOptions, V4ModuleRule, RemoteProxyConnectionString, Request } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
5
5
|
import { RequestInfo, RequestInit, Response, FormData } from 'undici';
|
|
6
6
|
import { Metafile } from 'esbuild';
|
|
@@ -826,28 +826,7 @@ type FetcherEmailOptions = {
|
|
|
826
826
|
to: string;
|
|
827
827
|
raw: string | ReadableStream<Uint8Array>;
|
|
828
828
|
};
|
|
829
|
-
type FetcherEmailResult =
|
|
830
|
-
outcome: "ok" | "exception";
|
|
831
|
-
rejectReason?: string;
|
|
832
|
-
forwards: Array<{
|
|
833
|
-
messageId: string;
|
|
834
|
-
recipient: string;
|
|
835
|
-
headers: [string, string][];
|
|
836
|
-
}>;
|
|
837
|
-
replies: Array<{
|
|
838
|
-
messageId: string;
|
|
839
|
-
sender: string;
|
|
840
|
-
raw: string;
|
|
841
|
-
}>;
|
|
842
|
-
events: Array<{
|
|
843
|
-
type: "forward" | "reply";
|
|
844
|
-
timestamp: string;
|
|
845
|
-
messageId: string;
|
|
846
|
-
} | {
|
|
847
|
-
type: "reject";
|
|
848
|
-
timestamp: string;
|
|
849
|
-
}>;
|
|
850
|
-
};
|
|
829
|
+
type FetcherEmailResult = EmailHandlerResult;
|
|
851
830
|
type WorkerDefaultExport = (new (...args: any[]) => Rpc.WorkerEntrypointBranded) | Rpc.WorkerEntrypointBranded | AnyExportedHandler;
|
|
852
831
|
type WorkerModule = {
|
|
853
832
|
default: WorkerDefaultExport;
|
|
@@ -1993,6 +1972,17 @@ type WorkflowBinding = {
|
|
|
1993
1972
|
};
|
|
1994
1973
|
/** Optional cron schedule(s) for automatically triggering workflow instances */
|
|
1995
1974
|
schedules?: string | string[];
|
|
1975
|
+
/**
|
|
1976
|
+
* Optional default retention for instances of this Workflow, applied when an instance does not
|
|
1977
|
+
* set its own retention. Accepts milliseconds or a duration string such as `"3 days"`, and is
|
|
1978
|
+
* validated by the Workflows API at deploy time.
|
|
1979
|
+
*/
|
|
1980
|
+
default_retention?: {
|
|
1981
|
+
/** How long to retain instances that completed successfully or were terminated */
|
|
1982
|
+
success_retention?: number | string;
|
|
1983
|
+
/** How long to retain errored instances */
|
|
1984
|
+
error_retention?: number | string;
|
|
1985
|
+
};
|
|
1996
1986
|
};
|
|
1997
1987
|
/**
|
|
1998
1988
|
* The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
|