Download Latest Version v7.7.0 source code.zip (201.6 MB) Google Add to Preferred Sources
Home / v7.4.0
Name Modified Size InfoDownloads / Week
Parent folder
mongodb-7.4.0.tgz 2026-06-25 769.7 kB
mongodb-7.4.0.tgz.sig 2026-06-25 833 Bytes
README.md 2026-06-25 1.9 kB
v7.4.0 source code.tar.gz 2026-06-25 163.7 MB
v7.4.0 source code.zip 2026-06-25 195.1 MB
Totals: 5 Items   359.6 MB 5

7.4.0 (2026-06-25)

The MongoDB Node.js team is pleased to announce version 7.4.0 of the mongodb package!

Release Notes

Explicit resource management is now stable

The Symbol.asyncDispose methods on MongoClient, ClientSession, ChangeStream, and cursors enable await using for automatic cleanup. These methods were introduced as experimental in v6.9.0. Since then, TC39 Explicit Resource Management proposal reached Stage 4 in 2025, and Node.js enabled explicit resource management as a stable feature in Node.js 24, so the experimental flags have been removed from our APIs and the APIs are now officially supported.

afterClusterTime now sent on writes in causally-consistent sessions

When a session has causal consistency enabled, write operations now include readConcern.afterClusterTime, matching the existing read behavior. This maintains the "read your own writes" guarantee across primary failovers in shareded clusters. There are no API changes.

Features

  • NODE-7634: remove experimental tag from async dispose methods (#4976) (43ce3eb)
  • NODE-7549: send afterClusterTime on writes in causally-consistent sessions (#4963) (3abfd26)

Documentation

We invite you to try the mongodb library immediately, and report any issues to the NODE project.

Source: README.md, updated 2026-06-25