void 0.8.9 → 0.8.11

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 (62) hide show
  1. package/dist/{better-auth-shared-Fzyk5yS1.d.mts → better-auth-shared-BXdg2Sur.d.mts} +2 -2
  2. package/dist/cli/cli.mjs +24 -24
  3. package/dist/{db-CpHRUvOY.mjs → db-CSn2p-PN.mjs} +12 -12
  4. package/dist/{deploy-Dm-sLnvz.mjs → deploy-OPo_tSWl.mjs} +83 -4
  5. package/dist/{env-helpers-Bt9yYg5I.d.mts → env-helpers-GICENGaN.d.mts} +1 -1
  6. package/dist/{gen-Cn2hZ8RR.mjs → gen-DVPMPTL1.mjs} +1 -1
  7. package/dist/{handler-BPhL8AmU.d.mts → handler-2mA_-sst.d.mts} +3 -3
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.mjs +5 -5
  10. package/dist/{init-DVqPUMVz.mjs → init-BaXYK2PD.mjs} +17 -2
  11. package/dist/{node-fpywdcbN.mjs → node-x1AzR6Yf.mjs} +1 -1
  12. package/dist/pages/client.d.mts +1 -1
  13. package/dist/pages/head-client.d.mts +1 -1
  14. package/dist/pages/head.d.mts +1 -1
  15. package/dist/pages/index.d.mts +2 -2
  16. package/dist/pages/islands-plugin.d.mts +1 -1
  17. package/dist/pages/protocol.d.mts +2 -2
  18. package/dist/pg-BDQxUp3Q.mjs +16 -0
  19. package/dist/{project-cmd-BUuTuUOR.mjs → project-cmd-CErG1vM7.mjs} +7 -7
  20. package/dist/{protocol-mcSsdMij.d.mts → protocol-DXs_1QcC.d.mts} +3 -3
  21. package/dist/runtime/auth.d.mts +1 -1
  22. package/dist/runtime/better-auth-pg.d.mts +1 -1
  23. package/dist/runtime/better-auth-pg.mjs +2 -0
  24. package/dist/runtime/better-auth.d.mts +1 -1
  25. package/dist/runtime/client.d.mts +2 -2
  26. package/dist/runtime/env-helpers.d.mts +1 -1
  27. package/dist/runtime/env-public-client.d.mts +1 -1
  28. package/dist/runtime/env-public.d.mts +2 -2
  29. package/dist/runtime/fetch-stream.d.mts +1 -1
  30. package/dist/runtime/fetch.d.mts +1 -1
  31. package/dist/runtime/handler.d.mts +1 -1
  32. package/dist/runtime/live.d.mts +2 -2
  33. package/dist/runtime/migration-handler-pg.d.mts +1 -7
  34. package/dist/runtime/migration-handler-pg.mjs +2 -14
  35. package/dist/runtime/validator.d.mts +1 -1
  36. package/dist/runtime/ws-server.d.mts +2 -2
  37. package/dist/runtime/ws.d.mts +3 -3
  38. package/package.json +2 -2
  39. /package/dist/{auth-SfRBhXan.d.mts → auth-CHfPhSta.d.mts} +0 -0
  40. /package/dist/{auth-cmd-C-fMtekZ.mjs → auth-cmd-DE2YDAk0.mjs} +0 -0
  41. /package/dist/{cache-CstDt4gH.mjs → cache-ChOUXuMY.mjs} +0 -0
  42. /package/dist/{cancel-deploy-CGL_UJwR.mjs → cancel-deploy-g6bC-mpl.mjs} +0 -0
  43. /package/dist/{delete-BPVqSrkA.mjs → delete-D446r1rC.mjs} +0 -0
  44. /package/dist/{domain-BrCzfzL6.mjs → domain-Digh83lu.mjs} +0 -0
  45. /package/dist/{env-I4RIGp1N.mjs → env-CJMOHUbW.mjs} +0 -0
  46. /package/dist/{fetch-error-BbixZ9vW.d.mts → fetch-error-7aWl0RiD.d.mts} +0 -0
  47. /package/dist/{head-CZs8dMxG.d.mts → head-DnTAP4p-.d.mts} +0 -0
  48. /package/dist/{link-GWTu3YvD.mjs → link-PClO4q2M.mjs} +0 -0
  49. /package/dist/{list-IPEcrLnM.mjs → list-G03-pEN-.mjs} +0 -0
  50. /package/dist/{logs-CNF59Q_p.mjs → logs-D0a_HhLn.mjs} +0 -0
  51. /package/dist/{mcp-Blxy-04t.mjs → mcp-BLsmImuJ.mjs} +0 -0
  52. /package/dist/{prepare-BrAISonG.mjs → prepare-D8znEv3-.mjs} +0 -0
  53. /package/dist/{providers--_pvxpNN.d.mts → providers--6L9uf7j.d.mts} +0 -0
  54. /package/dist/{rollback-vUeM-X4o.mjs → rollback-BtiabraI.mjs} +0 -0
  55. /package/dist/{runner-BkGBfr4e.mjs → runner-DCYwTlee.mjs} +0 -0
  56. /package/dist/{runner-pg-BXP0JpHW.mjs → runner-pg-CJ04wNk5.mjs} +0 -0
  57. /package/dist/{secret-BQ_MxdCB.mjs → secret-CNnequJa.mjs} +0 -0
  58. /package/dist/{skills-B_ynF4lA.mjs → skills-C38GxuGT.mjs} +0 -0
  59. /package/dist/{standard-schema-WhHcCaqJ.d.mts → standard-schema-BDiIJgp5.d.mts} +0 -0
  60. /package/dist/{subcommand-prompt-CPuV7tPW.mjs → subcommand-prompt-BLewBtNI.mjs} +0 -0
  61. /package/dist/{types-C8wsi1hv.d.mts → types-C0AOcrPN.d.mts} +0 -0
  62. /package/dist/{yarn-pnp-QgEYVC3V.mjs → yarn-pnp-CLFC1T3p.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { i as VoidAuthConfig, n as AuthState } from "./auth-SfRBhXan.mjs";
2
- import { t as VoidAuthProvider } from "./providers--_pvxpNN.mjs";
1
+ import { i as VoidAuthConfig, n as AuthState } from "./auth-CHfPhSta.mjs";
2
+ import { t as VoidAuthProvider } from "./providers--6L9uf7j.mjs";
3
3
  import { DBFieldAttribute } from "better-auth/db";
4
4
  import { BetterAuthOptions, betterAuth } from "better-auth";
5
5
  import { Context } from "hono";
package/dist/cli/cli.mjs CHANGED
@@ -1487,7 +1487,7 @@ async function runSubcommandGroup(command, subcommands, parse, run) {
1487
1487
  const sub = args[1];
1488
1488
  try {
1489
1489
  if ((!sub || sub.startsWith("-")) && process.stdin.isTTY) {
1490
- const { promptSubcommand } = await import("../subcommand-prompt-CPuV7tPW.mjs");
1490
+ const { promptSubcommand } = await import("../subcommand-prompt-BLewBtNI.mjs");
1491
1491
  const result = await promptSubcommand(command, subcommands);
1492
1492
  if (!result) process.exit(0);
1493
1493
  await run(root, parse(buildArgs(result, args.slice(1))));
@@ -1516,7 +1516,7 @@ else if (command === "deploy") {
1516
1516
  R.error(err instanceof Error ? err.message : String(err));
1517
1517
  process.exit(1);
1518
1518
  }
1519
- import("../deploy-Dm-sLnvz.mjs").then((n) => n.t).then(({ runDeploy }) => {
1519
+ import("../deploy-OPo_tSWl.mjs").then((n) => n.t).then(({ runDeploy }) => {
1520
1520
  runDeploy(root, {
1521
1521
  projectSlug: deployArgs.projectSlug,
1522
1522
  dir: deployArgs.dir,
@@ -1528,13 +1528,13 @@ else if (command === "deploy") {
1528
1528
  process.exit(1);
1529
1529
  });
1530
1530
  });
1531
- } else if (command === "auth") runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("../auth-cmd-C-fMtekZ.mjs").then(({ runAuthCommand }) => runAuthCommand(root, parsed)));
1532
- else if (command === "project") runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("../project-cmd-BUuTuUOR.mjs").then(({ runProjectCommand }) => runProjectCommand(root, parsed)));
1533
- else if (command === "secret") runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("../secret-BQ_MxdCB.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed)));
1534
- else if (command === "domain") runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("../domain-BrCzfzL6.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed)));
1535
- else if (command === "db") runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-CpHRUvOY.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed)));
1536
- else if (command === "env") runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("../env-I4RIGp1N.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed)));
1537
- else if (command === "gen") runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("../gen-Cn2hZ8RR.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed)));
1531
+ } else if (command === "auth") runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("../auth-cmd-DE2YDAk0.mjs").then(({ runAuthCommand }) => runAuthCommand(root, parsed)));
1532
+ else if (command === "project") runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("../project-cmd-CErG1vM7.mjs").then(({ runProjectCommand }) => runProjectCommand(root, parsed)));
1533
+ else if (command === "secret") runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("../secret-CNnequJa.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed)));
1534
+ else if (command === "domain") runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("../domain-Digh83lu.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed)));
1535
+ else if (command === "db") runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("../db-CSn2p-PN.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed)));
1536
+ else if (command === "env") runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("../env-CJMOHUbW.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed)));
1537
+ else if (command === "gen") runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("../gen-DVPMPTL1.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed)));
1538
1538
  else if (command === "prepare") {
1539
1539
  const root = process.cwd();
1540
1540
  let prepareArgs;
@@ -1544,7 +1544,7 @@ else if (command === "prepare") {
1544
1544
  R.error(err instanceof Error ? err.message : String(err));
1545
1545
  process.exit(1);
1546
1546
  }
1547
- import("../prepare-BrAISonG.mjs").then(({ runPrepareCommand }) => {
1547
+ import("../prepare-D8znEv3-.mjs").then(({ runPrepareCommand }) => {
1548
1548
  runPrepareCommand(root, prepareArgs).catch((err) => {
1549
1549
  R.error(err.message ?? err);
1550
1550
  process.exit(1);
@@ -1552,7 +1552,7 @@ else if (command === "prepare") {
1552
1552
  });
1553
1553
  } else if (command === "init") {
1554
1554
  const root = process.cwd();
1555
- import("../init-DVqPUMVz.mjs").then(({ runInitCommand, parseInitArgs }) => {
1555
+ import("../init-BaXYK2PD.mjs").then(({ runInitCommand, parseInitArgs }) => {
1556
1556
  let initArgs;
1557
1557
  try {
1558
1558
  initArgs = parseInitArgs(args.slice(1));
@@ -1565,7 +1565,7 @@ else if (command === "prepare") {
1565
1565
  process.exit(1);
1566
1566
  });
1567
1567
  });
1568
- } else if (command === "mcp") import("../mcp-Blxy-04t.mjs").then(({ runMcp }) => {
1568
+ } else if (command === "mcp") import("../mcp-BLsmImuJ.mjs").then(({ runMcp }) => {
1569
1569
  runMcp();
1570
1570
  });
1571
1571
  else if (command === "-v" || command === "--version") {
@@ -1634,36 +1634,36 @@ else if (command === "-v" || command === "--version") {
1634
1634
  ];
1635
1635
  (async () => {
1636
1636
  printVoidHeader();
1637
- const { promptSubcommand } = await import("../subcommand-prompt-CPuV7tPW.mjs");
1637
+ const { promptSubcommand } = await import("../subcommand-prompt-BLewBtNI.mjs");
1638
1638
  const result = await promptSubcommand("", topLevelCommands);
1639
1639
  if (!result) process.exit(0);
1640
1640
  const cmd = result.subcommand;
1641
1641
  const root = process.cwd();
1642
1642
  switch (cmd) {
1643
1643
  case "init": {
1644
- const { runInitCommand, parseInitArgs } = await import("../init-DVqPUMVz.mjs");
1644
+ const { runInitCommand, parseInitArgs } = await import("../init-BaXYK2PD.mjs");
1645
1645
  await runInitCommand(root, parseInitArgs([]));
1646
1646
  return;
1647
1647
  }
1648
1648
  case "deploy": {
1649
- const { runDeploy } = await import("../deploy-Dm-sLnvz.mjs").then((n) => n.t);
1649
+ const { runDeploy } = await import("../deploy-OPo_tSWl.mjs").then((n) => n.t);
1650
1650
  await runDeploy(root);
1651
1651
  return;
1652
1652
  }
1653
1653
  case "mcp": {
1654
- const { runMcp } = await import("../mcp-Blxy-04t.mjs");
1654
+ const { runMcp } = await import("../mcp-BLsmImuJ.mjs");
1655
1655
  runMcp();
1656
1656
  return;
1657
1657
  }
1658
- case "auth": return runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (r, p) => import("../auth-cmd-C-fMtekZ.mjs").then(({ runAuthCommand }) => runAuthCommand(r, p)));
1659
- case "project": return runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (r, p) => import("../project-cmd-BUuTuUOR.mjs").then(({ runProjectCommand }) => runProjectCommand(r, p)));
1660
- case "secret": return runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (r, p) => import("../secret-BQ_MxdCB.mjs").then(({ runSecretCommand }) => runSecretCommand(r, p)));
1661
- case "domain": return runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (r, p) => import("../domain-BrCzfzL6.mjs").then(({ runDomainCommand }) => runDomainCommand(r, p)));
1662
- case "db": return runSubcommandGroup("db", dbSubcommands, parseDbArgs, (r, p) => import("../db-CpHRUvOY.mjs").then(({ runDbCommand }) => runDbCommand(r, p)));
1663
- case "env": return runSubcommandGroup("env", envSubcommands, parseEnvArgs, (r, p) => import("../env-I4RIGp1N.mjs").then(({ runEnvCommand }) => runEnvCommand(r, p)));
1664
- case "gen": return runSubcommandGroup("gen", genSubcommands, parseGenArgs, (r, p) => import("../gen-Cn2hZ8RR.mjs").then(({ runGenCommand }) => runGenCommand(r, p)));
1658
+ case "auth": return runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (r, p) => import("../auth-cmd-DE2YDAk0.mjs").then(({ runAuthCommand }) => runAuthCommand(r, p)));
1659
+ case "project": return runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (r, p) => import("../project-cmd-CErG1vM7.mjs").then(({ runProjectCommand }) => runProjectCommand(r, p)));
1660
+ case "secret": return runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (r, p) => import("../secret-CNnequJa.mjs").then(({ runSecretCommand }) => runSecretCommand(r, p)));
1661
+ case "domain": return runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (r, p) => import("../domain-Digh83lu.mjs").then(({ runDomainCommand }) => runDomainCommand(r, p)));
1662
+ case "db": return runSubcommandGroup("db", dbSubcommands, parseDbArgs, (r, p) => import("../db-CSn2p-PN.mjs").then(({ runDbCommand }) => runDbCommand(r, p)));
1663
+ case "env": return runSubcommandGroup("env", envSubcommands, parseEnvArgs, (r, p) => import("../env-CJMOHUbW.mjs").then(({ runEnvCommand }) => runEnvCommand(r, p)));
1664
+ case "gen": return runSubcommandGroup("gen", genSubcommands, parseGenArgs, (r, p) => import("../gen-DVPMPTL1.mjs").then(({ runGenCommand }) => runGenCommand(r, p)));
1665
1665
  case "prepare": {
1666
- const { runPrepareCommand } = await import("../prepare-BrAISonG.mjs");
1666
+ const { runPrepareCommand } = await import("../prepare-D8znEv3-.mjs");
1667
1667
  await runPrepareCommand(root, parsePrepareArgs([]));
1668
1668
  return;
1669
1669
  }
@@ -8,7 +8,7 @@ import { c as getDatabaseDialect, f as readConfig } from "./config-BVEC0lti.mjs"
8
8
  import { r as detectFramework } from "./plugin-inference-Ba1uGdIy.mjs";
9
9
  import { a as writeJournal, i as stripSqlExt, r as readJournal, t as collectMigrations } from "./collect-9rO3JFNM.mjs";
10
10
  import { n as listDrizzleArtifacts, r as validateMigrations, t as assertJournalCoherence } from "./validate-CNWm-PsL.mjs";
11
- import { formatTimestamp } from "./gen-Cn2hZ8RR.mjs";
11
+ import { formatTimestamp } from "./gen-DVPMPTL1.mjs";
12
12
  import { existsSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
13
13
  import { fileURLToPath, pathToFileURL } from "node:url";
14
14
  import { execFileSync } from "node:child_process";
@@ -101,7 +101,7 @@ async function runPush(root, dialect) {
101
101
  else {
102
102
  const { mkdirSync } = await import("node:fs");
103
103
  const { dirname } = await import("node:path");
104
- const { getMiniflareDatabasePath } = await import("./runner-BkGBfr4e.mjs");
104
+ const { getMiniflareDatabasePath } = await import("./runner-DCYwTlee.mjs");
105
105
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
106
106
  mkdirSync(dirname(dbPath), { recursive: true });
107
107
  configPath = writeDrizzleConfig(root, dbPath);
@@ -159,7 +159,7 @@ async function runStatus(root, dialect) {
159
159
  localApplied = [];
160
160
  }
161
161
  else {
162
- const { getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-BkGBfr4e.mjs");
162
+ const { getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-DCYwTlee.mjs");
163
163
  localApplied = await getAppliedMigrations(getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local"));
164
164
  }
165
165
  const localSet = new Set(localApplied.map((m) => m.name));
@@ -217,7 +217,7 @@ async function resetDatabase(root, dialect) {
217
217
  });
218
218
  return migrations.length;
219
219
  }
220
- const { getMiniflareDatabasePath, runMigrations } = await import("./runner-BkGBfr4e.mjs");
220
+ const { getMiniflareDatabasePath, runMigrations } = await import("./runner-DCYwTlee.mjs");
221
221
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
222
222
  rmSync(dbPath, { force: true });
223
223
  rmSync(dbPath + "-wal", { force: true });
@@ -244,7 +244,7 @@ async function runSeed(root, file, dialect) {
244
244
  ye("Done.");
245
245
  return;
246
246
  }
247
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
247
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-DCYwTlee.mjs");
248
248
  const db = await openSqliteDatabase(getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local"));
249
249
  try {
250
250
  db.exec(sql);
@@ -267,7 +267,7 @@ async function runExecute(root, command, file, dialect) {
267
267
  ye("Done.");
268
268
  return;
269
269
  }
270
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
270
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-DCYwTlee.mjs");
271
271
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
272
272
  if (!existsSync(dbPath)) {
273
273
  R.error("No local database found. Run `void dev` first.");
@@ -370,7 +370,7 @@ async function runMigrate(root, dialect, remote) {
370
370
  return;
371
371
  }
372
372
  if (dialect === "postgresql") {
373
- const { applyPgMigrations } = await import("./runner-pg-BXP0JpHW.mjs");
373
+ const { applyPgMigrations } = await import("./runner-pg-CJ04wNk5.mjs");
374
374
  const applied = await withPgClient(root, async (client) => {
375
375
  let existingRows = [];
376
376
  try {
@@ -394,7 +394,7 @@ async function runMigrate(root, dialect, remote) {
394
394
  ye("Done.");
395
395
  return;
396
396
  }
397
- const { getMiniflareDatabasePath, getAppliedMigrations, runMigrations } = await import("./runner-BkGBfr4e.mjs");
397
+ const { getMiniflareDatabasePath, getAppliedMigrations, runMigrations } = await import("./runner-DCYwTlee.mjs");
398
398
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
399
399
  try {
400
400
  const existingRows = await getAppliedMigrations(dbPath);
@@ -429,7 +429,7 @@ async function runStudio(root, dialect) {
429
429
  return;
430
430
  }
431
431
  const { writeDrizzleConfig } = await import("./config--wXmVOoe.mjs").then((n) => n.t);
432
- const { getMiniflareDatabasePath } = await import("./runner-BkGBfr4e.mjs");
432
+ const { getMiniflareDatabasePath } = await import("./runner-DCYwTlee.mjs");
433
433
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
434
434
  if (!existsSync(dbPath)) {
435
435
  R.error("No local database found. Run `void dev` first.");
@@ -649,7 +649,7 @@ async function runRenameMigrations(root, dialect) {
649
649
  process.exit(1);
650
650
  }
651
651
  else {
652
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
652
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-DCYwTlee.mjs");
653
653
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
654
654
  if (existsSync(dbPath)) try {
655
655
  const db = await openSqliteDatabase(dbPath);
@@ -727,7 +727,7 @@ async function runExport(root, args, dialect) {
727
727
  } else process.stdout.write(output);
728
728
  return;
729
729
  }
730
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
730
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-DCYwTlee.mjs");
731
731
  const dbPath = getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local");
732
732
  if (!existsSync(dbPath)) {
733
733
  R.error("No local database found. Run `void dev` first.");
@@ -855,7 +855,7 @@ async function runSeedModule(root, seedPath, dialect) {
855
855
  return;
856
856
  }
857
857
  const { drizzle } = await import("drizzle-orm/better-sqlite3");
858
- const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-BkGBfr4e.mjs");
858
+ const { getMiniflareDatabasePath, openSqliteDatabase } = await import("./runner-DCYwTlee.mjs");
859
859
  const sqlite = await openSqliteDatabase(getMiniflareDatabasePath(getLocalD1PersistRoot(root), "local"));
860
860
  try {
861
861
  const options = getDrizzleSchemaOptions(schema);
@@ -1983,8 +1983,10 @@ async function generateWrapper(workerDir, workerMain, root, features) {
1983
1983
  const migrationsDir = readProjectPaths(root).migrationsDir;
1984
1984
  migrations = collectMigrations(migrationsDir);
1985
1985
  migrationPlanBundle = features.migrationDialect === "sqlite" ? buildMigrationPlanBundle(migrations) : void 0;
1986
- const handlerFilename_ = features.migrationDialect === "postgresql" ? "migration-handler-pg.mjs" : "migration-handler.mjs";
1987
- let handlerPath = join(import.meta.dirname, "runtime", handlerFilename_);
1986
+ const handlerName = features.migrationDialect === "postgresql" ? "migration-handler-pg" : "migration-handler";
1987
+ const handlerFilename_ = `${handlerName}.mjs`;
1988
+ let handlerPath = join(import.meta.dirname, "..", "runtime", `${handlerName}.ts`);
1989
+ if (!existsSync(handlerPath)) handlerPath = join(import.meta.dirname, "runtime", handlerFilename_);
1988
1990
  if (!existsSync(handlerPath)) handlerPath = join(import.meta.dirname, "..", "runtime", handlerFilename_);
1989
1991
  if (!existsSync(handlerPath)) handlerPath = join(import.meta.dirname, "..", "..", "dist", "runtime", handlerFilename_);
1990
1992
  if (!existsSync(handlerPath)) throw new Error(`Migration handler not found: ${handlerFilename_}. Run "pnpm -C packages/void build" first.`);
@@ -2001,7 +2003,31 @@ async function bundlePgMigrationHandler(root, workerDir, handlerPath) {
2001
2003
  await build({
2002
2004
  root: tmpDir,
2003
2005
  logLevel: "silent",
2004
- ssr: { noExternal: ["pg", "pg-cloudflare"] },
2006
+ resolve: {
2007
+ alias: {
2008
+ "pg-cloudflare": resolvePgCloudflareWorkerdEntry(handlerPath),
2009
+ "pg-pool": resolvePgCjsDependency(handlerPath, "pg-pool")
2010
+ },
2011
+ conditions: [
2012
+ "workerd",
2013
+ "worker",
2014
+ "browser",
2015
+ "module",
2016
+ "import",
2017
+ "default"
2018
+ ]
2019
+ },
2020
+ ssr: {
2021
+ noExternal: ["pg", "pg-cloudflare"],
2022
+ resolve: { conditions: [
2023
+ "workerd",
2024
+ "worker",
2025
+ "browser",
2026
+ "module",
2027
+ "import",
2028
+ "default"
2029
+ ] }
2030
+ },
2005
2031
  build: {
2006
2032
  outDir,
2007
2033
  emptyOutDir: true,
@@ -2010,7 +2036,11 @@ async function bundlePgMigrationHandler(root, workerDir, handlerPath) {
2010
2036
  target: "esnext",
2011
2037
  rollupOptions: {
2012
2038
  input: handlerPath,
2013
- external: [/^cloudflare:/, /^node:/],
2039
+ external: [
2040
+ /^cloudflare:/,
2041
+ /^node:/,
2042
+ /^pgpass$/
2043
+ ],
2014
2044
  output: {
2015
2045
  entryFileNames: "__void_migration_handler.mjs",
2016
2046
  chunkFileNames: "__void_migration_handler-[hash].mjs"
@@ -2018,8 +2048,57 @@ async function bundlePgMigrationHandler(root, workerDir, handlerPath) {
2018
2048
  }
2019
2049
  }
2020
2050
  });
2051
+ patchPgWorkerBundle(outDir);
2021
2052
  for (const file of readdirSync(outDir)) copyFileSync(join(outDir, file), join(workerDir, file));
2022
2053
  }
2054
+ function patchPgWorkerBundle(outDir) {
2055
+ for (const file of readdirSync(outDir)) {
2056
+ if (!file.endsWith(".mjs") && !file.endsWith(".js")) continue;
2057
+ const path = join(outDir, file);
2058
+ let code = readFileSync(path, "utf-8");
2059
+ if (!code.includes("__require(\"pgpass\")") && !code.includes("createRequire(import.meta.url)")) continue;
2060
+ code = code.replaceAll("__require(\"pgpass\")", "__voidPgpassNoop").replace("import { createRequire } from \"node:module\";", "").replace("var __require = /* @__PURE__ */ createRequire(import.meta.url);", pgWorkerRequireShim());
2061
+ code = `const __voidPgpassNoop = Object.assign(function pgpass(_connectionInfo, callback) { callback(undefined); }, { warnTo() {} });\n` + code;
2062
+ writeFileSync(path, code);
2063
+ }
2064
+ }
2065
+ function createPgPackageRequire(fromPath) {
2066
+ return createRequire(createRequire(fromPath).resolve("pg/package.json"));
2067
+ }
2068
+ function resolvePgCjsDependency(fromPath, specifier) {
2069
+ return createPgPackageRequire(fromPath).resolve(specifier);
2070
+ }
2071
+ function resolvePgCloudflareWorkerdEntry(fromPath) {
2072
+ return join(dirname(createPgPackageRequire(fromPath).resolve("pg-cloudflare/package.json")), "dist", "index.js");
2073
+ }
2074
+ function pgWorkerRequireShim() {
2075
+ return [
2076
+ "import * as __voidNodeCrypto from \"node:crypto\";",
2077
+ "import * as __voidNodeDns from \"node:dns\";",
2078
+ "import * as __voidNodeEvents from \"node:events\";",
2079
+ "import * as __voidNodeFs from \"node:fs\";",
2080
+ "import * as __voidNodeNet from \"node:net\";",
2081
+ "import * as __voidNodeTls from \"node:tls\";",
2082
+ "import * as __voidNodeUtil from \"node:util\";",
2083
+ "import * as __voidNodeUtilTypes from \"node:util/types\";",
2084
+ "var __voidNodeRequireModules = {",
2085
+ " crypto: __voidNodeCrypto,",
2086
+ " dns: __voidNodeDns,",
2087
+ " events: __voidNodeEvents,",
2088
+ " fs: __voidNodeFs,",
2089
+ " net: __voidNodeNet,",
2090
+ " tls: __voidNodeTls,",
2091
+ " util: __voidNodeUtil,",
2092
+ " \"util/types\": __voidNodeUtilTypes,",
2093
+ "};",
2094
+ "var __require = (id) => {",
2095
+ " if (id.startsWith(\"node:\")) id = id.slice(5);",
2096
+ " const mod = __voidNodeRequireModules[id];",
2097
+ " if (mod) return mod;",
2098
+ " throw new Error(`Unsupported require(\"${id}\") in Void PG migration bundle`);",
2099
+ "};"
2100
+ ].join("\n");
2101
+ }
2023
2102
  /**
2024
2103
  * Bundle a worker entry into a self-contained module.
2025
2104
  *
@@ -1,4 +1,4 @@
1
- import { t as StandardSchemaV1 } from "./standard-schema-WhHcCaqJ.mjs";
1
+ import { t as StandardSchemaV1 } from "./standard-schema-BDiIJgp5.mjs";
2
2
 
3
3
  //#region src/shared/env-mask.d.ts
4
4
  /** Per-key override set by `.secret()` / `.public()` on built-in helpers. */
@@ -7,7 +7,7 @@ import { n as ensureProjectTsconfig } from "./project-tsconfig-HAGjfY6w.mjs";
7
7
  import { n as writeDrizzleConfig } from "./config--wXmVOoe.mjs";
8
8
  import { r as readJournal, t as collectMigrations } from "./collect-9rO3JFNM.mjs";
9
9
  import { n as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-CNWm-PsL.mjs";
10
- import { t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-QgEYVC3V.mjs";
10
+ import { t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-CLFC1T3p.mjs";
11
11
  import { existsSync, mkdirSync, readFileSync, readdirSync, unlinkSync, writeFileSync } from "node:fs";
12
12
  import { fileURLToPath } from "node:url";
13
13
  import { spawnSync } from "node:child_process";
@@ -1,6 +1,6 @@
1
- import { n as HeadDescriptor } from "./head-CZs8dMxG.mjs";
2
- import { r as AuthUser, t as AuthSession } from "./auth-SfRBhXan.mjs";
3
- import { t as StandardSchemaV1 } from "./standard-schema-WhHcCaqJ.mjs";
1
+ import { n as HeadDescriptor } from "./head-DnTAP4p-.mjs";
2
+ import { r as AuthUser, t as AuthSession } from "./auth-CHfPhSta.mjs";
3
+ import { t as StandardSchemaV1 } from "./standard-schema-BDiIJgp5.mjs";
4
4
  import * as _$_cloudflare_sandbox0 from "@cloudflare/sandbox";
5
5
  import { Context, Env, MiddlewareHandler } from "hono";
6
6
  import { RewriteDestination } from "void/routes";
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { n as HeadDescriptor } from "./head-CZs8dMxG.mjs";
2
- import { r as AuthUser } from "./auth-SfRBhXan.mjs";
3
- import { C as HandlerInput, _ as defineScheduled, a as QueueBatch, b as InferProps, c as RenderAssetTags, d as VoidAssetRewriteError, f as defineHandler, g as defineRender, h as defineQueue, i as CloudEnv, l as TypedHandler, m as defineMiddleware, n as CloudContext, o as QueueMessage, p as defineHead, r as CloudContextVariables, s as QueueRetryOptions, u as TypedQueueHandler, v as Deferred, w as ValidatorSlots, x as defer, y as DeferredState } from "./handler-BPhL8AmU.mjs";
1
+ import { n as HeadDescriptor } from "./head-DnTAP4p-.mjs";
2
+ import { r as AuthUser } from "./auth-CHfPhSta.mjs";
3
+ import { C as HandlerInput, _ as defineScheduled, a as QueueBatch, b as InferProps, c as RenderAssetTags, d as VoidAssetRewriteError, f as defineHandler, g as defineRender, h as defineQueue, i as CloudEnv, l as TypedHandler, m as defineMiddleware, n as CloudContext, o as QueueMessage, p as defineHead, r as CloudContextVariables, s as QueueRetryOptions, u as TypedQueueHandler, v as Deferred, w as ValidatorSlots, x as defer, y as DeferredState } from "./handler-2mA_-sst.mjs";
4
4
  import { QueueMap } from "./runtime/queues.mjs";
5
5
  import { PluginConfig } from "@cloudflare/vite-plugin";
6
6
  import { Plugin } from "vite";
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { r as __toESM } from "./chunk-DJd-R1mw.mjs";
2
2
  import { a as join, n as dirname, s as relative } from "./pathe.M-eThtNZ-BrPhGF_K.mjs";
3
3
  import { u as require_picocolors } from "./output-DeiS4oEX.mjs";
4
- import { C as isSandboxEnabled, D as resolveAssetRoutingPolicy, E as hasDocumentRoutes, S as SANDBOX_MIGRATION_TAG, T as hasApiRoutes, _ as normalizeWranglerCompatibilityFlags, a as prerenderPagesNode, b as resolveLiveBindingConfig, c as filterLoadedEnv, d as LIVE_MIGRATION_TAG, f as ensureWranglerCompat, g as nextDurableObjectMigrationTag, h as hasDurableObjectSqliteMigration, i as prerenderPages, l as resolveRemoteMode, m as ensureWranglerNodejsAlsFlag, n as resolveDistDir, o as DEFAULT_PROXY_URL, p as ensureWranglerCompatibilityDate, r as resolveWorkerDirName, s as STAGING_PROXY_URL, u as stripInternalEnvKeys, v as readExistingLiveBindingConfig, w as resolveSandboxConfig, x as syncWranglerBindings, y as readWranglerCompat } from "./deploy-Dm-sLnvz.mjs";
4
+ import { C as isSandboxEnabled, D as resolveAssetRoutingPolicy, E as hasDocumentRoutes, S as SANDBOX_MIGRATION_TAG, T as hasApiRoutes, _ as normalizeWranglerCompatibilityFlags, a as prerenderPagesNode, b as resolveLiveBindingConfig, c as filterLoadedEnv, d as LIVE_MIGRATION_TAG, f as ensureWranglerCompat, g as nextDurableObjectMigrationTag, h as hasDurableObjectSqliteMigration, i as prerenderPages, l as resolveRemoteMode, m as ensureWranglerNodejsAlsFlag, n as resolveDistDir, o as DEFAULT_PROXY_URL, p as ensureWranglerCompatibilityDate, r as resolveWorkerDirName, s as STAGING_PROXY_URL, u as stripInternalEnvKeys, v as readExistingLiveBindingConfig, w as resolveSandboxConfig, x as syncWranglerBindings, y as readWranglerCompat } from "./deploy-OPo_tSWl.mjs";
5
5
  import { i as resolveProjectPaths, n as readProjectPaths, t as assertNoRootSourceConventionConflicts } from "./project-paths-CCMrHYQm.mjs";
6
6
  import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-hhMYPVRT.mjs";
7
7
  import { c as getToken, u as isStagingMode } from "./client-CCOKwNUz.mjs";
@@ -600,7 +600,7 @@ export function createDb(d1) {
600
600
  const migrationsDir = paths.migrationsDir;
601
601
  if (!(existsSync(migrationsDir) && readdirSync(migrationsDir).some((f) => f.endsWith(".sql")))) {
602
602
  if (dialect === "sqlite") {
603
- const { getApplicationTables, getMiniflareDatabasePath } = await import("./runner-BkGBfr4e.mjs");
603
+ const { getApplicationTables, getMiniflareDatabasePath } = await import("./runner-DCYwTlee.mjs");
604
604
  if ((await getApplicationTables(getMiniflareDatabasePath(options.localD1PersistRoot ?? join(root, ".void"), options.localD1DatabaseId ?? "local")).catch(() => [])).length > 0) return;
605
605
  }
606
606
  voidWarn(`Schema found but no migrations in ${paths.sourceRelative("db/migrations")}/.\n \`void db push\` syncs the schema to your local DB without creating migration files.
@@ -1576,7 +1576,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
1576
1576
  else warn();
1577
1577
  return;
1578
1578
  }
1579
- const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-BXP0JpHW.mjs");
1579
+ const { runPgMigrations, getPgAppliedMigrations } = await import("./runner-pg-CJ04wNk5.mjs");
1580
1580
  const { collectMigrations } = await import("./collect-9rO3JFNM.mjs").then((n) => n.n);
1581
1581
  const { validateMigrations } = await import("./validate-CNWm-PsL.mjs").then((n) => n.i);
1582
1582
  const allMigrations = collectMigrations(migrationsDir);
@@ -1591,7 +1591,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
1591
1591
  const applied = await runPgMigrations(migrationsDir, url);
1592
1592
  if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
1593
1593
  } else if (hasSqlMigrations) {
1594
- const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-BkGBfr4e.mjs");
1594
+ const { runMigrations, getMiniflareDatabasePath, getAppliedMigrations } = await import("./runner-DCYwTlee.mjs");
1595
1595
  const { collectMigrations } = await import("./collect-9rO3JFNM.mjs").then((n) => n.n);
1596
1596
  const { validateMigrations } = await import("./validate-CNWm-PsL.mjs").then((n) => n.i);
1597
1597
  const dbPath = getMiniflareDatabasePath(persistRoot, databaseId);
@@ -1608,7 +1608,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
1608
1608
  if (applied.length > 0) voidLog(`Applied ${applied.length} migration(s): ${applied.join(", ")}`);
1609
1609
  }
1610
1610
  if (auth?.enabled) {
1611
- const { runLocalVoidAuthMigrations } = await import("./node-fpywdcbN.mjs");
1611
+ const { runLocalVoidAuthMigrations } = await import("./node-x1AzR6Yf.mjs");
1612
1612
  await runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, auth.configPath);
1613
1613
  voidLog("Applied Better Auth migrations");
1614
1614
  }
@@ -14,7 +14,7 @@ import { n as getAgentById, r as getPackageDir, t as detectAgents } from "./agen
14
14
  import { n as promptAndCreateProject, r as promptProjectSelection } from "./create-project-DmGoYMqF.mjs";
15
15
  import { t as promptForLoginToken } from "./login-BZ1Yk9Xw.mjs";
16
16
  import { r as formatProjectCommand } from "./preset-BRsCi8ZB.mjs";
17
- import { n as findInstalledYarnPnpRuntime, r as hasLocalLockfile, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-QgEYVC3V.mjs";
17
+ import { n as findInstalledYarnPnpRuntime, r as hasLocalLockfile, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-CLFC1T3p.mjs";
18
18
  import { createRequire } from "node:module";
19
19
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmdirSync, unlinkSync, writeFileSync } from "node:fs";
20
20
  import { fileURLToPath } from "node:url";
@@ -847,6 +847,20 @@ function createVoidTsconfigPatch(root, outputBaseDir) {
847
847
  const hasSchema = hasDrizzleSchema(root);
848
848
  return collectTsconfigPatchFromConfig(createProjectTsconfig(root, void 0, hasSchema, hasSchema), join(root, ".void", "tsconfig.json"), root, outputBaseDir, /* @__PURE__ */ new Set());
849
849
  }
850
+ function hasTopLevelYamlKey(yaml, key) {
851
+ const keyPattern = new RegExp(`^${key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\s*:`);
852
+ return yaml.split(/\r?\n/).some((rawLine) => {
853
+ const line = stripYamlLineComment(rawLine);
854
+ return keyPattern.test(line);
855
+ });
856
+ }
857
+ function isEmptyProjectAllowedPnpmWorkspaceFile(root) {
858
+ try {
859
+ return !hasTopLevelYamlKey(readFileSync(join(root, "pnpm-workspace.yaml"), "utf-8"), "packages");
860
+ } catch {
861
+ return false;
862
+ }
863
+ }
850
864
  function isScaffoldableEmptyProject(root) {
851
865
  for (const dir of [
852
866
  "src",
@@ -862,6 +876,7 @@ function isScaffoldableEmptyProject(root) {
862
876
  for (const file of VITE_CONFIG_FILES) if (existsSync(join(root, file))) return false;
863
877
  for (const entry of readdirSync(root, { withFileTypes: true })) {
864
878
  if (EMPTY_PROJECT_ALLOWED_ENTRIES.has(entry.name)) continue;
879
+ if (entry.name === "pnpm-workspace.yaml" && isEmptyProjectAllowedPnpmWorkspaceFile(root)) continue;
865
880
  if (entry.name.startsWith("README")) continue;
866
881
  return false;
867
882
  }
@@ -2749,7 +2764,7 @@ async function runInitCommand(root, initArgs) {
2749
2764
  const agentSetup = await resolveAgentSetup(root);
2750
2765
  injectAgentBlock(root, agentSetup.instructionFilePath);
2751
2766
  if (agentSetup.agents.length > 0) {
2752
- const { linkSkillsForSpecificAgents } = await import("./skills-B_ynF4lA.mjs");
2767
+ const { linkSkillsForSpecificAgents } = await import("./skills-C38GxuGT.mjs");
2753
2768
  linkSkillsForSpecificAgents(root, agentSetup.agents);
2754
2769
  } else R.info("Skills linking skipped for generic agent setup");
2755
2770
  setupMcpConfig(root, agentSetup.agents);
@@ -3,7 +3,7 @@ import { n as loadVoidAuthConfig, t as findVoidAuthConfig } from "./config-hhMYP
3
3
  import { f as readConfig } from "./config-BVEC0lti.mjs";
4
4
  import { r as resolveVoidAuthMigrationSchema } from "./drizzle-DmaANP4-.mjs";
5
5
  import { n as applySqliteAuthMigrations, t as applyPgAuthMigrations } from "./auth-migrations-BqJoGqGQ.mjs";
6
- import { getMiniflareDatabasePath } from "./runner-BkGBfr4e.mjs";
6
+ import { getMiniflareDatabasePath } from "./runner-DCYwTlee.mjs";
7
7
  import { loadEnv } from "vite";
8
8
  //#region src/auth/node.ts
9
9
  async function runLocalVoidAuthMigrations(root, dialect, persistRoot = join(root, ".void"), databaseId = "local", configPath = findVoidAuthConfig(root)) {
@@ -1,4 +1,4 @@
1
- import { t as PageObject } from "../protocol-mcSsdMij.mjs";
1
+ import { t as PageObject } from "../protocol-DXs_1QcC.mjs";
2
2
  import { CacheForInput, CacheForResult } from "./prefetch.mjs";
3
3
 
4
4
  //#region src/pages/action-result.d.ts
@@ -1,4 +1,4 @@
1
- import { n as HeadDescriptor } from "../head-CZs8dMxG.mjs";
1
+ import { n as HeadDescriptor } from "../head-DnTAP4p-.mjs";
2
2
 
3
3
  //#region src/pages/head-client.d.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-CZs8dMxG.mjs";
1
+ import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-DnTAP4p-.mjs";
2
2
  export { HeadConfig, HeadDescriptor, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead };
@@ -1,5 +1,5 @@
1
- import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-CZs8dMxG.mjs";
2
- import { a as PageScanResult, i as PageDefinition, n as LayoutDefinition, r as NamedLayoutDefinition } from "../types-C8wsi1hv.mjs";
1
+ import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-DnTAP4p-.mjs";
2
+ import { a as PageScanResult, i as PageDefinition, n as LayoutDefinition, r as NamedLayoutDefinition } from "../types-C0AOcrPN.mjs";
3
3
  import { serializePageData } from "./serialize.mjs";
4
4
  import { RewriteDestination } from "void/routes";
5
5
 
@@ -1,4 +1,4 @@
1
- import { a as PageScanResult } from "../types-C8wsi1hv.mjs";
1
+ import { a as PageScanResult } from "../types-C0AOcrPN.mjs";
2
2
  import { ResolvedConfig, ViteDevServer } from "vite";
3
3
 
4
4
  //#region src/pages/islands-plugin.d.ts
@@ -1,3 +1,3 @@
1
- import { S as ValidationError } from "../handler-BPhL8AmU.mjs";
2
- import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-mcSsdMij.mjs";
1
+ import { S as ValidationError } from "../handler-2mA_-sst.mjs";
2
+ import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-DXs_1QcC.mjs";
3
3
  export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
@@ -0,0 +1,16 @@
1
+ //#region src/runtime/pg.ts
2
+ /**
3
+ * `pg` falls back to `pgpass` when no password is present in the connection
4
+ * config and the server requests one. Workers have no pgpass file, and the
5
+ * Node fs/path polyfills can throw before `pg` reports the auth failure.
6
+ */
7
+ function disablePgPassFallback(client) {
8
+ const pgClient = client;
9
+ if (pgClient.password == null) {
10
+ const noPassword = async () => void 0;
11
+ pgClient.password = noPassword;
12
+ if (pgClient.connectionParameters) pgClient.connectionParameters.password = noPassword;
13
+ }
14
+ }
15
+ //#endregion
16
+ export { disablePgPassFallback as t };
@@ -34,32 +34,32 @@ async function runProjectsCommand(root) {
34
34
  //#region src/cli/project-cmd.ts
35
35
  async function runProjectCommand(root, args) {
36
36
  if (args.subcommand === "status") {
37
- const { runListCommand } = await import("./list-IPEcrLnM.mjs");
37
+ const { runListCommand } = await import("./list-G03-pEN-.mjs");
38
38
  return runListCommand(root, args.name || void 0);
39
39
  }
40
40
  if (args.subcommand === "link") {
41
- const { runLink } = await import("./link-GWTu3YvD.mjs");
41
+ const { runLink } = await import("./link-PClO4q2M.mjs");
42
42
  return runLink(root, args.name || void 0);
43
43
  }
44
44
  if (args.subcommand === "list") return runProjectsCommand(root);
45
45
  if (args.subcommand === "logs") {
46
- const { runLogsCommand } = await import("./logs-CNF59Q_p.mjs");
46
+ const { runLogsCommand } = await import("./logs-D0a_HhLn.mjs");
47
47
  return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
48
48
  }
49
49
  if (args.subcommand === "rollback") {
50
- const { runRollbackCommand } = await import("./rollback-vUeM-X4o.mjs");
50
+ const { runRollbackCommand } = await import("./rollback-BtiabraI.mjs");
51
51
  return runRollbackCommand(root, args.deployId || void 0);
52
52
  }
53
53
  if (args.subcommand === "cancel") {
54
- const { runCancelDeployCommand } = await import("./cancel-deploy-CGL_UJwR.mjs");
54
+ const { runCancelDeployCommand } = await import("./cancel-deploy-g6bC-mpl.mjs");
55
55
  return runCancelDeployCommand(root, args.deployId || void 0);
56
56
  }
57
57
  if (args.subcommand === "delete") {
58
- const { runDeleteCommand } = await import("./delete-BPVqSrkA.mjs");
58
+ const { runDeleteCommand } = await import("./delete-D446r1rC.mjs");
59
59
  return runDeleteCommand(root, args.name || void 0, { force: args.force });
60
60
  }
61
61
  if (args.subcommand === "purge-cache") {
62
- const { runPurgeCacheCommand } = await import("./cache-CstDt4gH.mjs");
62
+ const { runPurgeCacheCommand } = await import("./cache-ChOUXuMY.mjs");
63
63
  return runPurgeCacheCommand(root, args.projectSlug || void 0);
64
64
  }
65
65
  }
@@ -1,6 +1,6 @@
1
- import { n as HeadDescriptor, t as HeadConfig } from "./head-CZs8dMxG.mjs";
2
- import { n as CloudContext, t as CloudBindings } from "./handler-BPhL8AmU.mjs";
3
- import { t as DevCssAsset } from "./types-C8wsi1hv.mjs";
1
+ import { n as HeadDescriptor, t as HeadConfig } from "./head-DnTAP4p-.mjs";
2
+ import { n as CloudContext, t as CloudBindings } from "./handler-2mA_-sst.mjs";
3
+ import { t as DevCssAsset } from "./types-C0AOcrPN.mjs";
4
4
 
5
5
  //#region src/pages/protocol.d.ts
6
6
  /** Escape characters that are unsafe inside inline <script> tags to prevent XSS. */
@@ -1,2 +1,2 @@
1
- import { a as VoidAuthConfigContext, c as getSession, i as VoidAuthConfig, l as getUser, n as AuthState, o as authContext, r as AuthUser, s as defineAuth, t as AuthSession, u as requireAuth } from "../auth-SfRBhXan.mjs";
1
+ import { a as VoidAuthConfigContext, c as getSession, i as VoidAuthConfig, l as getUser, n as AuthState, o as authContext, r as AuthUser, s as defineAuth, t as AuthSession, u as requireAuth } from "../auth-CHfPhSta.mjs";
2
2
  export { AuthSession, AuthState, AuthUser, VoidAuthConfig, VoidAuthConfigContext, authContext, defineAuth, getSession, getUser, requireAuth };
@@ -1,4 +1,4 @@
1
- import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-Fzyk5yS1.mjs";
1
+ import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-BXdg2Sur.mjs";
2
2
 
3
3
  //#region src/runtime/better-auth-pg.d.ts
4
4
  declare const resolveVoidAuthOptions: VoidAuthRuntimeApi["resolveVoidAuthOptions"];
@@ -1,5 +1,6 @@
1
1
  import { t as applyPgAuthMigrations } from "../auth-migrations-BqJoGqGQ.mjs";
2
2
  import { t as createVoidAuthRuntime } from "../better-auth-shared-CbAF6sOM.mjs";
3
+ import { t as disablePgPassFallback } from "../pg-BDQxUp3Q.mjs";
3
4
  //#region src/runtime/better-auth-pg.ts
4
5
  function resolveConnectionString(env) {
5
6
  const connectionString = typeof env.DATABASE_URL === "string" && env.DATABASE_URL.length > 0 ? env.DATABASE_URL : typeof env.HYPERDRIVE?.connectionString === "string" && env.HYPERDRIVE.connectionString.length > 0 ? env.HYPERDRIVE.connectionString : void 0;
@@ -26,6 +27,7 @@ async function runPostgresAuthMigrations(_request, env, runtime, migrationSchema
26
27
  if (migrationSchema.dialect !== "postgresql") throw new Error(`auth: Runtime mismatch. Expected postgresql, received '${migrationSchema.dialect}'.`);
27
28
  const { Client } = await import("pg");
28
29
  const client = new Client({ connectionString: resolveConnectionString(env) });
30
+ disablePgPassFallback(client);
29
31
  await client.connect();
30
32
  try {
31
33
  await applyPgAuthMigrations({
@@ -1,4 +1,4 @@
1
- import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-Fzyk5yS1.mjs";
1
+ import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv, r as VoidAuthRuntimeApi, t as VoidAuthDialect } from "../better-auth-shared-BXdg2Sur.mjs";
2
2
 
3
3
  //#region src/runtime/better-auth.d.ts
4
4
  declare const resolveVoidAuthOptions: VoidAuthRuntimeApi["resolveVoidAuthOptions"];
@@ -1,6 +1,6 @@
1
- import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-SfRBhXan.mjs";
1
+ import { n as AuthState, r as AuthUser, t as AuthSession } from "../auth-CHfPhSta.mjs";
2
2
  import { auth, createAuthClient } from "./auth-client.mjs";
3
- import { t as FetchError } from "../fetch-error-BbixZ9vW.mjs";
3
+ import { t as FetchError } from "../fetch-error-7aWl0RiD.mjs";
4
4
  import { fetch } from "./fetch.mjs";
5
5
  import { fetchStream } from "./fetch-stream.mjs";
6
6
  export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
@@ -1,2 +1,2 @@
1
- import { a as getSecretOverride, c as oneOf, i as email, l as string, n as SECRET_OVERRIDE_SYMBOL, o as json, r as boolean, s as number, t as EnvSchema, u as url } from "../env-helpers-Bt9yYg5I.mjs";
1
+ import { a as getSecretOverride, c as oneOf, i as email, l as string, n as SECRET_OVERRIDE_SYMBOL, o as json, r as boolean, s as number, t as EnvSchema, u as url } from "../env-helpers-GICENGaN.mjs";
2
2
  export { EnvSchema, SECRET_OVERRIDE_SYMBOL, boolean, email, getSecretOverride, json, number, oneOf, string, url };
@@ -1,4 +1,4 @@
1
- import { c as oneOf, i as email, l as string, o as json, r as boolean, s as number, t as EnvSchema, u as url } from "../env-helpers-Bt9yYg5I.mjs";
1
+ import { c as oneOf, i as email, l as string, o as json, r as boolean, s as number, t as EnvSchema, u as url } from "../env-helpers-GICENGaN.mjs";
2
2
 
3
3
  //#region src/runtime/env-public-client.d.ts
4
4
  declare const env: Record<string, unknown>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@cloudflare/workers-types" />
2
- import { t as StandardSchemaV1 } from "../standard-schema-WhHcCaqJ.mjs";
3
- import { c as oneOf, i as email, l as string, o as json, r as boolean, s as number, t as EnvSchema, u as url } from "../env-helpers-Bt9yYg5I.mjs";
2
+ import { t as StandardSchemaV1 } from "../standard-schema-BDiIJgp5.mjs";
3
+ import { c as oneOf, i as email, l as string, o as json, r as boolean, s as number, t as EnvSchema, u as url } from "../env-helpers-GICENGaN.mjs";
4
4
  import * as _$_cloudflare_sandbox0 from "@cloudflare/sandbox";
5
5
 
6
6
  //#region src/runtime/env-public.d.ts
@@ -1,4 +1,4 @@
1
- import { t as FetchError } from "../fetch-error-BbixZ9vW.mjs";
1
+ import { t as FetchError } from "../fetch-error-7aWl0RiD.mjs";
2
2
  import { RouteMap } from "void/routes";
3
3
 
4
4
  //#region src/runtime/fetch-stream.d.ts
@@ -1,4 +1,4 @@
1
- import { t as FetchError } from "../fetch-error-BbixZ9vW.mjs";
1
+ import { t as FetchError } from "../fetch-error-7aWl0RiD.mjs";
2
2
  import { RouteMap } from "void/routes";
3
3
 
4
4
  //#region src/runtime/fetch.d.ts
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@cloudflare/workers-types" />
2
- import { C as HandlerInput, S as ValidationError, _ as defineScheduled, a as QueueBatch, b as InferProps, c as RenderAssetTags, d as VoidAssetRewriteError, f as defineHandler, g as defineRender, h as defineQueue, i as CloudEnv, l as TypedHandler, m as defineMiddleware, n as CloudContext, o as QueueMessage, p as defineHead, r as CloudContextVariables, s as QueueRetryOptions, t as CloudBindings, u as TypedQueueHandler, v as Deferred, w as ValidatorSlots, x as defer } from "../handler-BPhL8AmU.mjs";
2
+ import { C as HandlerInput, S as ValidationError, _ as defineScheduled, a as QueueBatch, b as InferProps, c as RenderAssetTags, d as VoidAssetRewriteError, f as defineHandler, g as defineRender, h as defineQueue, i as CloudEnv, l as TypedHandler, m as defineMiddleware, n as CloudContext, o as QueueMessage, p as defineHead, r as CloudContextVariables, s as QueueRetryOptions, t as CloudBindings, u as TypedQueueHandler, v as Deferred, w as ValidatorSlots, x as defer } from "../handler-2mA_-sst.mjs";
3
3
  export { CloudBindings, CloudContext, CloudContextVariables, CloudEnv, Deferred, HandlerInput, InferProps, QueueBatch, QueueMessage, QueueRetryOptions, RenderAssetTags, TypedHandler, TypedQueueHandler, ValidationError, ValidatorSlots, VoidAssetRewriteError, defer, defineHandler, defineHead, defineMiddleware, defineQueue, defineRender, defineScheduled };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@cloudflare/workers-types" />
2
- import { r as AuthUser } from "../auth-SfRBhXan.mjs";
3
- import { i as CloudEnv, n as CloudContext } from "../handler-BPhL8AmU.mjs";
2
+ import { r as AuthUser } from "../auth-CHfPhSta.mjs";
3
+ import { i as CloudEnv, n as CloudContext } from "../handler-2mA_-sst.mjs";
4
4
 
5
5
  //#region src/runtime/live.d.ts
6
6
  type MaybePromise<T> = T | Promise<T>;
@@ -2,11 +2,5 @@ import { MigrationEntry } from "./migration-handler.mjs";
2
2
 
3
3
  //#region src/runtime/migration-handler-pg.d.ts
4
4
  declare function createMigrationHandler(env: Record<string, unknown>, migrations: Array<MigrationEntry>, _dialect: "sqlite" | "postgresql", runAuthMigrations?: () => Promise<void>): (request: Request) => Promise<Response>;
5
- /**
6
- * `pg` falls back to `pgpass` when no password is present in the connection
7
- * config and the server requests one. Workers have no pgpass file, and the
8
- * Node fs/path polyfills can throw before `pg` reports the auth failure.
9
- */
10
- declare function disablePgPassFallback(client: unknown): void;
11
5
  //#endregion
12
- export { createMigrationHandler, disablePgPassFallback };
6
+ export { createMigrationHandler };
@@ -1,3 +1,4 @@
1
+ import { t as disablePgPassFallback } from "../pg-BDQxUp3Q.mjs";
1
2
  //#region src/runtime/migration-handler-pg.ts
2
3
  function createMigrationHandler(env, migrations, _dialect, runAuthMigrations) {
3
4
  return async (request) => {
@@ -82,18 +83,5 @@ async function runPgMigrations(env, migrations) {
82
83
  await client.end();
83
84
  }
84
85
  }
85
- /**
86
- * `pg` falls back to `pgpass` when no password is present in the connection
87
- * config and the server requests one. Workers have no pgpass file, and the
88
- * Node fs/path polyfills can throw before `pg` reports the auth failure.
89
- */
90
- function disablePgPassFallback(client) {
91
- const pgClient = client;
92
- if (pgClient.password == null) {
93
- const noPassword = async () => void 0;
94
- pgClient.password = noPassword;
95
- if (pgClient.connectionParameters) pgClient.connectionParameters.password = noPassword;
96
- }
97
- }
98
86
  //#endregion
99
- export { createMigrationHandler, disablePgPassFallback };
87
+ export { createMigrationHandler };
@@ -1,2 +1,2 @@
1
- import { C as HandlerInput, T as runValidation, w as ValidatorSlots } from "../handler-BPhL8AmU.mjs";
1
+ import { C as HandlerInput, T as runValidation, w as ValidatorSlots } from "../handler-2mA_-sst.mjs";
2
2
  export { HandlerInput, ValidatorSlots, runValidation };
@@ -1,5 +1,5 @@
1
- import { n as AuthState } from "../auth-SfRBhXan.mjs";
2
- import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv } from "../better-auth-shared-Fzyk5yS1.mjs";
1
+ import { n as AuthState } from "../auth-CHfPhSta.mjs";
2
+ import { i as VoidAuthRuntimeOptions, n as VoidAuthEnv } from "../better-auth-shared-BXdg2Sur.mjs";
3
3
  import { AnyWebSocketDefinition } from "./ws.mjs";
4
4
 
5
5
  //#region src/runtime/ws-server.d.ts
@@ -1,6 +1,6 @@
1
- import { r as AuthUser } from "../auth-SfRBhXan.mjs";
2
- import { t as StandardSchemaV1 } from "../standard-schema-WhHcCaqJ.mjs";
3
- import { i as CloudEnv } from "../handler-BPhL8AmU.mjs";
1
+ import { r as AuthUser } from "../auth-CHfPhSta.mjs";
2
+ import { t as StandardSchemaV1 } from "../standard-schema-BDiIJgp5.mjs";
3
+ import { i as CloudEnv } from "../handler-2mA_-sst.mjs";
4
4
  import { WebSocketRouteMap } from "void/routes";
5
5
 
6
6
  //#region src/runtime/ws.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "void",
3
- "version": "0.8.9",
3
+ "version": "0.8.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/voidzero-dev/void.git",
@@ -333,7 +333,7 @@
333
333
  "valibot": ">=1.0.0-beta.7",
334
334
  "vite": "^8.0.0",
335
335
  "zod": "^3.25.0 || ^4.0.0",
336
- "@void/md": "0.8.9"
336
+ "@void/md": "0.8.11"
337
337
  },
338
338
  "peerDependenciesMeta": {
339
339
  "@void/md": {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes