-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[DO NOT MERGE] docs(NODE-7172): create v7 migration guide #4751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dariakp
wants to merge
10
commits into
main
Choose a base branch
from
NODE-7172/v7-release-notes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+265
−16
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
638da2c
docs: create v7 migration guide
dariakp 06fa101
docs: update v6 references to v7 in readme
dariakp e78dcb1
docs: update component compat table
dariakp 6b26afa
docs: fixups
dariakp b527b26
docs: maybe fix toc
dariakp 5bd82c1
docs: format closing section
dariakp fc1e81d
docs: clean up to address comments
dariakp 5d709df
docs: Alex's edits
dariakp 2efe618
docs: swap new and previous columns for dep table
dariakp 45159fb
docs: revisions based on Bailey's review
dariakp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
|
|
||
| The official [MongoDB](https://www.mongodb.com/) driver for Node.js. | ||
|
|
||
| **Upgrading to version 6? Take a look at our [upgrade guide here](https://github.com/mongodb/node-mongodb-native/blob/HEAD/etc/notes/CHANGES_6.0.0.md)!** | ||
| **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)!** | ||
|
|
||
| ## Quick Links | ||
|
|
||
|
|
@@ -16,12 +16,10 @@ The official [MongoDB](https://www.mongodb.com/) driver for Node.js. | |
| | MongoDB Developer Center | [www.mongodb.com/developer](https://www.mongodb.com/developer/languages/javascript/) | | ||
| | Stack Overflow | [stackoverflow.com](https://stackoverflow.com/search?q=%28%5Btypescript%5D+or+%5Bjavascript%5D+or+%5Bnode.js%5D%29+and+%5Bmongodb%5D) | | ||
| | Source Code | [github.com/mongodb/node-mongodb-native](https://github.com/mongodb/node-mongodb-native) | | ||
| | Upgrade to v6 | [etc/notes/CHANGES_6.0.0.md](https://github.com/mongodb/node-mongodb-native/blob/HEAD/etc/notes/CHANGES_6.0.0.md) | | ||
| | 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) | | ||
| | Contributing | [CONTRIBUTING.md](https://github.com/mongodb/node-mongodb-native/blob/HEAD/CONTRIBUTING.md) | | ||
| | Changelog | [HISTORY.md](https://github.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md) | | ||
|
|
||
|
|
||
|
|
||
| ### Release Integrity | ||
|
|
||
| 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,19 +32,21 @@ The GitHub release contains a detached signature file for the NPM package (named | |
| `mongodb-X.Y.Z.tgz.sig`). | ||
|
|
||
| The following command returns the link npm package. | ||
|
|
||
| ```shell | ||
| npm view [email protected] dist.tarball | ||
| ``` | ||
|
|
||
| Using the result of the above command, a `curl` command can return the official npm package for the release. | ||
|
|
||
| To verify the integrity of the downloaded package, run the following command: | ||
|
|
||
| ```shell | ||
| gpg --verify mongodb-X.Y.Z.tgz.sig mongodb-X.Y.Z.tgz | ||
| ``` | ||
|
|
||
| >[!Note] | ||
| No verification is done when using npm to install the package. The contents of the Github tarball and npm's tarball are identical. | ||
| > [!Note] | ||
| > No verification is done when using npm to install the package. The contents of the Github tarball and npm's tarball are identical. | ||
|
|
||
| The MongoDB Node.js driver follows [semantic versioning](https://semver.org/) for its releases. | ||
|
|
||
|
|
@@ -83,15 +83,14 @@ For exhaustive server and runtime version compatibility matrices, please refer t | |
|
|
||
| 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. | ||
|
|
||
| | Component | `[email protected]` | `[email protected]` | `[email protected]` | `mongodb@<6.12` | `mongodb@>=6.12` | | ||
| | ------------------------------------------------------------------------------------ | ------------------ | ------------------ | ------------------ | --------------- | ------------------ | | ||
| | [bson](https://www.npmjs.com/package/bson) | ^1.0.0 | ^4.0.0 | ^5.0.0 | ^6.0.0 | ^6.0.0 | | ||
| | [bson-ext](https://www.npmjs.com/package/bson-ext) | ^1.0.0 \|\| ^2.0.0 | ^4.0.0 | N/A | N/A | N/A | | ||
| | [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 | | ||
| | [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 | | ||
| | [mongodb-legacy](https://www.npmjs.com/package/mongodb-legacy) | N/A | ^4.0.0 | ^5.0.0 | ^6.0.0 | ^6.0.0 | | ||
| | [@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 | | ||
|
|
||
| | Component | `[email protected]` | `[email protected]` | `[email protected]` | `mongodb@<6.12` | `mongodb@>=6.12` | `[email protected]` | | ||
| | ------------------------------------------------------------------------------------ | ------------------ | ------------------ | ------------------ | --------------- | ------------------ | ------------- | | ||
| | [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 | | ||
| | [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 | | ||
| | [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 | | ||
| | [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 | | ||
| | [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 | | ||
| | [@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 | | ||
|
|
||
| #### Typescript Version | ||
|
|
||
|
|
@@ -100,7 +99,7 @@ This is the lowest typescript version guaranteed to work with our driver: older | |
| Since typescript [does not restrict breaking changes to major versions](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes), we consider this support best effort. | ||
| 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). | ||
|
|
||
| Additionally, our Typescript types are compatible with the ECMAScript standard for our minimum supported Node version. Currently, our Typescript targets es2023. | ||
| Additionally, our Typescript types are compatible with the ECMAScript standard for our minimum supported Node version. Currently, our Typescript targets es2023. | ||
|
|
||
| ## Installation | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.