wrangler 4.115.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/package.json +17 -15
- package/templates/pages-template-worker.ts +2 -0
- package/wrangler-dist/cli.d.ts +40 -0
- package/wrangler-dist/cli.js +60773 -16615
- 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.116.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.
|
|
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
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.20260730.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,23 +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.
|
|
160
|
-
"@cloudflare/
|
|
159
|
+
"@cloudflare/autoconfig": "0.2.2",
|
|
160
|
+
"@cloudflare/build-output-utils": "0.1.0",
|
|
161
|
+
"@cloudflare/cli-shared-helpers": "0.1.18",
|
|
161
162
|
"@cloudflare/codemod": "1.1.0",
|
|
162
|
-
"@cloudflare/config": "0.
|
|
163
|
+
"@cloudflare/config": "0.4.0",
|
|
163
164
|
"@cloudflare/containers-shared": "0.16.0",
|
|
164
|
-
"@cloudflare/
|
|
165
|
-
"@cloudflare/
|
|
166
|
-
"@cloudflare/remote-bindings": "0.0.
|
|
167
|
-
"@cloudflare/
|
|
168
|
-
"@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",
|
|
169
171
|
"@cloudflare/workers-shared": "0.19.9",
|
|
170
172
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
171
|
-
"@cloudflare/workers-utils": "0.
|
|
173
|
+
"@cloudflare/workers-utils": "0.30.0",
|
|
172
174
|
"@cloudflare/workflows-shared": "0.12.2"
|
|
173
175
|
},
|
|
174
176
|
"peerDependencies": {
|
|
175
|
-
"@cloudflare/workers-types": "^5.
|
|
177
|
+
"@cloudflare/workers-types": "^5.20260730.1"
|
|
176
178
|
},
|
|
177
179
|
"peerDependenciesMeta": {
|
|
178
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
|
*
|