wrangler 0.0.0-e57758f8 → 0.0.0-e5afae0f

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/bin/wrangler.js CHANGED
@@ -28,30 +28,6 @@ Consider using a Node.js version manager such as https://volta.sh/ or https://gi
28
28
  return;
29
29
  }
30
30
 
31
- let pathToCACerts = process.env.NODE_EXTRA_CA_CERTS;
32
- if (pathToCACerts) {
33
- // TODO:
34
- // - should we log a warning here?
35
- // - maybe we can generate a certificate that concatenates with ours?
36
- //
37
- // I do think it'll be rare that someone wants to add a cert AND
38
- // use Cloudflare WARP, but let's wait till the situation actually
39
- // arises before we do anything about it
40
- } else {
41
- const osTempDir = os.tmpdir();
42
- const certDir = path.join(osTempDir, "wrangler-cert");
43
- const certPath = path.join(certDir, "Cloudflare_CA.pem");
44
- // copy cert to the system temp dir if needed
45
- if (!fs.existsSync(certPath)) {
46
- fs.mkdirSync(certDir, { recursive: true });
47
- fs.writeFileSync(
48
- certPath,
49
- fs.readFileSync(path.join(__dirname, "../Cloudflare_CA.pem"), "utf-8")
50
- );
51
- }
52
- pathToCACerts = certPath;
53
- }
54
-
55
31
  return spawn(
56
32
  process.execPath,
57
33
  [
@@ -63,10 +39,6 @@ Consider using a Node.js version manager such as https://volta.sh/ or https://gi
63
39
  ],
64
40
  {
65
41
  stdio: ["inherit", "inherit", "inherit", "ipc"],
66
- env: {
67
- ...process.env,
68
- NODE_EXTRA_CA_CERTS: pathToCACerts,
69
- },
70
42
  }
71
43
  )
72
44
  .on("exit", (code) =>
@@ -24,7 +24,8 @@
24
24
  "Text",
25
25
  "Data",
26
26
  "PythonModule",
27
- "PythonRequirement"
27
+ "PythonRequirement",
28
+ "NodeJsCompatModule"
28
29
  ],
29
30
  "type": "string"
30
31
  },
@@ -246,29 +247,6 @@
246
247
  },
247
248
  "type": "array"
248
249
  },
249
- "constellation": {
250
- "default": "`[]`",
251
- "description": "Specifies Constellation projects that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
252
- "items": {
253
- "additionalProperties": false,
254
- "properties": {
255
- "binding": {
256
- "description": "The binding name used to refer to the project in the Worker.",
257
- "type": "string"
258
- },
259
- "project_id": {
260
- "description": "The id of the project.",
261
- "type": "string"
262
- }
263
- },
264
- "required": [
265
- "binding",
266
- "project_id"
267
- ],
268
- "type": "object"
269
- },
270
- "type": "array"
271
- },
272
250
  "d1_databases": {
273
251
  "default": "`[]`",
274
252
  "description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
@@ -478,6 +456,58 @@
478
456
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
479
457
  "type": "string"
480
458
  },
459
+ "migrations": {
460
+ "default": [],
461
+ "description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
462
+ "items": {
463
+ "additionalProperties": false,
464
+ "properties": {
465
+ "deleted_classes": {
466
+ "description": "The Durable Objects being removed.",
467
+ "items": {
468
+ "type": "string"
469
+ },
470
+ "type": "array"
471
+ },
472
+ "new_classes": {
473
+ "description": "The new Durable Objects being defined.",
474
+ "items": {
475
+ "type": "string"
476
+ },
477
+ "type": "array"
478
+ },
479
+ "renamed_classes": {
480
+ "description": "The Durable Objects being renamed.",
481
+ "items": {
482
+ "additionalProperties": false,
483
+ "properties": {
484
+ "from": {
485
+ "type": "string"
486
+ },
487
+ "to": {
488
+ "type": "string"
489
+ }
490
+ },
491
+ "required": [
492
+ "from",
493
+ "to"
494
+ ],
495
+ "type": "object"
496
+ },
497
+ "type": "array"
498
+ },
499
+ "tag": {
500
+ "description": "A unique identifier for this migration.",
501
+ "type": "string"
502
+ }
503
+ },
504
+ "required": [
505
+ "tag"
506
+ ],
507
+ "type": "object"
508
+ },
509
+ "type": "array"
510
+ },
481
511
  "minify": {
482
512
  "description": "Minify the script before uploading.",
483
513
  "type": "boolean"
@@ -909,7 +939,6 @@
909
939
  "build",
910
940
  "cloudchamber",
911
941
  "compatibility_flags",
912
- "constellation",
913
942
  "d1_databases",
914
943
  "define",
915
944
  "dispatch_namespaces",
@@ -919,6 +948,7 @@
919
948
  "jsx_fragment",
920
949
  "kv_namespaces",
921
950
  "logfwdr",
951
+ "migrations",
922
952
  "mtls_certificates",
923
953
  "queues",
924
954
  "r2_buckets",
@@ -980,6 +1010,13 @@
980
1010
  ],
