Looking forward to the performance improvements. Has anyone tried it with Meteor already? Any issues?
Although, the current mongodb version we are using should run without problems in MongoDB 7.0, accessing new features will require node driver 5.7 (current is 4.16). Node driver version 6.x requires Node 16.x
3 Likes
So in short we need to wait for Meteor v3.
3 Likes
Opened up an issue about it:
opened 03:41PM - 05 Jul 24 UTC
Project:Mongo Driver
So just noticed that we are two major versions behind the MongoDB Node driver.
… Currently on 4.17.2. I would like to bring this up for an upgrade.
I think the reason why this has not been done is that [v5](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.0.0) of the package has removed callbacks, which is an issue for Meteor 2.x and bellow, but I think that for Meteor 3 it should be fine.
So steps for upgrade going forward:
## [5.0.1](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.0.0)
* Remove any remaining callbacks from server or make a workaround with the compatibility package
## [5.1.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.1.0)
* Check if we need to do anything with the new `bigint`
## [5.2.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.2.0)
Doesn't seem like we need to do anything here.
## [5.3.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.3.0)
* cursor forEach has been deprecated, we need to do the same, I think this is going to be huge as I have seen quiet a few things build on top of this.
## [5.4.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.4.0)
More deprecations here, but nothing that should impact us, I think.
## [5.5.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.5.0)
Nothing of note
## [5.6.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.6.0)
* Node 20 support
I think this is the initial release that we should really target.
## [5.7.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.7.0)
* Lot of deprecations
* Support for change stream split events - I think stuff like this will be become crucial for moving of oplog tailing
* Search indexes
## [5.8.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.8.0)
Should be fine
## [5.9.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v5.9.0)
* Fixes memory leak with change streams
## [6.0.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.0.0)
* Minimum Node v16
* We might need to install `socks` dependency
* Callbacks removed from ClientEncryption's encrypt, decrypt, and createDataKey methods
* This needs to be mentioned especially in changelog: Boolean options only accept 'true' or 'false' in connection strings and Repeated options are no longer allowed in connection strings
## [6.1.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.1.0)
Looks fine
## [6.2.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.2.0)
* insertedIds in bulk write now contain only successful insertions - should not affect us
* Fix for edge case `findOne` memory leak (same as 5.9.1)
## [6.3.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.3.0)
* New client option `serverMonitoringMode` - just highlighted one of the new options that should be mentioned in changelog
* GridFS fields deprecated
## [6.4.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.4.0)
* `countDocuments` now types the filter using the collection Schema - should have no effect
* Errors on cursor transform streams are now properly propagated - I don't expect a direct impact here, but this could affect some apps
## [6.5.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.5.0)
* Bulk Write Operations Generate Ids using `pkFactory` - I don't think this should affect us, but good to keep in mind
* Fixed memory leak in Connection layer
## [6.6.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.6.0)
* Aggregation pipelines can now add stages manually - no direct affect, but a useful feature
* `indexExists()` no longer supports the `full` option - hopefully no direct impact as well
## [6.7.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.7.0)
Seems fine
## [6.8.0](https://github.com/mongodb/node-mongodb-native/releases/tag/v6.8.0)
* Cursor responses are now parsed lazily 🦥 <= potential speed improvement?
Given Meteor 3, I think v5.6.0 should be our target for initial upgrade to get started (though we can go to latest v5 if me make it that far, I think). Don't really know much, but I will try to get something out soon and see how far I can get with a simple version update.
5 Likes