mongodb 6.20.0-dev.20251106.sha.696664cb → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -16
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The official [MongoDB](https://www.mongodb.com/) driver for Node.js.
|
|
4
4
|
|
|
5
|
-
**Upgrading to version
|
|
5
|
+
**Upgrading to version 7? Take a look at our [upgrade guide here](https://github.com/mongodb/node-mongodb-native/blob/HEAD/etc/notes/CHANGES_7.0.0.md)!**
|
|
6
6
|
|
|
7
7
|
## Quick Links
|
|
8
8
|
|
|
@@ -16,12 +16,10 @@ The official [MongoDB](https://www.mongodb.com/) driver for Node.js.
|
|
|
16
16
|
| MongoDB Developer Center | [www.mongodb.com/developer](https://www.mongodb.com/developer/languages/javascript/) |
|
|
17
17
|
| Stack Overflow | [stackoverflow.com](https://stackoverflow.com/search?q=%28%5Btypescript%5D+or+%5Bjavascript%5D+or+%5Bnode.js%5D%29+and+%5Bmongodb%5D) |
|
|
18
18
|
| Source Code | [github.com/mongodb/node-mongodb-native](https://github.com/mongodb/node-mongodb-native) |
|
|
19
|
-
| Upgrade to
|
|
19
|
+
| Upgrade to v7 | [etc/notes/CHANGES_7.0.0.md](https://github.com/mongodb/node-mongodb-native/blob/HEAD/etc/notes/CHANGES_7.0.0.md) |
|
|
20
20
|
| Contributing | [CONTRIBUTING.md](https://github.com/mongodb/node-mongodb-native/blob/HEAD/CONTRIBUTING.md) |
|
|
21
21
|
| Changelog | [HISTORY.md](https://github.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md) |
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
23
|
### Release Integrity
|
|
26
24
|
|
|
27
25
|
Releases are created automatically and signed using the [Node team's GPG key](https://pgp.mongodb.com/node-driver.asc). This applies to the git tag as well as all release packages provided as part of a GitHub release. To verify the provided packages, download the key and import it using gpg:
|
|
@@ -34,6 +32,7 @@ The GitHub release contains a detached signature file for the NPM package (named
|
|
|
34
32
|
`mongodb-X.Y.Z.tgz.sig`).
|
|
35
33
|
|
|
36
34
|
The following command returns the link npm package.
|
|
35
|
+
|
|
37
36
|
```shell
|
|
38
37
|
npm view mongodb@vX.Y.Z dist.tarball
|
|
39
38
|
```
|
|
@@ -41,12 +40,13 @@ npm view mongodb@vX.Y.Z dist.tarball
|
|
|
41
40
|
Using the result of the above command, a `curl` command can return the official npm package for the release.
|
|
42
41
|
|
|
43
42
|
To verify the integrity of the downloaded package, run the following command:
|
|
43
|
+
|
|
44
44
|
```shell
|
|
45
45
|
gpg --verify mongodb-X.Y.Z.tgz.sig mongodb-X.Y.Z.tgz
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
>[!Note]
|
|
49
|
-
No verification is done when using npm to install the package. The contents of the Github tarball and npm's tarball are identical.
|
|
48
|
+
> [!Note]
|
|
49
|
+
> No verification is done when using npm to install the package. The contents of the Github tarball and npm's tarball are identical.
|
|
50
50
|
|
|
51
51
|
The MongoDB Node.js driver follows [semantic versioning](https://semver.org/) for its releases.
|
|
52
52
|
|
|
@@ -83,15 +83,14 @@ For exhaustive server and runtime version compatibility matrices, please refer t
|
|
|
83
83
|
|
|
84
84
|
The following table describes add-on component version compatibility for the Node.js driver. Only packages with versions in these supported ranges are stable when used in combination.
|
|
85
85
|
|
|
86
|
-
| Component | `mongodb@3.x` | `mongodb@4.x` | `mongodb@5.x` | `mongodb@<6.12` | `mongodb@>=6.12` | `mongodb
|
|
87
|
-
| ------------------------------------------------------------------------------------ | ------------------ | ------------------ | ------------------ | --------------- | ------------------ |
|
|
88
|
-
| [bson](https://www.npmjs.com/package/bson) | ^1.0.0 | ^4.0.0 | ^5.0.0 | ^6.0.0 | ^6.0.0 | ^7.0.0
|
|
89
|
-
| [bson-ext](https://www.npmjs.com/package/bson-ext) | ^1.0.0 \|\| ^2.0.0 | ^4.0.0 | N/A | N/A | N/A | N/A
|
|
90
|
-
| [kerberos](https://www.npmjs.com/package/kerberos) | ^1.0.0 | ^1.0.0 \|\| ^2.0.0 | ^1.0.0 \|\| ^2.0.0 | ^2.0.1 | ^2.0.1 | ^7.0.0
|
|
91
|
-
| [mongodb-client-encryption](https://www.npmjs.com/package/mongodb-client-encryption) | ^1.0.0 | ^1.0.0 \|\| ^2.0.0 | ^2.3.0 | ^6.0.0 | ^6.0.0 | ^7.0.0
|
|
92
|
-
| [mongodb-legacy](https://www.npmjs.com/package/mongodb-legacy) | N/A | ^4.0.0 | ^5.0.0 | ^6.0.0 | ^6.0.0 | N/A
|
|
93
|
-
| [@mongodb-js/zstd](https://www.npmjs.com/package/@mongodb-js/zstd) | N/A | ^1.0.0 | ^1.0.0 | ^1.1.0 | ^1.1.0 \|\| ^2.0.0 | ^7.0.0
|
|
94
|
-
|
|
86
|
+
| Component | `mongodb@3.x` | `mongodb@4.x` | `mongodb@5.x` | `mongodb@<6.12` | `mongodb@>=6.12` | `mongodb@7.x` |
|
|
87
|
+
| ------------------------------------------------------------------------------------ | ------------------ | ------------------ | ------------------ | --------------- | ------------------ | ------------- |
|
|
88
|
+
| [bson](https://www.npmjs.com/package/bson) | ^1.0.0 | ^4.0.0 | ^5.0.0 | ^6.0.0 | ^6.0.0 | ^7.0.0 |
|
|
89
|
+
| [bson-ext](https://www.npmjs.com/package/bson-ext) | ^1.0.0 \|\| ^2.0.0 | ^4.0.0 | N/A | N/A | N/A | N/A |
|
|
90
|
+
| [kerberos](https://www.npmjs.com/package/kerberos) | ^1.0.0 | ^1.0.0 \|\| ^2.0.0 | ^1.0.0 \|\| ^2.0.0 | ^2.0.1 | ^2.0.1 | ^7.0.0 |
|
|
91
|
+
| [mongodb-client-encryption](https://www.npmjs.com/package/mongodb-client-encryption) | ^1.0.0 | ^1.0.0 \|\| ^2.0.0 | ^2.3.0 | ^6.0.0 | ^6.0.0 | ^7.0.0 |
|
|
92
|
+
| [mongodb-legacy](https://www.npmjs.com/package/mongodb-legacy) | N/A | ^4.0.0 | ^5.0.0 | ^6.0.0 | ^6.0.0 | N/A |
|
|
93
|
+
| [@mongodb-js/zstd](https://www.npmjs.com/package/@mongodb-js/zstd) | N/A | ^1.0.0 | ^1.0.0 | ^1.1.0 | ^1.1.0 \|\| ^2.0.0 | ^7.0.0 |
|
|
95
94
|
|
|
96
95
|
#### Typescript Version
|
|
97
96
|
|
|
@@ -100,7 +99,7 @@ This is the lowest typescript version guaranteed to work with our driver: older
|
|
|
100
99
|
Since typescript [does not restrict breaking changes to major versions](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes), we consider this support best effort.
|
|
101
100
|
If you run into any unexpected compiler failures against our supported TypeScript versions, please let us know by filing an issue on our [JIRA](https://jira.mongodb.org/browse/NODE).
|
|
102
101
|
|
|
103
|
-
Additionally, our Typescript types are compatible with the ECMAScript standard for our minimum supported Node version.
|
|
102
|
+
Additionally, our Typescript types are compatible with the ECMAScript standard for our minimum supported Node version. Currently, our Typescript targets es2023.
|
|
104
103
|
|
|
105
104
|
## Installation
|
|
106
105
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mongodb",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "The official MongoDB driver for Node.js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -172,4 +172,4 @@
|
|
|
172
172
|
"moduleResolution": "node"
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
}
|
|
175
|
+
}
|