From 2ba19925e5ba7ec9e6cd850943f7010a7153a62b Mon Sep 17 00:00:00 2001 From: David Charbonnier Date: Fri, 13 Jul 2018 16:38:29 +0200 Subject: [PATCH] deprecate usage of ShareDbMongo as a function --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 2b76d5fa..f23d65e9 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,7 @@ module.exports = ShareDbMongo; function ShareDbMongo(mongo, options) { // use without new if (!(this instanceof ShareDbMongo)) { + console.warn('Deprecated: ShareDbMongo is not a function, use new'); return new ShareDbMongo(mongo, options); }