# What changed in @langchain/mongodb

> 5 changes in @langchain/mongodb 0.3 to 1 from its official release notes, upgrade guides and advisories: 1 breaking, 2 security, 1 new APIs and options. Each one cited. Sources checked 2026-10-20. HTML: https://unstale.sh/npm/@langchain/mongodb/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @langchain/mongodb 1

### Breaking changes

- Invalid sessionId values are rejected; sessionId: "" now throws instead of silently working. (1.3.1) — [release notes](https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain/mongodb%401.3.1)

### Security

- MongoDB query filters are wrapped with $eq. (1.3.1) — [release notes](https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain/mongodb%401.3.1), [security advisory](https://github.com/advisories/GHSA-M6RX-H84Q-8R95)

### New APIs and options

- Adds a MongoDB LLM cache. (1.1.0) — [release notes](https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain/mongodb%401.1.0)

### Fixes and other changes

- Fixes compatibility with moduleResolution set to "node". (1.0.1) — [release notes](https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain/mongodb%401.0.1)

## @langchain/mongodb 0.3

### Security

- A fix for CVE-2025-12735 was included in the release. (0.3.58) — [release notes](https://github.com/langchain-ai/langchainjs/releases/tag/0.3.58)
