@absolutejs/absolute 0.8.10 → 0.8.12

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.js CHANGED
@@ -9,6 +9,7 @@ var MILLISECONDS_IN_A_DAY = MILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE * MIN
9
9
  var TIME_PRECISION = 2;
10
10
  var TWO_THIRDS = 2 / 3;
11
11
  var DEFAULT_PORT = 3000;
12
+ var DEFAULT_CHUNK_SIZE = 16384;
12
13
  // src/core/build.ts
13
14
  import { rm as rm2, mkdir as mkdir3, cp } from "fs/promises";
14
15
  import { basename as basename3, join as join3 } from "path";
@@ -190,14 +191,14 @@ var build = async ({
190
191
  const buildPath = validateSafePath(buildDirectory, projectRoot);
191
192
  const assetsPath = assetsDirectory && validateSafePath(assetsDirectory, projectRoot);
192
193
  const reactDirectoryPath = reactDirectory && validateSafePath(reactDirectory, projectRoot);
193
- const reactIndexesPath = reactDirectoryPath && join3(projectRoot, reactDirectoryPath, "indexes");
194
- const reactPagesPath = reactDirectoryPath && join3(projectRoot, reactDirectoryPath, "pages");
195
194
  const htmlDirectoryPath = htmlDirectory && validateSafePath(htmlDirectory, projectRoot);
196
- const htmlPagesPath = htmlDirectoryPath ? join3(projectRoot, htmlDirectoryPath, "pages") : undefined;
197
- const htmlScriptsPath = htmlDirectoryPath ? join3(projectRoot, htmlDirectoryPath, "scripts") : undefined;
198
- const svelteDirectoryPath = svelteDirectory && validateSafePath(svelteDirectory, projectRoot);
199
- const svelteBuildPath = svelteDirectoryPath && join3(projectRoot, svelteDirectoryPath);
200
195
  const htmxPath = htmxDirectory && validateSafePath(htmxDirectory, projectRoot);
196
+ const svelteDirectoryPath = svelteDirectory && validateSafePath(svelteDirectory, projectRoot);
197
+ const reactIndexesPath = reactDirectoryPath && join3(reactDirectoryPath, "indexes");
198
+ const reactPagesPath = reactDirectoryPath && join3(reactDirectoryPath, "pages");
199
+ const htmlPagesPath = htmlDirectoryPath && join3(htmlDirectoryPath, "pages");
200
+ const htmlScriptsPath = htmlDirectoryPath && join3(htmlDirectoryPath, "scripts");
201
+ const sveltePagesPath = svelteDirectoryPath && join3(svelteDirectoryPath, "pages");
201
202
  await rm2(buildPath, { force: true, recursive: true });
202
203
  await mkdir3(buildPath);
203
204
  if (reactIndexesPath && reactPagesPath) {
@@ -220,9 +221,9 @@ var build = async ({
220
221
  await $`bunx @tailwindcss/cli -i ${tailwind.input} -o ${join3(buildPath, tailwind.output)}`;
221
222
  }
222
223
  const reactEntryPoints = reactIndexesPath ? await scanEntryPoints(reactIndexesPath, "*.tsx") : [];
223
- const svelteEntryPoints = svelteBuildPath ? await scanEntryPoints(join3(svelteBuildPath, "pages"), "*.svelte") : [];
224
+ const svelteEntryPoints = sveltePagesPath ? await scanEntryPoints(sveltePagesPath, "*.svelte") : [];
224
225
  const htmlEntryPoints = htmlScriptsPath ? await scanEntryPoints(htmlScriptsPath, "*.{js,ts}") : [];
225
- const { svelteServerPaths, svelteClientPaths } = svelteBuildPath ? await compileSvelte(svelteEntryPoints, svelteBuildPath) : { svelteClientPaths: [], svelteServerPaths: [] };
226
+ const { svelteServerPaths, svelteClientPaths } = svelteDirectoryPath ? await compileSvelte(svelteEntryPoints, svelteDirectoryPath) : { svelteClientPaths: [], svelteServerPaths: [] };
226
227
  const serverEntryPoints = reactEntryPoints.concat(htmlEntryPoints).concat(svelteServerPaths);
227
228
  if (serverEntryPoints.length === 0) {
228
229
  console.warn("No server entry points found, skipping manifest generation");
@@ -240,13 +241,13 @@ var build = async ({
240
241
  });
241
242
  let clientLogs = [];
242
243
  let clientOutputs = [];
243
- if (svelteDirectory) {
244
+ if (svelteDirectoryPath) {
244
245
  const { logs, outputs } = await bunBuild({
245
246
  entrypoints: svelteClientPaths,
246
247
  format: "esm",
247
248
  naming: `[dir]/[name].[hash].[ext]`,
248
249
  outdir: join3(buildPath, "svelte"),
249
- root: svelteBuildPath,
250
+ root: svelteDirectoryPath,
250
251
  target: "browser"
251
252
  }).catch((error) => {
252
253
  console.error("Client build failed:", error);
@@ -265,8 +266,8 @@ var build = async ({
265
266
  });
266
267
  const allOutputs = serverOutputs.concat(clientOutputs);
267
268
  const manifest = generateManifest(allOutputs, buildPath);
268
- if (htmlDirectory && htmlPagesPath) {
269
- const outputHtmlPages = join3(buildPath, basename3(htmlDirectory), "pages");
269
+ if (htmlDirectoryPath && htmlPagesPath) {
270
+ const outputHtmlPages = join3(buildPath, basename3(htmlDirectoryPath), "pages");
270
271
  await mkdir3(outputHtmlPages, { recursive: true });
271
272
  await cp(htmlPagesPath, outputHtmlPages, {
272
273
  force: true,
@@ -274,18 +275,16 @@ var build = async ({
274
275
  });
275
276
  await updateScriptTags(manifest, outputHtmlPages);
276
277
  }
277
- if (!options?.preserveIntermediateFiles && svelteBuildPath) {
278
- await rm2(join3(svelteBuildPath, "indexes"), {
278
+ if (!options?.preserveIntermediateFiles && svelteDirectoryPath) {
279
+ await rm2(join3(svelteDirectoryPath, "indexes"), {
279
280
  force: true,
280
281
  recursive: true
281
282
  });
282
- await rm2(join3(svelteBuildPath, "client"), {
283
+ await rm2(join3(svelteDirectoryPath, "client"), {
283
284
  force: true,
284
285
  recursive: true
285
286
  });
286
- svelteServerPaths.forEach(async (path) => {
287
- await rm2(path, { force: true });
288
- });
287
+ await Promise.all(svelteServerPaths.map((filePath) => rm2(filePath, { force: true })));
289
288
  }
290
289
  if (!options?.preserveIntermediateFiles && reactIndexesPath) {
291
290
  await rm2(reactIndexesPath, { force: true, recursive: true });
@@ -314,7 +313,6 @@ var ESCAPE_REGEX = /[&><\u2028\u2029]/g;
314
313
  var escapeScriptContent = (content) => content.replace(ESCAPE_REGEX, (char) => ESCAPE_LOOKUP[char]);
315
314
 
316
315
  // src/svelte/renderToReadableStream.ts
317
- var DEFAULT_CHUNK_SIZE = 16384;
318
316
  var renderToReadableStream = async (component, props, {
319
317
  bootstrapScriptContent,
320
318
  bootstrapScripts = [],
@@ -325,7 +323,7 @@ var renderToReadableStream = async (component, props, {
325
323
  signal
326
324
  } = {}) => {
327
325
  try {
328
- const { head, body } = render(component, { props });
326
+ const { head, body } = typeof props === "undefined" ? render(component) : render(component, { props });
329
327
  const nonceAttr = nonce ? ` nonce="${nonce}"` : "";
330
328
  const scripts = (bootstrapScriptContent ? `<script${nonceAttr}>${escapeScriptContent(bootstrapScriptContent)}</script>` : "") + bootstrapScripts.map((src) => `<script${nonceAttr} src="${src}"></script>`).join("") + bootstrapModules.map((src) => `<script${nonceAttr} type="module" src="${src}"></script>`).join("");
331
329
  const encoder = new TextEncoder;
@@ -443,8 +441,9 @@ export {
443
441
  MILLISECONDS_IN_A_MINUTE,
444
442
  MILLISECONDS_IN_A_DAY,
445
443
  HOURS_IN_DAY,
446
- DEFAULT_PORT
444
+ DEFAULT_PORT,
445
+ DEFAULT_CHUNK_SIZE
447
446
  };
448
447
 
449
- //# debugId=BCEAA6057B920D6664756E2164756E21
448
+ //# debugId=1126AFF718BB279B64756E2164756E21
450
449
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -2,8 +2,8 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/constants.ts", "../src/core/build.ts", "../src/build/generateManifest.ts", "../src/build/generateReactIndexes.ts", "../src/build/scanEntryPoints.ts", "../src/build/updateScriptTags.ts", "../src/svelte/compileSvelte.ts", "../src/utils/getDurationString.ts", "../src/utils/validateSafePath.ts", "../src/core/pageHandlers.ts", "../src/svelte/renderToReadableStream.ts", "../src/utils/escapeScriptContent.ts", "../src/plugins/networkingPlugin.ts", "../src/utils/networking.ts", "../src/plugins/pageRouterPlugin.ts"],
4
4
  "sourcesContent": [
5
- "export const SECONDS_IN_A_MINUTE = 60;\nexport const MILLISECONDS_IN_A_SECOND = 1000;\nexport const MILLISECONDS_IN_A_MINUTE =\n\tMILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE;\nexport const MINUTES_IN_AN_HOUR = 60;\nexport const HOURS_IN_DAY = 24;\nexport const MILLISECONDS_IN_A_DAY =\n\tMILLISECONDS_IN_A_SECOND *\n\tSECONDS_IN_A_MINUTE *\n\tMINUTES_IN_AN_HOUR *\n\tHOURS_IN_DAY;\nexport const TIME_PRECISION = 2;\nexport const TWO_THIRDS = 2 / 3;\nexport const DEFAULT_PORT = 3000;\n",
6
- "import { rm, mkdir, cp } from \"node:fs/promises\";\nimport { basename, join } from \"node:path\";\nimport { cwd, exit } from \"node:process\";\nimport { $, build as bunBuild } from \"bun\";\nimport { generateManifest } from \"../build/generateManifest\";\nimport { generateReactIndexFiles } from \"../build/generateReactIndexes\";\nimport { scanEntryPoints } from \"../build/scanEntryPoints\";\nimport { updateScriptTags } from \"../build/updateScriptTags\";\nimport { compileSvelte } from \"../svelte/compileSvelte\";\nimport { BuildConfig } from \"../types\";\nimport { getDurationString } from \"../utils/getDurationString\";\nimport { validateSafePath } from \"../utils/validateSafePath\";\n\nexport const build = async ({\n\tbuildDirectory = \"build\",\n\tassetsDirectory,\n\treactDirectory,\n\thtmlDirectory,\n\thtmxDirectory,\n\tsvelteDirectory,\n\ttailwind,\n\toptions\n}: BuildConfig) => {\n\tconst buildStart = performance.now();\n\tconst projectRoot = cwd();\n\n\tconst buildPath = validateSafePath(buildDirectory, projectRoot);\n\tconst assetsPath =\n\t\tassetsDirectory && validateSafePath(assetsDirectory, projectRoot);\n\tconst reactDirectoryPath =\n\t\treactDirectory && validateSafePath(reactDirectory, projectRoot);\n\tconst reactIndexesPath =\n\t\treactDirectoryPath && join(projectRoot, reactDirectoryPath, \"indexes\");\n\tconst reactPagesPath =\n\t\treactDirectoryPath && join(projectRoot, reactDirectoryPath, \"pages\");\n\tconst htmlDirectoryPath =\n\t\thtmlDirectory && validateSafePath(htmlDirectory, projectRoot);\n\tconst htmlPagesPath = htmlDirectoryPath\n\t\t? join(projectRoot, htmlDirectoryPath, \"pages\")\n\t\t: undefined;\n\tconst htmlScriptsPath = htmlDirectoryPath\n\t\t? join(projectRoot, htmlDirectoryPath, \"scripts\")\n\t\t: undefined;\n\tconst svelteDirectoryPath =\n\t\tsvelteDirectory && validateSafePath(svelteDirectory, projectRoot);\n\tconst svelteBuildPath =\n\t\tsvelteDirectoryPath && join(projectRoot, svelteDirectoryPath);\n\tconst htmxPath =\n\t\thtmxDirectory && validateSafePath(htmxDirectory, projectRoot);\n\n\tawait rm(buildPath, { force: true, recursive: true });\n\tawait mkdir(buildPath);\n\n\tif (reactIndexesPath && reactPagesPath) {\n\t\tawait generateReactIndexFiles(reactPagesPath, reactIndexesPath);\n\t}\n\n\tif (assetsPath) {\n\t\tawait cp(assetsPath, join(buildPath, \"assets\"), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t}\n\n\tif (htmxPath) {\n\t\tawait mkdir(join(buildPath, \"htmx\"));\n\t\tawait cp(htmxPath, join(buildPath, \"htmx\"), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t}\n\n\tif (tailwind) {\n\t\tawait $`bunx @tailwindcss/cli -i ${tailwind.input} -o ${join(\n\t\t\tbuildPath,\n\t\t\ttailwind.output\n\t\t)}`;\n\t}\n\n\tconst reactEntryPoints = reactIndexesPath\n\t\t? await scanEntryPoints(reactIndexesPath, \"*.tsx\")\n\t\t: [];\n\tconst svelteEntryPoints = svelteBuildPath\n\t\t? await scanEntryPoints(join(svelteBuildPath, \"pages\"), \"*.svelte\")\n\t\t: [];\n\tconst htmlEntryPoints = htmlScriptsPath\n\t\t? await scanEntryPoints(htmlScriptsPath, \"*.{js,ts}\")\n\t\t: [];\n\n\tconst { svelteServerPaths, svelteClientPaths } = svelteBuildPath\n\t\t? await compileSvelte(svelteEntryPoints, svelteBuildPath)\n\t\t: { svelteClientPaths: [], svelteServerPaths: [] };\n\n\tconst serverEntryPoints = reactEntryPoints\n\t\t.concat(htmlEntryPoints)\n\t\t.concat(svelteServerPaths);\n\n\tif (serverEntryPoints.length === 0) {\n\t\tconsole.warn(\n\t\t\t\"No server entry points found, skipping manifest generation\"\n\t\t);\n\n\t\treturn null;\n\t}\n\n\tconst { logs: serverLogs, outputs: serverOutputs } = await bunBuild({\n\t\tentrypoints: serverEntryPoints,\n\t\tformat: \"esm\",\n\t\tnaming: `[dir]/[name].[hash].[ext]`,\n\t\toutdir: buildPath,\n\t\ttarget: \"bun\"\n\t}).catch((error) => {\n\t\tconsole.error(\"Server build failed:\", error);\n\t\texit(1);\n\t});\n\n\tlet clientLogs: typeof serverLogs = [];\n\tlet clientOutputs: typeof serverOutputs = [];\n\tif (svelteDirectory) {\n\t\tconst { logs, outputs } = await bunBuild({\n\t\t\tentrypoints: svelteClientPaths,\n\t\t\tformat: \"esm\",\n\t\t\tnaming: `[dir]/[name].[hash].[ext]`,\n\t\t\toutdir: join(buildPath, \"svelte\"),\n\t\t\troot: svelteBuildPath,\n\t\t\ttarget: \"browser\"\n\t\t}).catch((error) => {\n\t\t\tconsole.error(\"Client build failed:\", error);\n\t\t\texit(1);\n\t\t});\n\t\tclientLogs = logs;\n\t\tclientOutputs = outputs;\n\t}\n\n\tserverLogs.concat(clientLogs).forEach((log) => {\n\t\tif (log.level === \"error\") console.error(log);\n\t\telse if (log.level === \"warning\") console.warn(log);\n\t\telse console.info(log);\n\t});\n\n\tconst allOutputs = serverOutputs.concat(clientOutputs);\n\tconst manifest = generateManifest(allOutputs, buildPath);\n\n\tif (htmlDirectory && htmlPagesPath) {\n\t\tconst outputHtmlPages = join(\n\t\t\tbuildPath,\n\t\t\tbasename(htmlDirectory),\n\t\t\t\"pages\"\n\t\t);\n\t\tawait mkdir(outputHtmlPages, { recursive: true });\n\t\tawait cp(htmlPagesPath, outputHtmlPages, {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t\tawait updateScriptTags(manifest, outputHtmlPages);\n\t}\n\n\tif (!options?.preserveIntermediateFiles && svelteBuildPath) {\n\t\tawait rm(join(svelteBuildPath, \"indexes\"), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t\tawait rm(join(svelteBuildPath, \"client\"), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t\tsvelteServerPaths.forEach(async (path) => {\n\t\t\tawait rm(path, { force: true });\n\t\t});\n\t}\n\n\tif (!options?.preserveIntermediateFiles && reactIndexesPath) {\n\t\tawait rm(reactIndexesPath, { force: true, recursive: true });\n\t}\n\n\tconst buildDuration = performance.now() - buildStart;\n\tconsole.log(`Build completed in ${getDurationString(buildDuration)}`);\n\n\treturn manifest;\n};\n",
5
+ "export const SECONDS_IN_A_MINUTE = 60;\nexport const MILLISECONDS_IN_A_SECOND = 1000;\nexport const MILLISECONDS_IN_A_MINUTE =\n\tMILLISECONDS_IN_A_SECOND * SECONDS_IN_A_MINUTE;\nexport const MINUTES_IN_AN_HOUR = 60;\nexport const HOURS_IN_DAY = 24;\nexport const MILLISECONDS_IN_A_DAY =\n\tMILLISECONDS_IN_A_SECOND *\n\tSECONDS_IN_A_MINUTE *\n\tMINUTES_IN_AN_HOUR *\n\tHOURS_IN_DAY;\nexport const TIME_PRECISION = 2;\nexport const TWO_THIRDS = 2 / 3;\nexport const DEFAULT_PORT = 3000;\nexport const DEFAULT_CHUNK_SIZE = 16_384;\n",
6
+ "import { rm, mkdir, cp } from \"node:fs/promises\";\nimport { basename, join } from \"node:path\";\nimport { cwd, exit } from \"node:process\";\nimport { $, build as bunBuild } from \"bun\";\nimport { generateManifest } from \"../build/generateManifest\";\nimport { generateReactIndexFiles } from \"../build/generateReactIndexes\";\nimport { scanEntryPoints } from \"../build/scanEntryPoints\";\nimport { updateScriptTags } from \"../build/updateScriptTags\";\nimport { compileSvelte } from \"../svelte/compileSvelte\";\nimport { BuildConfig } from \"../types\";\nimport { getDurationString } from \"../utils/getDurationString\";\nimport { validateSafePath } from \"../utils/validateSafePath\";\n\nexport const build = async ({\n\tbuildDirectory = \"build\",\n\tassetsDirectory,\n\treactDirectory,\n\thtmlDirectory,\n\thtmxDirectory,\n\tsvelteDirectory,\n\ttailwind,\n\toptions\n}: BuildConfig) => {\n\tconst buildStart = performance.now();\n\tconst projectRoot = cwd();\n\n\tconst buildPath = validateSafePath(buildDirectory, projectRoot);\n\tconst assetsPath =\n\t\tassetsDirectory && validateSafePath(assetsDirectory, projectRoot);\n\tconst reactDirectoryPath =\n\t\treactDirectory && validateSafePath(reactDirectory, projectRoot);\n\tconst htmlDirectoryPath =\n\t\thtmlDirectory && validateSafePath(htmlDirectory, projectRoot);\n\tconst htmxPath =\n\t\thtmxDirectory && validateSafePath(htmxDirectory, projectRoot);\n\tconst svelteDirectoryPath =\n\t\tsvelteDirectory && validateSafePath(svelteDirectory, projectRoot);\n\n\tconst reactIndexesPath =\n\t\treactDirectoryPath && join(reactDirectoryPath, \"indexes\");\n\tconst reactPagesPath =\n\t\treactDirectoryPath && join(reactDirectoryPath, \"pages\");\n\tconst htmlPagesPath = htmlDirectoryPath && join(htmlDirectoryPath, \"pages\");\n\tconst htmlScriptsPath =\n\t\thtmlDirectoryPath && join(htmlDirectoryPath, \"scripts\");\n\tconst sveltePagesPath =\n\t\tsvelteDirectoryPath && join(svelteDirectoryPath, \"pages\");\n\n\tawait rm(buildPath, { force: true, recursive: true });\n\tawait mkdir(buildPath);\n\n\tif (reactIndexesPath && reactPagesPath) {\n\t\tawait generateReactIndexFiles(reactPagesPath, reactIndexesPath);\n\t}\n\n\tif (assetsPath) {\n\t\tawait cp(assetsPath, join(buildPath, \"assets\"), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t}\n\n\tif (htmxPath) {\n\t\tawait mkdir(join(buildPath, \"htmx\"));\n\t\tawait cp(htmxPath, join(buildPath, \"htmx\"), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t}\n\n\tif (tailwind) {\n\t\tawait $`bunx @tailwindcss/cli -i ${tailwind.input} -o ${join(buildPath, tailwind.output)}`;\n\t}\n\n\tconst reactEntryPoints = reactIndexesPath\n\t\t? await scanEntryPoints(reactIndexesPath, \"*.tsx\")\n\t\t: [];\n\tconst svelteEntryPoints = sveltePagesPath\n\t\t? await scanEntryPoints(sveltePagesPath, \"*.svelte\")\n\t\t: [];\n\tconst htmlEntryPoints = htmlScriptsPath\n\t\t? await scanEntryPoints(htmlScriptsPath, \"*.{js,ts}\")\n\t\t: [];\n\n\tconst { svelteServerPaths, svelteClientPaths } = svelteDirectoryPath\n\t\t? await compileSvelte(svelteEntryPoints, svelteDirectoryPath)\n\t\t: { svelteClientPaths: [], svelteServerPaths: [] };\n\n\tconst serverEntryPoints = reactEntryPoints\n\t\t.concat(htmlEntryPoints)\n\t\t.concat(svelteServerPaths);\n\n\tif (serverEntryPoints.length === 0) {\n\t\tconsole.warn(\n\t\t\t\"No server entry points found, skipping manifest generation\"\n\t\t);\n\n\t\treturn null;\n\t}\n\n\tconst { logs: serverLogs, outputs: serverOutputs } = await bunBuild({\n\t\tentrypoints: serverEntryPoints,\n\t\tformat: \"esm\",\n\t\tnaming: `[dir]/[name].[hash].[ext]`,\n\t\toutdir: buildPath,\n\t\ttarget: \"bun\"\n\t}).catch((error) => {\n\t\tconsole.error(\"Server build failed:\", error);\n\t\texit(1);\n\t});\n\n\tlet clientLogs: typeof serverLogs = [];\n\tlet clientOutputs: typeof serverOutputs = [];\n\tif (svelteDirectoryPath) {\n\t\tconst { logs, outputs } = await bunBuild({\n\t\t\tentrypoints: svelteClientPaths,\n\t\t\tformat: \"esm\",\n\t\t\tnaming: `[dir]/[name].[hash].[ext]`,\n\t\t\toutdir: join(buildPath, \"svelte\"),\n\t\t\troot: svelteDirectoryPath,\n\t\t\ttarget: \"browser\"\n\t\t}).catch((error) => {\n\t\t\tconsole.error(\"Client build failed:\", error);\n\t\t\texit(1);\n\t\t});\n\t\tclientLogs = logs;\n\t\tclientOutputs = outputs;\n\t}\n\n\tserverLogs.concat(clientLogs).forEach((log) => {\n\t\tif (log.level === \"error\") console.error(log);\n\t\telse if (log.level === \"warning\") console.warn(log);\n\t\telse console.info(log);\n\t});\n\n\tconst allOutputs = serverOutputs.concat(clientOutputs);\n\tconst manifest = generateManifest(allOutputs, buildPath);\n\n\tif (htmlDirectoryPath && htmlPagesPath) {\n\t\tconst outputHtmlPages = join(\n\t\t\tbuildPath,\n\t\t\tbasename(htmlDirectoryPath),\n\t\t\t\"pages\"\n\t\t);\n\t\tawait mkdir(outputHtmlPages, { recursive: true });\n\t\tawait cp(htmlPagesPath, outputHtmlPages, {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t\tawait updateScriptTags(manifest, outputHtmlPages);\n\t}\n\n\tif (!options?.preserveIntermediateFiles && svelteDirectoryPath) {\n\t\tawait rm(join(svelteDirectoryPath, \"indexes\"), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t\tawait rm(join(svelteDirectoryPath, \"client\"), {\n\t\t\tforce: true,\n\t\t\trecursive: true\n\t\t});\n\t\tawait Promise.all(\n\t\t\tsvelteServerPaths.map((filePath) => rm(filePath, { force: true }))\n\t\t);\n\t}\n\n\tif (!options?.preserveIntermediateFiles && reactIndexesPath) {\n\t\tawait rm(reactIndexesPath, { force: true, recursive: true });\n\t}\n\n\tconst buildDuration = performance.now() - buildStart;\n\tconsole.log(`Build completed in ${getDurationString(buildDuration)}`);\n\n\treturn manifest;\n};\n",
7
7
  "import { BuildArtifact } from \"bun\";\n\nexport const generateManifest = (\n outputs: BuildArtifact[],\n buildDirectoryAbsolute: string\n) => {\n const manifest = outputs.reduce<Record<string, string>>((accumulator, artifact) => {\n let relativePath = artifact.path.startsWith(buildDirectoryAbsolute)\n ? artifact.path.slice(buildDirectoryAbsolute.length)\n : artifact.path;\n relativePath = relativePath.replace(/^\\/+/, \"\");\n\n const segments = relativePath.split(\"/\");\n const fileWithHash = segments[segments.length - 1];\n if (!fileWithHash) return accumulator;\n\n const [baseName] = fileWithHash.split(`.${artifact.hash}.`);\n\n if (relativePath.includes(\"svelte/pages\")) {\n accumulator[baseName] = artifact.path;\n } else if (relativePath.includes(\"svelte/indexes\")) {\n accumulator[`${baseName}Index`] = `/${relativePath}`;\n } else {\n accumulator[baseName] = `/${relativePath}`;\n }\n\n return accumulator;\n }, {});\n\n return manifest;\n};\n",
8
8
  "import { mkdir, rm, writeFile } from \"fs/promises\";\nimport { basename, join } from \"path\";\nimport { Glob } from \"bun\";\n\nexport const generateReactIndexFiles = async (\n reactPagesDirectory: string,\n reactIndexesDirectory: string\n) => {\n await rm(reactIndexesDirectory, { force: true, recursive: true });\n await mkdir(reactIndexesDirectory);\n\n const pagesGlob = new Glob(\"*.*\");\n const files: string[] = [];\n for await (const file of pagesGlob.scan({ cwd: reactPagesDirectory })) {\n files.push(file);\n }\n const promises = files.map(async (file) => {\n const fileName = basename(file);\n const [componentName] = fileName.split(\".\");\n const content = [\n `import { hydrateRoot } from 'react-dom/client';`,\n `import type { ComponentType } from 'react'`,\n `import { ${componentName} } from '../pages/${componentName}';\\n`,\n `type PropsOf<C> = C extends ComponentType<infer P> ? P : never;\\n`,\n `declare global {`,\n `\\tinterface Window {`,\n `\\t\\t__INITIAL_PROPS__: PropsOf<typeof ${componentName}>`,\n `\\t}`,\n `}\\n`,\n `hydrateRoot(document, <${componentName} {...window.__INITIAL_PROPS__} />);`\n ].join(\"\\n\");\n\n return writeFile(\n join(reactIndexesDirectory, `${componentName}Index.tsx`),\n content\n );\n });\n await Promise.all(promises);\n};",
9
9
  "import { Glob } from \"bun\";\n\nexport const scanEntryPoints = async (dir: string, pattern: string) => {\n\tconst entryPaths: string[] = [];\n\tconst glob = new Glob(pattern);\n\tfor await (const file of glob.scan({ absolute: true, cwd: dir })) {\n\t\tentryPaths.push(file);\n\t}\n\n\treturn entryPaths;\n};\n",
@@ -11,14 +11,14 @@
11
11
  "import { mkdir } from \"node:fs/promises\";\nimport { basename, join } from \"node:path\";\nimport { env } from \"node:process\";\nimport { write, file } from \"bun\";\nimport { compile, preprocess } from \"svelte/compiler\";\n\nexport const compileSvelte = async (\n\tentryPoints: string[],\n\toutputDirectory: string\n) => {\n\tconst pagesDir = join(outputDirectory, \"pages\");\n\tconst clientDir = join(outputDirectory, \"client\");\n\tconst indexesDir = join(outputDirectory, \"indexes\");\n\n\tawait Promise.all([\n\t\tmkdir(clientDir, { recursive: true }),\n\t\tmkdir(indexesDir, { recursive: true })\n\t]);\n\n\tconst isDev = env.NODE_ENV === \"development\";\n\n\tconst builds = await Promise.all(\n\t\tentryPoints.map(async (entry) => {\n\t\t\tconst source = await file(entry).text();\n\t\t\tconst { code: pre } = await preprocess(source, {});\n\n\t\t\tconst name = basename(entry, \".svelte\");\n\n\t\t\tconst { js: ssrJs } = compile(pre, {\n\t\t\t\tcss: \"injected\",\n\t\t\t\tdev: isDev,\n\t\t\t\tfilename: entry,\n\t\t\t\tgenerate: \"server\"\n\t\t\t});\n\t\t\tconst ssrPath = join(pagesDir, `${name}.js`);\n\n\t\t\tconst { js: clientJs } = compile(pre, {\n\t\t\t\tcss: \"injected\",\n\t\t\t\tdev: isDev,\n\t\t\t\tfilename: entry,\n\t\t\t\tgenerate: \"client\"\n\t\t\t});\n\t\t\tconst clientComponentPath = join(clientDir, `${name}.js`);\n\n\t\t\tconst bootstrap = `import Component from \"../client/${name}.js\";\nimport { hydrate } from \"svelte\";\nhydrate(Component,{target:document.body,props:window.__INITIAL_PROPS__??{}});`;\n\t\t\tconst clientIndexPath = join(indexesDir, `${name}.js`);\n\n\t\t\tawait Promise.all([\n\t\t\t\twrite(ssrPath, ssrJs.code),\n\t\t\t\twrite(clientComponentPath, clientJs.code),\n\t\t\t\twrite(clientIndexPath, bootstrap)\n\t\t\t]);\n\n\t\t\treturn { clientIndexPath, ssrPath };\n\t\t})\n\t);\n\n\treturn {\n\t\tsvelteClientPaths: builds.map(({ clientIndexPath }) => clientIndexPath),\n\t\tsvelteServerPaths: builds.map(({ ssrPath }) => ssrPath)\n\t};\n};\n",
12
12
  "import {\n\tMILLISECONDS_IN_A_SECOND,\n\tTIME_PRECISION,\n\tMILLISECONDS_IN_A_MINUTE\n} from \"../constants\";\n\nexport const getDurationString = (duration: number) => {\n\tlet durationString;\n\n\tif (duration < MILLISECONDS_IN_A_SECOND) {\n\t\tdurationString = `${duration.toFixed(TIME_PRECISION)}ms`;\n\t} else if (duration < MILLISECONDS_IN_A_MINUTE) {\n\t\tdurationString = `${(duration / MILLISECONDS_IN_A_SECOND).toFixed(TIME_PRECISION)}s`;\n\t} else {\n\t\tdurationString = `${(duration / MILLISECONDS_IN_A_MINUTE).toFixed(TIME_PRECISION)}m`;\n\t}\n\n\treturn durationString;\n};\n",
13
13
  "import { resolve, relative, sep } from \"node:path\";\n\nexport const validateSafePath = (targetPath: string, baseDirectory: string) => {\n\tconst absoluteBase = resolve(baseDirectory);\n\tconst absoluteTarget = resolve(baseDirectory, targetPath);\n\tif (relative(absoluteBase, absoluteTarget).startsWith(`..${sep}`)) {\n\t\tthrow new Error(`Unsafe path: ${targetPath}`);\n\t}\n\n\treturn absoluteTarget;\n};\n",
14
- "import { file } from \"bun\";\nimport { ComponentType, createElement } from \"react\";\nimport { renderToReadableStream as renderReactToReadableStream } from \"react-dom/server\";\nimport { Component } from \"svelte\";\nimport { renderToReadableStream as renderSvelteToReadableStream } from \"../svelte/renderToReadableStream\";\n\nexport const handleReactPageRequest = async <P extends object>(\n\tpageComponent: ComponentType<P>,\n\tindex: string,\n\t...props: keyof P extends never ? [] : [props: P]\n) => {\n\tconst [maybeProps] = props;\n\tconst element =\n\t\tmaybeProps !== undefined\n\t\t\t? createElement(pageComponent, maybeProps)\n\t\t\t: createElement(pageComponent);\n\n\tconst stream = await renderReactToReadableStream(element, {\n\t\tbootstrapModules: [index],\n\t\tbootstrapScriptContent: maybeProps\n\t\t\t? `window.__INITIAL_PROPS__=${JSON.stringify(maybeProps)}`\n\t\t\t: undefined\n\t});\n\n\treturn new Response(stream, {\n\t\theaders: { \"Content-Type\": \"text/html\" }\n\t});\n};\n\nexport const handleSveltePageRequest = async <\n\tProps extends Record<string, unknown>\n>(\n\tPageComponent: Component<Props>,\n\tmanifest: Record<string, string>,\n\tprops: Props\n) => {\n\tconst componentPath = PageComponent.toString();\n\tconst pathSegments = componentPath.split(\"/\");\n\tconst lastSegment = pathSegments[pathSegments.length - 1] ?? \"\";\n\tconst componentName = lastSegment.replace(/\\.svelte$/, \"\");\n\n\tconst pagePath = manifest[componentName];\n\tconst indexPath = manifest[`${componentName}Index`];\n\n\tconst { default: ImportedPageComponent } = await import(pagePath);\n\n\tconst stream = await renderSvelteToReadableStream(\n\t\tImportedPageComponent,\n\t\tprops,\n\t\t{\n\t\t\tbootstrapModules: [indexPath],\n\t\t\tbootstrapScriptContent: `window.__INITIAL_PROPS__=${JSON.stringify(\n\t\t\t\tprops\n\t\t\t)}`\n\t\t}\n\t);\n\n\treturn new Response(stream, {\n\t\theaders: { \"Content-Type\": \"text/html\" }\n\t});\n};\n\nexport const handleHTMLPageRequest = (html: string) => file(html);\n",
15
- "import type { Component } from \"svelte\";\nimport { render } from \"svelte/server\";\nimport { escapeScriptContent } from \"../utils/escapeScriptContent\";\n\nconst DEFAULT_CHUNK_SIZE = 16_384;\n\nexport type RenderStreamOptions = {\n\tbootstrapScriptContent?: string;\n\tbootstrapScripts?: string[];\n\tbootstrapModules?: string[];\n\tnonce?: string;\n\tonError?: (error: unknown) => void;\n\tprogressiveChunkSize?: number;\n\tsignal?: AbortSignal;\n};\n\nexport const renderToReadableStream = async <\n\tProps extends Record<string, unknown> = Record<string, never>\n>(\n\tcomponent: Component<Props>,\n\tprops: Props,\n\t{\n\t\tbootstrapScriptContent,\n\t\tbootstrapScripts = [],\n\t\tbootstrapModules = [],\n\t\tnonce,\n\t\tonError = console.error,\n\t\tprogressiveChunkSize = DEFAULT_CHUNK_SIZE,\n\t\tsignal\n\t}: RenderStreamOptions = {}\n) => {\n\ttry {\n\t\tconst { head, body } = render(component, { props });\n\t\tconst nonceAttr = nonce ? ` nonce=\"${nonce}\"` : \"\";\n\t\tconst scripts =\n\t\t\t(bootstrapScriptContent\n\t\t\t\t? `<script${nonceAttr}>${escapeScriptContent(bootstrapScriptContent)}</script>`\n\t\t\t\t: \"\") +\n\t\t\tbootstrapScripts\n\t\t\t\t.map((src) => `<script${nonceAttr} src=\"${src}\"></script>`)\n\t\t\t\t.join(\"\") +\n\t\t\tbootstrapModules\n\t\t\t\t.map(\n\t\t\t\t\t(src) =>\n\t\t\t\t\t\t`<script${nonceAttr} type=\"module\" src=\"${src}\"></script>`\n\t\t\t\t)\n\t\t\t\t.join(\"\");\n\t\tconst encoder = new TextEncoder();\n\t\t// Warning: this encodes the entire document into memory in one buffer\n\t\tconst full = encoder.encode(\n\t\t\t`<!DOCTYPE html><html lang=\"en\"><head>${head}</head><body>${body}${scripts}</body></html>`\n\t\t);\n\n\t\tlet offset = 0;\n\n\t\treturn new ReadableStream<Uint8Array>({\n\t\t\ttype: \"bytes\",\n\t\t\tcancel(reason) {\n\t\t\t\tonError?.(reason);\n\t\t\t},\n\t\t\tpull(controller) {\n\t\t\t\tif (signal?.aborted) {\n\t\t\t\t\tcontroller.close();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (offset >= full.length) {\n\t\t\t\t\tcontroller.close();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst end = Math.min(\n\t\t\t\t\toffset + progressiveChunkSize,\n\t\t\t\t\tfull.length\n\t\t\t\t);\n\t\t\t\tcontroller.enqueue(full.subarray(offset, end));\n\t\t\t\toffset = end;\n\t\t\t}\n\t\t});\n\t} catch (error) {\n\t\tonError?.(error);\n\t\tthrow error;\n\t}\n};\n",
14
+ "import { file } from \"bun\";\nimport { ComponentType, createElement } from \"react\";\nimport { renderToReadableStream as renderReactToReadableStream } from \"react-dom/server\";\nimport { Component } from \"svelte\";\nimport { renderToReadableStream as renderSvelteToReadableStream } from \"../svelte/renderToReadableStream\";\n\nexport const handleReactPageRequest = async <\n\tProps extends Record<string, unknown> = Record<never, never>\n>(\n\tpageComponent: ComponentType<Props>,\n\tindex: string,\n\t...props: keyof Props extends never ? [] : [props: Props]\n) => {\n\tconst [maybeProps] = props;\n\tconst element =\n\t\tmaybeProps !== undefined\n\t\t\t? createElement(pageComponent, maybeProps)\n\t\t\t: createElement(pageComponent);\n\n\tconst stream = await renderReactToReadableStream(element, {\n\t\tbootstrapModules: [index],\n\t\tbootstrapScriptContent: maybeProps\n\t\t\t? `window.__INITIAL_PROPS__=${JSON.stringify(maybeProps)}`\n\t\t\t: undefined\n\t});\n\n\treturn new Response(stream, {\n\t\theaders: { \"Content-Type\": \"text/html\" }\n\t});\n};\n\n// Declare overloads matching Svelte’s own component API to preserve correct type inference\ntype HandleSveltePageRequest = {\n\t(\n\t\tPageComponent: Component<Record<string, never>>,\n\t\tmanifest: Record<string, string>\n\t): Promise<Response>;\n\t<P extends Record<string, unknown>>(\n\t\tPageComponent: Component<P>,\n\t\tmanifest: Record<string, string>,\n\t\tprops: P\n\t): Promise<Response>;\n};\n\nexport const handleSveltePageRequest: HandleSveltePageRequest = async <\n\tP extends Record<string, unknown>\n>(\n\tPageComponent: Component<P>,\n\tmanifest: Record<string, string>,\n\tprops?: P\n) => {\n\tconst componentPath = PageComponent.toString();\n\tconst pathSegments = componentPath.split(\"/\");\n\tconst lastSegment = pathSegments[pathSegments.length - 1] ?? \"\";\n\tconst componentName = lastSegment.replace(/\\.svelte$/, \"\");\n\n\tconst pagePath = manifest[componentName];\n\tconst indexPath = manifest[`${componentName}Index`];\n\n\tconst { default: ImportedPageComponent } = await import(pagePath);\n\n\tconst stream = await renderSvelteToReadableStream(\n\t\tImportedPageComponent,\n\t\tprops,\n\t\t{\n\t\t\tbootstrapModules: [indexPath],\n\t\t\tbootstrapScriptContent: `window.__INITIAL_PROPS__=${JSON.stringify(\n\t\t\t\tprops\n\t\t\t)}`\n\t\t}\n\t);\n\n\treturn new Response(stream, {\n\t\theaders: { \"Content-Type\": \"text/html\" }\n\t});\n};\n\nexport const handleHTMLPageRequest = (html: string) => file(html);\n",
15
+ "import type { Component } from \"svelte\";\nimport { render } from \"svelte/server\";\nimport { DEFAULT_CHUNK_SIZE } from \"../constants\";\nimport { escapeScriptContent } from \"../utils/escapeScriptContent\";\n\nexport type RenderStreamOptions = {\n\tbootstrapScriptContent?: string;\n\tbootstrapScripts?: string[];\n\tbootstrapModules?: string[];\n\tnonce?: string;\n\tonError?: (error: unknown) => void;\n\tprogressiveChunkSize?: number;\n\tsignal?: AbortSignal;\n};\n\nexport const renderToReadableStream = async <\n\tProps extends Record<string, unknown> = Record<string, never>\n>(\n\tcomponent: Component<Props>,\n\tprops?: Props,\n\t{\n\t\tbootstrapScriptContent,\n\t\tbootstrapScripts = [],\n\t\tbootstrapModules = [],\n\t\tnonce,\n\t\tonError = console.error,\n\t\tprogressiveChunkSize = DEFAULT_CHUNK_SIZE,\n\t\tsignal\n\t}: RenderStreamOptions = {}\n) => {\n\ttry {\n\t\tconst { head, body } =\n\t\t\ttypeof props === \"undefined\"\n\t\t\t\t? // @ts-expect-error Svelte's render function can't determine which overload to choose when the component is generic\n\t\t\t\t\trender(component)\n\t\t\t\t: render(component, { props });\n\t\tconst nonceAttr = nonce ? ` nonce=\"${nonce}\"` : \"\";\n\t\tconst scripts =\n\t\t\t(bootstrapScriptContent\n\t\t\t\t? `<script${nonceAttr}>${escapeScriptContent(bootstrapScriptContent)}</script>`\n\t\t\t\t: \"\") +\n\t\t\tbootstrapScripts\n\t\t\t\t.map((src) => `<script${nonceAttr} src=\"${src}\"></script>`)\n\t\t\t\t.join(\"\") +\n\t\t\tbootstrapModules\n\t\t\t\t.map(\n\t\t\t\t\t(src) =>\n\t\t\t\t\t\t`<script${nonceAttr} type=\"module\" src=\"${src}\"></script>`\n\t\t\t\t)\n\t\t\t\t.join(\"\");\n\t\tconst encoder = new TextEncoder();\n\t\t// Warning: this encodes the entire document into memory in one buffer\n\t\tconst full = encoder.encode(\n\t\t\t`<!DOCTYPE html><html lang=\"en\"><head>${head}</head><body>${body}${scripts}</body></html>`\n\t\t);\n\n\t\tlet offset = 0;\n\n\t\treturn new ReadableStream<Uint8Array>({\n\t\t\ttype: \"bytes\",\n\t\t\tcancel(reason) {\n\t\t\t\tonError?.(reason);\n\t\t\t},\n\t\t\tpull(controller) {\n\t\t\t\tif (signal?.aborted) {\n\t\t\t\t\tcontroller.close();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (offset >= full.length) {\n\t\t\t\t\tcontroller.close();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst end = Math.min(\n\t\t\t\t\toffset + progressiveChunkSize,\n\t\t\t\t\tfull.length\n\t\t\t\t);\n\t\t\t\tcontroller.enqueue(full.subarray(offset, end));\n\t\t\t\toffset = end;\n\t\t\t}\n\t\t});\n\t} catch (error) {\n\t\tonError?.(error);\n\t\tthrow error;\n\t}\n};\n",
16
16
  "const ESCAPE_LOOKUP: Record<string, string> = {\n\t\"\\u2028\": \"\\\\u2028\",\n\t\"\\u2029\": \"\\\\u2029\",\n\t\"&\": \"\\\\u0026\",\n\t\"<\": \"\\\\u003C\",\n\t\">\": \"\\\\u003E\"\n};\n\nconst ESCAPE_REGEX = /[&><\\u2028\\u2029]/g;\n\nexport const escapeScriptContent = (content: string) =>\n\tcontent.replace(ESCAPE_REGEX, (char) => ESCAPE_LOOKUP[char]);\n",
17
17
  "import { argv } from \"node:process\";\nimport { env } from \"bun\";\nimport { Elysia } from \"elysia\";\nimport { DEFAULT_PORT } from \"../constants\";\nimport { getLocalIPAddress } from \"../utils/networking\";\n\nlet host = env.HOST ?? \"localhost\";\nconst port = env.PORT ?? DEFAULT_PORT;\nlet localIP: string | undefined;\n\nconst args = argv;\nconst hostFlag = args.includes(\"--host\");\n\nif (hostFlag) {\n\tlocalIP = getLocalIPAddress();\n\thost = \"0.0.0.0\";\n}\n\nexport const networkingPlugin = (app: Elysia) =>\n\tapp.listen(\n\t\t{\n\t\t\thostname: host,\n\t\t\tport: port\n\t\t},\n\t\t() => {\n\t\t\t//TODO: I dont think this works properly\n\t\t\tif (hostFlag) {\n\t\t\t\tconsole.log(`Server started on http://localhost:${port}`);\n\t\t\t\tconsole.log(\n\t\t\t\t\t`Server started on network: http://${localIP}:${port}`\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tconsole.log(`Server started on http://${host}:${port}`);\n\t\t\t}\n\t\t}\n\t);\n",
18
18
  "import os from \"os\";\n\nexport const getLocalIPAddress = () => {\n\tconst interfaces = os.networkInterfaces();\n\tconst addresses = Object.values(interfaces)\n\t\t.flat()\n\t\t.filter(\n\t\t\t(iface): iface is os.NetworkInterfaceInfo => iface !== undefined\n\t\t);\n\tconst ipAddress = addresses.find(\n\t\t(iface) => iface.family === \"IPv4\" && !iface.internal\n\t);\n\n\tif (ipAddress) return ipAddress.address; // Return the first non-internal IPv4 address\n\n\tconsole.warn(\"No IP address found, falling back to localhost\");\n\n\treturn \"localhost\"; // Fallback to localhost if no IP found\n};\n",
19
19
  "export const pageRouterPlugin = () => {\n\tconsole.log(\"Page Router Plugin Not Implemented Yet\");\n};\n"
20
20
  ],
21
- "mappings": ";;AAAO,IAAM,sBAAsB;AAC5B,IAAM,2BAA2B;AACjC,IAAM,2BACZ,2BAA2B;AACrB,IAAM,qBAAqB;AAC3B,IAAM,eAAe;AACrB,IAAM,wBACZ,2BACA,sBACA,qBACA;AACM,IAAM,iBAAiB;AACvB,IAAM,aAAa,IAAI;AACvB,IAAM,eAAe;;ACb5B,eAAS,cAAI;AACb,qBAAS,mBAAU;AACnB;AACA;;;ACDO,IAAM,mBAAmB,CAC9B,SACA,2BACG;AAAA,EACH,MAAM,WAAW,QAAQ,OAA+B,CAAC,aAAa,aAAa;AAAA,IACjF,IAAI,eAAe,SAAS,KAAK,WAAW,sBAAsB,IAC9D,SAAS,KAAK,MAAM,uBAAuB,MAAM,IACjD,SAAS;AAAA,IACb,eAAe,aAAa,QAAQ,QAAQ,EAAE;AAAA,IAE9C,MAAM,WAAW,aAAa,MAAM,GAAG;AAAA,IACvC,MAAM,eAAe,SAAS,SAAS,SAAS;AAAA,IAChD,KAAK;AAAA,MAAc,OAAO;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7,3 +7,4 @@ export declare const MILLISECONDS_IN_A_DAY: number;
7
7
  export declare const TIME_PRECISION = 2;
8
8
  export declare const TWO_THIRDS: number;
9
9
  export declare const DEFAULT_PORT = 3000;
10
+ export declare const DEFAULT_CHUNK_SIZE = 16384;
@@ -1,5 +1,10 @@
1
1
  import { ComponentType } from "react";
2
2
  import { Component } from "svelte";
3
- export declare const handleReactPageRequest: <P extends object>(pageComponent: ComponentType<P>, index: string, ...props: keyof P extends never ? [] : [props: P]) => Promise<Response>;
4
- export declare const handleSveltePageRequest: <Props extends Record<string, unknown>>(PageComponent: Component<Props>, manifest: Record<string, string>, props: Props) => Promise<Response>;
3
+ export declare const handleReactPageRequest: <Props extends Record<string, unknown> = Record<never, never>>(pageComponent: ComponentType<Props>, index: string, ...props: keyof Props extends never ? [] : [props: Props]) => Promise<Response>;
4
+ type HandleSveltePageRequest = {
5
+ (PageComponent: Component<Record<string, never>>, manifest: Record<string, string>): Promise<Response>;
6
+ <P extends Record<string, unknown>>(PageComponent: Component<P>, manifest: Record<string, string>, props: P): Promise<Response>;
7
+ };
8
+ export declare const handleSveltePageRequest: HandleSveltePageRequest;
5
9
  export declare const handleHTMLPageRequest: (html: string) => Bun.BunFile;
10
+ export {};
@@ -9,4 +9,4 @@ export type RenderPipeableOptions = {
9
9
  progressiveChunkSize?: number;
10
10
  signal?: AbortSignal;
11
11
  };
12
- export declare const renderToPipeableStream: <Props extends Record<string, unknown> = Record<string, never>>(component: Component<Props>, props: Props, { bootstrapScriptContent, bootstrapScripts, bootstrapModules, nonce, onError, progressiveChunkSize, signal }?: RenderPipeableOptions) => Readable;
12
+ export declare const renderToPipeableStream: <Props extends Record<string, unknown> = Record<string, never>>(component: Component<Props>, props?: Props, { bootstrapScriptContent, bootstrapScripts, bootstrapModules, nonce, onError, progressiveChunkSize, signal }?: RenderPipeableOptions) => Readable;
@@ -8,4 +8,4 @@ export type RenderStreamOptions = {
8
8
  progressiveChunkSize?: number;
9
9
  signal?: AbortSignal;
10
10
  };
11
- export declare const renderToReadableStream: <Props extends Record<string, unknown> = Record<string, never>>(component: Component<Props>, props: Props, { bootstrapScriptContent, bootstrapScripts, bootstrapModules, nonce, onError, progressiveChunkSize, signal }?: RenderStreamOptions) => Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
11
+ export declare const renderToReadableStream: <Props extends Record<string, unknown> = Record<string, never>>(component: Component<Props>, props?: Props, { bootstrapScriptContent, bootstrapScripts, bootstrapModules, nonce, onError, progressiveChunkSize, signal }?: RenderStreamOptions) => Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
@@ -6,4 +6,4 @@ export type RenderStringOptions = {
6
6
  nonce?: string;
7
7
  onError?: (error: unknown) => void;
8
8
  };
9
- export declare const renderToString: <Props extends Record<string, unknown> = Record<string, never>>(component: Component<Props>, props: Props, { bootstrapScriptContent, bootstrapScripts, bootstrapModules, nonce, onError }?: RenderStringOptions) => string;
9
+ export declare const renderToString: <Props extends Record<string, unknown> = Record<string, never>>(component: Component<Props>, props?: Props, { bootstrapScriptContent, bootstrapScripts, bootstrapModules, nonce, onError }?: RenderStringOptions) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/absolute",
3
- "version": "0.8.10",
3
+ "version": "0.8.12",
4
4
  "description": "A fullstack meta-framework for building web applications with TypeScript",
5
5
  "repository": {
6
6
  "type": "git",