-
Notifications
You must be signed in to change notification settings - Fork 201
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
COMPASS-3943: Update to latest node driver 3.3.4 #1834
Conversation
Evergreen patch build: https://evergreen.mongodb.com/version/5dcb21170ae606629dc6a8aa |
Instead use equivalent `require('mongodb').ReadPreference`
macOS installer: You can copy the bulk connection metadata from Beta like below. You'll just need to re-enter passwords: cp ~/Library/Application\ Support/MongoDB\ Compass\ Beta/Connections/*.json ~/Library/Application\ Support/MongoDB\ Compass\ Dev/Connections/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried a bunch of ways that I used get the timeout warning, and I don't think I can get it any more. IMO, let's merge this down, and see what people say when they play around with it!
@lrlna awesome! Thank you |
* chore: update to node [email protected] * chore: remove extraneous mongodb-core dependency * COMPASS-3943: Update to [email protected] * chore: update to `[email protected]` mongodb-js/data-service#154 * fix: Deprecate usage of mongodb-core Instead use equivalent `require('mongodb').ReadPreference`
* chore: update to node [email protected] * chore: remove extraneous mongodb-core dependency * COMPASS-3943: Update to [email protected] * chore: update to `[email protected]` mongodb-js/data-service#154 * fix: Deprecate usage of mongodb-core Instead use equivalent `require('mongodb').ReadPreference`
Description
This PR updates the node.js driver from
3.3.2
to the latest release3.3.4
. It contains many improvements and bug fixes. The full changelog is below.Changelog Highlights
High Priority SDAM Fixes
Fixes the underlying cause of timeout-related errors such as "Server selection timed out" with more details in COMPASS-3849 COMPASS-3728. The pull request mongodb/node-mongodb-native#2197 contains much more context on the fix, and a new design document includes how and why the node.js driver team chose this architecture and future improvements it will enable.
Fix unsafe Buffer usage
Removes the last unsafe buffer usage warning from the devtools console/terminal output when using or developing Compass. Rejoice!
Update from an Aggregation Pipeline
While it has yet to come up, it is worth noting for the future that Compass can now technically add support for updates in aggregation pipeline stages which are new in MongoDB 4.2.
sdam_viz
An internal tool for debugging SDAM (Server Discovery and Monitoring) that could be used as a base for a more productive connection debugging feature in Compass or merely adding to
data-service
debug logs.mongodb-core "deprecation"
The
mongodb-core
dependency has been removed frommongodb-data-service
because it has been moved back into the driver codebase as of[email protected]
.mongodb-core
will be officially deprecated in the future by the driver team.node.js driver changelog
Diff v3.3.2...v3.3.4
Motivation and Context
Update core to
[email protected]
and a patch release of data-service to use the same.Types of changes