@void/solid 0.10.4 → 0.10.6

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.
Files changed (2) hide show
  1. package/dist/plugin.mjs +4 -5
  2. package/package.json +7 -7
package/dist/plugin.mjs CHANGED
@@ -261,7 +261,7 @@ function islandsPlugin(pagesDir, options) {
261
261
  });
262
262
  }
263
263
  const islandId = absPath ? normalizePath(relative(root, absPath)).replace(/\.[^.]+$/, "") : spec;
264
- const wrapperUrl = WRAPPER_PREFIX + "island_" + wrapperId++ + ".tsx";
264
+ const wrapperUrl = "/@void-island-wrap/island_" + wrapperId++ + ".tsx";
265
265
  wrapperMeta.set(wrapperUrl, {
266
266
  src: absPath || spec,
267
267
  islandId,
@@ -399,7 +399,6 @@ initIslands(islands, mountIsland);
399
399
  }
400
400
  //#endregion
401
401
  //#region src/plugin-pages.ts
402
- const RENDERER_ID = "virtual:void-pages-renderer";
403
402
  const CLIENT_ENTRY_ID = "virtual:void-pages-client";
404
403
  /** Check if the pages directory has any non-island page files (.tsx/.jsx without .island.). */
405
404
  function hasNonIslandPages(dir) {
@@ -433,7 +432,7 @@ function pagesPlugin(pagesDir, options) {
433
432
  return pendingRescan;
434
433
  };
435
434
  const invalidatePageModules = (server) => {
436
- for (const env of Object.values(server.environments)) for (const id of ["\0" + RENDERER_ID, "\0" + CLIENT_ENTRY_ID]) {
435
+ for (const env of Object.values(server.environments)) for (const id of ["\0virtual:void-pages-renderer", "\0virtual:void-pages-client"]) {
437
436
  const mod = env.moduleGraph.getModuleById(id);
438
437
  if (mod) env.moduleGraph.invalidateModule(mod);
439
438
  }
@@ -454,11 +453,11 @@ function pagesPlugin(pagesDir, options) {
454
453
  async handler(id) {
455
454
  if (isDev && pendingRescan) await pendingRescan;
456
455
  if (!pageScan && existsSync(pagesDir)) await runRescan();
457
- if (id === "\0" + RENDERER_ID) {
456
+ if (id === "\0virtual:void-pages-renderer") {
458
457
  if (!pageScan) return "export function renderPage() { throw new Error('No pages found'); }";
459
458
  return generateRendererModule(pageScan, pagesDir);
460
459
  }
461
- if (id === "\0" + CLIENT_ENTRY_ID) {
460
+ if (id === "\0virtual:void-pages-client") {
462
461
  if (!pageScan) return "";
463
462
  return generateClientEntry(pageScan, pagesDir, options?.viewTransitions, options?.prefetch, resolveStaticPageDataBuildOptions(root, { publicDir: viteConfig?.publicDir }));
464
463
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@void/solid",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/voidzero-dev/void.git",
@@ -38,17 +38,17 @@
38
38
  "vite-plugin-solid": "^2.11.12"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/node": "^25.6.2",
41
+ "@types/node": "^26.1.0",
42
42
  "pathe": "^2.0.3",
43
- "solid-js": "^1.9.12",
44
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.20",
45
- "vite-plus": "^0.1.20",
46
- "void": "0.10.4"
43
+ "solid-js": "^1.9.14",
44
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.2.2",
45
+ "vite-plus": "^0.2.2",
46
+ "void": "0.10.6"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "solid-js": "^1.9.0",
50
50
  "vite": "^8.0.0",
51
- "void": "0.10.4"
51
+ "void": "0.10.6"
52
52
  },
53
53
  "scripts": {
54
54
  "build": "vp pack",