wrangler 4.125.0 → 4.127.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.
@@ -4100,16 +4100,16 @@
4100
4100
  "additionalProperties": false,
4101
4101
  "properties": {
4102
4102
  "logpush": {
4103
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-559642004818536"
4103
+ "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-566232004818536"
4104
4104
  },
4105
4105
  "observability": {
4106
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-559642004818536"
4106
+ "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-566232004818536"
4107
4107
  },
4108
4108
  "limits": {
4109
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-559642004818536"
4109
+ "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-566232004818536"
4110
4110
  },
4111
4111
  "cache": {
4112
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-559642004818536"
4112
+ "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-566232004818536"
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-559642004818536": {
5416
+ "interface-769040647-11843-22205-769040647-0-566232004818536": {
5417
5417
  "type": "object",
5418
5418
  "properties": {
5419
5419
  "name": {
@@ -5900,6 +5900,19 @@
5900
5900
  "description": "Optional limits for the Workflow",
5901
5901
  "markdownDescription": "Optional limits for the Workflow"
5902
5902
  },
5903
+ "concurrency": {
5904
+ "type": "object",
5905
+ "properties": {
5906
+ "limit": {
5907
+ "type": "number",
5908
+ "description": "Maximum number of Workflow instances that can run concurrently",
5909
+ "markdownDescription": "Maximum number of Workflow instances that can run concurrently"
5910
+ }
5911
+ },
5912
+ "additionalProperties": false,
5913
+ "description": "Optional concurrency configuration for the Workflow",
5914
+ "markdownDescription": "Optional concurrency configuration for the Workflow"
5915
+ },
5903
5916
  "schedules": {
5904
5917
  "anyOf": [
5905
5918
  {
@@ -5914,6 +5927,30 @@
5914
5927
  ],
5915
5928
  "description": "Optional cron schedule(s) for automatically triggering workflow instances",
5916
5929
  "markdownDescription": "Optional cron schedule(s) for automatically triggering workflow instances"
5930
+ },
5931
+ "default_retention": {
5932
+ "type": "object",
5933
+ "properties": {
5934
+ "success_retention": {
5935
+ "type": [
5936
+ "number",
5937
+ "string"
5938
+ ],
5939
+ "description": "How long to retain instances that completed successfully or were terminated",
5940
+ "markdownDescription": "How long to retain instances that completed successfully or were terminated"
5941
+ },
5942
+ "error_retention": {
5943
+ "type": [
5944
+ "number",
5945
+ "string"
5946
+ ],
5947
+ "description": "How long to retain errored instances",
5948
+ "markdownDescription": "How long to retain errored instances"
5949
+ }
5950
+ },
5951
+ "additionalProperties": false,
5952
+ "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.",
5953
+ "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
5954
  }
5918
5955
  },
5919
5956
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "4.125.0",
3
+ "version": "4.127.0",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "assembly",
@@ -66,9 +66,9 @@
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.20260820.1",
69
+ "workerd": "1.20260826.1",
70
70
  "@cloudflare/kv-asset-handler": "0.5.0",
71
- "miniflare": "5.20260820.0-alpha",
71
+ "miniflare": "5.20260826.0-alpha",
72
72
  "@cloudflare/unenv-preset": "2.16.1"
73
73
  },
74
74
  "devDependencies": {
@@ -76,7 +76,7 @@
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.20260820.1",
79
+ "@cloudflare/workers-types": "^5.20260826.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.2.9",
160
- "@cloudflare/build-output-utils": "0.1.3",
159
+ "@cloudflare/autoconfig": "0.3.0",
160
+ "@cloudflare/build-output-utils": "0.3.0",
161
161
  "@cloudflare/cli-shared-helpers": "0.1.25",
162
+ "@cloudflare/config": "0.8.0",
162
163
  "@cloudflare/containers-shared": "0.16.0",
163
- "@cloudflare/config": "0.7.0",
164
- "@cloudflare/deploy-helpers": "0.8.0",
164
+ "@cloudflare/deploy-helpers": "0.9.1",
165
165
  "@cloudflare/pages-functions": "0.1.0",
166
- "@cloudflare/pages-shared": "^0.13.171",
167
- "@cloudflare/remote-bindings": "0.0.14",
168
- "@cloudflare/runtime-types": "0.0.16",
166
+ "@cloudflare/pages-shared": "^0.13.173",
167
+ "@cloudflare/runtime-types": "0.0.18",
168
+ "@cloudflare/remote-bindings": "0.0.16",
169
169
  "@cloudflare/shared-ast-primitives": "1.1.0",
170
- "@cloudflare/workers-auth": "0.6.5",
170
+ "@cloudflare/workers-auth": "0.6.6",
171
171
  "@cloudflare/workers-shared": "0.19.9",
172
172
  "@cloudflare/workers-tsconfig": "0.0.0",
173
173
  "@cloudflare/workers-utils": "0.34.0",
174
174
  "@cloudflare/workflows-shared": "0.13.0"
175
175
  },
176
176
  "peerDependencies": {
177
- "@cloudflare/workers-types": "^5.20260820.1"
177
+ "@cloudflare/workers-types": "^5.20260826.1"
178
178
  },
179
179
  "peerDependenciesMeta": {
180
180
  "@cloudflare/workers-types": {
@@ -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;
@@ -1991,8 +1970,24 @@ type WorkflowBinding = {
1991
1970
  /** Maximum number of steps a Workflow instance can execute */
1992
1971
  steps?: number;
1993
1972
  };
1973
+ /** Optional concurrency configuration for the Workflow */
1974
+ concurrency?: {
1975
+ /** Maximum number of Workflow instances that can run concurrently */
1976
+ limit?: number;
1977
+ };
1994
1978
  /** Optional cron schedule(s) for automatically triggering workflow instances */
1995
1979
  schedules?: string | string[];
1980
+ /**
1981
+ * Optional default retention for instances of this Workflow, applied when an instance does not
1982
+ * set its own retention. Accepts milliseconds or a duration string such as `"3 days"`, and is
1983
+ * validated by the Workflows API at deploy time.
1984
+ */
1985
+ default_retention?: {
1986
+ /** How long to retain instances that completed successfully or were terminated */
1987
+ success_retention?: number | string;
1988
+ /** How long to retain errored instances */
1989
+ error_retention?: number | string;
1990
+ };
1996
1991
  };
1997
1992
  /**
1998
1993
  * The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment