fimo-vite 2.8.0-staging.12 → 2.8.0-staging.13

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.
@@ -571,18 +571,21 @@ async function readProjectSettings(rootDir) {
571
571
  }
572
572
  return {};
573
573
  }
574
+ // Label and content events go to the Branch room, `<projectId>:<branchKey>`,
575
+ // and the tenant host carries that key as `<projectId>-<branchKey>`. The events
576
+ // worker rejects a bare `<projectId>` room, and one rejected socket would tear
577
+ // down the others on every reconnect.
574
578
  function deriveEventsRooms(projectId, tenantApiUrl) {
575
- const rooms = new Set([projectId]);
576
579
  try {
577
580
  const firstLabel = new URL(tenantApiUrl).hostname.split('.')[0];
578
581
  if (firstLabel.startsWith(`${projectId}-`)) {
579
- rooms.add(`${projectId}:${firstLabel.slice(projectId.length + 1)}`);
582
+ return [`${projectId}:${firstLabel.slice(projectId.length + 1)}`];
580
583
  }
581
584
  }
582
585
  catch {
583
- return [...rooms];
586
+ return [];
584
587
  }
585
- return [...rooms];
588
+ return [];
586
589
  }
587
590
  async function generateOneTimeToken(apiUrl) {
588
591
  const bearer = process.env.FIMO_API_TOKEN?.trim() || (await readStoredToken(apiUrl));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fimo-vite",
3
- "version": "2.8.0-staging.12",
3
+ "version": "2.8.0-staging.13",
4
4
  "description": "Framework-neutral Fimo Vite plugin. Pairs with the fimo package at the same version.",
5
5
  "files": [
6
6
  "dist/",
@@ -31,15 +31,15 @@
31
31
  "oxc-parser": "^0.118.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@fimo/tsconfig": "2.8.0-staging.12",
34
+ "@fimo/tsconfig": "2.8.0-staging.13",
35
35
  "@types/node": "22.18.6",
36
- "fimo": "2.8.0-staging.12",
36
+ "fimo": "2.8.0-staging.13",
37
37
  "typescript": "7.0.2",
38
38
  "vite": "8.3.3",
39
39
  "vitest": "5.0.3"
40
40
  },
41
41
  "peerDependencies": {
42
- "fimo": "2.8.0-staging.12",
42
+ "fimo": "2.8.0-staging.13",
43
43
  "vite": "^7.0.0 || ^8.0.0"
44
44
  },
45
45
  "engines": {