wrangler 3.114.8 → 3.114.9
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 +6 -21
- package/package.json +4 -4
- package/templates/strip-cf-connecting-ip-header.js +13 -0
- package/wrangler-dist/cli.d.ts +5 -3
- package/wrangler-dist/cli.js +2039 -1955
package/config-schema.json
CHANGED
@@ -1008,10 +1008,8 @@
|
|
1008
1008
|
},
|
1009
1009
|
"triggers": {
|
1010
1010
|
"additionalProperties": false,
|
1011
|
-
"default": {
|
1012
|
-
|
1013
|
-
},
|
1014
|
-
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
|
1011
|
+
"default": "{crons: undefined}",
|
1012
|
+
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers",
|
1015
1013
|
"properties": {
|
1016
1014
|
"crons": {
|
1017
1015
|
"items": {
|
@@ -1020,9 +1018,6 @@
|
|
1020
1018
|
"type": "array"
|
1021
1019
|
}
|
1022
1020
|
},
|
1023
|
-
"required": [
|
1024
|
-
"crons"
|
1025
|
-
],
|
1026
1021
|
"type": "object"
|
1027
1022
|
},
|
1028
1023
|
"tsconfig": {
|
@@ -2103,10 +2098,8 @@
|
|
2103
2098
|
},
|
2104
2099
|
"triggers": {
|
2105
2100
|
"additionalProperties": false,
|
2106
|
-
"default": {
|
2107
|
-
|
2108
|
-
},
|
2109
|
-
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
|
2101
|
+
"default": "{crons: undefined}",
|
2102
|
+
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers",
|
2110
2103
|
"properties": {
|
2111
2104
|
"crons": {
|
2112
2105
|
"items": {
|
@@ -2115,9 +2108,6 @@
|
|
2115
2108
|
"type": "array"
|
2116
2109
|
}
|
2117
2110
|
},
|
2118
|
-
"required": [
|
2119
|
-
"crons"
|
2120
|
-
],
|
2121
2111
|
"type": "object"
|
2122
2112
|
},
|
2123
2113
|
"tsconfig": {
|
@@ -3050,10 +3040,8 @@
|
|
3050
3040
|
},
|
3051
3041
|
"triggers": {
|
3052
3042
|
"additionalProperties": false,
|
3053
|
-
"default": {
|
3054
|
-
|
3055
|
-
},
|
3056
|
-
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
|
3043
|
+
"default": "{crons: undefined}",
|
3044
|
+
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers",
|
3057
3045
|
"properties": {
|
3058
3046
|
"crons": {
|
3059
3047
|
"items": {
|
@@ -3062,9 +3050,6 @@
|
|
3062
3050
|
"type": "array"
|
3063
3051
|
}
|
3064
3052
|
},
|
3065
|
-
"required": [
|
3066
|
-
"crons"
|
3067
|
-
],
|
3068
3053
|
"type": "object"
|
3069
3054
|
},
|
3070
3055
|
"tsconfig": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.114.
|
3
|
+
"version": "3.114.9",
|
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.20250408.0",
|
61
61
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
62
|
-
"miniflare": "3.20250408.
|
62
|
+
"miniflare": "3.20250408.2"
|
63
63
|
},
|
64
64
|
"devDependencies": {
|
65
65
|
"@aws-sdk/client-s3": "^3.721.0",
|
@@ -137,10 +137,10 @@
|
|
137
137
|
"xdg-app-paths": "^8.3.0",
|
138
138
|
"xxhash-wasm": "^1.0.1",
|
139
139
|
"yargs": "^17.7.2",
|
140
|
-
"@cloudflare/cli": "1.1.1",
|
141
140
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
142
|
-
"@cloudflare/pages-shared": "0.13.17",
|
143
141
|
"@cloudflare/workers-shared": "0.15.1",
|
142
|
+
"@cloudflare/cli": "1.1.1",
|
143
|
+
"@cloudflare/pages-shared": "0.13.18",
|
144
144
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
145
145
|
},
|
146
146
|
"peerDependencies": {
|
@@ -0,0 +1,13 @@
|
|
1
|
+
function stripCfConnectingIPHeader(input, init) {
|
2
|
+
const request = new Request(input, init);
|
3
|
+
request.headers.delete("CF-Connecting-IP");
|
4
|
+
return request;
|
5
|
+
}
|
6
|
+
|
7
|
+
globalThis.fetch = new Proxy(globalThis.fetch, {
|
8
|
+
apply(target, thisArg, argArray) {
|
9
|
+
return Reflect.apply(target, thisArg, [
|
10
|
+
stripCfConnectingIPHeader.apply(null, argArray),
|
11
|
+
]);
|
12
|
+
},
|
13
|
+
});
|
package/wrangler-dist/cli.d.ts
CHANGED
@@ -1850,11 +1850,13 @@ declare interface EnvironmentInheritable {
|
|
1850
1850
|
*
|
1851
1851
|
* More details here https://developers.cloudflare.com/workers/platform/cron-triggers
|
1852
1852
|
*
|
1853
|
-
*
|
1853
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
|
1854
|
+
*
|
1855
|
+
* @default {crons: undefined}
|
1854
1856
|
* @inheritable
|
1855
1857
|
*/
|
1856
1858
|
triggers: {
|
1857
|
-
crons: string[];
|
1859
|
+
crons: string[] | undefined;
|
1858
1860
|
};
|
1859
1861
|
/**
|
1860
1862
|
* Specifies the Usage Model for your Worker. There are two options -
|
@@ -2624,6 +2626,7 @@ declare type EventTarget_2 = typeof globalThis extends { EventTarget: infer T }
|
|
2624
2626
|
declare class ExecutionContext {
|
2625
2627
|
waitUntil(promise: Promise<any>): void;
|
2626
2628
|
passThroughOnException(): void;
|
2629
|
+
props: any;
|
2627
2630
|
}
|
2628
2631
|
|
2629
2632
|
export declare const experimental_patchConfig: (configPath: string, patch: Unstable_RawConfig, isArrayInsertion?: boolean) => string;
|
@@ -26236,7 +26239,6 @@ declare interface StartDevWorkerInput {
|
|
26236
26239
|
/**
|
26237
26240
|
* The javascript or typescript entry-point of the worker.
|
26238
26241
|
* This is the `main` property of a Wrangler configuration file.
|
26239
|
-
* You can specify a file path or provide the contents directly.
|
26240
26242
|
*/
|
26241
26243
|
entrypoint?: string;
|
26242
26244
|
/** The configuration of the worker. */
|