@depup/wrangler 4.129.0-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 CHANGED
@@ -13,8 +13,8 @@ npm install @depup/wrangler
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [wrangler](https://www.npmjs.com/package/wrangler) @ 4.129.0 |
17
- | Processed | 2026-09-06 |
16
+ | Original | [wrangler](https://www.npmjs.com/package/wrangler) @ 4.135.0 |
17
+ | Processed | 2026-09-20 |
18
18
  | Smoke test | failed |
19
19
  | Deps updated | 4 |
20
20
 
@@ -25,7 +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.20260903.1 | ^1.20260905.1 |
28
+ | workerd | 1.20260918.1 | ^1.20260919.1 |
29
29
 
30
30
  ---
31
31
 
package/changes.json CHANGED
@@ -13,10 +13,10 @@
13
13
  "to": "^8.4.2"
14
14
  },
15
15
  "workerd": {
16
- "from": "1.20260903.1",
17
- "to": "^1.20260905.1"
16
+ "from": "1.20260918.1",
17
+ "to": "^1.20260919.1"
18
18
  }
19
19
  },
20
- "timestamp": "2026-09-06T01:01:14.039Z",
20
+ "timestamp": "2026-09-20T01:00:52.119Z",
21
21
  "totalUpdated": 4
22
22
  }
@@ -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 suppress the remote binding warning in local dev. Flagship bindings are always remote.",
1512
- "markdownDescription": "Set to `true` to suppress the remote binding warning in local dev. Flagship bindings are always remote."
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 suppress the remote binding warning in local dev. Flagship bindings are always remote.",
3310
- "markdownDescription": "Set to `true` to suppress the remote binding warning in local dev. Flagship bindings are always remote."
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": [
@@ -3609,6 +3565,31 @@
3609
3565
  "description": "The Durable Objects being renamed.",
3610
3566
  "markdownDescription": "The Durable Objects being renamed."
3611
3567
  },
