@void/svelte 0.10.5 → 0.10.7

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 +3 -4
  2. package/package.json +7 -7
package/dist/plugin.mjs CHANGED
@@ -414,7 +414,6 @@ initIslands(islands, hydrateIsland);
414
414
  }
415
415
  //#endregion
416
416
  //#region src/plugin-pages.ts
417
- const RENDERER_ID = "virtual:void-pages-renderer";
418
417
  const CLIENT_ENTRY_ID = "virtual:void-pages-client";
419
418
  const SVELTE_OPTIMIZE_DEPS = {
420
419
  exclude: ["@void/svelte"],
@@ -457,7 +456,7 @@ function pagesPlugin(pagesDir, options) {
457
456
  return pendingRescan;
458
457
  };
459
458
  const invalidatePageModules = (server) => {
460
- for (const env of Object.values(server.environments)) for (const id of ["\0" + RENDERER_ID, "\0" + CLIENT_ENTRY_ID]) {
459
+ for (const env of Object.values(server.environments)) for (const id of ["\0virtual:void-pages-renderer", "\0virtual:void-pages-client"]) {
461
460
  const mod = env.moduleGraph.getModuleById(id);
462
461
  if (mod) env.moduleGraph.invalidateModule(mod);
463
462
  }
@@ -478,11 +477,11 @@ function pagesPlugin(pagesDir, options) {
478
477
  async handler(id) {
479
478
  if (isDev && pendingRescan) await pendingRescan;
480
479
  if (!pageScan && existsSync(pagesDir)) await runRescan();
481
- if (id === "\0" + RENDERER_ID) {
480
+ if (id === "\0virtual:void-pages-renderer") {
482
481
  if (!pageScan) return "export function renderPage() { throw new Error('No pages found'); }";
483
482
  return generateRendererModule(pageScan, pagesDir, isDev);
484
483
  }
485
- if (id === "\0" + CLIENT_ENTRY_ID) {
484
+ if (id === "\0virtual:void-pages-client") {
486
485
  if (!pageScan) return "";
487
486
  return generateClientEntry(pageScan, pagesDir, options?.viewTransitions, options?.prefetch, resolveStaticPageDataBuildOptions(root, { publicDir: viteConfig?.publicDir }));
488
487
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@void/svelte",
3
- "version": "0.10.5",
3
+ "version": "0.10.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/voidzero-dev/void.git",
@@ -39,17 +39,17 @@
39
39
  "@sveltejs/vite-plugin-svelte": "^7.1.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/node": "^25.6.2",
42
+ "@types/node": "^26.1.0",
43
43
  "pathe": "^2.0.3",
44
- "svelte": "^5.55.5",
45
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.20",
46
- "vite-plus": "^0.1.20",
47
- "void": "0.10.5"
44
+ "svelte": "^5.56.4",
45
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.2.2",
46
+ "vite-plus": "^0.2.2",
47
+ "void": "0.10.7"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "svelte": "^5.0.0",
51
51
  "vite": "^8.0.0",
52
- "void": "0.10.5"
52
+ "void": "0.10.7"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "vp pack",