ts-v3.0.12

mem0ai/mem0ts-v3.0.12Jun 27, 2026by whysosaket

AI Summary

The Node SDK v3.0.12 adds new LLM providers like MiniMax and LiteLLM, introduces batch embedding options, and enhances vector store configuration flexibility with connection strings.

Key Highlights

  • Adds MiniMaxLLM provider and LiteLLM provider for routing requests.
  • Adds `expirationDate` to AddMemoryOptions and `showExpired` to search options.
  • Adds `connectionString` and SSL options to PGVector config.
  • Security update to remediate CVE-2026-12151.

New Features

  • Add `expirationDate` to `AddMemoryOptions`, `update()`, and the `Memory` interface
  • Add `showExpired` to `SearchMemoryOptions` and `GetAllMemoryOptions`
  • Add `MiniMaxLLM` provider backed by the OpenAI-compatible MiniMax API
  • Add `LiteLLM` provider for routing requests through a local or hosted proxy
  • Add `connectionString` and `ssl` options to the PGVector config

Full Release Notes

## Mem0 Node SDK (v3.0.12)

**New Features:**
- **Client:** Add `expirationDate` to `AddMemoryOptions`, `update()`, and the `Memory` interface; add `showExpired` to `SearchMemoryOptions` and `GetAllMemoryOptions` ([#5874](https://github.com/mem0ai/mem0/pull/5874))
- **LLMs:** Add `MiniMaxLLM` provider backed by the OpenAI-compatible MiniMax API (`api.minimax.io/v1`, default model `MiniMax-M2.7`) ([#5858](https://github.com/mem0ai/mem0/pull/5858))
- **LLMs:** Add `LiteLLM` provider for routing requests through a local or hosted LiteLLM proxy ([#5830](https://github.com/mem0ai/mem0/pull/5830))
- **Vector Stores:** Add `connectionString` and `ssl` options to the PGVector config, allowing connection via URI instead of individual host/user/password/port fields ([#5789](https://github.com/mem0ai/mem0/pull/5789))

**Bug Fixes:**
- **Memory (OSS):** Validate and trim entity IDs (`userId`, `agentId`, `runId`) in `deleteAll()` via `validateAndTrimEntityId` ([#5735](https://github.com/mem0ai/mem0/pull/5735))
- **Vector Stores:** Use nullish coalescing for `hash` and timestamps in the Redis `insert()` and `update()` paths so entity payloads that omit those fields no longer crash ([#5860](https://github.com/mem0ai/mem0/pull/5860))

**Security:**
- **Dependencies:** Bump `undici` to `>=6.27.0` via pnpm override to remediate CVE-2026-12151 ([#5861](https://github.com/mem0ai/mem0/pull/5861))