Update driver of jsreport-mongodb-store
I was checking the dependencies of the mongodb packages.
In here, jsreport-mongodb-store , i've notice the devDependencies of "mongodb": "3.6.5". (https://github.com/jsreport/jsreport/blob/master/packages/jsreport-mongodb-store/package.json)
Is it possible to upgrade it with a newer version? This is the compatibility table: https://www.mongodb.com/docs/drivers/node/current/compatibility/
Note that all version before 4.0 has reached the End of Life, as described here. https://www.mongodb.com/docs/manual/release-notes/
Yes, we can update it... However, I am just curious why is this important for you. Do you have some problems when running the latest mongo? jsreport uses just very basic mongo API so I was thinking it will be compatible anyway endlessly.
To make sure we are compatible.
We need to update the mongo database versions and wanted to make sure there were no problems with this package.
Also, some versions are deprecated and driver 3.6x supports at max node 14
We use the same package with mongo 4.2 and node 16 without problems.
Mongo Driver 4.1 extends the compatibility of 3.6 and has several bug fixes, it could be a first step on the dependency update
We will update a release to reflect this.
Do you think there is a reason why not to update to the latest 5.1 driver?
I tried some quick tests and it works fine. Also, it should support also older mongodb databases.
@firstname.lastname@example.org uses the latest driver.