Files
ruflo/v3/@claude-flow/memory/src
ReuvenandRuFlo 966335022a fix(@claude-flow/memory@3.0.0-alpha.15): #1867 unblock install on Node 26
`better-sqlite3@^11` has no Node-26 prebuilds and fails its node-gyp source
build against current V8, breaking `npm i ruflo@latest` on Node 26.

The runtime already had a sql.js / RVF fallback in `database-provider.ts`,
but `sqlite-backend.ts` carried a top-level `import Database from
'better-sqlite3'`. ESM evaluated that on import, so missing native module
threw `ERR_MODULE_NOT_FOUND` before any provider selection could happen.

- `sqlite-backend.ts`: type-only static import; runtime load deferred to
  `initialize()` via `await import('better-sqlite3')`, with an actionable
  error if missing.
- `package.json`: `better-sqlite3` moved from `dependencies` →
  `optionalDependencies`, bumped to `^12.9.0` (Node-26 prebuilds available).

Verified: install survives without better-sqlite3 (auto-falls back to
RVF, store/get round-trips OK); native path still works end-to-end with
better-sqlite3@12.9.0 installed.

Closes #1867

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-08 19:31:11 -04:00
..
2026-01-04 23:50:45 +00:00
2026-01-04 23:50:45 +00:00
2026-01-05 16:42:40 +00:00
2026-01-07 19:26:31 +00:00
2026-01-04 19:57:32 +00:00
2026-02-08 17:11:18 +00:00
2026-01-05 17:28:09 +00:00
2026-02-08 03:36:33 +00:00
2026-02-08 03:37:26 +00:00
2026-02-08 03:36:39 +00:00
2026-02-08 03:38:14 +00:00
2026-01-05 17:28:09 +00:00
2026-01-05 17:28:09 +00:00
2026-02-08 03:41:11 +00:00