wrangler 3.114.7 → 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 +6 -6
- package/templates/strip-cf-connecting-ip-header.js +13 -0
- package/wrangler-dist/cli.d.ts +7 -3
- package/wrangler-dist/cli.js +2171 -2053
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,11 +137,11 @@
|
|
137
137
|
"xdg-app-paths": "^8.3.0",
|
138
138
|
"xxhash-wasm": "^1.0.1",
|
139
139
|
"yargs": "^17.7.2",
|
140
|
+
"@cloudflare/eslint-config-worker": "1.1.0",
|
141
|
+
"@cloudflare/workers-shared": "0.15.1",
|
140
142
|
"@cloudflare/cli": "1.1.1",
|
141
|
-
"@cloudflare/pages-shared": "0.13.
|
142
|
-
"@cloudflare/workers-
|
143
|
-
"@cloudflare/workers-tsconfig": "0.0.0",
|
144
|
-
"@cloudflare/eslint-config-worker": "1.1.0"
|
143
|
+
"@cloudflare/pages-shared": "0.13.18",
|
144
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
145
145
|
},
|
146
146
|
"peerDependencies": {
|
147
147
|
"@cloudflare/workers-types": "^4.20250408.0"
|
@@ -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
@@ -1649,6 +1649,8 @@ declare type Entry = {
|
|
1649
1649
|
file: string;
|
1650
1650
|
/** A worker's directory. Usually where the Wrangler configuration file is located */
|
1651
1651
|
projectRoot: string;
|
1652
|
+
/** The path to the config file, if it exists. */
|
1653
|
+
configPath: string | undefined;
|
1652
1654
|
/** Is this a module worker or a service worker? */
|
1653
1655
|
format: CfScriptFormat;
|
1654
1656
|
/** The directory that contains all of a `--no-bundle` worker's modules. Usually `${directory}/src`. Defaults to path.dirname(file) */
|
@@ -1848,11 +1850,13 @@ declare interface EnvironmentInheritable {
|
|
1848
1850
|
*
|
1849
1851
|
* More details here https://developers.cloudflare.com/workers/platform/cron-triggers
|
1850
1852
|
*
|
1851
|
-
*
|
1853
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
|
1854
|
+
*
|
1855
|
+
* @default {crons: undefined}
|
1852
1856
|
* @inheritable
|
1853
1857
|
*/
|
1854
1858
|
triggers: {
|
1855
|
-
crons: string[];
|
1859
|
+
crons: string[] | undefined;
|
1856
1860
|
};
|
1857
1861
|
/**
|
1858
1862
|
* Specifies the Usage Model for your Worker. There are two options -
|
@@ -2622,6 +2626,7 @@ declare type EventTarget_2 = typeof globalThis extends { EventTarget: infer T }
|
|
2622
2626
|
declare class ExecutionContext {
|
2623
2627
|
waitUntil(promise: Promise<any>): void;
|
2624
2628
|
passThroughOnException(): void;
|
2629
|
+
props: any;
|
2625
2630
|
}
|
2626
2631
|
|
2627
2632
|
export declare const experimental_patchConfig: (configPath: string, patch: Unstable_RawConfig, isArrayInsertion?: boolean) => string;
|
@@ -26234,7 +26239,6 @@ declare interface StartDevWorkerInput {
|
|
26234
26239
|
/**
|
26235
26240
|
* The javascript or typescript entry-point of the worker.
|
26236
26241
|
* This is the `main` property of a Wrangler configuration file.
|
26237
|
-
* You can specify a file path or provide the contents directly.
|
26238
26242
|
*/
|
26239
26243
|
entrypoint?: string;
|
26240
26244
|
/** The configuration of the worker. */
|