# What changed in lmdb

> 3 changes in lmdb 3 from its official release notes, upgrade guides and advisories: 1 breaking. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/lmdb/

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

## lmdb 3

### Breaking changes

- Commit listeners and callbacks now run outside the status call that starts a batch's transaction callbacks, preventing heap corruption and empty range reads; an earlier batch's listeners may run after a later batch's synchronous transaction callback. (3.5.11) — [release notes](https://github.com/kriszyp/lmdb-js/releases/tag/v3.5.11)

### Fixes and other changes

- In data-format-v1 builds with LMDB_DATA_V1=true, close() now calls mdb_env_close(), preventing leaks of lock and data file descriptors and memory maps. (3.5.11) — [release notes](https://github.com/kriszyp/lmdb-js/releases/tag/v3.5.11)
- Calling getValues() inside a write transaction no longer decodes stale bytes from the shared key buffer, avoiding key-decoding errors. (3.5.11) — [release notes](https://github.com/kriszyp/lmdb-js/releases/tag/v3.5.11)