981
1011
  "type": "object"
982
1012
  },
1013
+ "alias": {
1014
+ "additionalProperties": {
1015
+ "type": "string"
1016
+ },
1017
+ "description": "A map of module aliases. Lets you swap out a module for any others. Corresponds with esbuild's `alias` config",
1018
+ "type": "object"
1019
+ },
983
1020
  "analytics_engine_datasets": {
984
1021
  "default": "`[]`",
985
1022
  "description": "Specifies analytics engine datasets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
@@ -1003,38 +1040,45 @@
1003
1040
  "type": "array"
1004
1041
  },
1005
1042
  "assets": {
1006
- "additionalProperties": false,
1007
- "description": "Serve a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields.",
1008
- "properties": {
1009
- "browser_TTL": {
1010
- "type": "number"
1011
- },
1012
- "bucket": {
1013
- "type": "string"
1014
- },
1015
- "exclude": {
1016
- "items": {
1017
- "type": "string"
1018
- },
1019
- "type": "array"
1020
- },
1021
- "include": {
1022
- "items": {
1023
- "type": "string"
1043
+ "anyOf": [
1044
+ {
1045
+ "additionalProperties": false,
1046
+ "properties": {
1047
+ "browser_TTL": {
1048
+ "type": "number"
1049
+ },
1050
+ "bucket": {
1051
+ "type": "string"
1052
+ },
1053
+ "exclude": {
1054
+ "items": {
1055
+ "type": "string"
1056
+ },
1057
+ "type": "array"
1058
+ },
1059
+ "include": {
1060
+ "items": {
1061
+ "type": "string"
1062
+ },
1063
+ "type": "array"
1064
+ },
1065
+ "serve_single_page_app": {
1066
+ "type": "boolean"
1067
+ }
1024
1068
  },
1025
- "type": "array"
1069
+ "required": [
1070
+ "bucket",
1071
+ "include",
1072
+ "exclude",
1073
+ "serve_single_page_app"
1074
+ ],
1075
+ "type": "object"
1026
1076
  },
1027
- "serve_single_page_app": {
1028
- "type": "boolean"
1077
+ {
1078
+ "type": "string"
1029
1079
  }
1030
- },
1031
- "required": [
1032
- "bucket",
1033
- "include",
1034
- "exclude",
1035
- "serve_single_page_app"
1036
1080
  ],
1037
- "type": "object"
1081
+ "description": "Serve a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields. Only one of assets and legacy_assets can be used."
1038
1082
  },
1039
1083
  "base_dir": {
1040
1084
  "description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
@@ -1111,29 +1155,6 @@
1111
1155
  "configPath": {
1112
1156
  "type": "string"
1113
1157
  },
1114
- "constellation": {
1115
- "default": "`[]`",
1116
- "description": "Specifies Constellation projects that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1117
- "items": {
1118
- "additionalProperties": false,
1119
- "properties": {
1120
- "binding": {
1121
- "description": "The binding name used to refer to the project in the Worker.",
1122
- "type": "string"
1123
- },
1124
- "project_id": {
1125
- "description": "The id of the project.",
1126
- "type": "string"
1127
- }
1128
- },
1129
- "required": [
1130
- "binding",
1131
- "project_id"
1132
- ],
1133
- "type": "object"
1134
- },
1135
- "type": "array"
1136
- },
1137
1158
  "d1_databases": {
1138
1159
  "default": "`[]`",
1139
1160
  "description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
@@ -1357,6 +1378,47 @@
1357
1378
  },
1358
1379
  "type": "array"
1359
1380
  },
1381
+ "legacy_assets": {
1382
+ "anyOf": [
1383
+ {
1384
+ "additionalProperties": false,
1385
+ "properties": {
1386
+ "browser_TTL": {
1387
+ "type": "number"
1388
+ },
1389
+ "bucket": {
1390
+ "type": "string"
1391
+ },
1392
+ "exclude": {
1393
+ "items": {
1394
+ "type": "string"
1395
+ },
1396
+ "type": "array"
1397
+ },
1398
+ "include": {
1399
+ "items": {
1400
+ "type": "string"
1401
+ },
1402
+ "type": "array"
1403
+ },
1404
+ "serve_single_page_app": {
1405
+ "type": "boolean"
1406
+ }
1407
+ },
1408
+ "required": [
1409
+ "bucket",
1410
+ "include",
1411
+ "exclude",
1412
+ "serve_single_page_app"
1413
+ ],
1414
+ "type": "object"
1415
+ },
1416
+ {
1417
+ "type": "string"
1418
+ }
1419
+ ],
1420
+ "description": "Serve a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields. Only one of assets and legacy_assets can be used."
1421
+ },
1360
1422
  "legacy_env": {
1361
1423
  "description": "A boolean to enable \"legacy\" style wrangler environments (from Wrangler v1). These have been superseded by Services, but there may be projects that won't (or can't) use them. If you're using a legacy environment, you can set this to `true` to enable it.",
1362
1424
  "type": "boolean"
@@ -2123,29 +2185,6 @@
2123
2185
  },
2124
2186
  "type": "array"
2125
2187
  },
2126
- "constellation": {
2127
- "default": "`[]`",
2128
- "description": "Specifies Constellation projects that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2129
- "items": {
2130
- "additionalProperties": false,
2131
- "properties": {
2132
- "binding": {
2133
- "description": "The binding name used to refer to the project in the Worker.",
2134
- "type": "string"
2135
- },
2136
- "project_id": {
2137
- "description": "The id of the project.",
2138
- "type": "string"
2139
- }
2140
- },
2141
- "required": [
2142
- "binding",
2143
- "project_id"
2144
- ],
2145
- "type": "object"
2146
- },
2147
- "type": "array"
2148
- },
2149
2188
  "d1_databases": {
2150
2189
  "default": "`[]`",
2151
2190
  "description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
@@ -2389,6 +2428,58 @@
2389
2428
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
2390
2429
  "type": "string"
2391
2430
  },
2431
+ "migrations": {
2432
+ "default": [],
2433
+ "description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
2434
+ "items": {
2435
+ "additionalProperties": false,
2436
+ "properties": {
2437
+ "deleted_classes": {
2438
+ "description": "The Durable Objects being removed.",
2439
+ "items": {
2440
+ "type": "string"
2441
+ },
2442
+ "type": "array"
2443
+ },
2444
+ "new_classes": {
2445
+ "description": "The new Durable Objects being defined.",
2446
+ "items": {
2447
+ "type": "string"
2448
+ },
2449
+ "type": "array"
2450
+ },
2451
+ "renamed_classes": {
2452
+ "description": "The Durable Objects being renamed.",
2453
+ "items": {
2454
+ "additionalProperties": false,
2455
+ "properties": {
2456
+ "from": {
2457
+ "type": "string"
2458
+ },
2459
+ "to": {
2460
+ "type": "string"
2461
+ }
2462
+ },
2463
+ "required": [
2464
+ "from",
2465
+ "to"
2466
+ ],
2467
+ "type": "object"
2468
+ },
2469
+ "type": "array"
2470
+ },
2471
+ "tag": {
2472
+ "description": "A unique identifier for this migration.",
2473
+ "type": "string"
2474
+ }
2475
+ },
2476
+ "required": [
2477
+ "tag"
2478
+ ],
2479
+ "type": "object"
2480
+ },
2481
+ "type": "array"
2482
+ },
2392
2483
  "minify": {
2393
2484
  "description": "Minify the script before uploading.",
2394
2485
  "type": "boolean"
@@ -2863,7 +2954,7 @@
2863
2954
  "additionalProperties": false,
2864
2955
  "properties": {
2865
2956
  "environment": {
2866
- "description": "(Optional) The environt of the service.",
2957
+ "description": "(Optional) The environment of the service.",
2867
2958
  "type": "string"
2868
2959
  },
2869
2960
  "service": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrangler",
3
- "version": "0.0.0-e57758f8",
3
+ "version": "0.0.0-e5afae0f",
4
4
  "description": "Command-line interface for all things Cloudflare Workers",
5
5
  "keywords": [
6
6
  "wrangler",
@@ -47,97 +47,70 @@
47
47
  "wrangler-dist",
48
48
  "templates",
49
49
  "kv-asset-handler.js",
50
- "Cloudflare_CA.pem",
51
50
  "config-schema.json"
52
51
  ],
53
- "jest": {
54
- "moduleNameMapper": {
55
- "clipboardy": "<rootDir>/src/__tests__/helpers/clipboardy-mock.js",
56
- "miniflare/cli": "<rootDir>/../../node_modules/miniflare/dist/src/cli.js"
57
- },
58
- "restoreMocks": true,
59
- "setupFilesAfterEnv": [
60
- "<rootDir>/src/__tests__/jest.setup.ts"
61
- ],
62
- "testRegex": "src/__tests__/.*\\.(test|spec)\\.[jt]sx?$",
63
- "testTimeout": 50000,
64
- "transform": {
65
- "^.+\\.c?(t|j)sx?$": [
66
- "esbuild-jest",
67
- {
68
- "sourcemap": true
69
- }
70
- ]
71
- },
72
- "transformIgnorePatterns": [
73
- "node_modules/.pnpm/(?!find-up|locate-path|p-locate|p-limit|p-timeout|p-queue|yocto-queue|path-exists|execa|strip-final-newline|npm-run-path|path-key|onetime|mimic-fn|human-signals|is-stream|get-port|supports-color|pretty-bytes|strip-ansi|ansi-regex)"
74
- ],
75
- "snapshotFormat": {
76
- "escapeString": true,
77
- "printBasicPrototype": true
78
- }
79
- },
80
52
  "dependencies": {
81
53
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
82
54
  "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
83
55
  "blake3-wasm": "^2.1.5",
84
56
  "chokidar": "^3.5.3",
57
+ "date-fns": "^3.6.0",
85
58
  "esbuild": "0.17.19",
86
59
  "nanoid": "^3.3.3",
87
60
  "path-to-regexp": "^6.2.0",
88
61
  "resolve": "^1.22.8",
89
62
  "resolve.exports": "^2.0.2",
90
63
  "selfsigned": "^2.0.1",
91
- "source-map": "0.6.1",
64
+ "source-map": "^0.6.1",
65
+ "unenv": "npm:unenv-nightly@1.10.0-1717606461.a117952",
66
+ "workerd": "1.20240718.0",
92
67
  "xxhash-wasm": "^1.0.1",
93
- "@cloudflare/kv-asset-handler": "0.3.2",
94
- "miniflare": "3.20240419.0"
68
+ "@cloudflare/kv-asset-handler": "0.3.4",
69
+ "miniflare": "3.20240718.0"
95
70
  },
96
71
  "devDependencies": {
97
- "@cloudflare/eslint-config-worker": "*",
98
72
  "@cloudflare/types": "^6.18.4",
99
- "@cloudflare/workers-types": "^4.20240419.0",
73
+ "@cloudflare/workers-types": "^4.20240718.0",
100
74
  "@cspotcode/source-map-support": "0.8.1",
101
75
  "@iarna/toml": "^3.0.0",
102
- "@microsoft/api-extractor": "^7.28.3",
76
+ "@microsoft/api-extractor": "^7.47.0",
103
77
  "@sentry/node": "^7.86.0",
104
78
  "@sentry/types": "^7.86.0",
105
79
  "@sentry/utils": "^7.86.0",
106
80
  "@types/body-parser": "^1.19.2",
107
81
  "@types/command-exists": "^1.2.0",
108
82
  "@types/express": "^4.17.13",
109
- "@types/glob-to-regexp": "0.4.1",
83
+ "@types/glob-to-regexp": "^0.4.1",
110
84
  "@types/is-ci": "^3.0.0",
111
85
  "@types/javascript-time-ago": "^2.0.3",
112
- "@types/jest": "^29.5.5",
113
- "@types/mime": "^2.0.3",
86
+ "@types/mime": "^3.0.4",
114
87
  "@types/minimatch": "^5.1.2",
115
88
  "@types/prompts": "^2.0.14",
116
- "@types/react": "^17.0.37",
89
+ "@types/react": "^18.2.21",
117
90
  "@types/resolve": "^1.20.6",
118
91
  "@types/serve-static": "^1.13.10",
119
92
  "@types/shell-quote": "^1.7.2",
120
93
  "@types/signal-exit": "^3.0.1",
121
94
  "@types/supports-color": "^8.1.1",
122
- "@types/ws": "^8.5.3",
123
- "@types/yargs": "^17.0.10",
95
+ "@types/ws": "^8.5.7",
96
+ "@types/yargs": "^17.0.22",
97
+ "@vitest/ui": "^1.6.0",
124
98
  "@webcontainer/env": "^1.1.0",
125
99
  "body-parser": "^1.20.0",
126
- "chalk": "^2.4.2",
100
+ "chalk": "^5.2.0",
127
101
  "cli-table3": "^0.6.3",
128
102
  "clipboardy": "^3.0.0",
129
103
  "cmd-shim": "^4.1.0",
130
104
  "command-exists": "^1.2.9",
131
- "concurrently": "^7.2.2",
132
- "devtools-protocol": "^0.0.955664",
105
+ "concurrently": "^8.2.2",
106
+ "devtools-protocol": "^0.0.1182435",
133
107
  "dotenv": "^16.0.0",
134
108
  "es-module-lexer": "^1.3.0",
135
- "esbuild-jest": "0.5.0",
136
109
  "execa": "^6.1.0",
137
110
  "express": "^4.18.1",
138
111
  "find-up": "^6.3.0",
139
- "get-port": "^6.1.2",
140
- "glob-to-regexp": "0.4.1",
112
+ "get-port": "^7.0.0",
113
+ "glob-to-regexp": "^0.4.1",
141
114
  "http-terminator": "^3.2.0",
142
115
  "https-proxy-agent": "7.0.2",
143
116
  "ignore": "^5.2.0",
@@ -147,53 +120,60 @@
147
120
  "ink-table": "^3.0.0",
148
121
  "is-ci": "^3.0.1",
149
122
  "javascript-time-ago": "^2.5.4",
150
- "jest": "^29.7.0",
151
- "jest-fetch-mock": "^3.0.3",
152
- "jest-websocket-mock": "^2.5.0",
123
+ "md5-file": "5.0.0",
153
124
  "mime": "^3.0.0",
154
125
  "minimatch": "^5.1.0",
155
- "msw": "^0.49.1",
126
+ "mock-socket": "^9.3.1",
127
+ "msw": "^2.3.0",
156
128
  "open": "^8.4.0",
157
129
  "p-queue": "^7.2.0",
158
130
  "patch-console": "^1.0.0",
159
131
  "pretty-bytes": "^6.0.0",
160
132
  "prompts": "^2.4.2",
161
- "react": "^17.0.2",
133
+ "ps-list": "^8.1.1",
134
+ "react": "^18.2.0",
162
135
  "react-error-boundary": "^3.1.4",
163
136
  "semiver": "^1.1.0",
164
137
  "serve-static": "^1.15.0",
165
138
  "shell-quote": "^1.8.1",
166
139
  "shellac": "^0.8.0",
167
140
  "signal-exit": "^3.0.7",
168
- "strip-ansi": "^7.0.1",
141
+ "strip-ansi": "^7.1.0",
169
142
  "supports-color": "^9.2.2",
170
143
  "timeago.js": "^4.0.2",
144
+ "tree-kill": "^1.2.2",
171
145
  "ts-dedent": "^2.2.0",
172
146
  "ts-json-schema-generator": "^1.5.0",
173
- "undici": "5.28.3",
147
+ "undici": "^5.28.4",
174
148
  "update-check": "^1.5.4",
175
- "ws": "^8.5.0",
149
+ "vitest": "^1.6.0",
150
+ "vitest-websocket-mock": "^0.3.0",
151
+ "ws": "^8.17.1",
176
152
  "xdg-app-paths": "^8.3.0",
177
153
  "yargs": "^17.7.2",
178
154
  "yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
155
+ "@cloudflare/eslint-config-worker": "1.1.0",
179
156
  "@cloudflare/cli": "1.1.1",
180
- "@cloudflare/pages-shared": "^0.11.33",
157
+ "@cloudflare/pages-shared": "^0.11.48",
181
158
  "@cloudflare/workers-tsconfig": "0.0.0"
182
159
  },
183
- "optionalDependencies": {
184
- "fsevents": "~2.3.2"
185
- },
186
160
  "peerDependencies": {
187
- "@cloudflare/workers-types": "^4.20240419.0"
161
+ "@cloudflare/workers-types": "^4.20240718.0"
188
162
  },
189
163
  "peerDependenciesMeta": {
190
164
  "@cloudflare/workers-types": {
191
165
  "optional": true
192
166
  }
193
167
  },
168
+ "optionalDependencies": {
169
+ "fsevents": "~2.3.2"
170
+ },
194
171
  "engines": {
195
172
  "node": ">=16.17.0"
196
173
  },
174
+ "volta": {
175
+ "extends": "../../package.json"
176
+ },
197
177
  "workers-sdk": {
198
178
  "prerelease": true
199
179
  },
@@ -201,17 +181,17 @@
201
181
  "assert-git-version": "node -r esbuild-register scripts/assert-git-version.ts",
202
182
  "build": "pnpm run clean && pnpm run bundle && pnpm run emit-types && pnpm run generate-json-schema",
203
183
  "bundle": "node -r esbuild-register scripts/bundle.ts",
204
- "check:lint": "eslint .",
184
+ "check:lint": "eslint . --max-warnings=0",
205
185
  "check:type": "tsc",
206
186
  "clean": "rimraf wrangler-dist miniflare-dist emitted-types",
207
187
  "dev": "pnpm run clean && concurrently -c black,blue --kill-others-on-fail false \"pnpm run bundle --watch\" \"pnpm run check:type --watch --preserveWatchOutput\"",
208
188
  "emit-types": "tsc -p tsconfig.emit.json && node -r esbuild-register scripts/emit-types.ts",
209
189
  "generate-json-schema": "pnpm exec ts-json-schema-generator --no-type-check --path src/config/config.ts --type RawConfig --out config-schema.json",
210
190
  "start": "pnpm run bundle && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
211
- "test": "pnpm run assert-git-version && jest",
212
- "test:ci": "pnpm run test",
191
+ "test": "pnpm run assert-git-version && vitest",
192
+ "test:ci": "pnpm run test run",
213
193
  "test:debug": "pnpm run test --silent=false --verbose=true",
214
- "test:e2e": "vitest -c ./e2e/vitest.config.ts",
194
+ "test:e2e": "vitest -c ./e2e/vitest.config.mts",
215
195
  "test:watch": "pnpm run test --testTimeout=50000 --watch",
216
196
  "type:tests": "tsc -p ./src/__tests__/tsconfig.json && tsc -p ./e2e/tsconfig.json"
217
197
  }
@@ -9,7 +9,7 @@ function checkURL(request, init) {
9
9
  ? new Request(request, init)
10
10
  : request
11
11
  ).url
12
- );
12
+ );
13
13
  if (url.port && url.port !== "443" && url.protocol === "https:") {
14
14
  if (!urls.has(url.toString())) {
15
15
  urls.add(url.toString());
@@ -3,10 +3,10 @@ declare module "__ENTRY_POINT__" {
3
3
  import { WorkerEntrypoint } from "cloudflare:workers";
4
4
 
5
5
  export type WorkerEntrypointConstructor = typeof WorkerEntrypoint;
6
- export type WithMiddleware<T> = T & { middleware?: Middleware[] };
7
6
 
8
- const worker: WithMiddleware<ExportedHandler | WorkerEntrypointConstructor>;
7
+ const worker: ExportedHandler | WorkerEntrypointConstructor;
9
8
  export default worker;
9
+ export const __INTERNAL_WRANGLER_MIDDLEWARE__: Middleware[];
10
10
  }
11
11
 
12
12
  declare module "__KV_ASSET_HANDLER__" {
@@ -165,3 +165,6 @@ dist
165
165
  .yarn/build-state.yml
166
166
  .yarn/install-state.gz
167
167
  .pnp.\*
168
+
169
+ .wrangler
170
+ .DS_Store