@theokit/sdk 4.15.3 → 4.15.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.15.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(persistence): the node:sqlite fallback now resolves via `process.getBuiltinModule` — the published bundle's esbuild predates the sqlite builtin and rewrote `import("node:sqlite")` to a bare `sqlite` package specifier, so the 4.15.3 fallback failed at runtime in the DIST while passing against src (adversarial-dist lesson, again).
8
+
3
9
  ## 4.15.3
4
10
 
5
11
  ### Patch Changes
package/dist/cron.cjs CHANGED
@@ -16284,7 +16284,11 @@ async function loadDriver(filePath) {
16284
16284
  betterSqliteCause = cause;
16285
16285
  }
16286
16286
  try {
16287
- const mod = await (driverLoaderOverrides?.nodeSqlite?.() ?? import('sqlite'));
16287
+ const mod = await (driverLoaderOverrides?.nodeSqlite?.() ?? Promise.resolve(
16288
+ process.getBuiltinModule?.("node:sqlite") ?? (() => {
16289
+ throw new Error("node:sqlite built-in unavailable (Node < 22.3)");
16290
+ })()
16291
+ ));
16288
16292
  return adaptNodeSqlite(new mod.DatabaseSync(filePath));
16289
16293
  } catch (nodeSqliteCause) {
16290
16294
  const b = betterSqliteCause instanceof Error ? betterSqliteCause.message : String(betterSqliteCause);