npm / @langchain/mongodb
@langchain/mongodb
What changed in @langchain/mongodb 0.3 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
1 breaking2 security1 new APIs and options1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@langchain/mongodb 14 changes
Breaking changes 1
Invalid sessionId values are rejected; sessionId: "" now throws instead of silently working.
Security 1
MongoDB query filters are wrapped with $eq.
New APIs and options 1
Adds a MongoDB LLM cache.
Fixes and other changes 1
Fixes compatibility with moduleResolution set to "node".
@langchain/mongodb 0.31 changes
Security 1
A fix for CVE-2025-12735 was included in the release.