wrangler 3.110.0 → 3.112.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/package.json +4 -4
- package/templates/pages-dev-pipeline.ts +3 -2
- package/templates/tsconfig.json +8 -1
- package/wrangler-dist/cli.js +4491 -35476
- package/wrangler-dist/cli.js.map +4 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.112.0",
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
5
5
|
"keywords": [
|
6
6
|
"wrangler",
|
@@ -58,7 +58,7 @@
|
|
58
58
|
"unenv": "2.0.0-rc.1",
|
59
59
|
"workerd": "1.20250214.0",
|
60
60
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
61
|
-
"miniflare": "3.20250214.
|
61
|
+
"miniflare": "3.20250214.2"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
64
|
"@aws-sdk/client-s3": "^3.721.0",
|
@@ -139,7 +139,7 @@
|
|
139
139
|
"yargs": "^17.7.2",
|
140
140
|
"@cloudflare/cli": "1.1.1",
|
141
141
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
142
|
-
"@cloudflare/pages-shared": "^0.13.
|
142
|
+
"@cloudflare/pages-shared": "^0.13.11",
|
143
143
|
"@cloudflare/workers-shared": "0.14.4",
|
144
144
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
145
145
|
},
|
@@ -169,7 +169,7 @@
|
|
169
169
|
"build": "pnpm run clean && pnpm run bundle && pnpm run emit-types && pnpm run generate-json-schema",
|
170
170
|
"bundle": "node -r esbuild-register scripts/bundle.ts",
|
171
171
|
"check:lint": "eslint . --max-warnings=0",
|
172
|
-
"check:type": "tsc",
|
172
|
+
"check:type": "tsc -p ./tsconfig.json && tsc -p ./templates/tsconfig.json",
|
173
173
|
"clean": "rimraf wrangler-dist miniflare-dist emitted-types",
|
174
174
|
"dev": "pnpm run clean && concurrently -c black,blue --kill-others-on-fail false \"pnpm run bundle --watch\" \"pnpm run check:type --watch --preserveWatchOutput\"",
|
175
175
|
"emit-types": "tsc -p tsconfig.emit.json && node -r esbuild-register scripts/emit-types.ts",
|
@@ -20,10 +20,11 @@ export default <ExportedHandler<{ ASSETS: Fetcher }>>{
|
|
20
20
|
|
21
21
|
for (const include of routes.include) {
|
22
22
|
if (isRoutingRuleMatch(pathname, include)) {
|
23
|
-
|
23
|
+
const workerAsHandler = worker as ExportedHandler;
|
24
|
+
if (workerAsHandler.fetch === undefined) {
|
24
25
|
throw new TypeError("Entry point missing `fetch` handler");
|
25
26
|
}
|
26
|
-
return
|
27
|
+
return workerAsHandler.fetch(request, env, context);
|
27
28
|
}
|
28
29
|
}
|
29
30
|
|
package/templates/tsconfig.json
CHANGED
@@ -4,5 +4,12 @@
|
|
4
4
|
"types": ["@cloudflare/workers-types"]
|
5
5
|
},
|
6
6
|
"include": ["**/*.ts"],
|
7
|
-
"exclude": [
|
7
|
+
"exclude": [
|
8
|
+
"__tests__",
|
9
|
+
"./init-tests/**",
|
10
|
+
// Note: `startDevWorker` and `middleware` should also be included but some work is needed
|
11
|
+
// for that first (see: https://github.com/cloudflare/workers-sdk/issues/8303)
|
12
|
+
"startDevWorker",
|
13
|
+
"middleware"
|
14
|
+
]
|
8
15
|
}
|