@depup/wrangler 4.131.1-depup.0 → 4.135.0-depup.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/README.md +4 -3
- package/changes.json +6 -2
- package/config-schema.json +44 -81
- package/package.json +32 -23
- package/templates/middleware/loader-sw.ts +52 -18
- package/wrangler-dist/cli.d.ts +26 -24
- package/wrangler-dist/cli.js +38687 -36399
- package/wrangler-dist/experimental-config.d.mts +230 -34
- package/wrangler-dist/experimental-config.d.mts.map +1 -1
- package/wrangler-dist/experimental-config.mjs +11 -8
- package/wrangler-dist/experimental-config.mjs.map +1 -1
- package/templates/__tests__/pages-dev-util.test.ts +0 -124
- package/templates/__tests__/tsconfig-sanity.ts +0 -12
- package/templates/__tests__/tsconfig.json +0 -8
- package/templates/facade.d.ts +0 -19
- package/templates/middleware/middleware-patch-console-prefix.d.ts +0 -3
- package/templates/new-worker-scheduled.js +0 -17
- package/templates/new-worker-scheduled.ts +0 -32
- package/templates/new-worker.js +0 -15
- package/templates/new-worker.ts +0 -33
- package/templates/startDevWorker/InspectorProxyWorker.ts +0 -713
- package/templates/startDevWorker/ProxyWorker.ts +0 -478
- package/templates/tsconfig-sanity.ts +0 -11
- package/templates/tsconfig.init.json +0 -22
- package/templates/tsconfig.json +0 -14
package/README.md
CHANGED
|
@@ -13,10 +13,10 @@ npm install @depup/wrangler
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [wrangler](https://www.npmjs.com/package/wrangler) @ 4.
|
|
17
|
-
| Processed | 2026-09-
|
|
16
|
+
| Original | [wrangler](https://www.npmjs.com/package/wrangler) @ 4.135.0 |
|
|
17
|
+
| Processed | 2026-09-20 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
|
-
| Deps updated |
|
|
19
|
+
| Deps updated | 4 |
|
|
20
20
|
|
|
21
21
|
## Dependency Changes
|
|
22
22
|
|
|
@@ -25,6 +25,7 @@ npm install @depup/wrangler
|
|
|
25
25
|
| blake3-wasm | 2.1.5 | ^3.0.0 |
|
|
26
26
|
| esbuild | 0.28.1 | ^0.28.2 |
|
|
27
27
|
| path-to-regexp | 6.3.0 | ^8.4.2 |
|
|
28
|
+
| workerd | 1.20260918.1 | ^1.20260919.1 |
|
|
28
29
|
|
|
29
30
|
---
|
|
30
31
|
|
package/changes.json
CHANGED
|
@@ -11,8 +11,12 @@
|
|
|
11
11
|
"path-to-regexp": {
|
|
12
12
|
"from": "6.3.0",
|
|
13
13
|
"to": "^8.4.2"
|
|
14
|
+
},
|
|
15
|
+
"workerd": {
|
|
16
|
+
"from": "1.20260918.1",
|
|
17
|
+
"to": "^1.20260919.1"
|
|
14
18
|
}
|
|
15
19
|
},
|
|
16
|
-
"timestamp": "2026-09-
|
|
17
|
-
"totalUpdated":
|
|
20
|
+
"timestamp": "2026-09-20T01:00:52.119Z",
|
|
21
|
+
"totalUpdated": 4
|
|
18
22
|
}
|
package/config-schema.json
CHANGED
|
@@ -928,28 +928,6 @@
|
|
|
928
928
|
"markdownDescription": "Specifies Agent Memory namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
929
929
|
"default": []
|
|
930
930
|
},
|
|
931
|
-
"websearch": {
|
|
932
|
-
"type": "object",
|
|
933
|
-
"properties": {
|
|
934
|
-
"binding": {
|
|
935
|
-
"type": "string",
|
|
936
|
-
"description": "The binding name used to refer to Web Search in the Worker.",
|
|
937
|
-
"markdownDescription": "The binding name used to refer to Web Search in the Worker."
|
|
938
|
-
},
|
|
939
|
-
"remote": {
|
|
940
|
-
"type": "boolean",
|
|
941
|
-
"description": "Whether the Web Search binding should be remote or not in local development",
|
|
942
|
-
"markdownDescription": "Whether the Web Search binding should be remote or not in local development"
|
|
943
|
-
}
|
|
944
|
-
},
|
|
945
|
-
"required": [
|
|
946
|
-
"binding"
|
|
947
|
-
],
|
|
948
|
-
"additionalProperties": false,
|
|
949
|
-
"description": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the binding is zero-config -- only the variable name is required, declared as a single object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
950
|
-
"markdownDescription": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the\nbinding is zero-config -- only the variable name is required, declared as a\nsingle object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
951
|
-
"default": {}
|
|
952
|
-
},
|
|
953
931
|
"hyperdrive": {
|
|
954
932
|
"type": "array",
|
|
955
933
|
"items": {
|
|
@@ -1508,8 +1486,8 @@
|
|
|
1508
1486
|
},
|
|
1509
1487
|
"remote": {
|
|
1510
1488
|
"type": "boolean",
|
|
1511
|
-
"description": "Set to `true` to
|
|
1512
|
-
"markdownDescription": "Set to `true` to
|
|
1489
|
+
"description": "Set to `true` to evaluate flags against the remote Flagship app during local dev, instead of the local simulator.",
|
|
1490
|
+
"markdownDescription": "Set to `true` to evaluate flags against the remote Flagship app during local dev, instead of the local simulator."
|
|
1513
1491
|
}
|
|
1514
1492
|
},
|
|
1515
1493
|
"required": [
|
|
@@ -2726,28 +2704,6 @@
|
|
|
2726
2704
|
"markdownDescription": "Specifies Agent Memory namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
2727
2705
|
"default": []
|
|
2728
2706
|
},
|
|
2729
|
-
"websearch": {
|
|
2730
|
-
"type": "object",
|
|
2731
|
-
"properties": {
|
|
2732
|
-
"binding": {
|
|
2733
|
-
"type": "string",
|
|
2734
|
-
"description": "The binding name used to refer to Web Search in the Worker.",
|
|
2735
|
-
"markdownDescription": "The binding name used to refer to Web Search in the Worker."
|
|
2736
|
-
},
|
|
2737
|
-
"remote": {
|
|
2738
|
-
"type": "boolean",
|
|
2739
|
-
"description": "Whether the Web Search binding should be remote or not in local development",
|
|
2740
|
-
"markdownDescription": "Whether the Web Search binding should be remote or not in local development"
|
|
2741
|
-
}
|
|
2742
|
-
},
|
|
2743
|
-
"required": [
|
|
2744
|
-
"binding"
|
|
2745
|
-
],
|
|
2746
|
-
"additionalProperties": false,
|
|
2747
|
-
"description": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the binding is zero-config -- only the variable name is required, declared as a single object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2748
|
-
"markdownDescription": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the\nbinding is zero-config -- only the variable name is required, declared as a\nsingle object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
2749
|
-
"default": {}
|
|
2750
|
-
},
|
|
2751
2707
|
"hyperdrive": {
|
|
2752
2708
|
"type": "array",
|
|
2753
2709
|
"items": {
|
|
@@ -3306,8 +3262,8 @@
|
|
|
3306
3262
|
},
|
|
3307
3263
|
"remote": {
|
|
3308
3264
|
"type": "boolean",
|
|
3309
|
-
"description": "Set to `true` to
|
|
3310
|
-
"markdownDescription": "Set to `true` to
|
|
3265
|
+
"description": "Set to `true` to evaluate flags against the remote Flagship app during local dev, instead of the local simulator.",
|
|
3266
|
+
"markdownDescription": "Set to `true` to evaluate flags against the remote Flagship app during local dev, instead of the local simulator."
|
|
3311
3267
|
}
|
|
3312
3268
|
},
|
|
3313
3269
|
"required": [
|
|
@@ -4013,6 +3969,19 @@
|
|
|
4013
3969
|
"markdownDescription": "Whether query strings are removed from request URLs in logs and traces.",
|
|
4014
3970
|
"default": false
|
|
4015
3971
|
},
|
|
3972
|
+
"issues": {
|
|
3973
|
+
"type": "object",
|
|
3974
|
+
"properties": {
|
|
3975
|
+
"enabled": {
|
|
3976
|
+
"type": "boolean",
|
|
3977
|
+
"description": "Whether real-time Issues are enabled.",
|
|
3978
|
+
"markdownDescription": "Whether real-time Issues are enabled."
|
|
3979
|
+
}
|
|
3980
|
+
},
|
|
3981
|
+
"additionalProperties": false,
|
|
3982
|
+
"description": "Real-time Issues settings for this Worker.",
|
|
3983
|
+
"markdownDescription": "Real-time Issues settings for this Worker."
|
|
3984
|
+
},
|
|
4016
3985
|
"logs": {
|
|
4017
3986
|
"type": "object",
|
|
4018
3987
|
"properties": {
|
|
@@ -4131,16 +4100,19 @@
|
|
|
4131
4100
|
"additionalProperties": false,
|
|
4132
4101
|
"properties": {
|
|
4133
4102
|
"logpush": {
|
|
4134
|
-
"$ref": "#/definitions/interface-769040647-
|
|
4103
|
+
"$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
|
|
4135
4104
|
},
|
|
4136
4105
|
"observability": {
|
|
4137
|
-
"$ref": "#/definitions/interface-769040647-
|
|
4106
|
+
"$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
|
|
4138
4107
|
},
|
|
4139
4108
|
"limits": {
|
|
4140
|
-
"$ref": "#/definitions/interface-769040647-
|
|
4109
|
+
"$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
|
|
4110
|
+
},
|
|
4111
|
+
"placement": {
|
|
4112
|
+
"$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
|
|
4141
4113
|
},
|
|
4142
4114
|
"cache": {
|
|
4143
|
-
"$ref": "#/definitions/interface-769040647-
|
|
4115
|
+
"$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
|
|
4144
4116
|
},
|
|
4145
4117
|
"define": {
|
|
4146
4118
|
"type": "object",
|
|
@@ -4683,28 +4655,6 @@
|
|
|
4683
4655
|
"markdownDescription": "Specifies Agent Memory namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
4684
4656
|
"default": []
|
|
4685
4657
|
},
|
|
4686
|
-
"websearch": {
|
|
4687
|
-
"type": "object",
|
|
4688
|
-
"properties": {
|
|
4689
|
-
"binding": {
|
|
4690
|
-
"type": "string",
|
|
4691
|
-
"description": "The binding name used to refer to Web Search in the Worker.",
|
|
4692
|
-
"markdownDescription": "The binding name used to refer to Web Search in the Worker."
|
|
4693
|
-
},
|
|
4694
|
-
"remote": {
|
|
4695
|
-
"type": "boolean",
|
|
4696
|
-
"description": "Whether the Web Search binding should be remote or not in local development",
|
|
4697
|
-
"markdownDescription": "Whether the Web Search binding should be remote or not in local development"
|
|
4698
|
-
}
|
|
4699
|
-
},
|
|
4700
|
-
"required": [
|
|
4701
|
-
"binding"
|
|
4702
|
-
],
|
|
4703
|
-
"additionalProperties": false,
|
|
4704
|
-
"description": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the binding is zero-config -- only the variable name is required, declared as a single object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
4705
|
-
"markdownDescription": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the\nbinding is zero-config -- only the variable name is required, declared as a\nsingle object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
4706
|
-
"default": {}
|
|
4707
|
-
},
|
|
4708
4658
|
"hyperdrive": {
|
|
4709
4659
|
"type": "array",
|
|
4710
4660
|
"items": {
|
|
@@ -5263,8 +5213,8 @@
|
|
|
5263
5213
|
},
|
|
5264
5214
|
"remote": {
|
|
5265
5215
|
"type": "boolean",
|
|
5266
|
-
"description": "Set to `true` to
|
|
5267
|
-
"markdownDescription": "Set to `true` to
|
|
5216
|
+
"description": "Set to `true` to evaluate flags against the remote Flagship app during local dev, instead of the local simulator.",
|
|
5217
|
+
"markdownDescription": "Set to `true` to evaluate flags against the remote Flagship app during local dev, instead of the local simulator."
|
|
5268
5218
|
}
|
|
5269
5219
|
},
|
|
5270
5220
|
"required": [
|
|
@@ -5441,10 +5391,10 @@
|
|
|
5441
5391
|
"default": []
|
|
5442
5392
|
}
|
|
5443
5393
|
},
|
|
5444
|
-
"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`",
|
|
5445
|
-
"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`"
|
|
5394
|
+
"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`, `placement`, `cache`",
|
|
5395
|
+
"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`, `placement`, `cache`"
|
|
5446
5396
|
},
|
|
5447
|
-
"interface-769040647-
|
|
5397
|
+
"interface-769040647-14205-24567-769040647-0-586662004818536": {
|
|
5448
5398
|
"type": "object",
|
|
5449
5399
|
"properties": {
|
|
5450
5400
|
"name": {
|
|
@@ -6073,8 +6023,8 @@
|
|
|
6073
6023
|
},
|
|
6074
6024
|
"observability": {
|
|
6075
6025
|
"$ref": "#/definitions/ContainerObservability",
|
|
6076
|
-
"description": "Specify the observability behavior of this container application.\n\nWhen set, this overrides the root `observability` config for this container.",
|
|
6077
|
-
"markdownDescription": "Specify the observability behavior of this container application.\n\nWhen set, this overrides the root `observability` config for this container."
|
|
6026
|
+
"description": "Specify the observability behavior of this container application.\n\nWhen set, this overrides the root `observability` config for this container. Durable Object-managed Containers only support enabling or disabling logs. Their settings are application-wide, and omitted settings preserve the existing application rather than inheriting root Worker observability.",
|
|
6027
|
+
"markdownDescription": "Specify the observability behavior of this container application.\n\nWhen set, this overrides the root `observability` config for this container.\nDurable Object-managed Containers only support enabling or disabling logs.\nTheir settings are application-wide, and omitted settings preserve the\nexisting application rather than inheriting root Worker observability."
|
|
6078
6028
|
},
|
|
6079
6029
|
"scheduling_policy": {
|
|
6080
6030
|
"type": "string",
|
|
@@ -6276,6 +6226,19 @@
|
|
|
6276
6226
|
"type": "string",
|
|
6277
6227
|
"description": "Path to the Dockerfile Wrangler builds and pushes.",
|
|
6278
6228
|
"markdownDescription": "Path to the Dockerfile Wrangler builds and pushes."
|
|
6229
|
+
},
|
|
6230
|
+
"build_context": {
|
|
6231
|
+
"type": "string",
|
|
6232
|
+
"description": "Build context, relative to the Wrangler configuration file. Defaults to the Dockerfile's directory.",
|
|
6233
|
+
"markdownDescription": "Build context, relative to the Wrangler configuration file.\nDefaults to the Dockerfile's directory."
|
|
6234
|
+
},
|
|
6235
|
+
"build_vars": {
|
|
6236
|
+
"type": "object",
|
|
6237
|
+
"additionalProperties": {
|
|
6238
|
+
"type": "string"
|
|
6239
|
+
},
|
|
6240
|
+
"description": "Variables available to the image only while it is being built.",
|
|
6241
|
+
"markdownDescription": "Variables available to the image only while it is being built."
|
|
6279
6242
|
}
|
|
6280
6243
|
},
|
|
6281
6244
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.135.0-depup.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers (with updated dependencies)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -50,6 +50,11 @@
|
|
|
50
50
|
"miniflare-dist",
|
|
51
51
|
"wrangler-dist",
|
|
52
52
|
"templates",
|
|
53
|
+
"!templates/__tests__",
|
|
54
|
+
"!templates/**/*.d.ts",
|
|
55
|
+
"!templates/new-worker*",
|
|
56
|
+
"!templates/startDevWorker",
|
|
57
|
+
"!templates/tsconfig*",
|
|
53
58
|
"kv-asset-handler.js",
|
|
54
59
|
"config-schema.json",
|
|
55
60
|
"changes.json",
|
|
@@ -73,17 +78,17 @@
|
|
|
73
78
|
"esbuild": "^0.28.2",
|
|
74
79
|
"path-to-regexp": "^8.4.2",
|
|
75
80
|
"unenv": "2.0.0-rc.24",
|
|
76
|
-
"workerd": "1.
|
|
77
|
-
"@cloudflare/unenv-preset": "2.16.1",
|
|
81
|
+
"workerd": "^1.20260919.1",
|
|
78
82
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
79
|
-
"
|
|
83
|
+
"@cloudflare/unenv-preset": "2.16.1",
|
|
84
|
+
"miniflare": "5.20260918.0-alpha"
|
|
80
85
|
},
|
|
81
86
|
"devDependencies": {
|
|
82
87
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
83
88
|
"@aws-sdk/s3-request-presigner": "^3.721.0",
|
|
84
89
|
"@bomb.sh/tab": "^0.0.12",
|
|
85
90
|
"@cloudflare/types": "6.18.4",
|
|
86
|
-
"@cloudflare/workers-types": "^5.
|
|
91
|
+
"@cloudflare/workers-types": "^5.20260918.1",
|
|
87
92
|
"@cspotcode/source-map-support": "0.8.1",
|
|
88
93
|
"@netlify/build-info": "10.5.1",
|
|
89
94
|
"@sentry/node": "^7.86.0",
|
|
@@ -121,7 +126,6 @@
|
|
|
121
126
|
"dotenv-expand": "^12.0.2",
|
|
122
127
|
"empathic": "^2.0.0",
|
|
123
128
|
"esprima": "4.0.1",
|
|
124
|
-
"execa": "^6.1.0",
|
|
125
129
|
"get-port": "^7.0.0",
|
|
126
130
|
"glob-to-regexp": "^0.4.1",
|
|
127
131
|
"https-proxy-agent": "7.0.2",
|
|
@@ -149,6 +153,7 @@
|
|
|
149
153
|
"smol-toml": "1.5.2",
|
|
150
154
|
"supports-color": "^9.2.2",
|
|
151
155
|
"timeago.js": "4.0.2",
|
|
156
|
+
"tinyexec": "^1.2.4",
|
|
152
157
|
"tree-kill": "1.2.2",
|
|
153
158
|
"ts-dedent": "^2.2.0",
|
|
154
159
|
"ts-json-schema-generator": "^1.5.0",
|
|
@@ -163,25 +168,25 @@
|
|
|
163
168
|
"yaml": "^2.8.1",
|
|
164
169
|
"yargs": "^17.7.2",
|
|
165
170
|
"zod": "4.4.3",
|
|
166
|
-
"@cloudflare/autoconfig": "0.
|
|
167
|
-
"@cloudflare/build-output-utils": "0.
|
|
168
|
-
"@cloudflare/
|
|
169
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
171
|
+
"@cloudflare/autoconfig": "0.5.1",
|
|
172
|
+
"@cloudflare/build-output-utils": "0.6.0",
|
|
173
|
+
"@cloudflare/containers-shared": "0.17.0",
|
|
174
|
+
"@cloudflare/cli-shared-helpers": "0.1.34",
|
|
175
|
+
"@cloudflare/config": "0.15.0",
|
|
176
|
+
"@cloudflare/deploy-helpers": "0.13.0",
|
|
170
177
|
"@cloudflare/pages-functions": "0.1.0",
|
|
171
|
-
"@cloudflare/
|
|
172
|
-
"@cloudflare/
|
|
173
|
-
"@cloudflare/
|
|
174
|
-
"@cloudflare/remote-bindings": "0.0.23",
|
|
175
|
-
"@cloudflare/runtime-types": "0.0.25",
|
|
176
|
-
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
178
|
+
"@cloudflare/remote-bindings": "0.0.28",
|
|
179
|
+
"@cloudflare/runtime-types": "0.0.30",
|
|
180
|
+
"@cloudflare/workers-auth": "0.7.3",
|
|
177
181
|
"@cloudflare/workers-shared": "0.19.9",
|
|
178
|
-
"@cloudflare/
|
|
182
|
+
"@cloudflare/shared-ast-primitives": "1.1.0",
|
|
183
|
+
"@cloudflare/workers-utils": "0.40.1",
|
|
179
184
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
180
|
-
"@cloudflare/
|
|
181
|
-
"@cloudflare/
|
|
185
|
+
"@cloudflare/workflows-shared": "0.14.0",
|
|
186
|
+
"@cloudflare/pages-shared": "^0.13.185"
|
|
182
187
|
},
|
|
183
188
|
"peerDependencies": {
|
|
184
|
-
"@cloudflare/workers-types": "^5.
|
|
189
|
+
"@cloudflare/workers-types": "^5.20260918.1"
|
|
185
190
|
},
|
|
186
191
|
"peerDependenciesMeta": {
|
|
187
192
|
"@cloudflare/workers-types": {
|
|
@@ -228,12 +233,16 @@
|
|
|
228
233
|
"path-to-regexp": {
|
|
229
234
|
"from": "6.3.0",
|
|
230
235
|
"to": "^8.4.2"
|
|
236
|
+
},
|
|
237
|
+
"workerd": {
|
|
238
|
+
"from": "1.20260918.1",
|
|
239
|
+
"to": "^1.20260919.1"
|
|
231
240
|
}
|
|
232
241
|
},
|
|
233
|
-
"depsUpdated":
|
|
242
|
+
"depsUpdated": 4,
|
|
234
243
|
"originalPackage": "wrangler",
|
|
235
|
-
"originalVersion": "4.
|
|
236
|
-
"processedAt": "2026-09-
|
|
244
|
+
"originalVersion": "4.135.0",
|
|
245
|
+
"processedAt": "2026-09-20T01:01:11.778Z",
|
|
237
246
|
"smokeTest": "failed"
|
|
238
247
|
}
|
|
239
248
|
}
|
|
@@ -10,18 +10,48 @@ import {
|
|
|
10
10
|
|
|
11
11
|
export { __facade_register__, __facade_registerInternal__ };
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
const __FACADE_EVENT_TARGET__ = new EventTarget();
|
|
14
|
+
const __facade_eventListenerErrors__ = new WeakMap<Event, unknown>();
|
|
15
|
+
const __facade_eventListenerWrappers__ = new WeakMap<
|
|
16
|
+
EventListenerOrEventListenerObject,
|
|
17
|
+
EventListener
|
|
18
|
+
>();
|
|
19
|
+
|
|
20
|
+
// Facade events model runtime event delivery, so listener exceptions must
|
|
21
|
+
// propagate even when EventTarget uses spec-compliant report-and-continue semantics.
|
|
22
|
+
function __facade_getEventListenerWrapper__(
|
|
23
|
+
listener: EventListenerOrEventListenerObject
|
|
24
|
+
): EventListener {
|
|
25
|
+
const existingWrapper = __facade_eventListenerWrappers__.get(listener);
|
|
26
|
+
if (existingWrapper !== undefined) {
|
|
27
|
+
return existingWrapper;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const wrapper: EventListener = function (this: EventTarget, event) {
|
|
31
|
+
try {
|
|
32
|
+
if (typeof listener === "function") {
|
|
33
|
+
listener.call(this, event);
|
|
34
|
+
} else {
|
|
35
|
+
listener.handleEvent(event);
|
|
36
|
+
}
|
|
37
|
+
} catch (error) {
|
|
38
|
+
__facade_eventListenerErrors__.set(event, error);
|
|
39
|
+
event.stopImmediatePropagation();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
__facade_eventListenerWrappers__.set(listener, wrapper);
|
|
43
|
+
return wrapper;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function __facade_dispatchEvent__(event: Event): boolean {
|
|
47
|
+
const result = __FACADE_EVENT_TARGET__.dispatchEvent(event);
|
|
48
|
+
if (!__facade_eventListenerErrors__.has(event)) {
|
|
49
|
+
return result;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const error = __facade_eventListenerErrors__.get(event);
|
|
53
|
+
__facade_eventListenerErrors__.delete(event);
|
|
54
|
+
throw error;
|
|
25
55
|
}
|
|
26
56
|
|
|
27
57
|
function __facade_isSpecialEvent__(
|
|
@@ -37,7 +67,9 @@ globalThis.addEventListener = function (type, listener, options) {
|
|
|
37
67
|
if (__facade_isSpecialEvent__(type)) {
|
|
38
68
|
__FACADE_EVENT_TARGET__.addEventListener(
|
|
39
69
|
type,
|
|
40
|
-
|
|
70
|
+
__facade_getEventListenerWrapper__(
|
|
71
|
+
listener as EventListenerOrEventListenerObject
|
|
72
|
+
),
|
|
41
73
|
options
|
|
42
74
|
);
|
|
43
75
|
} else {
|
|
@@ -48,7 +80,9 @@ globalThis.removeEventListener = function (type, listener, options) {
|
|
|
48
80
|
if (__facade_isSpecialEvent__(type)) {
|
|
49
81
|
__FACADE_EVENT_TARGET__.removeEventListener(
|
|
50
82
|
type,
|
|
51
|
-
|
|
83
|
+
__facade_getEventListenerWrapper__(
|
|
84
|
+
listener as EventListenerOrEventListenerObject
|
|
85
|
+
),
|
|
52
86
|
options
|
|
53
87
|
);
|
|
54
88
|
} else {
|
|
@@ -57,7 +91,7 @@ globalThis.removeEventListener = function (type, listener, options) {
|
|
|
57
91
|
};
|
|
58
92
|
globalThis.dispatchEvent = function (event) {
|
|
59
93
|
if (__facade_isSpecialEvent__(event.type)) {
|
|
60
|
-
return
|
|
94
|
+
return __facade_dispatchEvent__(event);
|
|
61
95
|
} else {
|
|
62
96
|
return __facade__originalDispatchEvent__(event);
|
|
63
97
|
}
|
|
@@ -184,7 +218,7 @@ __facade__originalAddEventListener__("fetch", (event) => {
|
|
|
184
218
|
noRetry() {},
|
|
185
219
|
});
|
|
186
220
|
|
|
187
|
-
|
|
221
|
+
__facade_dispatchEvent__(facadeEvent);
|
|
188
222
|
event.waitUntil(Promise.all(facadeEvent[__facade_waitUntil__]));
|
|
189
223
|
}
|
|
190
224
|
};
|
|
@@ -195,7 +229,7 @@ __facade__originalAddEventListener__("fetch", (event) => {
|
|
|
195
229
|
passThroughOnException: ctx.passThroughOnException,
|
|
196
230
|
});
|
|
197
231
|
|
|
198
|
-
|
|
232
|
+
__facade_dispatchEvent__(facadeEvent);
|
|
199
233
|
facadeEvent[__facade_dispatched__] = true;
|
|
200
234
|
event.waitUntil(Promise.all(facadeEvent[__facade_waitUntil__]));
|
|
201
235
|
|
|
@@ -224,6 +258,6 @@ __facade__originalAddEventListener__("scheduled", (event) => {
|
|
|
224
258
|
noRetry: event.noRetry.bind(event),
|
|
225
259
|
});
|
|
226
260
|
|
|
227
|
-
|
|
261
|
+
__facade_dispatchEvent__(facadeEvent);
|
|
228
262
|
event.waitUntil(Promise.all(facadeEvent[__facade_waitUntil__]));
|
|
229
263
|
});
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Metafile } from 'esbuild';
|
|
|
7
7
|
import Protocol from 'devtools-protocol/types/protocol-mapping';
|
|
8
8
|
import Protocol$1 from 'devtools-protocol';
|
|
9
9
|
import { EventEmitter } from 'node:events';
|
|
10
|
-
import { ContainerNormalizedConfig } from '@cloudflare/containers-shared';
|
|
10
|
+
import { ContainerNormalizedConfig, ContainerDevPlan } from '@cloudflare/containers-shared';
|
|
11
11
|
import { Rpc, ExportedHandler, DurableObjectNamespace, D1Database, Workflow, Service } from '@cloudflare/workers-types';
|
|
12
12
|
import { FetcherScheduledOptions, FetcherScheduledResult, IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
|
13
13
|
import { RouterConfig, AssetConfig } from '@cloudflare/workers-shared';
|
|
@@ -402,6 +402,7 @@ type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets" | "config" | "co
|
|
|
402
402
|
entrypoint: string;
|
|
403
403
|
assets?: AssetsOptions$1;
|
|
404
404
|
containers?: ContainerNormalizedConfig[];
|
|
405
|
+
containerDevPlan?: ContainerDevPlan;
|
|
405
406
|
name: string;
|
|
406
407
|
complianceRegion: Config$1["compliance_region"];
|
|
407
408
|
};
|
|
@@ -1116,6 +1117,7 @@ type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs & {
|
|
|
1116
1117
|
};
|
|
1117
1118
|
type ReadConfigOptions = ResolveConfigPathOptions & {
|
|
1118
1119
|
hideWarnings?: boolean;
|
|
1120
|
+
isPreview?: boolean;
|
|
1119
1121
|
preserveOriginalMain?: boolean;
|
|
1120
1122
|
};
|
|
1121
1123
|
|
|
@@ -1271,6 +1273,13 @@ type DurableObjectContainerImage = {
|
|
|
1271
1273
|
* Path to the Dockerfile Wrangler builds and pushes.
|
|
1272
1274
|
*/
|
|
1273
1275
|
dockerfile: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* Build context, relative to the Wrangler configuration file.
|
|
1278
|
+
* Defaults to the Dockerfile's directory.
|
|
1279
|
+
*/
|
|
1280
|
+
build_context?: string;
|
|
1281
|
+
/** Variables available to the image only while it is being built. */
|
|
1282
|
+
build_vars?: Record<string, string>;
|
|
1274
1283
|
image?: never;
|
|
1275
1284
|
} | {
|
|
1276
1285
|
/**
|
|
@@ -1278,6 +1287,8 @@ type DurableObjectContainerImage = {
|
|
|
1278
1287
|
*/
|
|
1279
1288
|
image: string;
|
|
1280
1289
|
dockerfile?: never;
|
|
1290
|
+
build_context?: never;
|
|
1291
|
+
build_vars?: never;
|
|
1281
1292
|
};
|
|
1282
1293
|
/**
|
|
1283
1294
|
* Configuration for a container application.
|
|
@@ -1357,14 +1368,17 @@ type ContainerApp = {
|
|
|
1357
1368
|
* Specify the observability behavior of this container application.
|
|
1358
1369
|
*
|
|
1359
1370
|
* When set, this overrides the root `observability` config for this container.
|
|
1371
|
+
* Durable Object-managed Containers only support enabling or disabling logs.
|
|
1372
|
+
* Their settings are application-wide, and omitted settings preserve the
|
|
1373
|
+
* existing application rather than inheriting root Worker observability.
|
|
1360
1374
|
*/
|
|
1361
1375
|
observability?: ContainerObservability;
|
|
1362
1376
|
/**
|
|
1363
1377
|
* The scheduling policy of the application
|
|
1364
1378
|
* @optional
|
|
1365
1379
|
* `"durable_object"` makes each Durable Object instance own its Container.
|
|
1366
|
-
* In that mode,
|
|
1367
|
-
* supported on this entry.
|
|
1380
|
+
* In that mode, `name`, `class_name`, `scheduling_policy`, `images`, and
|
|
1381
|
+
* application-wide log `observability` are supported on this entry.
|
|
1368
1382
|
*
|
|
1369
1383
|
* @default "default"
|
|
1370
1384
|
*/
|
|
@@ -2395,23 +2409,6 @@ interface EnvironmentNonInheritable {
|
|
|
2395
2409
|
/** Whether the Agent Memory binding should be remote in local development */
|
|
2396
2410
|
remote?: boolean;
|
|
2397
2411
|
}[];
|
|
2398
|
-
/**
|
|
2399
|
-
* Cloudflare Web Search binding. There is exactly one shared web corpus, so the
|
|
2400
|
-
* binding is zero-config -- only the variable name is required, declared as a
|
|
2401
|
-
* single object (not an array).
|
|
2402
|
-
*
|
|
2403
|
-
* NOTE: This field is not automatically inherited from the top level environment,
|
|
2404
|
-
* and so must be specified in every named environment.
|
|
2405
|
-
*
|
|
2406
|
-
* @default {}
|
|
2407
|
-
* @nonInheritable
|
|
2408
|
-
*/
|
|
2409
|
-
websearch: {
|
|
2410
|
-
/** The binding name used to refer to Web Search in the Worker. */
|
|
2411
|
-
binding: string;
|
|
2412
|
-
/** Whether the Web Search binding should be remote or not in local development */
|
|
2413
|
-
remote?: boolean;
|
|
2414
|
-
} | undefined;
|
|
2415
2412
|
/**
|
|
2416
2413
|
* Specifies Hyperdrive configs that are bound to this Worker environment.
|
|
2417
2414
|
*
|
|
@@ -2747,7 +2744,7 @@ interface EnvironmentNonInheritable {
|
|
|
2747
2744
|
binding: string;
|
|
2748
2745
|
/** The Flagship app ID to bind to. */
|
|
2749
2746
|
app_id?: string;
|
|
2750
|
-
/** Set to `true` to
|
|
2747
|
+
/** Set to `true` to evaluate flags against the remote Flagship app during local dev, instead of the local simulator. */
|
|
2751
2748
|
remote?: boolean;
|
|
2752
2749
|
}[];
|
|
2753
2750
|
/**
|
|
@@ -2897,6 +2894,11 @@ interface Observability {
|
|
|
2897
2894
|
* @default false
|
|
2898
2895
|
*/
|
|
2899
2896
|
redact_query_string?: boolean;
|
|
2897
|
+
/** Real-time Issues settings for this Worker. */
|
|
2898
|
+
issues?: {
|
|
2899
|
+
/** Whether real-time Issues are enabled. */
|
|
2900
|
+
enabled?: boolean;
|
|
2901
|
+
};
|
|
2900
2902
|
logs?: {
|
|
2901
2903
|
enabled?: boolean;
|
|
2902
2904
|
/** The sampling rate */
|
|
@@ -2967,11 +2969,11 @@ type ContainerEngine = {
|
|
|
2967
2969
|
*
|
|
2968
2970
|
* The `previews` block contains any intentionally divergent configuration intended solely for Previews, including:
|
|
2969
2971
|
* - All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)
|
|
2970
|
-
* - Select inheritable properties: `logpush`, `observability`, `limits`, `cache`
|
|
2972
|
+
* - Select inheritable properties: `logpush`, `observability`, `limits`, `placement`, `cache`
|
|
2971
2973
|
*
|
|
2972
2974
|
* @inheritable
|
|
2973
2975
|
*/
|
|
2974
|
-
interface PreviewsConfig extends Partial<EnvironmentNonInheritable>, Partial<Pick<EnvironmentInheritable, "logpush" | "observability" | "limits" | "cache">> {
|
|
2976
|
+
interface PreviewsConfig extends Partial<EnvironmentNonInheritable>, Partial<Pick<EnvironmentInheritable, "logpush" | "observability" | "limits" | "placement" | "cache">> {
|
|
2975
2977
|
}
|
|
2976
2978
|
|
|
2977
2979
|
/**
|
|
@@ -3475,6 +3477,7 @@ interface DevArgs {
|
|
|
3475
3477
|
}
|
|
3476
3478
|
interface BuildArgs {
|
|
3477
3479
|
mode?: string;
|
|
3480
|
+
preview?: boolean;
|
|
3478
3481
|
}
|
|
3479
3482
|
declare class ArgParseError extends Error {
|
|
3480
3483
|
constructor(message: string);
|
|
@@ -3586,7 +3589,6 @@ type Teams =
|
|
|
3586
3589
|
| "Product: AI"
|
|
3587
3590
|
| "Product: AI Search"
|
|
3588
3591
|
| "Product: Agent Memory"
|
|
3589
|
-
| "Product: Web Search"
|
|
3590
3592
|
| "Product: Hyperdrive"
|
|
3591
3593
|
| "Product: Pipelines"
|
|
3592
3594
|
| "Product: Vectorize"
|