3568
+ "transferred_classes": {
3569
+ "type": "array",
3570
+ "items": {
3571
+ "type": "object",
3572
+ "properties": {
3573
+ "from": {
3574
+ "type": "string"
3575
+ },
3576
+ "from_script": {
3577
+ "type": "string"
3578
+ },
3579
+ "to": {
3580
+ "type": "string"
3581
+ }
3582
+ },
3583
+ "required": [
3584
+ "from",
3585
+ "from_script",
3586
+ "to"
3587
+ ],
3588
+ "additionalProperties": false
3589
+ },
3590
+ "description": "The Durable Objects being transferred from another Worker.",
3591
+ "markdownDescription": "The Durable Objects being transferred from another Worker."
3592
+ },
3612
3593
  "deleted_classes": {
3613
3594
  "type": "array",
3614
3595
  "items": {
@@ -3988,6 +3969,19 @@
3988
3969
  "markdownDescription": "Whether query strings are removed from request URLs in logs and traces.",
3989
3970
  "default": false
3990
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
+ },
3991
3985
  "logs": {
3992
3986
  "type": "object",
3993
3987
  "properties": {
@@ -4106,16 +4100,19 @@
4106
4100
  "additionalProperties": false,
4107
4101
  "properties": {
4108
4102
  "logpush": {
4109
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-567642004818536"
4103
+ "$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
4110
4104
  },
4111
4105
  "observability": {
4112
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-567642004818536"
4106
+ "$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
4113
4107
  },
4114
4108
  "limits": {
4115
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-567642004818536"
4109
+ "$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
4110
+ },
4111
+ "placement": {
4112
+ "$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
4116
4113
  },
4117
4114
  "cache": {
4118
- "$ref": "#/definitions/interface-769040647-11843-22205-769040647-0-567642004818536"
4115
+ "$ref": "#/definitions/interface-769040647-14205-24567-769040647-0-586662004818536"
4119
4116
  },
4120
4117
  "define": {
4121
4118
  "type": "object",
@@ -4658,28 +4655,6 @@
4658
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.",
4659
4656
  "default": []
4660
4657
  },
4661
- "websearch": {
4662
- "type": "object",
4663
- "properties": {
4664
- "binding": {
4665
- "type": "string",
4666
- "description": "The binding name used to refer to Web Search in the Worker.",
4667
- "markdownDescription": "The binding name used to refer to Web Search in the Worker."
4668
- },
4669
- "remote": {
4670
- "type": "boolean",
4671
- "description": "Whether the Web Search binding should be remote or not in local development",
4672
- "markdownDescription": "Whether the Web Search binding should be remote or not in local development"
4673
- }
4674
- },
4675
- "required": [
4676
- "binding"
4677
- ],
4678
- "additionalProperties": false,
4679
- "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.",
4680
- "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.",
4681
- "default": {}
4682
- },
4683
4658
  "hyperdrive": {
4684
4659
  "type": "array",
4685
4660
  "items": {
@@ -5238,8 +5213,8 @@
5238
5213
  },
5239
5214
  "remote": {
5240
5215
  "type": "boolean",
5241
- "description": "Set to `true` to suppress the remote binding warning in local dev. Flagship bindings are always remote.",
5242
- "markdownDescription": "Set to `true` to suppress the remote binding warning in local dev. Flagship bindings are always remote."
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."
5243
5218
  }
5244
5219
  },
5245
5220
  "required": [
@@ -5416,10 +5391,10 @@
5416
5391
  "default": []
5417
5392
  }
5418
5393
  },
5419
- "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`",
5420
- "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`"
5421
5396
  },
5422
- "interface-769040647-11843-22205-769040647-0-567642004818536": {
5397
+ "interface-769040647-14205-24567-769040647-0-586662004818536": {
5423
5398
  "type": "object",
5424
5399
  "properties": {
5425
5400
  "name": {
@@ -6020,6 +5995,14 @@
6020
5995
  "description": "The path to a Dockerfile, or an image URI for the Cloudflare registry.",
6021
5996
  "markdownDescription": "The path to a Dockerfile, or an image URI for the Cloudflare registry."
6022
5997
  },
5998
+ "images": {
5999
+ "type": "object",
6000
+ "additionalProperties": {
6001
+ "$ref": "#/definitions/DurableObjectContainerImage"
6002
+ },
6003
+ "description": "Named images available to a Durable Object-managed container through `ctx.container.images` and `env.EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES[className]`.\n\nOnly supported when `scheduling_policy` is `\"durable_object\"`.",
6004
+ "markdownDescription": "Named images available to a Durable Object-managed container through\n`ctx.container.images` and\n`env.EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES[className]`.\n\nOnly supported when `scheduling_policy` is `\"durable_object\"`."
6005
+ },
6023
6006
  "image_build_context": {
6024
6007
  "type": "string",
6025
6008
  "description": "Build context of the application.",
@@ -6038,10 +6021,16 @@
6038
6021
  "description": "The class name of the Durable Object the container is connected to.",
6039
6022
  "markdownDescription": "The class name of the Durable Object the container is connected to."
6040
6023
  },
6024
+ "observability": {
6025
+ "$ref": "#/definitions/ContainerObservability",
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."
6028
+ },
6041
6029
  "scheduling_policy": {
6042
6030
  "type": "string",
6043
6031
  "enum": [
6044
6032
  "default",
6033
+ "durable_object",
6045
6034
  "moon",
6046
6035
  "regional"
6047
6036
  ],
@@ -6226,12 +6215,86 @@
6226
6215
  "default": 0
6227
6216
  }
6228
6217
  },
6229
- "required": [
6230
- "image"
6218
+ "additionalProperties": false
6219
+ },
6220
+ "DurableObjectContainerImage": {
6221
+ "anyOf": [
6222
+ {
6223
+ "type": "object",
6224
+ "properties": {
6225
+ "dockerfile": {
6226
+ "type": "string",
6227
+ "description": "Path to the Dockerfile Wrangler builds and pushes.",
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."
6242
+ }
6243
+ },
6244
+ "required": [
6245
+ "dockerfile"
6246
+ ],
6247
+ "additionalProperties": false
6248
+ },
6249
+ {
6250
+ "type": "object",
6251
+ "properties": {
6252
+ "image": {
6253
+ "type": "string",
6254
+ "description": "Digest-pinned image in the account's managed registry.",
6255
+ "markdownDescription": "Digest-pinned image in the account's managed registry."
6256
+ }
6257
+ },
6258
+ "required": [
6259
+ "image"
6260
+ ],
6261
+ "additionalProperties": false
6262
+ }
6231
6263
  ],
6264
+ "description": "An image Wrangler prepares for a Durable Object-managed container.",
6265
+ "markdownDescription": "An image Wrangler prepares for a Durable Object-managed container."
6266
+ },
6267
+ "ContainerObservability": {
6268
+ "type": "object",
6269
+ "properties": {
6270
+ "enabled": {
6271
+ "type": "boolean",
6272
+ "description": "If observability is enabled for this container application",
6273
+ "markdownDescription": "If observability is enabled for this container application"
6274
+ },
6275
+ "logs": {
6276
+ "type": "object",
6277
+ "properties": {
6278
+ "enabled": {
6279
+ "type": "boolean"
6280
+ }
6281
+ },
6282
+ "additionalProperties": false
6283
+ },
6284
+ "target_instance_percentage": {
6285
+ "type": "number",
6286
+ "description": "Percentage of instances to target with application-level observability hot reloads. Mutually exclusive with `target_instance_count`.",
6287
+ "markdownDescription": "Percentage of instances to target with application-level observability hot reloads.\nMutually exclusive with `target_instance_count`."
6288
+ },
6289
+ "target_instance_count": {
6290
+ "type": "number",
6291
+ "description": "Number of instances to target with application-level observability hot reloads. Mutually exclusive with `target_instance_percentage`.",
6292
+ "markdownDescription": "Number of instances to target with application-level observability hot reloads.\nMutually exclusive with `target_instance_percentage`."
6293
+ }
6294
+ },
6232
6295
  "additionalProperties": false,
6233
- "description": "Configuration for a container application",
6234
- "markdownDescription": "Configuration for a container application"
6296
+ "description": "Configuration for a container application.",
6297
+ "markdownDescription": "Configuration for a container application."
6235
6298
  },
6236
6299
  "LocalS3Credentials": {
6237
6300
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/wrangler",
3
- "version": "4.129.0-depup.0",
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.20260905.1",
81
+ "workerd": "^1.20260919.1",
77
82
  "@cloudflare/kv-asset-handler": "0.5.0",
78
- "miniflare": "5.20260903.0-alpha",
79
- "@cloudflare/unenv-preset": "2.16.1"
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.20260903.1",
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",
@@ -144,11 +148,12 @@
144
148
  "resolve": "^1.22.8",
145
149
  "rosie-skills": "^0.8.1",
146
150
  "semiver": "^1.1.0",
147
- "shell-quote": "^1.8.1",
151
+ "shell-quote": "^1.9.0",
148
152
  "signal-exit": "4.1.0",
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.4.2",
167
- "@cloudflare/cli-shared-helpers": "0.1.27",
168
- "@cloudflare/build-output-utils": "0.4.0",
169
- "@cloudflare/config": "0.10.0",
170
- "@cloudflare/containers-shared": "0.16.0",
171
- "@cloudflare/deploy-helpers": "0.10.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",
172
177
  "@cloudflare/pages-functions": "0.1.0",
173
- "@cloudflare/pages-shared": "^0.13.176",
174
- "@cloudflare/workers-auth": "0.6.8",
175
- "@cloudflare/workflows-shared": "0.13.0",
176
- "@cloudflare/shared-ast-primitives": "1.1.0",
177
- "@cloudflare/workers-utils": "0.36.0",
178
- "@cloudflare/runtime-types": "0.0.21",
179
- "@cloudflare/remote-bindings": "0.0.19",
178
+ "@cloudflare/remote-bindings": "0.0.28",
179
+ "@cloudflare/runtime-types": "0.0.30",
180
+ "@cloudflare/workers-auth": "0.7.3",
180
181
  "@cloudflare/workers-shared": "0.19.9",
181
- "@cloudflare/workers-tsconfig": "0.0.0"
182
+ "@cloudflare/shared-ast-primitives": "1.1.0",
183
+ "@cloudflare/workers-utils": "0.40.1",
184
+ "@cloudflare/workers-tsconfig": "0.0.0",
185
+ "@cloudflare/workflows-shared": "0.14.0",
186
+ "@cloudflare/pages-shared": "^0.13.185"
182
187
  },
183
188
  "peerDependencies": {
184
- "@cloudflare/workers-types": "^5.20260903.1"
189
+ "@cloudflare/workers-types": "^5.20260918.1"
185
190
  },
186
191
  "peerDependenciesMeta": {
187
192
  "@cloudflare/workers-types": {
@@ -230,14 +235,14 @@
230
235
  "to": "^8.4.2"
231
236
  },
232
237
  "workerd": {
233
- "from": "1.20260903.1",
234
- "to": "^1.20260905.1"
238
+ "from": "1.20260918.1",
239
+ "to": "^1.20260919.1"
235
240
  }
236
241
  },
237
242
  "depsUpdated": 4,
238
243
  "originalPackage": "wrangler",
239
- "originalVersion": "4.129.0",
240
- "processedAt": "2026-09-06T01:01:39.174Z",
244
+ "originalVersion": "4.135.0",
245
+ "processedAt": "2026-09-20T01:01:11.778Z",
241
246
  "smokeTest": "failed"
242
247
  }
243
248
  }
@@ -10,18 +10,48 @@ import {
10
10
 
11
11
  export { __facade_register__, __facade_registerInternal__ };
12
12
 
13
- // Miniflare 2's `EventTarget` follows the spec and doesn't allow exceptions to
14
- // be caught by `dispatchEvent`. Instead it has a custom `ThrowingEventTarget`
15
- // class that rethrows errors from event listeners in `dispatchEvent`.
16
- // We'd like errors to be propagated to the top-level `addEventListener`, so
17
- // we'd like to use `ThrowingEventTarget`. Unfortunately, `ThrowingEventTarget`
18
- // isn't exposed on the global scope, but `WorkerGlobalScope` (which extends
19
- // `ThrowingEventTarget`) is. Therefore, we get at it in this nasty way.
20
- let __FACADE_EVENT_TARGET__: EventTarget;
21
- if ((globalThis as any).MINIFLARE) {
22
- __FACADE_EVENT_TARGET__ = new (Object.getPrototypeOf(WorkerGlobalScope))();
23
- } else {
24
- __FACADE_EVENT_TARGET__ = new EventTarget();
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
- listener as EventListenerOrEventListenerObject,
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
- listener as EventListenerOrEventListenerObject,
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 __FACADE_EVENT_TARGET__.dispatchEvent(event);
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
- __FACADE_EVENT_TARGET__.dispatchEvent(facadeEvent);
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
- __FACADE_EVENT_TARGET__.dispatchEvent(facadeEvent);
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
- __FACADE_EVENT_TARGET__.dispatchEvent(facadeEvent);
261
+ __facade_dispatchEvent__(facadeEvent);
228
262
  event.waitUntil(Promise.all(facadeEvent[__facade_waitUntil__]));
229
263
  });