From a6242710df169fac42cf60d6ccf6810254ad2985 Mon Sep 17 00:00:00 2001 From: Utkarsh Date: Sat, 14 Mar 2026 23:34:56 +0530 Subject: [PATCH] chore(ts-sdk): bump mem0ai version to 2.4.0 (#4332) Co-authored-by: utkarsh240799 Co-authored-by: Claude Opus 4.6 (1M context) --- docs/changelog.mdx | 13 +++++++++++++ mem0-ts/package.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/changelog.mdx b/docs/changelog.mdx index bf55b3510..853eea209 100644 --- a/docs/changelog.mdx +++ b/docs/changelog.mdx @@ -729,6 +729,19 @@ mode: "wide" + + +**Bug Fixes:** +- **OSS Storage:** Fixed `SQLITE_CANTOPEN` errors when running as a LaunchAgent, systemd service, or in containers where `process.cwd()` is read-only (e.g. `/`). Default `vector_store.db` location changed from `process.cwd()/vector_store.db` to `~/.mem0/vector_store.db`. +- **OSS Storage:** Fixed `historyDbPath` config being silently ignored — config merging always overwrote it with defaults. Top-level `historyDbPath` is now correctly propagated into `historyStore.config` with proper precedence. +- **OSS Storage:** Added `ensureSQLiteDirectory()` — parent directories for SQLite database files are now auto-created before opening, preventing `SQLITE_CANTOPEN` when using nested paths. + +**Improvements:** +- **Migration:** Added deprecation warning when an existing `vector_store.db` is found at the old `process.cwd()` location, guiding users to move it or set `vectorStore.config.dbPath` explicitly. +- **Config:** Limited default SQLite config spreading to only SQLite history providers, preventing config leaking into Supabase or other providers. + + + **Breaking Changes:** diff --git a/mem0-ts/package.json b/mem0-ts/package.json index 4a54d8f71..54def74b4 100644 --- a/mem0-ts/package.json +++ b/mem0-ts/package.json @@ -1,6 +1,6 @@ { "name": "mem0ai", - "version": "2.3.0", + "version": "2.4.0", "description": "The Memory Layer For Your AI Apps", "main": "./dist/index.js", "module": "./dist/index.mjs",