ts-v3.1.6
mem0ai/mem0ts-v3.1.6Aug 11, 2026by kartik-mem0
AI Summary
Adds Oracle AI Vector Search support to the Node SDK with performance optimizations and fixes session key encoding issues. Also patches multiple security vulnerabilities across dependencies.
Key Highlights
- New Oracle AI Vector Store (`oracledb`) with HNSW/IVF indexes and JSON filtering
- Security patches for 8 high and 18 medium severity dependency vulnerabilities
- Bug fix for session scope keys to properly percent-escape special characters
- Performance improvements reducing round trips for Oracle operations
New Features
- Oracle AI Vector Search integration with pooled connections
Full Release Notes
**New Features:** - **Vector Stores:** Add an Oracle AI Vector Search vector store (`oracledb`) to the OSS SDK, with pooled connections, `HNSW`/`IVF` indexes, an optional `indexAccuracy` target, JSON payload filtering, and six selectable distance metrics ([#6690](https://github.com/mem0ai/mem0/pull/6690)) **Bug Fixes:** - **Core:** Percent-escape `%`, `&`, and `=` in `user_id`, `agent_id`, and `run_id` when building the session scope key for the recent-conversation buffer, so the key stays unambiguous for ids containing those characters. Ordinary ids keep their existing key; an id already containing `%`, `&`, or `=` maps to a new key, so its buffer starts empty once and refills on the next `add()`. Stored memories are unaffected. Reported by [@OfficialAbhinavSingh](https://github.com/OfficialAbhinavSingh) ([#6892](https://github.com/mem0ai/mem0/pull/6892)) - **Vector Stores:** Close and clear the Oracle pool that Mem0 created when `initialize()` fails, and reset the cached init promise so the next call retries instead of replaying the rejection forever. A caller-supplied `client` is left untouched ([#6839](https://github.com/mem0ai/mem0/pull/6839)) - **Vector Stores:** Validate Oracle `insert()` batches before touching the database: `ids` and `payloads` must match `vectors` in length, so a short array can no longer write rows with `undefined` ids or silently drop payloads ([#6839](https://github.com/mem0ai/mem0/pull/6839)) **Improvements:** - **Vector Stores:** Cut Oracle round trips. `insert()` now sends the whole batch through one `executeMany()` with explicit `bindDefs` instead of one `INSERT` per vector, `list()` reads the total from a `COUNT(*) OVER ()` window in the same statement instead of issuing a second count query, and an unfiltered `search()` adds the `VECTOR_INDEX_TRANSFORM` hint so the vector index is used ([#6835](https://github.com/mem0ai/mem0/pull/6835)) **Security:** - **Dependencies:** Patched 8 high and 18 medium severity dependency vulnerabilities across the pnpm workspace via `pnpm.overrides` (`undici`, `brace-expansion`, `ip-address`) ([#6847](https://github.com/mem0ai/mem0/pull/6847))