wrangler 4.114.0 → 4.116.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 +62 -5
- package/package.json +19 -16
- package/templates/pages-template-worker.ts +2 -0
- package/wrangler-dist/cli.d.ts +55 -0
- package/wrangler-dist/cli.js +61074 -16712
- package/wrangler-dist/experimental-config.d.mts.map +1 -1
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -678,6 +678,19 @@
|
|
|
678
678
|
"type": "boolean",
|
|
679
679
|
"description": "Whether the R2 bucket should be remote or not in local development",
|
|
680
680
|
"markdownDescription": "Whether the R2 bucket should be remote or not in local development"
|
|
681
|
+
},
|
|
682
|
+
"local_dev": {
|
|
683
|
+
"type": "object",
|
|
684
|
+
"properties": {
|
|
685
|
+
"experimental_s3_credentials": {
|
|
686
|
+
"$ref": "#/definitions/LocalS3Credentials",
|
|
687
|
+
"description": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible endpoint. When set, the bucket is served at `/cdn-cgi/local/r2/s3/<bucket-name>` during local development. Ignored when the bucket runs remotely.",
|
|
688
|
+
"markdownDescription": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible\nendpoint. When set, the bucket is served at\n`/cdn-cgi/local/r2/s3/<bucket-name>` during local development.\nIgnored when the bucket runs remotely."
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"additionalProperties": false,
|
|
692
|
+
"description": "Settings that only apply to local development",
|
|
693
|
+
"markdownDescription": "Settings that only apply to local development"
|
|
681
694
|
}
|
|
682
695
|
},
|
|
683
696
|
"required": [
|
|
@@ -2420,6 +2433,19 @@
|
|
|
2420
2433
|
"type": "boolean",
|
|
2421
2434
|
"description": "Whether the R2 bucket should be remote or not in local development",
|
|
2422
2435
|
"markdownDescription": "Whether the R2 bucket should be remote or not in local development"
|
|
2436
|
+
},
|
|
2437
|
+
"local_dev": {
|
|
2438
|
+
"type": "object",
|
|
2439
|
+
"properties": {
|
|
2440
|
+
"experimental_s3_credentials": {
|
|
2441
|
+
"$ref": "#/definitions/LocalS3Credentials",
|
|
2442
|
+
"description": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible endpoint. When set, the bucket is served at `/cdn-cgi/local/r2/s3/<bucket-name>` during local development. Ignored when the bucket runs remotely.",
|
|
2443
|
+
"markdownDescription": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible\nendpoint. When set, the bucket is served at\n`/cdn-cgi/local/r2/s3/<bucket-name>` during local development.\nIgnored when the bucket runs remotely."
|
|
2444
|
+
}
|
|
2445
|
+
},
|
|
2446
|
+
"additionalProperties": false,
|
|
2447
|
+
"description": "Settings that only apply to local development",
|
|
2448
|
+
"markdownDescription": "Settings that only apply to local development"
|
|
2423
2449
|
}
|
|
2424
2450
|
},
|
|
2425
2451
|
"required": [
|
|
@@ -3892,16 +3918,16 @@
|
|
|
3892
3918
|
"additionalProperties": false,
|
|
3893
3919
|
"properties": {
|
|
3894
3920
|
"logpush": {
|
|
3895
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3921
|
+
"$ref": "#/definitions/interface-769040647-10754-20876-769040647-0-532202004818536"
|
|
3896
3922
|
},
|
|
3897
3923
|
"observability": {
|
|
3898
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3924
|
+
"$ref": "#/definitions/interface-769040647-10754-20876-769040647-0-532202004818536"
|
|
3899
3925
|
},
|
|
3900
3926
|
"limits": {
|
|
3901
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3927
|
+
"$ref": "#/definitions/interface-769040647-10754-20876-769040647-0-532202004818536"
|
|
3902
3928
|
},
|
|
3903
3929
|
"cache": {
|
|
3904
|
-
"$ref": "#/definitions/interface-769040647-
|
|
3930
|
+
"$ref": "#/definitions/interface-769040647-10754-20876-769040647-0-532202004818536"
|
|
3905
3931
|
},
|
|
3906
3932
|
"define": {
|
|
3907
3933
|
"type": "object",
|
|
@@ -4204,6 +4230,19 @@
|
|
|
4204
4230
|
"type": "boolean",
|
|
4205
4231
|
"description": "Whether the R2 bucket should be remote or not in local development",
|
|
4206
4232
|
"markdownDescription": "Whether the R2 bucket should be remote or not in local development"
|
|
4233
|
+
},
|
|
4234
|
+
"local_dev": {
|
|
4235
|
+
"type": "object",
|
|
4236
|
+
"properties": {
|
|
4237
|
+
"experimental_s3_credentials": {
|
|
4238
|
+
"$ref": "#/definitions/LocalS3Credentials",
|
|
4239
|
+
"description": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible endpoint. When set, the bucket is served at `/cdn-cgi/local/r2/s3/<bucket-name>` during local development. Ignored when the bucket runs remotely.",
|
|
4240
|
+
"markdownDescription": "EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible\nendpoint. When set, the bucket is served at\n`/cdn-cgi/local/r2/s3/<bucket-name>` during local development.\nIgnored when the bucket runs remotely."
|
|
4241
|
+
}
|
|
4242
|
+
},
|
|
4243
|
+
"additionalProperties": false,
|
|
4244
|
+
"description": "Settings that only apply to local development",
|
|
4245
|
+
"markdownDescription": "Settings that only apply to local development"
|
|
4207
4246
|
}
|
|
4208
4247
|
},
|
|
4209
4248
|
"required": [
|
|
@@ -5160,7 +5199,7 @@
|
|
|
5160
5199
|
"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`",
|
|
5161
5200
|
"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`"
|
|
5162
5201
|
},
|
|
5163
|
-
"interface-769040647-
|
|
5202
|
+
"interface-769040647-10754-20876-769040647-0-532202004818536": {
|
|
5164
5203
|
"type": "object",
|
|
5165
5204
|
"properties": {
|
|
5166
5205
|
"name": {
|
|
@@ -5932,6 +5971,24 @@
|
|
|
5932
5971
|
"description": "Configuration for a container application",
|
|
5933
5972
|
"markdownDescription": "Configuration for a container application"
|
|
5934
5973
|
},
|
|
5974
|
+
"LocalS3Credentials": {
|
|
5975
|
+
"type": "object",
|
|
5976
|
+
"properties": {
|
|
5977
|
+
"accessKeyId": {
|
|
5978
|
+
"type": "string"
|
|
5979
|
+
},
|
|
5980
|
+
"secretAccessKey": {
|
|
5981
|
+
"type": "string"
|
|
5982
|
+
}
|
|
5983
|
+
},
|
|
5984
|
+
"required": [
|
|
5985
|
+
"accessKeyId",
|
|
5986
|
+
"secretAccessKey"
|
|
5987
|
+
],
|
|
5988
|
+
"additionalProperties": false,
|
|
5989
|
+
"description": "AWS SigV4 credentials for miniflare's local S3-compatible endpoint",
|
|
5990
|
+
"markdownDescription": "AWS SigV4 credentials for miniflare's local S3-compatible endpoint"
|
|
5991
|
+
},
|
|
5935
5992
|
"TailConsumer": {
|
|
5936
5993
|
"type": "object",
|
|
5937
5994
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.116.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -66,16 +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.
|
|
70
|
-
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
69
|
+
"workerd": "1.20260730.1",
|
|
71
70
|
"@cloudflare/unenv-preset": "2.16.1",
|
|
72
|
-
"miniflare": "4.
|
|
71
|
+
"miniflare": "4.20260730.0",
|
|
72
|
+
"@cloudflare/kv-asset-handler": "0.5.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
76
|
+
"@aws-sdk/s3-request-presigner": "^3.721.0",
|
|
76
77
|
"@bomb.sh/tab": "^0.0.12",
|
|
77
78
|
"@cloudflare/types": "6.18.4",
|
|
78
|
-
"@cloudflare/workers-types": "^5.
|
|
79
|
+
"@cloudflare/workers-types": "^5.20260730.1",
|
|
79
80
|
"@cspotcode/source-map-support": "0.8.1",
|
|
80
81
|
"@netlify/build-info": "^10.5.1",
|
|
81
82
|
"@sentry/node": "^7.86.0",
|
|
@@ -155,23 +156,25 @@
|
|
|
155
156
|
"yaml": "^2.8.1",
|
|
156
157
|
"yargs": "^17.7.2",
|
|
157
158
|
"zod": "4.4.3",
|
|
158
|
-
"@cloudflare/autoconfig": "0.2.
|
|
159
|
+
"@cloudflare/autoconfig": "0.2.2",
|
|
160
|
+
"@cloudflare/build-output-utils": "0.1.0",
|
|
161
|
+
"@cloudflare/cli-shared-helpers": "0.1.18",
|
|
159
162
|
"@cloudflare/codemod": "1.1.0",
|
|
160
|
-
"@cloudflare/
|
|
161
|
-
"@cloudflare/config": "0.3.0",
|
|
162
|
-
"@cloudflare/deploy-helpers": "0.6.1",
|
|
163
|
+
"@cloudflare/config": "0.4.0",
|
|
163
164
|
"@cloudflare/containers-shared": "0.16.0",
|
|
164
|
-
"@cloudflare/pages-
|
|
165
|
-
"@cloudflare/
|
|
166
|
-
"@cloudflare/remote-bindings": "0.0.
|
|
167
|
-
"@cloudflare/
|
|
165
|
+
"@cloudflare/pages-functions": "0.1.0",
|
|
166
|
+
"@cloudflare/deploy-helpers": "0.6.3",
|
|
167
|
+
"@cloudflare/remote-bindings": "0.0.4",
|
|
168
|
+
"@cloudflare/pages-shared": "^0.13.162",
|
|
169
|
+
"@cloudflare/runtime-types": "0.0.7",
|
|
170
|
+
"@cloudflare/workers-auth": "0.5.4",
|
|
168
171
|
"@cloudflare/workers-shared": "0.19.9",
|
|
169
|
-
"@cloudflare/workers-utils": "0.28.0",
|
|
170
172
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
171
|
-
"@cloudflare/
|
|
173
|
+
"@cloudflare/workers-utils": "0.30.0",
|
|
174
|
+
"@cloudflare/workflows-shared": "0.12.2"
|
|
172
175
|
},
|
|
173
176
|
"peerDependencies": {
|
|
174
|
-
"@cloudflare/workers-types": "^5.
|
|
177
|
+
"@cloudflare/workers-types": "^5.20260730.1"
|
|
175
178
|
},
|
|
176
179
|
"peerDependenciesMeta": {
|
|
177
180
|
"@cloudflare/workers-types": {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// This file is a copy of packages/pages-functions/src/templates/pages-template-worker.ts.
|
|
2
|
+
// Changes here should be reflected there and vice-versa.
|
|
1
3
|
import { match } from "path-to-regexp";
|
|
2
4
|
|
|
3
5
|
//note: this explicitly does not include the * character, as pages requires this
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -816,6 +816,33 @@ type DurableObjectIdentifier = {
|
|
|
816
816
|
id: string;
|
|
817
817
|
name?: never;
|
|
818
818
|
};
|
|
819
|
+
type FetcherEmailOptions = {
|
|
820
|
+
from: string;
|
|
821
|
+
to: string;
|
|
822
|
+
raw: string | ReadableStream<Uint8Array>;
|
|
823
|
+
};
|
|
824
|
+
type FetcherEmailResult = {
|
|
825
|
+
outcome: "ok" | "exception";
|
|
826
|
+
rejectReason?: string;
|
|
827
|
+
forwards: Array<{
|
|
828
|
+
messageId: string;
|
|
829
|
+
recipient: string;
|
|
830
|
+
headers: [string, string][];
|
|
831
|
+
}>;
|
|
832
|
+
replies: Array<{
|
|
833
|
+
messageId: string;
|
|
834
|
+
sender: string;
|
|
835
|
+
raw: string;
|
|
836
|
+
}>;
|
|
837
|
+
events: Array<{
|
|
838
|
+
type: "forward" | "reply";
|
|
839
|
+
timestamp: string;
|
|
840
|
+
messageId: string;
|
|
841
|
+
} | {
|
|
842
|
+
type: "reject";
|
|
843
|
+
timestamp: string;
|
|
844
|
+
}>;
|
|
845
|
+
};
|
|
819
846
|
type WorkerDefaultExport = (new (...args: any[]) => Rpc.WorkerEntrypointBranded) | Rpc.WorkerEntrypointBranded | AnyExportedHandler;
|
|
820
847
|
type WorkerModule = {
|
|
821
848
|
default: WorkerDefaultExport;
|
|
@@ -838,6 +865,19 @@ type WorkerHandle<Env = AnyEnv, Module extends WorkerModule = {
|
|
|
838
865
|
* ```
|
|
839
866
|
*/
|
|
840
867
|
fetch: DispatchFetch;
|
|
868
|
+
/**
|
|
869
|
+
* Dispatches an email event directly to this Worker.
|
|
870
|
+
*
|
|
871
|
+
* @example
|
|
872
|
+
* ```ts
|
|
873
|
+
* const result = await worker.email({
|
|
874
|
+
* from: "sender@example.com",
|
|
875
|
+
* to: "recipient@example.com",
|
|
876
|
+
* raw: "From: sender@example.com\\r\\n...",
|
|
877
|
+
* });
|
|
878
|
+
* ```
|
|
879
|
+
*/
|
|
880
|
+
email(options: FetcherEmailOptions): Promise<FetcherEmailResult>;
|
|
841
881
|
/**
|
|
842
882
|
* Dispatches a scheduled event directly to this Worker.
|
|
843
883
|
*
|
|
@@ -1168,6 +1208,11 @@ type AssetsOptions = {
|
|
|
1168
1208
|
interface Environment extends EnvironmentInheritable, EnvironmentNonInheritable {
|
|
1169
1209
|
}
|
|
1170
1210
|
type SimpleRoute = string;
|
|
1211
|
+
/** AWS SigV4 credentials for miniflare's local S3-compatible endpoint */
|
|
1212
|
+
interface LocalS3Credentials {
|
|
1213
|
+
accessKeyId: string;
|
|
1214
|
+
secretAccessKey: string;
|
|
1215
|
+
}
|
|
1171
1216
|
type ZoneIdRoute = {
|
|
1172
1217
|
pattern: string;
|
|
1173
1218
|
zone_id: string;
|
|
@@ -2090,6 +2135,16 @@ interface EnvironmentNonInheritable {
|
|
|
2090
2135
|
jurisdiction?: string;
|
|
2091
2136
|
/** Whether the R2 bucket should be remote or not in local development */
|
|
2092
2137
|
remote?: boolean;
|
|
2138
|
+
/** Settings that only apply to local development */
|
|
2139
|
+
local_dev?: {
|
|
2140
|
+
/**
|
|
2141
|
+
* EXPERIMENTAL: AWS SigV4 credentials for the local S3-compatible
|
|
2142
|
+
* endpoint. When set, the bucket is served at
|
|
2143
|
+
* `/cdn-cgi/local/r2/s3/<bucket-name>` during local development.
|
|
2144
|
+
* Ignored when the bucket runs remotely.
|
|
2145
|
+
*/
|
|
2146
|
+
experimental_s3_credentials?: LocalS3Credentials;
|
|
2147
|
+
};
|
|
2093
2148
|
}[];
|
|
2094
2149
|
/**
|
|
2095
2150
|
* Specifies D1 databases that are bound to this Worker environment.
|