# What changed in @chat-adapter/state-memory

> 12 changes in @chat-adapter/state-memory 4 from its official release notes, upgrade guides and advisories: 7 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/@chat-adapter/state-memory/

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

## @chat-adapter/state-memory 4

### New APIs and options

- Now accepts an optional argument of type MemoryStateAdapterOptions. (4.29.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.29.0)
- Added an empty options type so the package matches every other state adapter. (4.29.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.29.0)
- Adds forceReleaseLock to StateAdapter to support interrupting or steering long-running handlers. (4.19.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.19.0)
- Adds the onLockConflict config option to support interrupting or steering long-running handlers. (4.19.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.19.0)
- Adds Serde support. (4.4.1) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.4.1)
- Adds Discord support. (4.3.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.3.0)
- Adds native streaming support. (4.1.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.1.0)

### Fixes and other changes

- Expanded npm keywords for adapter and state packages to improve discoverability. (4.30.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.30.0)
- Set supported Node versions in the package engines. (4.29.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.29.0)
- Fixes non-atomic message deduplication that caused app_mention events to be silently dropped. (4.17.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.17.0)
- Fixed and tested allMessages. (4.2.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.2.0)
- Fixed and tested fetchMessages. (4.2.0) — [release notes](https://github.com/vercel/chat/releases/tag/%40chat-adapter/state-memory%404.2.0)
