Skip to content

v2.18.4

Choose a tag to compare

@github-actions github-actions released this 19 Jul 19:46
· 143 commits to main since this release

Fixed

  • SQLite backend ABI mismatch on Node 24 (issue #52)better-sqlite3@12 ships prebuilt .node binaries compiled against Node ABI 137 (Node 22). OpenCode v1.18.3 bundles Node 24 (ABI 146), so the native binary failed to load with NODE_MODULE_VERSION 137 ... requires 146 and every memory operation threw. The SQLite bootstrap now probes backends in ABI-safety order — bun:sqlitenode:sqlite (Node stdlib, no native binary, no ABI risk) → better-sqlite3 (last resort) — with a real :memory: open/close load-test so a broken native build is never selected silently.
  • Array-arg bind param parity across SQLite backendsdb.run(sql, [a, b]) and stmt.run([a, b]) auto-unpack the array under better-sqlite3 but not under node:sqlite or bun:sqlite. The shared statement wrapper now normalizes a single Array argument into positional params, so the three callsites using this form (schema.ts, shard-manager.ts) work identically on every backend.

Contributors

  • @Kingor-blip (issue #52 — reported the better-sqlite3 NODE_MODULE_VERSION mismatch on OpenCode v1.18.3 / Node 24)

Full Changelog: v2.18.3...v2.18.4