mongodb-labs / mongo-mockup-db

MockupDB - Simulate a MongoDB server.
Apache License 2.0
42 stars 12 forks source link

Update default maxWireVersion #44

Open ShaneHarvey opened 2 weeks ago

ShaneHarvey commented 2 weeks ago

The current default maxWireVersion is 6 which represents the now EOL MongoDB 3.6. We should update the default to 25 which represents MongoDB 8.0.

ShaneHarvey commented 2 weeks ago

We could also use MAX_SUPPORTED_WIRE_VERSION or MIN_SUPPORTED_WIRE_VERSION from pymongo.common instead of hardcoding it.

ShaneHarvey commented 2 weeks ago

Note this is motivated by https://github.com/mongodb/mongo-python-driver/pull/1905 because PyMongo is dropping support for MongoDB 3.6. We should implement and release this ticket before releasing the next version of pymongo otherwise pymongo won't be able to connect to MockupDB by default.