Mem0 Node SDK (v3.0.1)
Release date: 2026-04-20
Package: mem0ai on npm
npm tag: ts-v3.0.1
Summary
Patch release that fixes telemetry's reported client_version drifting from the actual package version. Both telemetry clients (MemoryClient and OSS Memory) now always report the installed package version, driven by package.json at build time.
Bug Fixes
- Telemetry: Inject SDK version into telemetry at build time via esbuild's
define, replacing the two hardcodedlet version = "..."strings inmem0-ts/src/client/telemetry.tsandmem0-ts/src/oss/src/utils/telemetry.ts. Previously these were set to2.1.36and2.1.34respectively, while the published package was on3.x— every telemetry event was reporting the wrong version. The placeholder is substituted with a string literal at bundle time, so there is no extra runtime I/O and norequire("./package.json")in the shipped bundle. (#4897)
Internal
- Added
mem0-ts/src/global.d.tsdeclaring the__MEM0_SDK_VERSION__ambient constant used by the telemetry modules. mem0-ts/tsup.config.tsnow readspkg.versionand passes{ __MEM0_SDK_VERSION__: JSON.stringify(pkg.version) }todefinefor bothclientandossbuilds.mem0-ts/jest.setup.tsexposes the same value onglobalThissots-jesttest runs continue to resolve the symbol.
Upgrade
npm install mem0ai@3.0.1
# or
pnpm add mem0ai@3.0.1
# or
yarn add mem0ai@3.0.1No code changes required — this release is a drop-in replacement for 3.0.0. After upgrading, telemetry events will report client_version: "3.0.1" (and future bumps to package.json will flow through automatically with no further source edits).
Full Changeset
fix(ts-sdk): inject SDK version into telemetry at build timechore(release): bump TS SDK to 3.0.1
Diff: ts-v3.0.0...ts-v3.0.1