mongodb 4.2.2
The official MongoDB driver for Node.js
mongodb@4.2.2 was published on 2021-12-13. Its manifest declares 4 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=12.9.0.
All mongodb versions · Permanent reference to 4.2.2 · View npm registry JSON · Latest release
Package specifications
| Version | 4.2.2 |
|---|---|
| License declaration | Apache-2.0 |
| Published | 2021-12-13T20:42:15.473Z |
| Node.js requirement | >=12.9.0 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 4 |
| Peer requirement count | 0 |
| Optional dependency count | 1 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 2672.86 KiB |
| Published file count | 300 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | lib/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 1 |
| Resolved graph dependencies | 17 |
| Repository stars | 10172 |
| Repository forks | 1819 |
Install mongodb 4.2.2
npm install mongodb@4.2.2 pnpm add mongodb@4.2.2 yarn add mongodb@4.2.2
Runtime dependencies
- bson ^4.6.0
- denque ^2.0.1
- saslprep ^1.0.3
- mongodb-connection-string-url ^2.3.2
Peer requirements
- None declared
Optional dependencies
- saslprep ^1.0.3
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @types/node@26.6.6 — indirect
- @types/webidl-conversions@7.0.3 — indirect
- @types/whatwg-url@8.2.2 — indirect
- base64-js@1.5.1 — indirect
- bson@4.7.2 — direct
- buffer@5.7.1 — indirect
- denque@2.1.0 — direct
- ieee754@1.2.1 — indirect
- memory-pager@1.5.0 — indirect
- mongodb-connection-string-url@2.6.0 — direct
- punycode@2.3.1 — indirect
- saslprep@1.0.3 — direct
- sparse-bitfield@3.0.3 — indirect
- tr46@3.0.0 — indirect
- undici-types@8.9.0 — indirect
- webidl-conversions@7.0.0 — indirect
- whatwg-url@11.0.0 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Known direct advisories
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 9/10 — Found 21/22 approved changesets -- score normalized to 9 |
|---|---|
| Maintained | 10/10 — 30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Security-Policy | 0/10 — security policy file not detected |
| License | 10/10 — license file detected |
| Signed-Releases | 8/10 — 5 out of the last 5 releases have a total of 5 signed artifacts. |
| Branch-Protection | 5/10 — branch protection is not maximal on development and all release branches |
| SAST | 9/10 — SAST tool detected but not run on all commits |
| Fuzzing | 0/10 — project is not fuzzed |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
Evidence and freshness
- Readable npm registry JSON — retrieved 2026-11-02T03:48:27.564Z
- https://api.deps.dev/v3/projects/github.com%2Fmongodb%2Fnode-mongodb-native — retrieved 2026-11-02T00:12:54.426Z
- https://api.deps.dev/v3/systems/npm/packages/mongodb/versions/4.2.2 — retrieved 2026-11-02T03:48:27.946Z
- https://api.deps.dev/v3/systems/npm/packages/mongodb/versions/4.2.2:dependencies — retrieved 2026-11-02T03:48:27.978Z