chore(main): release 6.0.0 [skip-ci] #19
Merged
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.
🌱 A new release!
6.0.0 (2023-08-28)
The MongoDB Node.js team is pleased to announce version 6.0.0 of the
mongodb-legacy
package!Release Notes
Adopt MongoDB Node.js Driver v6
v6.0.0 of this package depends on driver version
^6.0.0
. It can be used to migrate existing callback using codebases to promises incrementally while pulling in the latest and greatest MongoDB has to offer!Minimum Node.js version is now v16.20.1
The minimum supported Node.js version is now v16.20.1. We strive to keep our minimum supported Node.js version in sync with the runtime's release cadence to keep up with the latest security updates and modern language features.
db.addUser()
andadmin.addUser()
removedThe deprecated
addUser
APIs have been removed. The driver maintains support across many server versions and thecreateUser
command has support for different features based on the server's version. Since applications can generally write code to work against a uniform and perhaps more modern server, the path forward is for applications to send thecreateUser
command directly.See the
createUser
documentation for more information.collection.stats()
removedThe
collStats
command is deprecated starting in server v6.2 so the driver is removing its bespoke helper in this major release. ThecollStats
command is still available to run manually viaawait db.command()
. However, the recommended migration is to use the$collStats
aggregation stage.⚠ BREAKING CHANGES
Documentation
We invite you to try the
mongodb-legacy
library immediately, and report any issues to the NODE project.