@cloudflare/vite-plugin 0.0.0-9b469e213 → 0.0.0-9b66c33e4

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.
@@ -11,11 +11,12 @@ var ADDITIONAL_MODULE_TYPES = [
11
11
  "Data",
12
12
  "Text"
13
13
  ];
14
+ var kRequestType = Symbol("kRequestType");
14
15
 
15
16
  // src/shared.ts
16
17
  var UNKNOWN_HOST = "http://localhost";
17
18
  var INIT_PATH = "/__vite_plugin_cloudflare_init__";
18
- var ADDITIONAL_MODULE_PATTERN = `__CLOUDFLARE_MODULE__(${ADDITIONAL_MODULE_TYPES.join("|")})__(.*?)__`;
19
+ var ADDITIONAL_MODULE_PATTERN = `__CLOUDFLARE_MODULE__(${ADDITIONAL_MODULE_TYPES.join("|")})__(.*?)__CLOUDFLARE_MODULE__`;
19
20
  var additionalModuleRE = new RegExp(ADDITIONAL_MODULE_PATTERN);
20
21
  var additionalModuleGlobalRE = new RegExp(
21
22
  ADDITIONAL_MODULE_PATTERN,
@@ -29,7 +30,7 @@ function stripInternalEnv(internalEnv) {
29
30
  return userEnv;
30
31
  }
31
32
 
32
- // ../../node_modules/.pnpm/vite@6.1.0_@types+node@18.19.76_jiti@2.4.2_lightningcss@1.29.2/node_modules/vite/dist/node/module-runner.js
33
+ // ../../node_modules/.pnpm/vite@6.1.0_@types+node@20.17.32_jiti@2.4.2_lightningcss@1.29.2/node_modules/vite/dist/node/module-runner.js
33
34
  var VALID_ID_PREFIX = "/@id/";
34
35
  var NULL_BYTE_PLACEHOLDER = "__x00__";
35
36
  var SOURCEMAPPING_URL = "sourceMa";
@@ -1435,20 +1436,21 @@ async function getWorkerEntryExport(path, entrypoint) {
1435
1436
  }
1436
1437
 
1437
1438
  // src/runner-worker/index.ts
1439
+ var IGNORED_KEYS = ["self", "tailStream"];
1438
1440
  var WORKER_ENTRYPOINT_KEYS = [
1439
1441
  "fetch",
1442
+ "queue",
1440
1443
  "tail",
1444
+ "test",
1441
1445
  "trace",
1442
- "scheduled",
1443
- "queue",
1444
- "test"
1446
+ "scheduled"
1445
1447
  ];
1446
1448
  var DURABLE_OBJECT_KEYS = [
1447
- "fetch",
1448
1449
  "alarm",
1449
- "webSocketMessage",
1450
+ "fetch",
1450
1451
  "webSocketClose",
1451
- "webSocketError"
1452
+ "webSocketError",
1453
+ "webSocketMessage"
1452
1454
  ];
1453
1455
  var WORKFLOW_ENTRYPOINT_KEYS = ["run"];
1454
1456
  var entryPath = "";
@@ -1513,7 +1515,7 @@ function createWorkerEntrypointWrapper(entrypoint) {
1513
1515
  if (value !== void 0) {
1514
1516
  return value;
1515
1517
  }
1516
- if (key === "self" || typeof key === "symbol" || DURABLE_OBJECT_KEYS.includes(key)) {
1518
+ if (typeof key === "symbol" || IGNORED_KEYS.includes(key) || DURABLE_OBJECT_KEYS.includes(key)) {
1517
1519
  return;
1518
1520
  }
1519
1521
  const property = getWorkerEntrypointRpcProperty.call(
@@ -1611,7 +1613,7 @@ function createDurableObjectWrapper(className) {
1611
1613
  if (value !== void 0) {
1612
1614
  return value;
1613
1615
  }
1614
- if (key === "self" || typeof key === "symbol" || WORKER_ENTRYPOINT_KEYS.includes(key)) {
1616
+ if (typeof key === "symbol" || IGNORED_KEYS.includes(key) || WORKER_ENTRYPOINT_KEYS.includes(key)) {
1615
1617
  return;
1616
1618
  }
1617
1619
  const property = getDurableObjectRpcProperty.call(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/vite-plugin",
3
- "version": "0.0.0-9b469e213",
3
+ "version": "0.0.0-9b66c33e4",
4
4
  "description": "Cloudflare plugin for Vite",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -33,30 +33,30 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@hattip/adapter-node": "^0.0.49",
36
+ "@cloudflare/unenv-preset": "2.3.2",
37
+ "@mjackson/node-fetch-server": "^0.6.1",
38
+ "@rollup/plugin-replace": "^6.0.1",
37
39
  "get-port": "^7.1.0",
38
40
  "picocolors": "^1.1.1",
39
41
  "tinyglobby": "^0.2.12",
40
- "unenv": "2.0.0-rc.15",
42
+ "unenv": "2.0.0-rc.17",
41
43
  "ws": "8.18.0",
42
- "@cloudflare/unenv-preset": "0.0.0-9b469e213",
43
- "miniflare": "0.0.0-9b469e213",
44
- "wrangler": "0.0.0-9b469e213"
44
+ "miniflare": "0.0.0-9b66c33e4",
45
+ "wrangler": "0.0.0-9b66c33e4"
45
46
  },
46
47
  "devDependencies": {
47
- "@cloudflare/workers-types": "^4.20250321.0",
48
+ "@cloudflare/workers-types": "^4.20250604.0",
48
49
  "@types/node": "^22.10.1",
49
50
  "@types/ws": "^8.5.13",
50
51
  "magic-string": "^0.30.12",
51
52
  "mlly": "^1.7.4",
52
53
  "tsup": "8.3.0",
53
54
  "typescript": "^5.7.2",
54
- "undici": "^5.28.5",
55
55
  "vite": "^6.1.0",
56
- "vitest": "~3.0.8",
56
+ "vitest": "~3.1.1",
57
57
  "@cloudflare/mock-npm-registry": "0.0.0",
58
58
  "@cloudflare/workers-tsconfig": "0.0.0",
59
- "@cloudflare/workers-shared": "0.0.0-9b469e213"
59
+ "@cloudflare/workers-shared": "0.0.0-9b66c33e4"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "vite": "^6.1.0",