@cloudflare/vite-plugin 1.15.0 → 1.15.2
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/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/dist/workers/runner-worker.js +26 -22
- package/package.json +7 -7
|
@@ -53,6 +53,32 @@ async function maybeCaptureError(options, fn) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/workers/runner-worker/keys.ts
|
|
58
|
+
/** Keys that should be ignored during RPC property access */
|
|
59
|
+
const IGNORED_KEYS = ["self"];
|
|
60
|
+
/** Available methods for `WorkerEntrypoint` class */
|
|
61
|
+
const WORKER_ENTRYPOINT_KEYS = [
|
|
62
|
+
"email",
|
|
63
|
+
"fetch",
|
|
64
|
+
"queue",
|
|
65
|
+
"tail",
|
|
66
|
+
"tailStream",
|
|
67
|
+
"test",
|
|
68
|
+
"trace",
|
|
69
|
+
"scheduled"
|
|
70
|
+
];
|
|
71
|
+
/** Available methods for `DurableObject` class */
|
|
72
|
+
const DURABLE_OBJECT_KEYS = [
|
|
73
|
+
"alarm",
|
|
74
|
+
"fetch",
|
|
75
|
+
"webSocketClose",
|
|
76
|
+
"webSocketError",
|
|
77
|
+
"webSocketMessage"
|
|
78
|
+
];
|
|
79
|
+
/** Available methods for `WorkflowEntrypoint` classes */
|
|
80
|
+
const WORKFLOW_ENTRYPOINT_KEYS = ["run"];
|
|
81
|
+
|
|
56
82
|
//#endregion
|
|
57
83
|
//#region ../../node_modules/.pnpm/vite@7.0.0_@types+node@20.19.9_jiti@2.6.0_lightningcss@1.30.2_yaml@2.8.1/node_modules/vite/dist/node/module-runner.js
|
|
58
84
|
/**
|
|
@@ -1373,28 +1399,6 @@ async function getWorkerEntryExportTypes() {
|
|
|
1373
1399
|
|
|
1374
1400
|
//#endregion
|
|
1375
1401
|
//#region src/workers/runner-worker/index.ts
|
|
1376
|
-
/** Keys that should be ignored during RPC property access */
|
|
1377
|
-
const IGNORED_KEYS = ["self"];
|
|
1378
|
-
/** Available methods for `WorkerEntrypoint` class */
|
|
1379
|
-
const WORKER_ENTRYPOINT_KEYS = [
|
|
1380
|
-
"fetch",
|
|
1381
|
-
"queue",
|
|
1382
|
-
"tail",
|
|
1383
|
-
"test",
|
|
1384
|
-
"trace",
|
|
1385
|
-
"scheduled",
|
|
1386
|
-
"tailStream"
|
|
1387
|
-
];
|
|
1388
|
-
/** Available methods for `DurableObject` class */
|
|
1389
|
-
const DURABLE_OBJECT_KEYS = [
|
|
1390
|
-
"alarm",
|
|
1391
|
-
"fetch",
|
|
1392
|
-
"webSocketClose",
|
|
1393
|
-
"webSocketError",
|
|
1394
|
-
"webSocketMessage"
|
|
1395
|
-
];
|
|
1396
|
-
/** Available methods for `WorkflowEntrypoint` classes */
|
|
1397
|
-
const WORKFLOW_ENTRYPOINT_KEYS = ["run"];
|
|
1398
1402
|
/** The path to the Worker entry file. We store it in the module scope so that it is easily accessible in error messages etc.. */
|
|
1399
1403
|
let workerEntryPath = "";
|
|
1400
1404
|
let isEntryWorker = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vite-plugin",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"description": "Cloudflare plugin for Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"tinyglobby": "^0.2.12",
|
|
40
40
|
"unenv": "2.0.0-rc.24",
|
|
41
41
|
"ws": "8.18.0",
|
|
42
|
-
"@cloudflare/unenv-preset": "2.7.
|
|
43
|
-
"miniflare": "4.
|
|
44
|
-
"wrangler": "4.
|
|
42
|
+
"@cloudflare/unenv-preset": "2.7.11",
|
|
43
|
+
"miniflare": "4.20251118.1",
|
|
44
|
+
"wrangler": "4.50.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@cloudflare/workers-types": "^4.
|
|
47
|
+
"@cloudflare/workers-types": "^4.20251118.0",
|
|
48
48
|
"@types/node": "^22.10.1",
|
|
49
49
|
"@types/ws": "^8.5.13",
|
|
50
50
|
"magic-string": "^0.30.12",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"typescript": "^5.8.3",
|
|
55
55
|
"vite": "7.0.0",
|
|
56
56
|
"vitest": "~3.2.0",
|
|
57
|
-
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
58
57
|
"@cloudflare/containers-shared": "0.3.0",
|
|
58
|
+
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
59
59
|
"@cloudflare/workers-shared": "0.18.8",
|
|
60
60
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"vite": "^6.1.0 || ^7.0.0",
|
|
64
|
-
"wrangler": "^4.
|
|
64
|
+
"wrangler": "^4.50.0"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|