wrangler 0.0.0-ca41ebf0e → 0.0.0-ca6001066
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 +0 -6
- package/config-schema.json +42 -0
- package/package.json +18 -16
- package/templates/pages-dev-pipeline.ts +3 -2
- package/templates/tsconfig.json +8 -1
- package/templates/tsconfig.tsbuildinfo +1 -0
- package/wrangler-dist/cli.d.ts +114 -83
- package/wrangler-dist/cli.js +82356 -96064
package/bin/wrangler.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const { spawn } = require("child_process");
|
|
3
3
|
const path = require("path");
|
|
4
|
-
const fs = require("fs");
|
|
5
|
-
const os = require("os");
|
|
6
4
|
|
|
7
5
|
const MIN_NODE_VERSION = "16.13.0";
|
|
8
|
-
const debug =
|
|
9
|
-
process.env["WRANGLER_LOG"] === "debug"
|
|
10
|
-
? (...args) => console.log(...args)
|
|
11
|
-
: () => {};
|
|
12
6
|
|
|
13
7
|
let wranglerProcess;
|
|
14
8
|
|
package/config-schema.json
CHANGED
|
@@ -603,6 +603,20 @@
|
|
|
603
603
|
},
|
|
604
604
|
"type": "array"
|
|
605
605
|
},
|
|
606
|
+
"images": {
|
|
607
|
+
"additionalProperties": false,
|
|
608
|
+
"default": {},
|
|
609
|
+
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
610
|
+
"properties": {
|
|
611
|
+
"binding": {
|
|
612
|
+
"type": "string"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
"required": [
|
|
616
|
+
"binding"
|
|
617
|
+
],
|
|
618
|
+
"type": "object"
|
|
619
|
+
},
|
|
606
620
|
"jsx_factory": {
|
|
607
621
|
"default": "React.createElement",
|
|
608
622
|
"description": "The function to use to replace jsx syntax.",
|
|
@@ -1575,6 +1589,20 @@
|
|
|
1575
1589
|
},
|
|
1576
1590
|
"type": "array"
|
|
1577
1591
|
},
|
|
1592
|
+
"images": {
|
|
1593
|
+
"additionalProperties": false,
|
|
1594
|
+
"default": {},
|
|
1595
|
+
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1596
|
+
"properties": {
|
|
1597
|
+
"binding": {
|
|
1598
|
+
"type": "string"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"required": [
|
|
1602
|
+
"binding"
|
|
1603
|
+
],
|
|
1604
|
+
"type": "object"
|
|
1605
|
+
},
|
|
1578
1606
|
"jsx_factory": {
|
|
1579
1607
|
"default": "React.createElement",
|
|
1580
1608
|
"description": "The function to use to replace jsx syntax.",
|
|
@@ -2612,6 +2640,20 @@
|
|
|
2612
2640
|
},
|
|
2613
2641
|
"type": "array"
|
|
2614
2642
|
},
|
|
2643
|
+
"images": {
|
|
2644
|
+
"additionalProperties": false,
|
|
2645
|
+
"default": {},
|
|
2646
|
+
"description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2647
|
+
"properties": {
|
|
2648
|
+
"binding": {
|
|
2649
|
+
"type": "string"
|
|
2650
|
+
}
|
|
2651
|
+
},
|
|
2652
|
+
"required": [
|
|
2653
|
+
"binding"
|
|
2654
|
+
],
|
|
2655
|
+
"type": "object"
|
|
2656
|
+
},
|
|
2615
2657
|
"jsx_factory": {
|
|
2616
2658
|
"default": "React.createElement",
|
|
2617
2659
|
"description": "The function to use to replace jsx syntax.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-ca6001066",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -50,20 +50,21 @@
|
|
|
50
50
|
"config-schema.json"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
+
"@cloudflare/unenv-preset": "2.0.0",
|
|
53
54
|
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
|
|
54
55
|
"@esbuild-plugins/node-modules-polyfill": "0.2.2",
|
|
55
56
|
"blake3-wasm": "2.1.5",
|
|
56
57
|
"esbuild": "0.17.19",
|
|
57
58
|
"path-to-regexp": "6.3.0",
|
|
58
|
-
"unenv": "2.0.0-rc.
|
|
59
|
-
"workerd": "1.
|
|
59
|
+
"unenv": "2.0.0-rc.8",
|
|
60
|
+
"workerd": "1.20250224.0",
|
|
60
61
|
"@cloudflare/kv-asset-handler": "0.3.4",
|
|
61
|
-
"miniflare": "0.0.0-
|
|
62
|
+
"miniflare": "0.0.0-ca6001066"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
65
66
|
"@cloudflare/types": "6.18.4",
|
|
66
|
-
"@cloudflare/workers-types": "^4.
|
|
67
|
+
"@cloudflare/workers-types": "^4.20250224.0",
|
|
67
68
|
"@cspotcode/source-map-support": "0.8.1",
|
|
68
69
|
"@iarna/toml": "^3.0.0",
|
|
69
70
|
"@microsoft/api-extractor": "^7.47.0",
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
"@types/javascript-time-ago": "^2.0.3",
|
|
77
78
|
"@types/mime": "^3.0.4",
|
|
78
79
|
"@types/minimatch": "^5.1.2",
|
|
79
|
-
"@types/node": "^18.19.
|
|
80
|
+
"@types/node": "^18.19.75",
|
|
80
81
|
"@types/node-forge": "^1.3.11",
|
|
81
82
|
"@types/prompts": "^2.0.14",
|
|
82
83
|
"@types/resolve": "^1.20.6",
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
"@types/supports-color": "^8.1.1",
|
|
86
87
|
"@types/ws": "^8.5.7",
|
|
87
88
|
"@types/yargs": "^17.0.22",
|
|
88
|
-
"@vitest/ui": "~
|
|
89
|
+
"@vitest/ui": "~3.0.5",
|
|
89
90
|
"@webcontainer/env": "^1.1.0",
|
|
90
91
|
"chalk": "^5.2.0",
|
|
91
92
|
"chokidar": "^4.0.1",
|
|
@@ -129,22 +130,22 @@
|
|
|
129
130
|
"ts-dedent": "^2.2.0",
|
|
130
131
|
"ts-json-schema-generator": "^1.5.0",
|
|
131
132
|
"typescript": "^5.7.2",
|
|
132
|
-
"undici": "^5.28.
|
|
133
|
+
"undici": "^5.28.5",
|
|
133
134
|
"update-check": "^1.5.4",
|
|
134
|
-
"vitest": "~
|
|
135
|
+
"vitest": "~3.0.5",
|
|
135
136
|
"vitest-websocket-mock": "^0.4.0",
|
|
136
|
-
"ws": "
|
|
137
|
+
"ws": "8.18.0",
|
|
137
138
|
"xdg-app-paths": "^8.3.0",
|
|
138
139
|
"xxhash-wasm": "^1.0.1",
|
|
139
140
|
"yargs": "^17.7.2",
|
|
140
141
|
"@cloudflare/cli": "1.1.1",
|
|
141
|
-
"@cloudflare/workers-shared": "0.0.0-ca41ebf0e",
|
|
142
|
-
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
143
142
|
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
144
|
-
"@cloudflare/pages-shared": "^0.13.
|
|
143
|
+
"@cloudflare/pages-shared": "^0.13.12",
|
|
144
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
145
|
+
"@cloudflare/workers-shared": "0.0.0-ca6001066"
|
|
145
146
|
},
|
|
146
147
|
"peerDependencies": {
|
|
147
|
-
"@cloudflare/workers-types": "^4.
|
|
148
|
+
"@cloudflare/workers-types": "^4.20250224.0"
|
|
148
149
|
},
|
|
149
150
|
"peerDependenciesMeta": {
|
|
150
151
|
"@cloudflare/workers-types": {
|
|
@@ -152,7 +153,8 @@
|
|
|
152
153
|
}
|
|
153
154
|
},
|
|
154
155
|
"optionalDependencies": {
|
|
155
|
-
"fsevents": "~2.3.2"
|
|
156
|
+
"fsevents": "~2.3.2",
|
|
157
|
+
"sharp": "^0.33.5"
|
|
156
158
|
},
|
|
157
159
|
"engines": {
|
|
158
160
|
"node": ">=16.17.0"
|
|
@@ -168,7 +170,7 @@
|
|
|
168
170
|
"build": "pnpm run clean && pnpm run bundle && pnpm run emit-types && pnpm run generate-json-schema",
|
|
169
171
|
"bundle": "node -r esbuild-register scripts/bundle.ts",
|
|
170
172
|
"check:lint": "eslint . --max-warnings=0",
|
|
171
|
-
"check:type": "tsc",
|
|
173
|
+
"check:type": "tsc -p ./tsconfig.json && tsc -p ./templates/tsconfig.json",
|
|
172
174
|
"clean": "rimraf wrangler-dist miniflare-dist emitted-types",
|
|
173
175
|
"dev": "pnpm run clean && concurrently -c black,blue --kill-others-on-fail false \"pnpm run bundle --watch\" \"pnpm run check:type --watch --preserveWatchOutput\"",
|
|
174
176
|
"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
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../kv-asset-handler/dist/types.d.ts","../../kv-asset-handler/dist/index.d.ts","./facade.d.ts","./new-worker-scheduled.ts","./new-worker.ts","./pages-dev-util.ts","./pages-dev-pipeline.ts","./pages-shim.ts","../../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.d.ts","./pages-template-plugin.ts","./pages-template-worker.ts","./tsconfig-sanity.ts","../../../node_modules/.pnpm/@cloudflare+workers-types@4.20250224.0/node_modules/@cloudflare/workers-types/index.d.ts"],"fileIdsList":[[77],[78,89],[79,82],[85]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"6f95c83f91ad636346cc814bf03c3fdf8a39c7cedb53caa9b1aa761b6bbfe8e3",{"version":"98444deaf69824431100bc3193c1b584b97a2dfa27c3532ee1e66ede80aeb1e0","affectsGlobalScope":true},"21e332251fba888749bdfb469d75151cda53e6225c17c3d5d99fe7f0e9ba7a99","f8227c46884809590bdb0f348aae069a0b1f3b40a7f6862f316f3e89f389fed7","61b45076da627452aa68f371e3fbbf9686509cc65ae4ff848c1a58014285755e","000e5d1634879510274a1056ee148c61a063bf5e18b795838052a80a5bc11975","c7da59ddbe3fc9dcce0db61b26ee2c994dced5f01d06bc050e22e837d573a314","0c525b0ff043431a3ee59fd55dccf4ff56dac44434c487ed36f277bbe68a1970",{"version":"b512c4da6f7b9d49d9783df341de42b7aa0e90587352d269262f0135ccac4701","impliedFormat":1},"14d01eeb73d87049122fdfddd315a9e6b224eed20aceea65d6ffb27beb0b38eb","2693821298b92daa7dfc7ab7596795cf24544539bfc8cb8b285c983f30c75bf2","675d74367d696b7a52f2a515036acf36b2ef341c385d3944dc531d753b257e65",{"version":"5a5f198e3af3b63d92b982d16bb0043539ca61ed0f63b761c6dcae49b897d5ba","affectsGlobalScope":true,"impliedFormat":1}],"root":[[79,84],[86,88]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"alwaysStrict":false,"esModuleInterop":true,"skipLibCheck":true,"strict":true,"target":99},"referencedMap":[[78,1],[79,2],[83,3],[86,4],[87,4]],"affectedFilesPendingEmit":[80,81,83,82,84,86,87,88],"version":"5.7.3"}
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -74,20 +74,26 @@ declare type ApiCredentials = {
|
|
|
74
74
|
declare type AssetConfig = z.infer<typeof AssetConfigSchema>;
|
|
75
75
|
|
|
76
76
|
declare const AssetConfigSchema: z.ZodObject<{
|
|
77
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
80
|
+
compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
77
81
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
78
82
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
79
|
-
serve_directly: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
run_worker_first: z.ZodOptional<z.ZodBoolean>;
|
|
81
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
account_id?: number;
|
|
85
|
+
script_id?: number;
|
|
86
|
+
compatibility_date?: string;
|
|
87
|
+
compatibility_flags?: string[];
|
|
82
88
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
83
89
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
84
|
-
serve_directly?: boolean;
|
|
85
|
-
run_worker_first?: boolean;
|
|
86
90
|
}, {
|
|
91
|
+
account_id?: number;
|
|
92
|
+
script_id?: number;
|
|
93
|
+
compatibility_date?: string;
|
|
94
|
+
compatibility_flags?: string[];
|
|
87
95
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
88
96
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
89
|
-
serve_directly?: boolean;
|
|
90
|
-
run_worker_first?: boolean;
|
|
91
97
|
}>;
|
|
92
98
|
|
|
93
99
|
declare type Assets = {
|
|
@@ -111,8 +117,10 @@ declare type Assets = {
|
|
|
111
117
|
declare type AssetsOptions = {
|
|
112
118
|
directory: string;
|
|
113
119
|
binding?: string;
|
|
114
|
-
|
|
120
|
+
routerConfig: RouterConfig;
|
|
115
121
|
assetConfig: AssetConfig;
|
|
122
|
+
_redirects?: string;
|
|
123
|
+
_headers?: string;
|
|
116
124
|
};
|
|
117
125
|
|
|
118
126
|
declare type AsyncHook<T extends HookValues, Args extends unknown[] = []> = Hook<T, Args> | Hook<Promise<T>, Args>;
|
|
@@ -162,6 +170,8 @@ declare type Binding = {
|
|
|
162
170
|
type: "browser";
|
|
163
171
|
} | {
|
|
164
172
|
type: "ai";
|
|
173
|
+
} | {
|
|
174
|
+
type: "images";
|
|
165
175
|
} | {
|
|
166
176
|
type: "version_metadata";
|
|
167
177
|
} | {
|
|
@@ -177,24 +187,24 @@ declare type Binding = {
|
|
|
177
187
|
type: "r2_bucket";
|
|
178
188
|
} & BindingOmit<CfR2Bucket>) | ({
|
|
179
189
|
type: "d1";
|
|
180
|
-
} &
|
|
190
|
+
} & BindingOmit<CfD1Database>) | ({
|
|
181
191
|
type: "vectorize";
|
|
182
|
-
} &
|
|
192
|
+
} & BindingOmit<CfVectorize>) | ({
|
|
183
193
|
type: "hyperdrive";
|
|
184
|
-
} &
|
|
194
|
+
} & BindingOmit<CfHyperdrive>) | ({
|
|
185
195
|
type: "service";
|
|
186
|
-
} &
|
|
196
|
+
} & BindingOmit<CfService>) | {
|
|
187
197
|
type: "fetcher";
|
|
188
198
|
fetcher: ServiceFetch;
|
|
189
199
|
} | ({
|
|
190
200
|
type: "analytics_engine";
|
|
191
|
-
} &
|
|
201
|
+
} & BindingOmit<CfAnalyticsEngineDataset>) | ({
|
|
192
202
|
type: "dispatch_namespace";
|
|
193
|
-
} &
|
|
203
|
+
} & BindingOmit<CfDispatchNamespace>) | ({
|
|
194
204
|
type: "mtls_certificate";
|
|
195
|
-
} &
|
|
205
|
+
} & BindingOmit<CfMTlsCertificate>) | ({
|
|
196
206
|
type: "pipeline";
|
|
197
|
-
} &
|
|
207
|
+
} & BindingOmit<CfPipeline>) | ({
|
|
198
208
|
type: "logfwdr";
|
|
199
209
|
} & NameOmit<CfLogfwdrBinding>) | {
|
|
200
210
|
type: `unsafe_${string}`;
|
|
@@ -1013,66 +1023,69 @@ attributes?: { name?: string, domain?: string }
|
|
|
1013
1023
|
* variable set
|
|
1014
1024
|
*/
|
|
1015
1025
|
declare function deploy({ directory, accountId, projectName, branch, skipCaching, commitMessage, commitHash, commitDirty, functionsDirectory: customFunctionsDirectory, bundle, sourceMaps, args, }: PagesDeployOptions): Promise<{
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1026
|
+
deploymentResponse: {
|
|
1027
|
+
url: string;
|
|
1028
|
+
id: string;
|
|
1029
|
+
environment: "production" | "preview";
|
|
1030
|
+
build_config: {
|
|
1031
|
+
build_command: string;
|
|
1032
|
+
destination_dir: string;
|
|
1033
|
+
root_dir: string;
|
|
1034
|
+
web_analytics_tag?: string | undefined;
|
|
1035
|
+
web_analytics_token?: string | undefined;
|
|
1036
|
+
fast_builds?: boolean | undefined;
|
|
1037
|
+
};
|
|
1038
|
+
created_on: string;
|
|
1039
|
+
production_branch: string;
|
|
1040
|
+
project_id: string;
|
|
1041
|
+
project_name: string;
|
|
1042
|
+
deployment_trigger: {
|
|
1043
|
+
metadata: {
|
|
1044
|
+
branch: string;
|
|
1045
|
+
commit_hash: string;
|
|
1046
|
+
commit_message: string;
|
|
1047
|
+
};
|
|
1048
|
+
type: string;
|
|
1049
|
+
};
|
|
1050
|
+
latest_stage: {
|
|
1051
|
+
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
|
1052
|
+
name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
|
|
1053
|
+
started_on: string | null;
|
|
1054
|
+
ended_on: string | null;
|
|
1055
|
+
};
|
|
1056
|
+
stages: {
|
|
1057
|
+
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
|
1058
|
+
name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
|
|
1059
|
+
started_on: string | null;
|
|
1060
|
+
ended_on: string | null;
|
|
1061
|
+
}[];
|
|
1062
|
+
aliases: string[];
|
|
1063
|
+
modified_on: string;
|
|
1064
|
+
short_id: string;
|
|
1065
|
+
build_image_major_version: number;
|
|
1066
|
+
kv_namespaces?: any;
|
|
1067
|
+
source?: {
|
|
1068
|
+
config: {
|
|
1069
|
+
owner: string;
|
|
1070
|
+
repo_name: string;
|
|
1071
|
+
production_branch?: string | undefined;
|
|
1072
|
+
pr_comments_enabled?: boolean | undefined;
|
|
1073
|
+
deployments_enabled?: boolean | undefined;
|
|
1074
|
+
production_deployments_enabled?: boolean | undefined;
|
|
1075
|
+
preview_deployment_setting?: "none" | "custom" | "all" | undefined;
|
|
1076
|
+
preview_branch_includes?: string[] | undefined;
|
|
1077
|
+
preview_branch_excludes?: string[] | undefined;
|
|
1078
|
+
};
|
|
1079
|
+
type: "github" | "gitlab";
|
|
1080
|
+
} | undefined;
|
|
1081
|
+
env_vars?: any;
|
|
1082
|
+
durable_object_namespaces?: any;
|
|
1083
|
+
is_skipped?: boolean | undefined;
|
|
1084
|
+
files?: {
|
|
1085
|
+
[x: string]: string | undefined;
|
|
1086
|
+
} | undefined;
|
|
1044
1087
|
};
|
|
1045
|
-
|
|
1046
|
-
status: "canceled" | "active" | "idle" | "success" | "failure" | "skipped";
|
|
1047
|
-
name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
|
|
1048
|
-
started_on: string | null;
|
|
1049
|
-
ended_on: string | null;
|
|
1050
|
-
}[];
|
|
1051
|
-
aliases: string[];
|
|
1052
|
-
modified_on: string;
|
|
1053
|
-
short_id: string;
|
|
1054
|
-
build_image_major_version: number;
|
|
1055
|
-
kv_namespaces?: any;
|
|
1056
|
-
source?: {
|
|
1057
|
-
config: {
|
|
1058
|
-
owner: string;
|
|
1059
|
-
repo_name: string;
|
|
1060
|
-
production_branch?: string | undefined;
|
|
1061
|
-
pr_comments_enabled?: boolean | undefined;
|
|
1062
|
-
deployments_enabled?: boolean | undefined;
|
|
1063
|
-
production_deployments_enabled?: boolean | undefined;
|
|
1064
|
-
preview_deployment_setting?: "none" | "custom" | "all" | undefined;
|
|
1065
|
-
preview_branch_includes?: string[] | undefined;
|
|
1066
|
-
preview_branch_excludes?: string[] | undefined;
|
|
1067
|
-
};
|
|
1068
|
-
type: "github" | "gitlab";
|
|
1069
|
-
} | undefined;
|
|
1070
|
-
env_vars?: any;
|
|
1071
|
-
durable_object_namespaces?: any;
|
|
1072
|
-
is_skipped?: boolean | undefined;
|
|
1073
|
-
files?: {
|
|
1074
|
-
[x: string]: string | undefined;
|
|
1075
|
-
} | undefined;
|
|
1088
|
+
formData: FormData_2;
|
|
1076
1089
|
}>;
|
|
1077
1090
|
|
|
1078
1091
|
declare interface DeprecatedConfigFields {
|
|
@@ -2174,6 +2187,18 @@ declare interface EnvironmentNonInheritable {
|
|
|
2174
2187
|
binding: string;
|
|
2175
2188
|
staging?: boolean;
|
|
2176
2189
|
} | undefined;
|
|
2190
|
+
/**
|
|
2191
|
+
* Binding to Cloudflare Images
|
|
2192
|
+
*
|
|
2193
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
2194
|
+
* and so must be specified in every named environment.
|
|
2195
|
+
*
|
|
2196
|
+
* @default {}
|
|
2197
|
+
* @nonInheritable
|
|
2198
|
+
*/
|
|
2199
|
+
images: {
|
|
2200
|
+
binding: string;
|
|
2201
|
+
} | undefined;
|
|
2177
2202
|
/**
|
|
2178
2203
|
* Binding to the Worker Version's metadata
|
|
2179
2204
|
*/
|
|
@@ -2801,8 +2826,10 @@ declare class Logger {
|
|
|
2801
2826
|
#private;
|
|
2802
2827
|
constructor();
|
|
2803
2828
|
private overrideLoggerLevel?;
|
|
2829
|
+
private onceHistory;
|
|
2804
2830
|
get loggerLevel(): "log" | "error" | "none" | "debug" | "info" | "warn";
|
|
2805
2831
|
set loggerLevel(val: "log" | "error" | "none" | "debug" | "info" | "warn");
|
|
2832
|
+
resetLoggerLevel(): void;
|
|
2806
2833
|
columns: number;
|
|
2807
2834
|
debug: (...args: unknown[]) => void;
|
|
2808
2835
|
debugWithSanitization: (label: string, ...args: unknown[]) => void;
|
|
@@ -2812,13 +2839,13 @@ declare class Logger {
|
|
|
2812
2839
|
error: (...args: unknown[]) => void;
|
|
2813
2840
|
table<Keys extends string>(data: TableRow<Keys>[]): void;
|
|
2814
2841
|
console<M extends Exclude<keyof Console, "Console">>(method: M, ...args: Parameters<Console[M]>): void;
|
|
2815
|
-
static onceHistory: Set<unknown>;
|
|
2816
2842
|
get once(): {
|
|
2817
2843
|
info: (...args: unknown[]) => void;
|
|
2818
2844
|
log: (...args: unknown[]) => void;
|
|
2819
2845
|
warn: (...args: unknown[]) => void;
|
|
2820
2846
|
error: (...args: unknown[]) => void;
|
|
2821
2847
|
};
|
|
2848
|
+
clearHistory(): void;
|
|
2822
2849
|
doLogOnce(messageLevel: Exclude<LoggerLevel, "none">, args: unknown[]): void;
|
|
2823
2850
|
private doLog;
|
|
2824
2851
|
static registerBeforeLogHook(callback: (() => void) | undefined): void;
|
|
@@ -26000,23 +26027,23 @@ declare namespace RetryHandler {
|
|
|
26000
26027
|
|
|
26001
26028
|
declare type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRoute;
|
|
26002
26029
|
|
|
26003
|
-
declare type
|
|
26030
|
+
declare type RouterConfig = z.infer<typeof RouterConfigSchema>;
|
|
26004
26031
|
|
|
26005
|
-
declare const
|
|
26006
|
-
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
26007
|
-
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
26032
|
+
declare const RouterConfigSchema: z.ZodObject<{
|
|
26008
26033
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
26009
26034
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
26035
|
+
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
26036
|
+
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
26010
26037
|
}, "strip", z.ZodTypeAny, {
|
|
26011
|
-
has_user_worker?: boolean;
|
|
26012
|
-
invoke_user_worker_ahead_of_assets?: boolean;
|
|
26013
26038
|
account_id?: number;
|
|
26014
26039
|
script_id?: number;
|
|
26015
|
-
}, {
|
|
26016
|
-
has_user_worker?: boolean;
|
|
26017
26040
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
26041
|
+
has_user_worker?: boolean;
|
|
26042
|
+
}, {
|
|
26018
26043
|
account_id?: number;
|
|
26019
26044
|
script_id?: number;
|
|
26045
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
26046
|
+
has_user_worker?: boolean;
|
|
26020
26047
|
}>;
|
|
26021
26048
|
|
|
26022
26049
|
/**
|
|
@@ -26190,6 +26217,8 @@ declare interface StartDevWorkerInput {
|
|
|
26190
26217
|
testScheduled?: boolean;
|
|
26191
26218
|
/** Whether to use Vectorize mixed mode -- the worker is run locally but accesses to Vectorize are made remotely */
|
|
26192
26219
|
bindVectorizeToProd?: boolean;
|
|
26220
|
+
/** Whether to use Images local mode -- this is lower fidelity, but doesn't require network access */
|
|
26221
|
+
imagesLocalMode?: boolean;
|
|
26193
26222
|
/** Treat this as the primary worker in a multiworker setup (i.e. the first Worker in Miniflare's options) */
|
|
26194
26223
|
multiworkerPrimary?: boolean;
|
|
26195
26224
|
};
|
|
@@ -26518,6 +26547,7 @@ export declare interface Unstable_DevOptions {
|
|
|
26518
26547
|
devEnv?: boolean;
|
|
26519
26548
|
fileBasedRegistry?: boolean;
|
|
26520
26549
|
vectorizeBindToProd?: boolean;
|
|
26550
|
+
imagesLocalMode?: boolean;
|
|
26521
26551
|
enableIpc?: boolean;
|
|
26522
26552
|
};
|
|
26523
26553
|
}
|
|
@@ -26663,6 +26693,7 @@ declare interface Worker {
|
|
|
26663
26693
|
scheduled: MiniflareWorker["scheduled"];
|
|
26664
26694
|
queue: MiniflareWorker["queue"];
|
|
26665
26695
|
dispose(): Promise<void>;
|
|
26696
|
+
raw: unstable_DevEnv;
|
|
26666
26697
|
}
|
|
26667
26698
|
|
|
26668
26699
|
declare type WorkerDefinition = {
|