6.0.0 (2019-10-22)
BREAKING CHANGES
- Drop support for Node.js < 8 (c99fda8)
- MongoMemoryServer:
getConnectionString()
add?
character to the uri by default (505b7c2) - MongoMemoryReplSet:
getConnectionString()
now returns uri with?replicaSet=
option. (401441c)
MongoMemoryServer.getConnectionString() adds ?
to uri string
Addition of ?
will allow in future add automatically config options to the connection string.
const uri = await mongoServer.getConnectionString();
- mongodb://127.0.0.1:49891/4a8ffafc-c154-4f6a-bc60-16f8fdc98706
+ mongodb://127.0.0.1:49891/4a8ffafc-c154-4f6a-bc60-16f8fdc98706?
MongoMemoryReplSet.getConnectionString()
// before `<6.0.0`
const uri = `${await replSet.getConnectionString()}?replicaSet=testset`;
// starting from `>=6.0.0`
// `?replicaSet=testset` returned by default from `getConnectionString()` method
const uri = await replSet.getConnectionString();
PS. This version contains a fix for high severity vulnerability of https-proxy-agent