Hi, working with eventstore, when DB is mongoDB it displays the following warning:
(node:55180) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
Solved that adding
if (isNew) {
defaultOpt.autoReconnect = false;
defaultOpt.useNewUrlParser = true; // <--- add this to remove warning
_.defaults(options.options, defaultOpt);
} else {
defaultOpt.auto_reconnect = false;
_.defaults(options.options, defaultOpt);
}
Line = 98
File = mongodb.js
Path = eventstore/lib/databases/
(If you want I can make pull request with the fix)
Hi, working with eventstore, when DB is mongoDB it displays the following warning:
(node:55180) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
Solved that adding
Line = 98 File = mongodb.js Path = eventstore/lib/databases/
(If you want I can make pull request with the fix)